From 1748573338b91ff4c94e9a21689be64dacf22a7e Mon Sep 17 00:00:00 2001 From: dreamhunter2333 Date: Mon, 30 Dec 2024 18:02:49 +0800 Subject: [PATCH] feat: |UI| admin portal user oauth config support delete --- CHANGELOG.md | 1 + frontend/src/views/admin/UserOauth2Settings.vue | 15 ++++++++++++++- vitepress-docs/docs/zh/guide/ui/worker.md | 2 +- 3 files changed, 16 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index d83cb2587..e61375083 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,7 @@ ## main(v0.8.3) - feat: |Github Action| 增加自动更新并部署功能 +- feat: |UI| admin 用户设置,支持 oauth2 配置的删除 ## v0.8.2 diff --git a/frontend/src/views/admin/UserOauth2Settings.vue b/frontend/src/views/admin/UserOauth2Settings.vue index 7780beefb..26d57b484 100644 --- a/frontend/src/views/admin/UserOauth2Settings.vue +++ b/frontend/src/views/admin/UserOauth2Settings.vue @@ -17,6 +17,7 @@ const { t } = useI18n({ messages: { en: { save: 'Save', + delete: 'Delete', successTip: 'Save Success', enable: 'Enable', enableMailAllowList: 'Enable Mail Address Allow List(Manually enterable)', @@ -28,6 +29,7 @@ const { t } = useI18n({ }, zh: { save: '保存', + delete: '删除', successTip: '保存成功', enable: '启用', enableMailAllowList: '启用邮件地址白名单(可手动输入, 回车增加)', @@ -193,8 +195,19 @@ onMounted(async () => { {{ t('save') }} - + + + diff --git a/vitepress-docs/docs/zh/guide/ui/worker.md b/vitepress-docs/docs/zh/guide/ui/worker.md index a0fa91682..46648ab69 100644 --- a/vitepress-docs/docs/zh/guide/ui/worker.md +++ b/vitepress-docs/docs/zh/guide/ui/worker.md @@ -8,7 +8,7 @@ ![worker1](/ui_install/worker-1.png) -3. 回到 `Overview`,找到刚刚创建的 worker,点击 `Settings` -> `Runtime`, 修改 `Compatibility flags`, 增加 `nodejs_compat` +3. 回到 `Overview`,找到刚刚创建的 worker,点击 `Settings` -> `Runtime`, 修改 `Compatibility flags`, 增加 `nodejs_compat`, 兼容日期也需要大于图片中的日期。 ![worker-runtime](/ui_install/worker-runtime.png)