feat: M0-M2 骨架落地(服务端/前端/宿主/数据库/积分引擎)

- server: Go 单二进制骨架,embed 内嵌前端,配置/迁移/HTTP 路由
- store: system.db + event.db 两套迁移,业务表 + 种子数据
- domain: 积分引擎(并列三口径/计分通道/流水/排名/破纪录)+ 68 个测试
- web: Vite + Vue 三入口骨架 + shared 层(类型/API/WebSocket 客户端)
- console: Electron 宿主骨架(选屏/防熄屏/进程守护/托盘)
This commit is contained in:
AskaEth committed 2026-09-09 18:36:40 +08:00
1 parent a61d793d79
commit 7d5d94f815
76 files changed
+10131

No files matched your search

+24
View File
@@ -0,0 +1,24 @@
import { fileURLToPath, URL } from 'node:url'
import { defineConfig } from 'vite'
import vue from '@vitejs/plugin-vue'
const resolve = (p: string) => fileURLToPath(new URL(p, import.meta.url))
export default defineConfig({
plugins: [vue()],
resolve: {
alias: { '@': resolve('./src') },
},
build: {
// 构建产物直接输出到 Go 的 embed 目录
outDir: resolve('../server/internal/webui/assets'),
emptyOutDir: true,
rollupOptions: {
input: {
index: resolve('./index.html'),
display: resolve('./display.html'),
admin: resolve('./admin.html'),
},
},
},
})