恢复新版创作主页与平台侧栏
恢复 /creation 新版创作工具主页及创作、项目公共侧栏。 将 creation-home 重新纳入 Vite、TypeScript、ESLint 与 Vitest 活动编译链。 恢复 /creation 的 Nginx 与 Pingora SPA 白名单并保留旧子路径下线边界。 补充路由、标题、CSS 过滤和网关 smoke 回归验证。
This commit is contained in:
@@ -24,6 +24,9 @@ afterEach(() => {
|
||||
describe('activeAppTitle', () => {
|
||||
test('maps only active platform stages', () => {
|
||||
expect(resolveAppTitleForSelectionStage('platform')).toBe(APP_HOME_TITLE);
|
||||
expect(resolveAppTitleForSelectionStage('creation-home')).toBe(
|
||||
APP_HOME_TITLE,
|
||||
);
|
||||
expect(resolveAppTitleForSelectionStage('project')).toBe('项目 - 陶泥儿');
|
||||
expect(resolveAppTitleForSelectionStage('image-editor')).toBe(
|
||||
'美术编辑器 - 陶泥儿',
|
||||
|
||||
@@ -7,6 +7,7 @@ export const APP_HOME_TITLE =
|
||||
|
||||
const APP_TITLE_BY_SELECTION_STAGE: Record<SelectionStage, string> = {
|
||||
platform: APP_HOME_TITLE,
|
||||
'creation-home': APP_HOME_TITLE,
|
||||
project: '项目 - 陶泥儿',
|
||||
'image-editor': '美术编辑器 - 陶泥儿',
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user