Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: |UI| admin portal user oauth config support delete #538

Merged
merged 1 commit into from
Dec 30, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
## main(v0.8.3)

- feat: |Github Action| 增加自动更新并部署功能
- feat: |UI| admin 用户设置,支持 oauth2 配置的删除

## v0.8.2

Expand Down
15 changes: 14 additions & 1 deletion frontend/src/views/admin/UserOauth2Settings.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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)',
Expand All @@ -28,6 +29,7 @@ const { t } = useI18n({
},
zh: {
save: '保存',
delete: '删除',
successTip: '保存成功',
enable: '启用',
enableMailAllowList: '启用邮件地址白名单(可手动输入, 回车增加)',
Expand Down Expand Up @@ -193,8 +195,19 @@ onMounted(async () => {
{{ t('save') }}
</n-button>
</n-flex>
<n-collapse default-expanded-names="1" accordion>
<n-divider />
<n-collapse default-expanded-names="1" accordion :trigger-areas="['main', 'arrow']">
<n-collapse-item v-for="(item, index) in userOauth2Settings" :key="index" :title="item.name">
<template #header-extra>
<n-popconfirm @positive-click="userOauth2Settings.splice(index, 1)">
<template #trigger>
<n-button tertiary type="error">
{{ t('delete') }}
</n-button>
</template>
{{ t('delete') }}
</n-popconfirm>
</template>
<n-form :model="item">
<n-form-item-row :label="t('name')" required>
<n-input v-model:value="item.name" />
Expand Down
2 changes: 1 addition & 1 deletion vitepress-docs/docs/zh/guide/ui/worker.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down
Loading