feat: worksheet发布功能开发

This commit is contained in:
R524809
2026-04-24 17:49:11 +08:00
parent 5106dbbd7c
commit bb69d5c49d
24 changed files with 2540 additions and 1014 deletions
+4 -4
View File
@@ -1,12 +1,13 @@
import { CATEGORY_LIST_WITH_ALL } from '../../core/data/categories';
import { AGE_BANDS } from '../../core/data/difficulty';
import { CategoryId } from '../../core/models/category';
export type HomeDisplayItem = {
id: string;
title: string;
subtitle: string;
description?: string;
category: 'math' | 'chinese' | 'english' | 'puzzle' | 'craft';
category: CategoryId;
ageBand: string;
difficulty: '入门' | '基础' | '进阶' | '挑战';
icon: string;
@@ -44,9 +45,8 @@ export type HomeDisplayDataset = {
sections: HomeDisplaySection[];
};
const HOME_CATEGORY_TABS: HomeDisplayDataset['categoryTabs'] = CATEGORY_LIST_WITH_ALL.map(
({ id, name }) => ({ id, name }),
);
const HOME_CATEGORY_TABS: HomeDisplayDataset['categoryTabs'] =
CATEGORY_LIST_WITH_ALL.map(({ id, name }) => ({ id, name }));
const HOME_AGE_BANDS = AGE_BANDS.map((item, index) => ({
key: item.key,