(WIP) 重构客户端

This commit is contained in:
CrescentLeaf
2025-12-07 18:31:42 +08:00
parent 34d46a85f1
commit 20986af1ba
23 changed files with 714 additions and 347 deletions

View File

@@ -2,7 +2,7 @@ import 'mdui/mdui.css'
import 'mdui'
import { breakpoint } from "mdui"
import './mdui.d.ts'
import './env.d.ts'
import * as React from 'react'
import ReactDOM from 'react-dom/client'
@@ -16,6 +16,14 @@ import './ui/chat-elements/chat-text-container.ts'
import './ui/chat-elements/chat-quote.ts'
import Main from "./ui/Main.tsx"
import performAuth from './performAuth.ts'
try {
await performAuth({})
} catch (e) {
console.log("验证失败", e)
}
ReactDOM.createRoot(document.getElementById('app') as HTMLElement).render(React.createElement(Main))
const onResize = () => {