2
0
mirror of https://github.com/acepanel/panel.git synced 2026-02-07 03:17:24 +08:00

feat: 离线模式

This commit is contained in:
耗子
2024-10-15 17:44:41 +08:00
parent 41d3d3fb97
commit b718c11f3a
11 changed files with 139 additions and 62 deletions

View File

@@ -226,13 +226,16 @@
"placeholder": "admin{'@'}example.com"
},
"port": {
"label": "Port (After saving, restart the panel and modify the browser address bar's port to the new port to access the panel)",
"label": "Port",
"placeholder": "8888"
},
"entrance": {
"label": "Security entrance (After saving, restart the panel and clear the browser Cookies to take effect)",
"label": "Security entrance",
"placeholder": "admin"
},
"offline": {
"label": "Offline mode"
},
"https": {
"label": "Panel HTTPS"
},

View File

@@ -88,22 +88,22 @@
}
},
"homeUpdate": {
"title": "更新面板",
"title": "升级面板",
"loading": "正在加载更新信息,稍等片刻",
"alerts": {
"success": "面板更新成功",
"info": "取消更新"
"success": "面板升级成功",
"info": "取消升级"
},
"button": {
"update": "立即更新"
"update": "立即升级"
},
"confirm": {
"update": {
"title": "更新面板",
"content": "确定更新面板吗?",
"title": "升级面板",
"content": "确定升级面板吗?",
"positiveText": "确定",
"negativeText": "取消",
"loading": "面板更新中..."
"loading": "面板升级中..."
}
}
},
@@ -226,13 +226,16 @@
"placeholder": "admin{'@'}example.com"
},
"port": {
"label": "端口(保存后需重启面板并修改浏览器地址栏的端口为新端口以访问面板)",
"label": "端口",
"placeholder": "8888"
},
"entrance": {
"label": "安全入口(保存后需重启面板并清除浏览器 Cookies 方可生效)",
"label": "安全入口",
"placeholder": "admin"
},
"offline": {
"label": "离线模式"
},
"https": {
"label": "面板 HTTPS"
},

View File

@@ -16,6 +16,7 @@ const model = ref<Setting>({
email: '',
port: 8888,
entrance: '',
offline_mode: false,
website_path: '',
backup_path: '',
https: false,
@@ -66,7 +67,7 @@ onMounted(() => {
:placeholder="$t('settingIndex.edit.fields.name.placeholder')"
/>
</n-form-item>
<n-form-item :label="$t('settingIndex.edit.fields.locale.label')">
<n-form-item v-show="false" label="$t('settingIndex.edit.fields.locale.label')">
<n-select v-model:value="model.locale" :options="locales"> </n-select>
</n-form-item>
<n-form-item :label="$t('settingIndex.edit.fields.username.label')">
@@ -99,6 +100,9 @@ onMounted(() => {
:placeholder="$t('settingIndex.edit.fields.entrance.placeholder')"
/>
</n-form-item>
<n-form-item :label="$t('settingIndex.edit.fields.offline.label')">
<n-switch v-model:value="model.offline_mode" />
</n-form-item>
<n-form-item :label="$t('settingIndex.edit.fields.path.label')">
<n-input
v-model:value="model.website_path"

View File

@@ -6,6 +6,7 @@ export interface Setting {
email: string
port: number
entrance: string
offline_mode: boolean
website_path: string
backup_path: string
https: boolean