diff --git a/web/src/ProviderEditPage.js b/web/src/ProviderEditPage.js
index ee410242..a12a72b2 100644
--- a/web/src/ProviderEditPage.js
+++ b/web/src/ProviderEditPage.js
@@ -350,29 +350,30 @@ class ProviderEditPage extends React.Component {
)
}
{
- this.state.provider.type !== "Default" &&
- <>
-
-
- {this.getClientIdLabel()}
-
-
- {
- this.updateProviderField('clientId', e.target.value);
- }} />
-
-
-
-
- {this.getClientSecretLabel()}
-
-
- {
- this.updateProviderField('clientSecret', e.target.value);
- }} />
-
-
- >
+ this.state.provider.category === "Captcha" && this.state.provider.type === "Default" ? null : (
+
+
+
+ {this.getClientIdLabel()}
+
+
+ {
+ this.updateProviderField('clientId', e.target.value);
+ }} />
+
+
+
+
+ {this.getClientSecretLabel()}
+
+
+ {
+ this.updateProviderField('clientSecret', e.target.value);
+ }} />
+
+
+
+ )
}
{
this.state.provider.type !== "WeChat" ? null : (
@@ -640,38 +641,36 @@ class ProviderEditPage extends React.Component {
) : null
}
{this.getAppIdRow()}
+
+
+ {Setting.getLabel(i18next.t("provider:Provider URL"), i18next.t("provider:Provider URL - Tooltip"))} :
+
+
+ } value={this.state.provider.providerUrl} onChange={e => {
+ this.updateProviderField('providerUrl', e.target.value);
+ }} />
+
+
{
- this.state.provider.type !== "Default" &&
-
-
- {Setting.getLabel(i18next.t("provider:Provider URL"), i18next.t("provider:Provider URL - Tooltip"))} :
-
-
- } value={this.state.provider.providerUrl} onChange={e => {
- this.updateProviderField('providerUrl', e.target.value);
- }} />
-
-
- }
- {
- this.state.provider.category === "Captcha" &&
-
-
- {Setting.getLabel(i18next.t("general:Preview"), i18next.t("general:Preview - Tooltip"))} :
-
-
-
-
-
+ this.state.provider.category !== "Captcha" ? null : (
+
+
+ {Setting.getLabel(i18next.t("general:Preview"), i18next.t("general:Preview - Tooltip"))} :
+
+
+
+
+
+ )
}
)
diff --git a/web/src/locales/zh/data.json b/web/src/locales/zh/data.json
index 1b9dd571..3002b8b7 100644
--- a/web/src/locales/zh/data.json
+++ b/web/src/locales/zh/data.json
@@ -445,8 +445,8 @@
"Scope": "Scope",
"Scope - Tooltip": "Scope - 工具提示",
"Secret access key": "秘密访问密钥",
- "Secret key": "服务端密钥",
- "Secret key - Tooltip": "服务端密钥",
+ "Secret key": "Secret key",
+ "Secret key - Tooltip": "用于服务端调用验证码提供商API进行验证",
"SecretAccessKey - Tooltip": "访问密钥-工具提示",
"Sign Name": "签名名称",
"Sign Name - Tooltip": "签名名称",
@@ -458,8 +458,8 @@
"Signup HTML": "注册页面HTML",
"Signup HTML - Edit": "注册页面HTML - 编辑",
"Signup HTML - Tooltip": "自定义HTML,用于替换默认的注册页面样式",
- "Site key": "客户端密钥",
- "Site key - Tooltip": "客户端密钥",
+ "Site key": "Site key",
+ "Site key - Tooltip": "用于前端嵌入页面",
"Sub type": "子类型",
"Sub type - Tooltip": "子类型",
"Template Code": "模板代码",