FastAPI backend with auth, user, instance, ticket, query, dashboard APIs. React + TypeScript frontend with mock data UI (10 pages). SQLite + async SQLAlchemy, JWT auth, role-based access control. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
24 lines
601 B
TypeScript
24 lines
601 B
TypeScript
import { createApp } from 'vue'
|
|
import { createPinia } from 'pinia'
|
|
import ElementPlus from 'element-plus'
|
|
import * as ElementPlusIconsVue from '@element-plus/icons-vue'
|
|
import 'element-plus/dist/index.css'
|
|
import zhCn from 'element-plus/dist/locale/zh-cn.mjs'
|
|
|
|
import App from './App.vue'
|
|
import router from './router'
|
|
import './styles/main.scss'
|
|
|
|
const app = createApp(App)
|
|
|
|
// 注册所有图标
|
|
for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
|
|
app.component(key, component)
|
|
}
|
|
|
|
app.use(createPinia())
|
|
app.use(router)
|
|
app.use(ElementPlus, { locale: zhCn })
|
|
|
|
app.mount('#app')
|