用 Electron 写了一个 RSS 阅读器

2020-06-17 10:24:10 +08:00
 yang991178

除了自己平时看的以外没有测试太多订阅源,目前 bug 可能不少,欢迎抓虫。

网站:hyliu.me/fluent-reader

GitHub:github.com/yang991178/fluent-reader

微软商店:www.microsoft.com/store/apps/9P71FC94LRH8?cid=v2ex

10734 次点击
所在节点    分享创造
51 条回复
yang991178
2020-06-17 19:38:38 +08:00
@imgentleman 支持 PAC script 配置代理
xlpzhxhh
2020-06-17 21:12:56 +08:00
能否支持 inoreader
greatghoul
2020-06-18 10:24:30 +08:00
用上了,感谢。我若能坚持使用一个月,就购买支持一下作者。
yazoox
2020-06-18 12:58:40 +08:00
好像不错的样子
CoderLife
2020-06-18 14:04:20 +08:00
.dmg, 72.4 MB 为啥这么大
Mavious
2020-06-19 07:35:42 +08:00
本地 rss 实在是太多了……楼主不妨考虑一下 rss 皮类软件。不支持本地,只支持 inoreader 在线服务的等接口提供文章。这样的皮阅读器很稀罕的
tcfenix
2020-06-19 09:38:21 +08:00
@yang991178
刚才试了一下,opml 导入没问题了,不过唯一约束的提示有点硬核....

跟 fluent-reader 有关的建议是如果能通过键盘的上下左右,回车等按键控制左边的栏位会比较方便

----------------------------------------------------------------------------------

之前我一直用 NetNewsWire 在 mac 跟 iOS 上看 rss,
也尝试过 rss 最后的曙光 feedly,不过因为网络因素让 feedly 变得不方便

最近开始用轻芒阅读,实际上已经很有国内的 feedly 的味道了

楼主你的界面体验主要是冰箱贴这一块的体验是我用过的 rss 里面数一数二的,如果功能上扩展到那个程度的话那就超级完美了,加油!
yang991178
2020-06-19 09:55:57 +08:00
@tcfenix 感谢试用,目前菜单开的情况下按两次 Tab 可以用上下和回车切换订阅源(微软 UI 组件自带的),之后应该会加入快捷键之类的键盘优化。
jemyzhang
2020-06-19 22:42:05 +08:00
pack 一个 linux 版本呗
optimus
2020-06-21 08:04:15 +08:00
记得 vscode 也是这个工具开发的
optimus
2020-06-21 08:04:42 +08:00
@jemyzhang #29 框架决定了跨平台很容易
jemyzhang
2020-06-21 11:30:02 +08:00
@optimus 容易归容易,有 release 意义不一样😀
yang991178
2020-06-21 13:02:35 +08:00
@jemyzhang 等我回头装个 linux 测试下
jemyzhang
2020-06-22 10:29:48 +08:00
@yang991178 #33 赞
jemyzhang
2020-06-22 10:49:02 +08:00
@yang991178 #33 刚 clone 下来跑了一把,ubuntu 20.04 ,rss 点击 item 后,没有加载内容,空白的,点击下面的加载网页,网页可以加载。
yang991178
2020-06-22 10:56:41 +08:00
@jemyzhang 应该是 git 的自动行尾转换破坏了 CSP hash,跑一下 dist/article/article.html 注释里的命令替换一下 hash 试试
jemyzhang
2020-06-22 11:07:54 +08:00
@yang991178 #36 试了一下,没有用,不知道我的实验方法对不对。另外 npm build 的时候有 warnning,你看看有没有关系。不懂 js 。

```
npm run build

> fluent-reader@0.3.3 build /home/jemyzhang/workspace/github/fluent-reader
> webpack --config ./webpack.config.js

Hash: f0f580dd344ad2582a25bc9af38196972d8ebd8e
Version: webpack 4.43.0
Child
Hash: f0f580dd344ad2582a25
Time: 37975ms
Built at: 2020/06/22 上午 10:59:26
Asset Size Chunks Chunk Names
electron.js 189 KiB 0 [emitted] main
Entrypoint main = electron.js
[0] external "path" 42 bytes {0} [built]
[1] external "fs" 42 bytes {0} [built]
[3] external "electron" 42 bytes {0} [built]
[4] external "util" 42 bytes {0} [built]
[5] external "assert" 42 bytes {0} [built]
[9] external "events" 42 bytes {0} [built]
[20] ./src/electron.ts 3.57 KiB {0} [built]
[25] external "constants" 42 bytes {0} [built]
[27] external "stream" 42 bytes {0} [built]
[32] (webpack)/buildin/module.js 497 bytes {0} [built]
[33] external "crypto" 42 bytes {0} [built]
[46] external "os" 42 bytes {0} [built]
[89] ./src/scripts/update-scripts.ts 373 bytes {0} [built]
+ 77 hidden modules

WARNING in ./node_modules/write-file-atomic/index.js
Module not found: Error: Can't resolve 'worker_threads' in '/home/jemyzhang/workspace/github/fluent-reader/node_modules/write-file-atomic'
@ ./node_modules/write-file-atomic/index.js
@ ./node_modules/conf/index.js
@ ./node_modules/electron-store/index.js
@ ./src/electron.ts
Child
Hash: bc9af38196972d8ebd8e
Time: 51701ms
Built at: 2020/06/22 上午 10:59:39
Asset Size Chunks Chunk Names
index.html 495 bytes [emitted]
index.js 1.76 MiB 0 [emitted] main
index.js.map 6.23 MiB 0 [emitted] [dev] main
Entrypoint main = index.js index.js.map
[25] ./src/scripts/models/app.ts 12.4 KiB {0} [built]
[28] ./node_modules/@fluentui/react/lib/index.js + 1 modules 369 bytes {0} [built]
| 2 modules
[34] ./src/scripts/models/page.ts 7.8 KiB {0} [built]
[35] ./node_modules/react-redux/es/index.js + 24 modules 50.3 KiB {0} [built]
| 25 modules
[39] ./src/scripts/utils.ts 4.66 KiB {0} [built]
[40] external "electron" 42 bytes {0} [built]
[49] ./src/scripts/models/source.ts 13.2 KiB {0} [built]
[50] ./src/scripts/models/item.ts 11.2 KiB {0} [built]
[55] ./src/scripts/models/feed.ts 12.9 KiB {0} [built]
[59] ./src/scripts/settings.ts 6.9 KiB {0} [built]
[72] external "fs" 42 bytes {0} [built]
[74] ./src/scripts/models/group.ts 10.8 KiB {0} [built]
[87] ./src/scripts/db.ts 788 bytes {0} [built]
[249] ./src/index.tsx 1.91 KiB {0} [built]
[261] ./src/scripts/reducer.ts 632 bytes {0} [built]
+ 408 hidden modules

WARNING in ./node_modules/write-file-atomic/index.js
Module not found: Error: Can't resolve 'worker_threads' in '/home/jemyzhang/workspace/github/fluent-reader/node_modules/write-file-atomic'
@ ./node_modules/write-file-atomic/index.js
@ ./node_modules/conf/index.js
@ ./node_modules/electron-store/index.js
@ ./src/scripts/settings.ts
@ ./src/index.tsx
Child HtmlWebpackCompiler:
1 asset
Entrypoint HtmlWebpackPlugin_0 = __child-HtmlWebpackPlugin_0
[0] ./node_modules/html-webpack-plugin/lib/loader.js!./src/index.html 781 bytes {0} [built]

```
jemyzhang
2020-06-22 11:22:23 +08:00
@jemyzhang #37
https://github.com/npm/write-file-atomic/issues/41
这个 warning 是 node js 版本导致的,ubuntu 还在用 10.19, 更新到 12 后编译 warning 没有了,但是空白的问题依旧
yang991178
2020-06-22 11:23:29 +08:00
@jemyzhang `document.getElementById("article").openDevTools()`可以调试 webview 看看报什么错,CSP hash 有 meta 标签和 script integrity 两处
jemyzhang
2020-06-22 11:34:32 +08:00
@yang991178 #39 没有,只有下面的

security-warnings.ts:236 Electron Security Warning (enableBlinkFeatures) This renderer process has additional "enableBlinkFeatures"
enabled. This exposes users of this app to some security risk. If you do not
need this feature, you should disable it.

For more information and help, consult
https://electronjs.org/docs/tutorial/security.
This warning will not show up
once the app is packaged.

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://yangjunhui.monster/t/682246

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX