From f7948164694714d8e8a1246156f1d6b6c61777f4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=88=98=E6=B5=A9=E8=BF=9C?= Date: Tue, 29 Dec 2020 17:58:19 +0800 Subject: [PATCH 1/2] require api key for inoreader --- src/components/settings/services/greader.tsx | 1 + .../settings/services/inoreader.tsx | 63 +++++++++++++++---- src/scripts/i18n/en-US.json | 3 +- src/scripts/i18n/zh-CN.json | 3 +- src/scripts/i18n/zh-TW.json | 3 +- src/scripts/models/services/greader.ts | 19 +++++- 6 files changed, 75 insertions(+), 17 deletions(-) diff --git a/src/components/settings/services/greader.tsx b/src/components/settings/services/greader.tsx index 683cbdf..8300e6a 100644 --- a/src/components/settings/services/greader.tsx +++ b/src/components/settings/services/greader.tsx @@ -64,6 +64,7 @@ class GReaderConfigsTab extends React.Component { - return this.state.existing || (this.state.username && this.state.password) + return (this.state.existing || (this.state.username && this.state.password)) + && this.state.apiId && this.state.apiKey } save = async () => { @@ -71,18 +76,25 @@ class InoreaderConfigsTab extends React.Component window.utils.openExternal(this.state.endpoint + "/all_articles#preferences-developer") + remove = async () => { this.props.exit() await this.props.remove() @@ -106,8 +120,9 @@ class InoreaderConfigsTab extends React.Component }> + actions={}> {intl.get("service.rateLimitWarning")} + {intl.get("rules.help")} {!this.state.existing && ( {intl.get("service.overwriteWarning")} @@ -155,6 +170,32 @@ class InoreaderConfigsTab extends React.Component + + + + + + + + + + + + + + + + @@ -166,10 +207,10 @@ class InoreaderConfigsTab extends React.Component - {!this.state.existing && this.setState({importGroups: c})} />} + this.setState({removeAd: c})} /> Date: Tue, 29 Dec 2020 18:04:03 +0800 Subject: [PATCH 2/2] beta release build 0.9.1 --- package-lock.json | 2 +- package.json | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/package-lock.json b/package-lock.json index 86817e9..0851e42 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "fluent-reader", - "version": "0.9.0", + "version": "0.9.1", "lockfileVersion": 1, "requires": true, "dependencies": { diff --git a/package.json b/package.json index bf18b60..c68f581 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "fluent-reader", - "version": "0.9.0", + "version": "0.9.1", "description": "Modern desktop RSS reader", "main": "./dist/electron.js", "scripts": { @@ -68,6 +68,7 @@ "category": "public.app-category.news", "electronLanguages": [ "zh_CN", + "zh_TW", "en", "fr", "es",