feat: new xboard

This commit is contained in:
xboard
2025-01-21 14:57:54 +08:00
parent de18cfe596
commit 0f43fff242
373 changed files with 17923 additions and 20264 deletions
@@ -0,0 +1 @@
<svg height="200" width="200" xmlns="http://www.w3.org/2000/svg"><g fill="none" fill-rule="evenodd" transform="translate(10 8)"><circle cx="176" cy="12" r="4" stroke="#ddd" stroke-width="1.25"/><path d="M20.5.5l23 11m-29 84l-3.79 10.377M27.037 131.4l5.898 2.203-3.46 5.947 6.072 2.392-3.933 5.758m128.733 35.37l.693-9.316 10.292.052.416-9.222 9.274.332M.5 48.5s6.131 6.413 6.847 14.805c.715 8.393-2.52 14.806-2.52 14.806M124.555 90s-7.444 0-13.67 6.192c-6.227 6.192-4.838 12.012-4.838 12.012m2.24 68.626s-4.026-9.025-18.145-9.025-18.145 5.7-18.145 5.7" stroke="#ddd" stroke-linecap="round" stroke-width="1.25"/><path d="M85.716 36.146l5.243-9.521h11.093l5.416 9.521-5.41 9.185H90.953zm63.909 15.479h10.75v10.75h-10.75z" stroke="#ddd" stroke-width="1.25"/><g fill="#ddd"><circle cx="71.5" cy="7.5" r="1.5"/><circle cx="170.5" cy="95.5" r="1.5"/><circle cx="81.5" cy="134.5" r="1.5"/><circle cx="13.5" cy="23.5" r="1.5"/><path d="M93 71h3v3h-3zm33 84h3v3h-3zm-85 18h3v3h-3z"/></g><path d="M39.384 51.122l5.758-4.454 6.453 4.205-2.294 7.363h-7.79zM130.195 4.03l13.83 5.062-10.09 7.048zm-83 95l14.83 5.429-10.82 7.557-4.01-12.987zM5.213 161.495l11.328 20.897L2.265 180z" stroke="#ddd" stroke-width="1.25"/><path d="M149.05 127.468s-.51 2.183.995 3.366c1.56 1.226 8.642-1.895 3.967-7.785-2.367-2.477-6.5-3.226-9.33 0-5.208 5.936 0 17.51 11.61 13.73 12.458-6.257 5.633-21.656-5.073-22.654-6.602-.606-14.043 1.756-16.157 10.268-1.718 6.92 1.584 17.387 12.45 20.476 10.866 3.09 19.331-4.31 19.331-4.31" stroke="#ddd" stroke-linecap="round" stroke-width="1.25"/></g></svg>

After

Width:  |  Height:  |  Size: 1.5 KiB

+3818
View File
File diff suppressed because one or more lines are too long
Binary file not shown.
Binary file not shown.
+35
View File
@@ -0,0 +1,35 @@
{
"name": "Xboard",
"description": "Xboard",
"version": "1.0.0",
"images": [
"https://raw.githubusercontent.com/cedar2025/Xboard/new/docs/images/dashboard.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"
}
]
}
+40
View File
@@ -0,0 +1,40 @@
<!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>{{$title}}</title>
<script type="module" crossorigin src="/theme/{{$theme}}/assets/umi.js"></script>
</head>
<body>
<script>
window.routerBase = "/";
window.settings = {
title: '{{$title}}',
assets_path: '/theme/{{$theme}}/assets',
theme: {
color: '{{ $theme_config['theme_color'] ?? "default" }}',
},
version: '{{$version}}',
background_url: '{{$theme_config['background_url']}}',
description: '{{$description}}',
i18n: [
'zh-CN',
'en-US',
'ja-JP',
'vi-VN',
'ko-KR',
'zh-TW',
'fa-IR'
],
logo: '{{$logo}}'
}
</script>
<div id="app"></div>
{!! $theme_config['custom_html'] !!}
</body>
</html>