feat: admin frontend - React + Vite, auth pages, user management, roles, permissions, webhooks, devices, logs
This commit is contained in:
18
frontend/admin/src/main.tsx
Normal file
18
frontend/admin/src/main.tsx
Normal file
@@ -0,0 +1,18 @@
|
||||
import { StrictMode } from 'react'
|
||||
import { createRoot } from 'react-dom/client'
|
||||
import { installWindowGuards } from '@/app/bootstrap/installWindowGuards'
|
||||
import { ThemeProvider } from '@/app/providers/ThemeProvider'
|
||||
// 使用 @/ 别名导入 App
|
||||
import App from '@/app/App'
|
||||
// 全局样式
|
||||
import '@/styles/global.css'
|
||||
|
||||
installWindowGuards()
|
||||
|
||||
createRoot(document.getElementById('root')!).render(
|
||||
<StrictMode>
|
||||
<ThemeProvider>
|
||||
<App />
|
||||
</ThemeProvider>
|
||||
</StrictMode>,
|
||||
)
|
||||
Reference in New Issue
Block a user