mirror of
https://github.com/usual2970/certimate.git
synced 2025-10-05 14:04:54 +00:00
@@ -19,6 +19,7 @@ const initFormModel = (): AccessFormWangsuConfigFieldValues => {
|
||||
return {
|
||||
accessKeyId: "",
|
||||
accessKeySecret: "",
|
||||
apiKey: "",
|
||||
};
|
||||
};
|
||||
|
||||
@@ -36,6 +37,11 @@ const AccessFormWangsuConfig = ({ form: formInst, formName, disabled, initialVal
|
||||
.min(1, t("access.form.wangsu_access_key_secret.placeholder"))
|
||||
.max(64, t("common.errmsg.string_max", { max: 64 }))
|
||||
.trim(),
|
||||
apiKey: z
|
||||
.string()
|
||||
.min(1, t("access.form.wangsu_api_key.placeholder"))
|
||||
.max(256, t("common.errmsg.string_max", { max: 256 }))
|
||||
.trim(),
|
||||
});
|
||||
const formRule = createSchemaFieldRule(formSchema);
|
||||
|
||||
@@ -69,6 +75,15 @@ const AccessFormWangsuConfig = ({ form: formInst, formName, disabled, initialVal
|
||||
>
|
||||
<Input.Password autoComplete="new-password" placeholder={t("access.form.wangsu_access_key_secret.placeholder")} />
|
||||
</Form.Item>
|
||||
|
||||
<Form.Item
|
||||
name="apiKey"
|
||||
label={t("access.form.wangsu_api_key.label")}
|
||||
rules={[formRule]}
|
||||
tooltip={<span dangerouslySetInnerHTML={{ __html: t("access.form.wangsu_api_key.tooltip") }}></span>}
|
||||
>
|
||||
<Input.Password autoComplete="new-password" placeholder={t("access.form.wangsu_api_key.placeholder")} />
|
||||
</Form.Item>
|
||||
</Form>
|
||||
);
|
||||
};
|
||||
|
@@ -277,6 +277,7 @@ export type AccessConfigForVolcEngine = {
|
||||
export type AccessConfigForWangsu = {
|
||||
accessKeyId: string;
|
||||
accessKeySecret: string;
|
||||
apiKey: string;
|
||||
};
|
||||
|
||||
export type AccessConfigForWebhook = {
|
||||
|
@@ -307,6 +307,9 @@
|
||||
"access.form.wangsu_access_key_secret.label": "Wangsu Cloud AccessKeySecret",
|
||||
"access.form.wangsu_access_key_secret.placeholder": "Please enter Wangsu Cloud AccessKeySecret",
|
||||
"access.form.wangsu_access_key_secret.tooltip": "For more information, see <a href=\"https://en.wangsu.com/document/account-manage/15775\" target=\"_blank\">https://en.wangsu.com/document/account-manage/15775</a>",
|
||||
"access.form.wangsu_api_key.label": "Wangsu Cloud API key",
|
||||
"access.form.wangsu_api_key.placeholder": "Please enter Wangsu Cloud API key",
|
||||
"access.form.wangsu_api_key.tooltip": "For more information, see <a href=\"https://en.wangsu.com/document/account-manage/15776\" target=\"_blank\">https://en.wangsu.com/document/account-manage/15776</a>",
|
||||
"access.form.webhook_url.label": "Webhook URL",
|
||||
"access.form.webhook_url.placeholder": "Please enter Webhook URL",
|
||||
"access.form.webhook_allow_insecure_conns.label": "Insecure SSL/TLS connections",
|
||||
|
@@ -302,11 +302,14 @@
|
||||
"access.form.volcengine_secret_access_key.placeholder": "请输入火山引擎 SecretAccessKey",
|
||||
"access.form.volcengine_secret_access_key.tooltip": "这是什么?请参阅 <a href=\"https://www.volcengine.com/docs/6291/216571\" target=\"_blank\">https://www.volcengine.com/docs/6291/216571</a>",
|
||||
"access.form.wangsu_access_key_id.label": "网宿云 AccessKeyId",
|
||||
"access.form.wangsu_access_key_id.placeholder": "请输入网宿科技 AccessKeyId",
|
||||
"access.form.wangsu_access_key_id.placeholder": "请输入网宿云 AccessKeyId",
|
||||
"access.form.wangsu_access_key_id.tooltip": "这是什么?请参阅 <a href=\"https://www.wangsu.com/document/account-manage/15775\" target=\"_blank\">https://www.wangsu.com/document/account-manage/15775</a>",
|
||||
"access.form.wangsu_access_key_secret.label": "网宿科技 AccessKeySecret",
|
||||
"access.form.wangsu_access_key_secret.placeholder": "请输入网宿科技 AccessKeySecret",
|
||||
"access.form.wangsu_access_key_secret.label": "网宿云 AccessKeySecret",
|
||||
"access.form.wangsu_access_key_secret.placeholder": "请输入网宿云 AccessKeySecret",
|
||||
"access.form.wangsu_access_key_secret.tooltip": "这是什么?请参阅 <a href=\"https://www.wangsu.com/document/account-manage/15775\" target=\"_blank\">https://www.wangsu.com/document/account-manage/15775</a>",
|
||||
"access.form.wangsu_api_key.label": "网宿云 API 接口密码",
|
||||
"access.form.wangsu_api_key.placeholder": "请输入网宿云 API 接口密码",
|
||||
"access.form.wangsu_api_key.tooltip": "这是什么?请参阅 <a href=\"https://www.wangsu.com/document/account-manage/15776\" target=\"_blank\">https://www.wangsu.com/document/account-manage/15776</a>",
|
||||
"access.form.webhook_url.label": "Webhook 回调地址",
|
||||
"access.form.webhook_url.placeholder": "请输入 Webhook 回调地址",
|
||||
"access.form.webhook_allow_insecure_conns.label": "忽略 SSL/TLS 证书错误",
|
||||
|
Reference in New Issue
Block a user