退役旧创作模板业务并保留数据壳
保留 SpacetimeDB 历史表、迁移白名单与最小兼容读取定义 移除旧创作前后端、worker、业务过程及纯业务 crate 的编译依赖 恢复现役创作、项目、我的入口及桌面移动导航 收紧 Vite、TypeScript、ESLint、Vitest 与静态资源退役边界 补齐开发栈、网关、原生壳和文档退役约束
This commit is contained in:
@@ -18,16 +18,19 @@ describe('appPageRoutes', () => {
|
||||
expect(resolveSelectionStageFromPath('/')).toBe('platform');
|
||||
expect(resolveSelectionStageFromPath('/creation')).toBe('creation-home');
|
||||
expect(resolveSelectionStageFromPath('/project')).toBe('project');
|
||||
expect(resolveSelectionStageFromPath('/PROFILE/')).toBe('profile');
|
||||
expect(resolveSelectionStageFromPath('/EDITOR/CANVAS/')).toBe(
|
||||
'image-editor',
|
||||
);
|
||||
expect(resolveSelectionStageFromPath('/creation/rpg')).toBe('platform');
|
||||
expect(resolveSelectionStageFromPath('/runtime/puzzle')).toBe('platform');
|
||||
expect(isKnownMainAppPagePath('/creation')).toBe(true);
|
||||
expect(isKnownMainAppPagePath('/profile')).toBe(true);
|
||||
expect(isKnownMainAppPagePath('/creation/rpg')).toBe(false);
|
||||
expect(isKnownMainAppPagePath('/runtime/puzzle')).toBe(false);
|
||||
expect(resolvePathForSelectionStage('creation-home')).toBe('/creation');
|
||||
expect(resolvePathForSelectionStage('project')).toBe('/project');
|
||||
expect(resolvePathForSelectionStage('profile')).toBe('/profile');
|
||||
});
|
||||
|
||||
it('requires a project id for direct editor navigation', () => {
|
||||
|
||||
@@ -7,6 +7,7 @@ const STAGE_ROUTE_ENTRIES = [
|
||||
['platform', '/'],
|
||||
['creation-home', '/creation'],
|
||||
['project', '/project'],
|
||||
['profile', '/profile'],
|
||||
['image-editor', '/editor/canvas'],
|
||||
] as const satisfies readonly (readonly [SelectionStage, string])[];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user