Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
209 commits
Select commit Hold shift + click to select a range
7f66679
Merge pull request #709 from PBH-BTN/master
Ghost-chu Nov 8, 2024
9e1e826
Update dependency @vue/tsconfig to ^0.6.0 (#719)
renovate[bot] Nov 10, 2024
82af80e
Update dependency @vitejs/plugin-vue to v5.1.5 (#720)
renovate[bot] Nov 11, 2024
3501497
Update dependency uuid to v11.0.3 (#721)
renovate[bot] Nov 11, 2024
f943c1c
Update all devDependencies (#726)
renovate[bot] Nov 11, 2024
405f89f
Update dependency eslint-plugin-vue to v9.31.0 (#727)
renovate[bot] Nov 12, 2024
609ae57
Update dependency @vitejs/plugin-vue to v5.2.0
renovate[bot] Nov 13, 2024
e70f141
Merge pull request #730 from PBH-BTN/renovate/all-devdependencies
Gaojianli Nov 13, 2024
98b410d
Update dependency vite-bundle-analyzer to v0.13.1 (#731)
renovate[bot] Nov 13, 2024
5f379b7
add charts option
Gaojianli Nov 14, 2024
43c9ed6
Debian Improvements
Anuskuss Nov 14, 2024
d095a22
Update dependency org.springframework:spring-context to v6.2.0
renovate[bot] Nov 15, 2024
6a6d933
Merge remote-tracking branch 'origin/master' into dev
Gaojianli Nov 15, 2024
f65f438
Update dependency com.formdev:flatlaf-extras to v3.5.2
renovate[bot] Nov 15, 2024
2cc4a52
Merge pull request #732 from Anuskuss/master
Gaojianli Nov 15, 2024
f18f3e1
fix permission
Gaojianli Nov 15, 2024
3630cc6
Merge pull request #735 from PBH-BTN/renovate/com.formdev-flatlaf-ext…
Ghost-chu Nov 15, 2024
aa02bad
Merge pull request #734 from PBH-BTN/renovate/spring-core
Gaojianli Nov 15, 2024
d189337
Update all devDependencies to v9.15.0 (#740)
renovate[bot] Nov 15, 2024
bef8351
Merge branch 'master' into dev
Gaojianli Nov 16, 2024
0c32251
添加 completedSize
paulzzh Nov 16, 2024
6ff6618
PCB 支持检查不完整任务的过量下载
paulzzh Nov 16, 2024
5d77cd8
听兔子的话
paulzzh Nov 16, 2024
512094a
fix build
paulzzh Nov 16, 2024
3082913
完善 BiglyBT
paulzzh Nov 17, 2024
1d66a33
添加 pbh.pcb.disable-completed-excessive
paulzzh Nov 17, 2024
c716e6b
完善 Transmission
paulzzh Nov 17, 2024
5b72541
Update dependency com.zaxxer:HikariCP to v6.2.0
renovate[bot] Nov 17, 2024
804b04c
Update dependency org.projectlombok:lombok to v1.18.36 (#751)
renovate[bot] Nov 18, 2024
76e860f
Merge pull request #750 from PBH-BTN/renovate/com.zaxxer-hikaricp-6.x
Gaojianli Nov 18, 2024
25c3a93
Merge remote-tracking branch 'origin/master' into dev
Gaojianli Nov 18, 2024
b091f16
尝试优化banlist
Gaojianli Nov 18, 2024
e3dc0d2
Update docker/metadata-action action to v5.6.1
renovate[bot] Nov 19, 2024
0971a57
修改提示信息
paulzzh Nov 19, 2024
737a244
Update all devDependencies (#753)
renovate[bot] Nov 19, 2024
22e2677
Update dependency @formatjs/intl-durationformat to v0.6.4
renovate[bot] Nov 19, 2024
e88e7b4
Revert "听兔子的话"
paulzzh Nov 20, 2024
af27196
再次修改提示信息
paulzzh Nov 20, 2024
910a4f6
Merge pull request #756 from PBH-BTN/renovate/docker-metadata-action-5.x
Ghost-chu Nov 20, 2024
0f5280c
修改声明
Gaojianli Nov 20, 2024
e95a8b1
Merge remote-tracking branch 'origin/master' into dev
Gaojianli Nov 20, 2024
b264512
Merge pull request #752 from PBH-BTN/renovate/formatjs-monorepo
Gaojianli Nov 20, 2024
545e6b7
move script path
Gaojianli Nov 20, 2024
ea12830
bump version
Gaojianli Nov 20, 2024
2dbab3e
Update dependency commons-io:commons-io to v2.18.0
renovate[bot] Nov 20, 2024
0b20a9e
Merge remote-tracking branch 'origin/dev' into fixTorrentSize
paulzzh Nov 20, 2024
12377d4
完善 qB
paulzzh Nov 20, 2024
cbdc428
听兔子的话
paulzzh Nov 20, 2024
a1b05e0
换成 long
paulzzh Nov 21, 2024
1ed4223
editable 接口
Ghost-chu Nov 21, 2024
0cd3d9b
Merge branch 'refs/heads/master' into dev
Ghost-chu Nov 21, 2024
e9b28ef
add readonly mode
Gaojianli Nov 21, 2024
9413121
add faq url
Gaojianli Nov 21, 2024
7a8ac95
fix
Gaojianli Nov 21, 2024
a42af3d
Update dependency @vueuse/core to v11.3.0
renovate[bot] Nov 21, 2024
90f1022
Update README.md
Ghost-chu Nov 22, 2024
e393cc5
Merge pull request #761 from PBH-BTN/renovate/commons-io-commons-io-2.x
Ghost-chu Nov 22, 2024
6873604
add time for alert
Gaojianli Nov 22, 2024
f9984ab
Merge pull request #748 from PBH-BTN/fixTorrentSize
paulzzh Nov 22, 2024
bf9318c
修正 README.EN 中的拼写、语法错误.md
Nov 22, 2024
0d0c64f
Update README.EN.md
Nov 22, 2024
1ce919f
Update all devDependencies (#766)
renovate[bot] Nov 23, 2024
814c7ca
调整文案
Gaojianli Nov 23, 2024
9542597
Update dependency com.zaxxer:HikariCP to v6.2.1 (#769)
renovate[bot] Nov 25, 2024
5b6c9fc
Merge pull request #765 from CreeperAWA/patch-1
Gaojianli Nov 25, 2024
0bdde0d
Merge pull request #762 from PBH-BTN/renovate/vueuse-monorepo
Gaojianli Nov 25, 2024
7cef4d0
update md
Gaojianli Nov 25, 2024
a0e825a
Update dependency vue-router to v4.5.0
renovate[bot] Nov 25, 2024
547954c
Update all devDependencies (#767)
renovate[bot] Nov 26, 2024
f5a64a8
Update all devDependencies (#771)
renovate[bot] Nov 26, 2024
f47b010
Update docker/build-push-action action to v6.10.0
renovate[bot] Nov 26, 2024
f10ce70
Update dependency vite to v6 (#776)
renovate[bot] Nov 26, 2024
489d4f2
Update all devDependencies (#772)
renovate[bot] Nov 26, 2024
cb6dc01
Update all devDependencies (#780)
renovate[bot] Nov 27, 2024
36620fd
Update dependency @vueuse/core to v12
renovate[bot] Nov 27, 2024
ce5d3f2
Update all devDependencies (#781)
renovate[bot] Nov 27, 2024
df4956e
Update all devDependencies (#783)
renovate[bot] Nov 28, 2024
3071492
Update all devDependencies (#785)
renovate[bot] Nov 30, 2024
8c17348
Merge branch 'refs/heads/master' into dev
Ghost-chu Nov 30, 2024
5f28a14
Merge remote-tracking branch 'origin/dev' into dev
Ghost-chu Nov 30, 2024
7565151
添加端口转发工具
Ghost-chu Nov 30, 2024
c8d3ab1
checkpoint
Ghost-chu Nov 30, 2024
5049e80
checkpoint
Ghost-chu Nov 30, 2024
d398988
checkpoint
Ghost-chu Nov 30, 2024
7782c6e
支持 IPFS 订阅
Ghost-chu Nov 30, 2024
dd5973f
使用 :// 协议
Ghost-chu Nov 30, 2024
4e0831b
使用 URI 类
Ghost-chu Nov 30, 2024
4a3d2fc
拦截错误
Ghost-chu Nov 30, 2024
7707cc8
允许配置文件控制 IPFS 启用
Ghost-chu Dec 1, 2024
af99228
使用实验室控制器决定是否启用 IPFS 模块
Ghost-chu Dec 1, 2024
9da8c56
配置文件升级
Ghost-chu Dec 1, 2024
f19fb59
完善灰度的东西
Ghost-chu Dec 1, 2024
96021d4
添加语言文件
Ghost-chu Dec 1, 2024
449cb10
支持ipfs://
Gaojianli Dec 1, 2024
3605514
修改响应格式
Ghost-chu Dec 1, 2024
9b5839a
添加缺失的 io.ipfs 包
Ghost-chu Dec 1, 2024
ab3511c
bump to 7.2.0
Gaojianli Dec 1, 2024
d805b2c
改造 Push 提供器为类似 Downloader 的样子
Ghost-chu Dec 1, 2024
517b1d3
添加推送渠道接口
Ghost-chu Dec 1, 2024
75863fa
合并接口
Ghost-chu Dec 1, 2024
182399b
Merge branch 'dev' into dev-ipfsnabu
Ghost-chu Dec 1, 2024
739759f
Merge pull request #788 from PBH-BTN/dev-ipfsnabu
Ghost-chu Dec 1, 2024
17ae4d6
cleanup
Ghost-chu Dec 1, 2024
e496926
fix build
Ghost-chu Dec 1, 2024
3faf7bf
安装完毕后询问用户启动 PeerBanHelper, Completed #784
Ghost-chu Dec 1, 2024
680200c
Merge branch 'dev-ipfskubo' into dev
Ghost-chu Dec 1, 2024
12bfc11
合并 kubo
Ghost-chu Dec 1, 2024
661823b
合并 kubo
Ghost-chu Dec 1, 2024
327ee1f
允许重载 BTN
Ghost-chu Dec 1, 2024
f5d82c4
fix BtnNetwork NPE
Ghost-chu Dec 1, 2024
1082a88
统一配置文件来源
Ghost-chu Dec 1, 2024
50526be
从系统环境变量读取 KUBO_RPC
Ghost-chu Dec 1, 2024
f061495
忘记读配置文件了
Ghost-chu Dec 1, 2024
a90aaed
判断写反了
Ghost-chu Dec 1, 2024
096c272
更新 docker-compose
Ghost-chu Dec 1, 2024
65dfa2b
添加本地化的错误信息
Ghost-chu Dec 1, 2024
c40900e
升级 push-notification 配置段
Ghost-chu Dec 1, 2024
c408081
添加注释
Ghost-chu Dec 1, 2024
62dcc71
Create delete_old_s3_objects.yml
Ghost-chu Dec 1, 2024
5a4d5b6
Update delete_old_s3_objects.yml
Ghost-chu Dec 1, 2024
867f1eb
Update jvm-release.yml
Ghost-chu Dec 1, 2024
33e9b42
Update jvm-release.yml
Ghost-chu Dec 1, 2024
428ca42
Update jvm-release.yml
Ghost-chu Dec 1, 2024
ad0f7ea
Update jvm-release.yml
Ghost-chu Dec 1, 2024
8a0edd1
Update jvm-release.yml
Ghost-chu Dec 1, 2024
5f241f4
Update build_installers.yml
Ghost-chu Dec 1, 2024
55eedb5
Create flush_cloudflare_cache.yml
Ghost-chu Dec 1, 2024
0c53ce5
Update jvm-release.yml
Ghost-chu Dec 1, 2024
f7613fd
修改版本号和安装器自动更新设置
Ghost-chu Dec 1, 2024
6e7d366
Update build_installers.yml
Ghost-chu Dec 1, 2024
b763714
去掉版本尾缀
Ghost-chu Dec 1, 2024
8d8530a
Merge remote-tracking branch 'origin/dev' into dev
Ghost-chu Dec 1, 2024
767dc3b
修复配置文件升级 NPE
Ghost-chu Dec 1, 2024
56c6ef5
添加 updater
Ghost-chu Dec 1, 2024
643e55a
snapshot
Ghost-chu Dec 1, 2024
9f12dc3
alpha1
Ghost-chu Dec 1, 2024
2eb0605
Update README.md
Ghost-chu Dec 1, 2024
6c0c2be
Update README.EN.md
Ghost-chu Dec 1, 2024
7e90f0c
Update default (#790)
renovate[bot] Dec 2, 2024
ab3c0e1
输出可读版本
Ghost-chu Dec 2, 2024
0719d04
降级到 WARN 等级
Ghost-chu Dec 2, 2024
f5d7ccb
更新提示信息
Ghost-chu Dec 2, 2024
c762975
Merge pull request #770 from PBH-BTN/renovate/vue-router-4.x-lockfile
Gaojianli Dec 2, 2024
d048871
Merge pull request #782 from PBH-BTN/renovate/major-vueuse-monorepo
Gaojianli Dec 2, 2024
369a176
Merge pull request #775 from PBH-BTN/renovate/docker-build-push-actio…
Gaojianli Dec 2, 2024
ce4f594
upgrade deps
Gaojianli Dec 2, 2024
7bd5d58
Merge remote-tracking branch 'origin/dev' into dev
Ghost-chu Dec 2, 2024
bef180e
更新 SMTP 消息推送配置文件结构
Ghost-chu Dec 2, 2024
c4c1d0b
更新 SMTP 消息推送配置文件结构
Ghost-chu Dec 2, 2024
e2bc1ba
更新脚本
Ghost-chu Dec 2, 2024
312c22f
Too loud
Ghost-chu Dec 2, 2024
8480d48
Create dependabot.yml
Ghost-chu Dec 2, 2024
2791260
Bump com.install4j:install4j-maven from 10.0.8 to 11.0.1
dependabot[bot] Dec 2, 2024
77f4665
Merge pull request #794 from PBH-BTN/dependabot/maven/com.install4j-i…
Ghost-chu Dec 2, 2024
889a7b9
修复缺失的占位符
Ghost-chu Dec 2, 2024
240bcae
Merge remote-tracking branch 'origin/dev' into dev
Ghost-chu Dec 2, 2024
30a3a9c
免费许可证
Ghost-chu Dec 2, 2024
2287913
返回 false 和 CONFLICT
Ghost-chu Dec 2, 2024
24bb904
类型回退
Ghost-chu Dec 2, 2024
0d87b9d
添加 -Dlauncher.directory=${launcher:sys.launcherDirectory} 启动参数
Ghost-chu Dec 2, 2024
58e7691
修复升级脚本
Ghost-chu Dec 2, 2024
1b7e23e
默认 STARTTLS
Ghost-chu Dec 2, 2024
64cb86f
修复配置文件升级脚本
Ghost-chu Dec 2, 2024
2e5f7b7
修正更新脚本
Ghost-chu Dec 2, 2024
344dc7b
升级时,删除未使用的推送渠道
Ghost-chu Dec 2, 2024
692f3b4
默认关闭
Gaojianli Dec 2, 2024
ec0d34a
新版 i4j launcher
Ghost-chu Dec 2, 2024
eb17dc6
Revert "默认关闭"
Ghost-chu Dec 2, 2024
16f41f6
移除 javafx 残留
Ghost-chu Dec 3, 2024
2ab1b11
默认 unknown
Ghost-chu Dec 3, 2024
d34a4e4
早期启动阶段从文件系统加载 Properties
Ghost-chu Dec 4, 2024
956a0e8
分组件安装
Ghost-chu Dec 4, 2024
0628749
优化白名单 IP 检查性能
Ghost-chu Dec 5, 2024
4c3214b
优化 BtnRuleParsed 在解析过程中的内存尖峰问题
Ghost-chu Dec 5, 2024
db690ab
优化 BtnRuleParsed 在解析过程中的内存尖峰问题
Ghost-chu Dec 5, 2024
1c97117
fix push provider removal
Ghost-chu Dec 5, 2024
d232437
部分完成推送接口(测试还不能用)
Gaojianli Dec 5, 2024
9a930f5
test 增加loading
Gaojianli Dec 5, 2024
250a923
测试也好了
Gaojianli Dec 5, 2024
d425856
增加骨架屏
Gaojianli Dec 5, 2024
0267cd5
为 WebUI 启用 dependabot
Ghost-chu Dec 5, 2024
9b2be16
为快照启用 cloudflare s3 部署
Ghost-chu Dec 5, 2024
69e1eba
在 dev 分支上禁用 S3 上传,节约配额
Ghost-chu Dec 5, 2024
fde4b23
修复 ci
Ghost-chu Dec 5, 2024
c180950
修复 ci
Ghost-chu Dec 5, 2024
70f2a65
Revert "修复 ci"
Ghost-chu Dec 5, 2024
9e56277
Revert "修复 ci"
Ghost-chu Dec 5, 2024
f9da8d4
Revert "在 dev 分支上禁用 S3 上传,节约配额"
Ghost-chu Dec 5, 2024
741e1c6
Revert "为快照启用 cloudflare s3 部署"
Ghost-chu Dec 5, 2024
a25ca11
全是可选
Gaojianli Dec 5, 2024
2e7a6bf
既然是分组0的用户才能启用,那他们一定有能力自己开启这个功能
Gaojianli Dec 5, 2024
ea61dfe
Revert "既然是分组0的用户才能启用,那他们一定有能力自己开启这个功能"
Ghost-chu Dec 5, 2024
5a923a7
Reapply "既然是分组0的用户才能启用,那他们一定有能力自己开启这个功能"
Gaojianli Dec 5, 2024
bb46c38
Revert "为 WebUI 启用 dependabot"
Gaojianli Dec 5, 2024
04267a2
Update dependency pinia to v2.3.0
renovate[bot] Dec 5, 2024
e82b91c
增加体验plus能力
Gaojianli Dec 5, 2024
fbef1df
增加爱发电吧唧
Gaojianli Dec 5, 2024
0aaca3a
fix lint
Gaojianli Dec 5, 2024
a2689eb
换换文案
Ghost-chu Dec 5, 2024
965a9fd
Merge pull request #799 from PBH-BTN/renovate/pinia-2.x-lockfile
Gaojianli Dec 5, 2024
c4c768c
Merge remote-tracking branch 'origin/dev' into dev
Ghost-chu Dec 5, 2024
e356951
我不想捐赠
Gaojianli Dec 6, 2024
b406ac5
临时许可证也可以注册爱发电
Gaojianli Dec 6, 2024
10d1b9b
keyData 过期时,返回 expiredKeyData
Ghost-chu Dec 6, 2024
f1d2b0e
finish labs
Gaojianli Dec 6, 2024
bbca87b
加加彩蛋
Ghost-chu Dec 6, 2024
ee44c7b
Merge remote-tracking branch 'origin/dev' into dev
Ghost-chu Dec 6, 2024
87cde59
更新提示文本
Ghost-chu Dec 6, 2024
9397fd4
修正文本
Ghost-chu Dec 6, 2024
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
18 changes: 18 additions & 0 deletions webui/src/api/model/labs.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
export interface Experiment {
/**
* 实验是否已激活
*/
activated?: boolean
/**
* 实验描述(Markdown)
*/
description?: string
/**
* 实验ID
*/
id?: string
/**
* 实验标题
*/
title?: string
}
2 changes: 1 addition & 1 deletion webui/src/components/iconFont.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { Icon } from '@arco-design/web-vue'
import { defineComponent, h } from 'vue'

const IconFont = Icon.addFromIconFontCn({
src: 'https://at.alicdn.com/t/c/font_4646549_xrh0h0mmvwj.js'
src: 'https://at.alicdn.com/t/c/font_4646549_kvl69xg55a.js'
})

export function genIconComponent(type: string) {
Expand Down
37 changes: 37 additions & 0 deletions webui/src/service/labs.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
import type { CommonResponse, CommonResponseWithoutData } from '@/api/model/common'
import type { Experiment } from '@/api/model/labs'
import { useEndpointStore } from '@/stores/endpoint'
import urlJoin from 'url-join'
import { getCommonHeader } from './utils'

export async function GetExperimentList(): Promise<CommonResponse<{ experiments: Experiment[] }>> {
const endpointStore = useEndpointStore()
await endpointStore.serverAvailable

const url = new URL(urlJoin(endpointStore.endpoint, 'api/laboratory/experiments'), location.href)
return fetch(url, { headers: getCommonHeader() }).then((res) => {
endpointStore.assertResponseLogin(res)
return res.json()
})
}

export async function SetExperimentStatus(
id: string,
status: boolean
): Promise<CommonResponseWithoutData> {
const endpointStore = useEndpointStore()
await endpointStore.serverAvailable

const url = new URL(
urlJoin(endpointStore.endpoint, `api/laboratory/experiment/${id}`),
location.href
)
return fetch(url, {
method: 'PUT',
headers: getCommonHeader(),
body: JSON.stringify({ status })
}).then((res) => {
endpointStore.assertResponseLogin(res)
return res.json()
})
}
69 changes: 69 additions & 0 deletions webui/src/views/settings/components/labs/index.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
<template>
<a-space direction="vertical" fill>
<a-typography-title :heading="3">
{{ t('page.settings.tab.labs') }}
</a-typography-title>
<a-alert :title="t('page.settings.tab.labs.welcome')">
<i18n-t keypath="page.settings.tab.labs.welcome.content">
<template #github>
<a-link href="https://github.com/PBH-BTN/PeerBanHelper/issues">Github</a-link>
</template>
</i18n-t>
</a-alert>
<a-typography-title :heading="5">
{{ t('page.settings.tab.labs.list') }}
</a-typography-title>
<div style="width: 100%; display: flex; justify-content: center">
<a-list :data="data?.data.experiments" style="max-width: 60rem" :loading="loading">
<template #item="{ item }">
<a-list-item action-layout="vertical">
<template #actions>
<a-space
>{{ t('page.settings.tab.labs.action.enable') }}
<a-switch
v-model="item.activated"
size="small"
:before-change="(value) => switchExperimentStatus(item.id, value as boolean)"
/>
</a-space>
</template>
<a-list-item-meta>
<template #title>
{{ item.title }} &nbsp;
<a-tag v-if="item.activated" color="green">{{
t('page.settings.tab.labs.enabled')
}}</a-tag>
</template>
<template #description>
<!--eslint-disable-next-line vue/no-v-html-->
<div v-html="md.render(item.description)"></div>
</template>
</a-list-item-meta>
</a-list-item>
</template>
</a-list>
</div>
</a-space>
</template>
<script setup lang="ts">
import { GetExperimentList, SetExperimentStatus } from '@/service/labs'
import { Message } from '@arco-design/web-vue'
import markdownit from 'markdown-it'
import { useI18n } from 'vue-i18n'
import { useRequest } from 'vue-request'
const { t } = useI18n()
const { data, loading, refresh } = useRequest(GetExperimentList)
const md = new markdownit()
const switchExperimentStatus = async (id: string, activated: boolean) => {
try {
const res = await SetExperimentStatus(id, activated)
if (res.success) {
refresh()
return true
} else throw new Error(res.message)
} catch (e) {
if (e instanceof Error) Message.error(e.message)
return false
}
}
</script>
9 changes: 9 additions & 0 deletions webui/src/views/settings/components/labs/locale/en-US.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
export default {
'page.settings.tab.labs': 'Labs',
'page.settings.tab.labs.welcome': 'Welcome to Labs',
'page.settings.tab.labs.welcome.content':
'This is the Lab, where we will try some unstable new features. These features may have better or worse effects on the ban. Please turn them on or off according to your needs. If you have any suggestions or ideas, please submit an issue or PR on {github}.',
'page.settings.tab.labs.list': 'Experiment List',
'page.settings.tab.labs.action.enable': 'Enable',
'page.settings.tab.labs.enabled': 'Enabled'
}
9 changes: 9 additions & 0 deletions webui/src/views/settings/components/labs/locale/zh-CN.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
export default {
'page.settings.tab.labs': '实验室',
'page.settings.tab.labs.welcome': '欢迎来到实验室',
'page.settings.tab.labs.welcome.content':
'这里是实验室,我们会在这里尝试一些不够稳定的新功能,这些功能对于封禁效果可能会更好或者更差,请根据你的需求自行开关。如果您有任何建议或者想法,欢迎在 {github} 上提交 issue 或者 PR。',
'page.settings.tab.labs.list': '实验列表',
'page.settings.tab.labs.action.enable': '启用',
'page.settings.tab.labs.enabled': '已启用'
}
22 changes: 18 additions & 4 deletions webui/src/views/settings/index.vue
Original file line number Diff line number Diff line change
@@ -1,21 +1,34 @@
<template>
<a-tabs :default-active-key="defaultActiveKey" lazy-load animation type="rounded">
<a-tab-pane :key="0" :title="t('page.settings.tab.info.title')">
<a-tab-pane :key="0">
<template #title>
<IconFont type="icon-icon_status" /> &nbsp;{{ t('page.settings.tab.info.title') }}
</template>
<RunningStatus />
</a-tab-pane>
<a-tab-pane :key="1" :title="t('page.settings.tab.config')">
<a-tab-pane :key="1">
<template #title> <icon-settings />&nbsp; {{ t('page.settings.tab.config') }} </template>
<ConfigForm />
</a-tab-pane>
<a-tab-pane :key="2" :title="t('page.settings.tab.profile')">
<a-tab-pane :key="2">
<template #title>
<IconFont type="icon-un-config-o" /> &nbsp;{{ t('page.settings.tab.profile') }}
</template>
<ProfileForm />
</a-tab-pane>
<a-tab-pane :key="3">
<template #title> <icon-experiment /> &nbsp;{{ t('page.settings.tab.labs') }} </template>
<Labs />
</a-tab-pane>
</a-tabs>
</template>
<script setup lang="ts">
import IconFont from '@/components/iconFont'
import { useI18n } from 'vue-i18n'
import { useRoute } from 'vue-router'
import ConfigForm from './components/config/index.vue'
import RunningStatus from './components/info/index.vue'
import Labs from './components/labs/index.vue'
import ProfileForm from './components/profile/index.vue'
const { t } = useI18n()

Expand All @@ -24,7 +37,8 @@ const defaultActiveKey = query.tab
? ({
info: 0,
config: 1,
profile: 2
profile: 2,
lab: 3
}[query.tab as string] ?? 0)
: 0
</script>
4 changes: 3 additions & 1 deletion webui/src/views/settings/locale/en-US.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
import ConfigLocale from '../components/config/locale/en-US'
import InfoLocale from '../components/info/locale/en-US'
import LabsLocalel from '../components/labs/locale/en-US'
import ProfileLocale from '../components/profile/locale/en-US'
export default {
'page.settings.tab.config': 'Settings',
'page.settings.tab.profile': 'Profile',
...ProfileLocale,
...ConfigLocale,
...InfoLocale
...InfoLocale,
...LabsLocalel
}
4 changes: 3 additions & 1 deletion webui/src/views/settings/locale/zh-CN.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
import ConfigLocale from '../components/config/locale/zh-CN'
import InfoLocale from '../components/info/locale/zh-CN'
import LabsLocalel from '../components/labs/locale/zh-CN'
import ProfileLocale from '../components/profile/locale/zh-CN'
export default {
'page.settings.tab.config': '基础设置',
'page.settings.tab.profile': '首选项',
...ProfileLocale,
...ConfigLocale,
...InfoLocale
...InfoLocale,
...LabsLocalel
}