Skip to content

Commit

Permalink
feat: support submit to local rss reader, close #56
Browse files Browse the repository at this point in the history
  • Loading branch information
DIYgod committed Sep 6, 2019
1 parent 9231c61 commit 9f93aab
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 2 deletions.
1 change: 1 addition & 0 deletions src/js/common/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ export const defaultConfig = {
ttrssDomain: '',
feedly: true,
inoreader: false,
local: false,
},
refreshTimeout: 5 * 60 * 60,
};
Expand Down
3 changes: 2 additions & 1 deletion src/js/options/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import App from './App.vue';
import Setting from './views/Setting.vue';
import List from './views/List.vue';
import About from './views/About.vue';
import { Container, Menu, MenuItem, Aside, Header, Main, Footer, Input, Checkbox, Message, Loading, Collapse, CollapseItem, Button, Progress } from 'element-ui';
import { Container, Menu, MenuItem, Aside, Header, Main, Footer, Input, Checkbox, Message, Loading, Collapse, CollapseItem, Button, Progress, Tooltip } from 'element-ui';

Vue.use(VueRouter);
Vue.use(Container);
Expand All @@ -22,6 +22,7 @@ Vue.use(Collapse);
Vue.use(CollapseItem);
Vue.use(Button);
Vue.use(Progress);
Vue.use(Tooltip);

Vue.prototype.$loading = Loading.service;
Vue.prototype.$message = Message;
Expand Down
4 changes: 4 additions & 0 deletions src/js/options/views/Setting.vue
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,10 @@
<div class="setting-input">
<el-checkbox @change="saveConfig" v-model="config.submitto.inoreader">开启</el-checkbox>
</div>
<div class="setting-name">本地阅读器 <el-tooltip class="item" effect="dark" content="需要阅读器支持,如 Reeder 等" placement="top"><i class="el-icon-info"></i></el-tooltip></div>
<div class="setting-input">
<el-checkbox @change="saveConfig" v-model="config.submitto.local">开启</el-checkbox>
</div>
</div>
<div class="subtitle">通知与提醒</div>
<div class="setting-item">
Expand Down
3 changes: 2 additions & 1 deletion src/js/popup/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,8 @@ function generateList(type, list) {
: ''
}
${config.submitto.feedly ? `<a href="https://feedly.com/i/subscription/feed/${url}" class="rss-action rss-submitto-feedly">订阅到 Feedly</a>` : ''}
${config.submitto.inoreader ? `<a href="https://www.inoreader.com/?add_feed=${url}" class="rss-action rss-submitto-inoreader">订阅到 Inoreader</a>` : ''}`
${config.submitto.inoreader ? `<a href="https://www.inoreader.com/?add_feed=${url}" class="rss-action rss-submitto-inoreader">订阅到 Inoreader</a>` : ''}
${config.submitto.local ? `<a href="feed://${url}" class="rss-action rss-submitto-local">订阅到本地阅读器</a>` : ''}`
}
</li>
`;
Expand Down

0 comments on commit 9f93aab

Please sign in to comment.