chore: 优化数据库脚本

This commit is contained in:
xiaojunnuo
2025-12-09 23:28:29 +08:00
parent a2d1e5ea03
commit 9f24c18f7f
7 changed files with 14 additions and 5 deletions
+2 -1
View File
@@ -9,5 +9,6 @@
"[typescript]": { "[typescript]": {
"editor.defaultFormatter": "vscode.typescript-language-features" "editor.defaultFormatter": "vscode.typescript-language-features"
}, },
"editor.tabSize": 2 "editor.tabSize": 2,
"explorer.autoReveal": false
} }
@@ -631,7 +631,7 @@ export default {
autoHideTime: "Auto Hide Time", autoHideTime: "Auto Hide Time",
autoHideTimeHelper: "Minutes without requests before auto hiding", autoHideTimeHelper: "Minutes without requests before auto hiding",
hideOpenApi: "Hide Open API", hideOpenApi: "Hide Open API",
hideOpenApiHelper: "Whether to hide open APIs; whether to expose /api/v1 prefixed endpoints", hideOpenApiHelper: "Whether to hide open APIs; whether to hide /api/v1 prefixed endpoints",
hideSiteImmediately: "Hide Site Immediately", hideSiteImmediately: "Hide Site Immediately",
hideImmediately: "Hide Immediately", hideImmediately: "Hide Immediately",
confirmHideSiteTitle: "Are you sure to hide the site immediately?", confirmHideSiteTitle: "Are you sure to hide the site immediately?",
@@ -635,7 +635,7 @@ export default {
autoHideTime: "自动隐藏时间", autoHideTime: "自动隐藏时间",
autoHideTimeHelper: "多少分钟内无请求自动隐藏", autoHideTimeHelper: "多少分钟内无请求自动隐藏",
hideOpenApi: "隐藏开放接口", hideOpenApi: "隐藏开放接口",
hideOpenApiHelper: "是否隐藏开放接口,是否放开/api/v1开头的接口", hideOpenApiHelper: "是否隐藏开放接口,是否同时隐藏/api/v1开头的接口",
hideSiteImmediately: "立即隐藏站点", hideSiteImmediately: "立即隐藏站点",
hideImmediately: "立即隐藏", hideImmediately: "立即隐藏",
confirmHideSiteTitle: "确定要立即隐藏站点吗?", confirmHideSiteTitle: "确定要立即隐藏站点吗?",
@@ -21,6 +21,7 @@
}, },
}, },
}" }"
:disabled="disabled"
:show-current="false" :show-current="false"
:show-select="false" :show-select="false"
:dialog="{ width: 960 }" :dialog="{ width: 960 }"
@@ -7,7 +7,7 @@
<vip-button class="ml-5" mode="button"></vip-button> <vip-button class="ml-5" mode="button"></vip-button>
</div> </div>
</a-form-item> </a-form-item>
<a-form-item v-if="formState.public.oauthEnabled" :label="t('certd.sys.setting.oauthProviders')" :name="['public', 'oauthProviders']"> <a-form-item :label="t('certd.sys.setting.oauthProviders')" :name="['public', 'oauthProviders']">
<div class="flex flex-wrap"> <div class="flex flex-wrap">
<table class="w-full table-auto border-collapse border border-gray-400"> <table class="w-full table-auto border-collapse border border-gray-400">
<thead> <thead>
@@ -31,7 +31,14 @@
</fs-copyable> </fs-copyable>
</td> </td>
<td class="border border-gray-300 px-4 py-2"> <td class="border border-gray-300 px-4 py-2">
<AddonSelector v-model:model-value="item.addonId" addon-type="oauth" from="sys" :type="item.name" :placeholder="t('certd.sys.setting.oauthProviderSelectorPlaceholder')" /> <AddonSelector
v-model:model-value="item.addonId"
:disabled="!formState.public.oauthEnabled"
addon-type="oauth"
from="sys"
:type="item.name"
:placeholder="t('certd.sys.setting.oauthProviderSelectorPlaceholder')"
/>
</td> </td>
</tr> </tr>
</tbody> </tbody>