- server: Go 单二进制骨架,embed 内嵌前端,配置/迁移/HTTP 路由 - store: system.db + event.db 两套迁移,业务表 + 种子数据 - domain: 积分引擎(并列三口径/计分通道/流水/排名/破纪录)+ 68 个测试 - web: Vite + Vue 三入口骨架 + shared 层(类型/API/WebSocket 客户端) - console: Electron 宿主骨架(选屏/防熄屏/进程守护/托盘)
28 lines
667 B
TypeScript
28 lines
667 B
TypeScript
/**
|
|
* shared 层统一出口。
|
|
*
|
|
* 三个入口(index / display / admin)只从这里取公共能力,
|
|
* 避免各自 import 到内部文件后形成难以收敛的依赖网。
|
|
*/
|
|
|
|
export * from './types'
|
|
export { ApiClient, ApiError, createApiClient } from './api'
|
|
export type { ApiClientOptions, QueryParams, QueryValue } from './api'
|
|
export { RealtimeClient } from './realtime'
|
|
export type {
|
|
RealtimeInfo,
|
|
RealtimeOptions,
|
|
RealtimeStatus,
|
|
ReconnectOptions,
|
|
} from './realtime'
|
|
export {
|
|
formatClock,
|
|
formatDateTime,
|
|
formatPoints,
|
|
formatRankChange,
|
|
formatResultText,
|
|
formatSeconds,
|
|
parseResultValue,
|
|
parseSeconds,
|
|
} from './format'
|