fix:[Xboard主题] 进行了各种改进和修复
1、去除未使用的图片 2、修改Google验证码reCaptcha地址为www.recaptcha.net 3、修复部分页面返回最顶部按钮被挡住的问题 4、补全部分缺失的语言包 5、修复部分分辨率下侧边栏菜单切换后不会自动收起的问题 6、修复暗黑模式下登陆注册忘记密码页面为白色背景的问题 7、调整手机端弹窗增加与屏幕边界的间隙 8、当有未完成订单的情况下,增加首页重置流量的弹窗提示 9、修复节点列表在手机端上显示不协调的问题 10、去除工单ID的显示
Before Width: | Height: | Size: 3.6 KiB |
1
public/theme/Xboard/assets/images/background.svg
Normal file
@ -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 |
Before Width: | Height: | Size: 1.5 KiB |
Before Width: | Height: | Size: 1.5 KiB |
Before Width: | Height: | Size: 1.5 KiB |
Before Width: | Height: | Size: 7.9 KiB |
Before Width: | Height: | Size: 1.5 KiB |
Before Width: | Height: | Size: 3.3 KiB |
@ -1,12 +0,0 @@
|
||||
<svg width="64" height="64" viewBox="0 0 64 64" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||
<g clip-path="url(#clip0_408_56)">
|
||||
<path d="M47.1582 14.4283C47.1582 13.8368 47.4684 13.2886 47.9757 12.9842L61.4494 4.89891C62.5721 4.22529 64.0003 5.03389 64.0003 6.34306V20.2103C64.0003 21.1405 63.2461 21.8945 62.3161 21.8945H48.8424C47.9124 21.8945 47.1582 21.1405 47.1582 20.2103V14.4283Z" fill="#E29942"/>
|
||||
<path fill-rule="evenodd" clip-rule="evenodd" d="M24.3966 26.4593C23.8893 26.7637 23.5789 27.3118 23.5789 27.9034V43.7921L23.5789 45.4751L23.5789 45.4763L23.5789 48.0001C23.5789 48.9301 22.8249 49.6001 21.8947 49.6001H18.5263C17.5962 49.6001 16.8421 48.9301 16.8421 48.0001V45.4751V34.976C16.8421 33.6669 15.4139 32.8583 14.2913 33.5319L0.817607 41.6171C0.310362 41.9216 0 42.4696 0 43.0615V60.6342C0 61.5642 0.754048 62.3184 1.68421 62.3184H15.1579C16.0881 62.3184 16.8421 61.5642 16.8421 60.6342V58.9488V56.8314C16.8421 55.9011 17.5962 55.3376 18.5263 55.3376H21.8947C22.8249 55.3376 23.5789 55.9011 23.5789 56.8314V58.9488L23.5789 60.6342C23.5789 61.5642 24.333 62.3184 25.2632 62.3184H38.7368C39.6669 62.3184 40.4211 61.5642 40.4211 60.6342V45.4763V43.7921V19.8182C40.4211 18.509 38.9928 17.7004 37.8701 18.374L24.3966 26.4593Z" fill="#E29942"/>
|
||||
<path d="M47.1592 28.7999V60.7999C47.1592 61.6836 47.9132 62.3999 48.8434 62.3999H62.3171C63.2472 62.3999 64.0013 61.6836 64.0013 60.7999V28.7999C64.0013 27.9162 63.2472 27.1999 62.3171 27.1999H48.8434C47.9132 27.1999 47.1592 27.9162 47.1592 28.7999Z" fill="#E29942"/>
|
||||
</g>
|
||||
<defs>
|
||||
<clipPath id="clip0_408_56">
|
||||
<rect width="64" height="64" fill="white"/>
|
||||
</clipPath>
|
||||
</defs>
|
||||
</svg>
|
Before Width: | Height: | Size: 1.6 KiB |
@ -1,17 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<svg id="Layer_1" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 442.19 323.31">
|
||||
<defs>
|
||||
<style>
|
||||
.cls-1{fill:#ffbc00;}
|
||||
.cls-2{fill:#000000;}
|
||||
@media (prefers-color-scheme: dark) {
|
||||
.cls-2{fill:#ffffff;}
|
||||
}
|
||||
</style>
|
||||
</defs>
|
||||
<polygon class="cls-2" points="72.8 140.45 60.1 285.55 102.51 285.55 111.5 182.86 111.54 182.86 115.21 140.45 72.8 140.45"/>
|
||||
<polygon class="cls-2" points="124.16 37.75 81.76 37.75 76.19 101.36 118.59 101.36 124.16 37.75"/>
|
||||
<polygon class="cls-2" points="318.36 285.56 360.44 285.56 366.01 221.95 323.9 221.95 318.36 285.56"/>
|
||||
<polygon class="cls-2" points="382.09 37.76 340 37.76 329.16 161.66 221.09 161.66 206.95 323.31 292.78 201.84 438.67 201.84 442.19 161.66 371.25 161.66 382.09 37.76"/>
|
||||
<polygon class="cls-1" points="149.41 121.47 3.52 121.47 0 161.66 221.09 161.66 235.23 0 149.41 121.47"/>
|
||||
</svg>
|
Before Width: | Height: | Size: 920 B |
Before Width: | Height: | Size: 1.7 KiB |
Before Width: | Height: | Size: 3.0 KiB |
Before Width: | Height: | Size: 2.7 KiB |
Before Width: | Height: | Size: 4.9 KiB |
Before Width: | Height: | Size: 992 B |
Before Width: | Height: | Size: 2.4 KiB |
Before Width: | Height: | Size: 3.6 KiB |
@ -1,37 +0,0 @@
|
||||
<svg width="1027" height="1109" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xml:space="preserve" overflow="hidden">
|
||||
<defs>
|
||||
<filter id="fx0" x="-10%" y="-10%" width="120%" height="120%" filterUnits="userSpaceOnUse" primitiveUnits="userSpaceOnUse">
|
||||
<feComponentTransfer color-interpolation-filters="sRGB">
|
||||
<feFuncR type="discrete" tableValues="0 0" />
|
||||
<feFuncG type="discrete" tableValues="0 0" />
|
||||
<feFuncB type="discrete" tableValues="0 0" />
|
||||
<feFuncA type="linear" slope="0.4" intercept="0" />
|
||||
</feComponentTransfer>
|
||||
<feGaussianBlur stdDeviation="4.58333 4.58333" />
|
||||
</filter>
|
||||
<clipPath id="clip1">
|
||||
<rect x="692" y="855" width="1027" height="1109" />
|
||||
</clipPath>
|
||||
<clipPath id="clip2">
|
||||
<rect x="-2" y="-2" width="541" height="786" />
|
||||
</clipPath>
|
||||
<clipPath id="clip3">
|
||||
<rect x="0" y="0" width="535" height="782" />
|
||||
</clipPath>
|
||||
</defs>
|
||||
<g clip-path="url(#clip1)" transform="translate(-692 -855)">
|
||||
<path d="M692 1191 692 1575.69C692 1640.41 731.499 1651.19 731.499 1651.19L1148.03 1931.62C1212.66 1974.77 1194.71 1881.29 1194.71 1881.29L1194.71 1528.96 692 1191Z" fill="#37474F" fill-rule="evenodd" />
|
||||
<g clip-path="url(#clip2)" filter="url(#fx0)" transform="translate(1184 1182)">
|
||||
<g clip-path="url(#clip3)">
|
||||
<path d="M520.482 15.4819 520.482 400.176C520.482 464.89 480.983 475.676 480.983 475.676 480.983 475.676 129.086 712.963 64.4523 756.106-0.181814 799.25 17.7721 705.773 17.7721 705.773L17.7721 353.437 520.482 15.4819Z" fill="#455A64" fill-rule="evenodd" />
|
||||
</g>
|
||||
</g>
|
||||
<path d="M1698 1191 1698 1575.69C1698 1640.41 1658.5 1651.19 1658.5 1651.19 1658.5 1651.19 1306.6 1888.48 1241.97 1931.62 1177.34 1974.77 1195.29 1881.29 1195.29 1881.29L1195.29 1528.96 1698 1191Z" fill="#455A64" fill-rule="evenodd" />
|
||||
<path d="M1241.71 868.473C1212.96 850.509 1169.85 850.509 1144.7 868.473L713.557 1163.07C684.814 1181.04 684.814 1213.37 713.557 1231.33L1144.7 1529.53C1173.44 1547.49 1216.56 1547.49 1241.71 1529.53L1676.44 1227.74C1705.19 1209.78 1705.19 1177.44 1676.44 1159.48L1241.71 868.473Z" fill="#546E7A" fill-rule="evenodd" />
|
||||
<path d="M1195 1949C1173.4 1949 1159 1935.19 1159 1917.92L1159 1531.08C1159 1513.82 1173.4 1500 1195 1500 1216.6 1500 1231 1513.82 1231 1531.08L1231 1914.46C1231 1935.19 1216.6 1949 1195 1949Z" fill="#546E7A" fill-rule="evenodd" />
|
||||
<path d="M1553.92 1435.92C1553.92 1471.89 1557.5 1486.27 1518.03 1511.45L1428.32 1568.99C1388.85 1594.17 1374.5 1572.59 1374.5 1540.22L1374.5 1446.71C1374.5 1439.52 1374.5 1435.92 1363.73 1428.73 1270.43 1363.99 911.591 1115.84 847 1069.09L1012.07 954C1058.72 982.772 1399.61 1209.35 1539.56 1306.45 1546.74 1310.05 1550.33 1317.24 1550.33 1320.84L1550.33 1435.92Z" fill="#99AAB5" fill-rule="evenodd" />
|
||||
<path d="M1543.41 1310.21C1399.82 1213.17 1058.79 986.752 1015.72 958L951.103 997.534 847 1069.41C911.615 1116.14 1270.59 1360.53 1363.92 1425.22 1371.1 1428.81 1371.1 1432.41 1371.1 1436L1547 1313.8C1547 1313.8 1547 1310.21 1543.41 1310.21Z" fill="#CCD6DD" fill-rule="evenodd" />
|
||||
<path d="M1554.9 1435.48 1554.9 1324.19C1554.9 1317.01 1551.3 1313.42 1544.11 1309.83 1400.28 1212.89 1058.67 986.721 1015.51 958L940 1008.26C1062.26 1090.83 1389.49 1306.24 1475.79 1367.27 1486.58 1374.45 1486.58 1381.63 1486.58 1385.22L1486.58 1536 1522.54 1510.87C1558.5 1485.74 1554.9 1467.79 1554.9 1435.48Z" fill="#CCD6DD" fill-rule="evenodd" />
|
||||
<path d="M1543.23 1309.95C1399.6 1212.98 1058.49 986.731 1015.4 958L940 1008.28C1062.08 1090.88 1388.83 1306.36 1475.01 1367.41 1475.01 1367.41 1478.6 1371 1478.6 1371L1554 1317.13C1546.82 1313.54 1546.82 1309.95 1543.23 1309.95Z" fill="#E1E8ED" fill-rule="evenodd" />
|
||||
</g>
|
||||
</svg>
|
Before Width: | Height: | Size: 3.7 KiB |
Before Width: | Height: | Size: 24 KiB |
1012
public/theme/Xboard/assets/umi.js
vendored
@ -1,33 +1,33 @@
|
||||
{
|
||||
"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"
|
||||
}
|
||||
]
|
||||
"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"
|
||||
}
|
||||
]
|
||||
}
|
||||
|
@ -15,9 +15,6 @@
|
||||
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}}',
|
||||
|
@ -1,23 +0,0 @@
|
||||
<!doctype html><html lang="en"><head><meta charset="UTF-8"><meta name="viewport" content="width=device-width,initial-scale=1"><title>Xboard</title><script type="module" crossorigin src="/assets/umi.js"></script></head><body><div id="app"></div><script>window.routerBase = "http://localhost:8000/";
|
||||
window.settings = {
|
||||
title: 'Xboard',
|
||||
assets_path: 'assets',
|
||||
theme: {
|
||||
sidebar: 'light',
|
||||
header: 'dark',
|
||||
color: 'default',
|
||||
},
|
||||
version: '1.0.0',
|
||||
background_url: '',
|
||||
description: '',
|
||||
i18n: [
|
||||
'zh-CN',
|
||||
'en-US',
|
||||
'ja-JP',
|
||||
'vi-VN',
|
||||
'ko-KR',
|
||||
'zh-TW',
|
||||
'fa-IR'
|
||||
],
|
||||
logo: 'https://www.gitbook.com/cdn-cgi/image/width=40,dpr=2,height=40,fit=contain,format=auto/https%3A%2F%2F3162163942-files.gitbook.io%2F~%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FTWc6Pnq0OhQEckqiaIuq%252Ficon%252FKa2r1j9TzDVBvCc0AUPb%252FMeta.png%3Falt%3Dmedia%26token%3D148f615d-6146-49fc-af5d-b998fd40f3b7'
|
||||
}</script></body></html>
|