Skip to content

Commit 651e9c5

Browse files
committed
feat: 新增主题选择
1 parent ae2d9f0 commit 651e9c5

File tree

126 files changed

+98
-39
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

126 files changed

+98
-39
lines changed

apps/admin/views.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,7 @@ async def update_config(
9090
config_service: ConfigService = Depends(get_config_service),
9191
admin: bool = Depends(admin_required)
9292
):
93+
data.pop('themesChoices')
9394
await config_service.update_config(data)
9495
return APIResponse()
9596

core/settings.py

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
# @Author : Lan
33
# @File : settings.py
44
# @Software: PyCharm
5-
import json
65
from pathlib import Path
76

87
BASE_DIR = Path(__file__).resolve().parent.parent
@@ -43,6 +42,21 @@
4342
'opacity': 0.9,
4443
'background': '',
4544
'uploadCount': 10,
45+
'themesChoices': [
46+
{
47+
'name': '2023',
48+
'key': 'themes/2023',
49+
'author': 'Lan',
50+
'version': '1.0',
51+
},
52+
{
53+
'name': '2024',
54+
'key': 'themes/2024',
55+
'author': 'Lan',
56+
'version': '1.0',
57+
}
58+
],
59+
'themesSelect': 'themes/2024',
4660
'errorMinute': 1,
4761
'errorCount': 1,
4862
'port': 12345,

fcb-fronted/components.d.ts

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,39 @@ export {}
88
declare module 'vue' {
99
export interface GlobalComponents {
1010
CardTools: typeof import('./src/components/CardTools.vue')['default']
11+
ElButton: typeof import('element-plus/es')['ElButton']
12+
ElCard: typeof import('element-plus/es')['ElCard']
13+
ElCol: typeof import('element-plus/es')['ElCol']
14+
ElContainer: typeof import('element-plus/es')['ElContainer']
15+
ElDialog: typeof import('element-plus/es')['ElDialog']
16+
ElDrawer: typeof import('element-plus/es')['ElDrawer']
17+
ElEmpty: typeof import('element-plus/es')['ElEmpty']
18+
ElForm: typeof import('element-plus/es')['ElForm']
19+
ElFormItem: typeof import('element-plus/es')['ElFormItem']
20+
ElHeader: typeof import('element-plus/es')['ElHeader']
21+
ElIcon: typeof import('element-plus/es')['ElIcon']
22+
ElInput: typeof import('element-plus/es')['ElInput']
23+
ElMain: typeof import('element-plus/es')['ElMain']
24+
ElMenu: typeof import('element-plus/es')['ElMenu']
25+
ElMenuItem: typeof import('element-plus/es')['ElMenuItem']
26+
ElOption: typeof import('element-plus/es')['ElOption']
27+
ElPagination: typeof import('element-plus/es')['ElPagination']
28+
ElProgress: typeof import('element-plus/es')['ElProgress']
29+
ElRadio: typeof import('element-plus/es')['ElRadio']
30+
ElRadioGroup: typeof import('element-plus/es')['ElRadioGroup']
31+
ElRow: typeof import('element-plus/es')['ElRow']
32+
ElSelect: typeof import('element-plus/es')['ElSelect']
33+
ElTable: typeof import('element-plus/es')['ElTable']
34+
ElTableColumn: typeof import('element-plus/es')['ElTableColumn']
35+
ElTag: typeof import('element-plus/es')['ElTag']
36+
ElUpload: typeof import('element-plus/es')['ElUpload']
1137
FileBox: typeof import('./src/components/FileBox.vue')['default']
1238
RouterLink: typeof import('vue-router')['RouterLink']
1339
RouterView: typeof import('vue-router')['RouterView']
1440
UploadFile: typeof import('./src/components/UploadFile.vue')['default']
1541
UploadText: typeof import('./src/components/UploadText.vue')['default']
1642
}
43+
export interface ComponentCustomProperties {
44+
vLoading: typeof import('element-plus/es')['ElLoadingDirective']
45+
}
1746
}

fcb-fronted/dist/assets/SystemSettingsView-1vhqorKt.js

Lines changed: 0 additions & 1 deletion
This file was deleted.

fcb-fronted/dist_old/assets/SettingView-B73Vn17x.js

Lines changed: 0 additions & 1 deletion
This file was deleted.

fcb-fronted/src/locals/en.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ export default {
5353
explain: 'Interface Instructions',
5454
errorlimit: 'Error Limit',
5555
keywords: 'Keywords',
56+
themeSelect: 'Theme Selection',
5657
notify_title: 'Notification Title',
5758
notify_content: 'Notification Content',
5859
background: 'Background Image',

fcb-fronted/src/locals/es.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ export default {
5353
explain: 'Descripción de la interfaz',
5454
errorlimit: 'Límite de errores',
5555
keywords: 'Palabras clave',
56+
themeSelect: 'Selección de tema',
5657
notify_title: 'Título de notificación',
5758
notify_content: 'Contenido de notificación',
5859
background: 'Imagen de fondo',

fcb-fronted/src/locals/zh.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ export default {
5353
explain:'界面说明',
5454
errorlimit: '错误限制',
5555
keywords: '关键词',
56+
themeSelect: '主题选择',
5657
notify_title: '通知标题',
5758
notify_content: '通知内容',
5859
background: '背景图片',

fcb-fronted/src/locals/zh_cn.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ export default {
5353
explain:'界面说明',
5454
errorlimit: '错误限制',
5555
keywords: '关键词',
56+
themeSelect: '主题选择',
5657
notify_title: '通知标题',
5758
notify_content: '通知内容',
5859
background: '背景图片',

fcb-fronted/src/locals/zh_tw.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ export default {
5353
explain: '界面說明',
5454
errorlimit: '錯誤限制',
5555
keywords: '關鍵詞',
56+
themeSelect: 'Theme選擇',
5657
notify_title: '通知標題',
5758
notify_content: '通知內容',
5859
background: '背景圖片',

0 commit comments

Comments
 (0)