refactor: 移除旧版数据库配置的简易模式实现

移除与 PR #66 冲突的旧版简易模式实现(commit 7d4b7de)。
新版简易模式通过 run_mode 配置文件/环境变量控制,无需数据库设置。

后端变更:
- 移除 SettingKeySimpleMode 常量
- 移除 SystemSettings/PublicSettings 中的 SimpleMode 字段
- 移除 setting_handler 中的简易模式切换逻辑
- 移除 userService 依赖(不再需要自动设置管理员并发数)

前端变更:
- 移除 appStore.simpleMode 状态
- 移除设置页面的"使用模式"设置区块
- 移除 GroupsView 中的简易模式相关逻辑
- 移除相关国际化文案
This commit is contained in:
shaw
2025-12-29 09:17:00 +08:00
parent 1f5ced7069
commit 31fef105c7
14 changed files with 10 additions and 193 deletions

View File

@@ -30,7 +30,6 @@ export const useAppStore = defineStore('app', () => {
const contactInfo = ref<string>('')
const apiBaseUrl = ref<string>('')
const docUrl = ref<string>('')
const simpleMode = ref<boolean>(false)
// Version cache state
const versionLoaded = ref<boolean>(false)
@@ -297,8 +296,7 @@ export const useAppStore = defineStore('app', () => {
api_base_url: apiBaseUrl.value,
contact_info: contactInfo.value,
doc_url: docUrl.value,
version: siteVersion.value,
simple_mode: simpleMode.value
version: siteVersion.value
}
}
@@ -316,7 +314,6 @@ export const useAppStore = defineStore('app', () => {
contactInfo.value = data.contact_info || ''
apiBaseUrl.value = data.api_base_url || ''
docUrl.value = data.doc_url || ''
simpleMode.value = data.simple_mode || false
publicSettingsLoaded.value = true
return data
} catch (error) {
@@ -351,7 +348,6 @@ export const useAppStore = defineStore('app', () => {
contactInfo,
apiBaseUrl,
docUrl,
simpleMode,
// Version state
versionLoaded,