feat:webui-2

This commit is contained in:
手瓜一十雪
2024-05-05 13:01:23 +08:00
parent 13b57b5238
commit b6430990c0
7 changed files with 128 additions and 12 deletions

View File

@@ -1,20 +1,9 @@
/// <reference path="../global.d.ts" />
import { CheckVersion } from '../common/types'
import { SettingButton, SettingItem, SettingList, SettingSwitch, SettingSelect } from './components'
// @ts-ignore
import StyleRaw from './style.css?raw'
import { iconSvg } from './icon'
// 打开设置界面时触发
function aprilFoolsEgg(node: Element) {
let today = new Date()
if (today.getDate() === 1) {
console.log('超时空猫猫!!!')
node.querySelector('.name').innerHTML = 'ChronoCat'
}
}
function initSideBar() {
document.querySelectorAll('.nav-item.liteloader').forEach((node) => {
if (node.textContent.startsWith('LLOneBot')) {