稍微重构一下代码 - #2
Open
timelic wants to merge 249 commits into
Open
Conversation
Author
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
现代化重构:前端从 Vue CLI/Vuex/JavaScript 升级为 Vue 3、Vite、Pinia、Composition API 与严格 TypeScript,后端改为 TypeScript、Express 5 和模块化 WebSocket 服务;新增
contracts、domain与测试 fixture 包,对 HTTP、存档、剧本及 WS 载荷实施运行时校验,并将会话传输、持久化、聊天、投票、玩家、席位和游戏状态拆分为可测模块,删除旧 Vuex 与 legacy command/effect bridge;同时补齐单元、组件、服务端集成、多客户端 E2E 和视觉回归测试,以及 CI、类型/格式/Stylelint(历史告警已清零)、覆盖率、包体积和资源引用门禁,补充部署、回滚、兼容性和迁移文档,归档全局 Sass 样式并引入视觉 token。