From 8bc9163def6a2f7b27d4447e817b80b9ffbdbbf3 Mon Sep 17 00:00:00 2001 From: Yang Luo Date: Tue, 15 Jun 2021 22:12:50 +0800 Subject: [PATCH] Improve i18n. --- web/src/ResetModal.js | 2 +- web/src/auth/ForgetPage.js | 4 ++-- web/src/auth/LoginPage.js | 2 +- web/src/auth/Provider.js | 2 +- web/src/auth/SignupPage.js | 8 ++++---- web/src/locales/en.json | 8 +++----- web/src/locales/zh.json | 8 +++----- 7 files changed, 15 insertions(+), 19 deletions(-) diff --git a/web/src/ResetModal.js b/web/src/ResetModal.js index 5064f8c5..1c3e45c7 100644 --- a/web/src/ResetModal.js +++ b/web/src/ResetModal.js @@ -85,7 +85,7 @@ export const ResetModal = (props) => { -
+
{ Setting.renderHelmet(application) } diff --git a/web/src/auth/Provider.js b/web/src/auth/Provider.js index a846edca..3055f6e6 100644 --- a/web/src/auth/Provider.js +++ b/web/src/auth/Provider.js @@ -43,7 +43,7 @@ const WeiboAuthScope = "email"; const WeiboAuthUri = "https://api.weibo.com/oauth2/authorize"; const WeiboAuthLogo = `${StaticBaseUrl}/img/social_weibo.png`; -const GiteeAuthScope = "user_info emails"; +const GiteeAuthScope = "user_info,emails"; const GiteeAuthUri = "https://gitee.com/oauth/authorize"; const GiteeAuthLogo = `${StaticBaseUrl}/img/social_gitee.png`; diff --git a/web/src/auth/SignupPage.js b/web/src/auth/SignupPage.js index 94e6561f..71bffe27 100644 --- a/web/src/auth/SignupPage.js +++ b/web/src/auth/SignupPage.js @@ -240,14 +240,14 @@ class SignupPage extends React.Component {