feat: optimize settings management and admin functionality

- Add system log cleanup functionality with batch processing
- Optimize v2_settings table performance by unifying value storage
- Add comprehensive client support list for one-click subscription
- Fix QR code subscription links for specific node types
- Fix route addition issues in admin management panel
- Enhance admin system controller with log management APIs
This commit is contained in:
xboard
2025-06-21 12:11:27 +08:00
parent 895a870dfc
commit 272dbd2107
29 changed files with 1759 additions and 1392 deletions

File diff suppressed because one or more lines are too long

Binary file not shown.

Binary file not shown.

View File

@@ -1,35 +1,33 @@
{
"name": "Xboard",
"description": "Xboard",
"version": "1.0.0",
"images": [
"https://raw.githubusercontent.com/cedar2025/Xboard/master/docs/images/user.png"
],
"configs": [
{
"label": "主题色",
"placeholder": "请选择主题颜色",
"field_name": "theme_color",
"field_type": "select",
"select_options": {
"default": "默认(绿色)",
"blue": "蓝色",
"black": "黑色",
"darkblue": "暗蓝色"
},
"default_value": "default"
},
{
"label": "背景",
"placeholder": "请输入背景图片URL",
"field_name": "background_url",
"field_type": "input"
},
{
"label": "自定义页脚HTML",
"placeholder": "可以实现客服JS代码的加入等",
"field_name": "custom_html",
"field_type": "textarea"
}
]
"name": "Xboard",
"description": "Xboard",
"version": "1.0.0",
"images": "",
"configs": [
{
"label": "主题色",
"placeholder": "请选择主题颜色",
"field_name": "theme_color",
"field_type": "select",
"select_options": {
"default": "默认(绿色)",
"blue": "蓝色",
"black": "黑色",
"darkblue": "蓝色"
},
"default_value": "default"
},
{
"label": "背景",
"placeholder": "请输入背景图片URL",
"field_name": "background_url",
"field_type": "input"
},
{
"label": "自定义页脚HTML",
"placeholder": "可以实现客服JS代码的加入等",
"field_name": "custom_html",
"field_type": "textarea"
}
]
}

19
theme/Xboard/env.example.js vendored Normal file
View File

@@ -0,0 +1,19 @@
// API地址
window.routerBase = 'http://127.0.0.1:8000/'
window.settings = {
// 站点名称
title: 'Xboard',
// 站点描述
description: 'Xboard',
assets_path: '/assets',
// 主题色
theme: {
color: 'default', //可选default、blue、black、、darkblue
},
// 版本号
version: '0.1.1-dev',
// 登陆背景
background_url: '',
// 站点LOGO
logo: '',
}

18
theme/Xboard/env.js vendored Normal file
View File

@@ -0,0 +1,18 @@
window.routerBase = 'http://127.0.0.1:8000/'
window.settings = {
// 站点名称
title: 'Xboard',
// 主题色
theme: {
color: 'anyway', //可选default、blue、black、、darkblue
},
// 站点描述
description: 'Xboard',
assets_path: '/assets',
// 版本号
version: '0.1.1-dev',
// 登陆背景
background_url: '',
// 站点LOGO
logo: '',
}

1
theme/Xboard/index.html Normal file
View File

@@ -0,0 +1 @@
<!doctype html><html lang="zh-CN"><head><meta charset="UTF-8"><meta name="viewport" content="width=device-width,initial-scale=1,maximum-scale=1,minimum-scale=1,user-scalable=no"><title>Xboard</title><script type="module" crossorigin src="/assets/umi.js"></script></head><body><script src="./env.js"></script><div id="app"></div></body></html>