feat: 新增控笔练习,增加首页公告

This commit is contained in:
R524809
2026-05-29 10:21:39 +08:00
parent 2f0c4ab591
commit a6e8f4df02
28 changed files with 1045 additions and 672 deletions
+21
View File
@@ -1,6 +1,7 @@
import { CATEGORY_LIST_WITH_ALL } from '../../core/data/categories';
import { AGE_BANDS } from '../../core/data/difficulty';
import { CategoryId } from '../../core/models/category';
import { APP_VERSION, APP_VERSION_NOTE } from '../../config/config';
export type HomeDisplayItem = {
id: string;
@@ -59,6 +60,26 @@ const HOME_AGE_BANDS: HomeDisplayDataset['ageBands'] = AGE_BANDS.map(
}),
);
/** 首页跑马灯公告条(不随云端配置变化) */
export type HomeNotice = {
id: string;
text: string;
/** 可选跳转路径,为空则点击不跳转 */
path?: string;
};
export const HOME_NOTICES: HomeNotice[] = [
{
id: 'welcome',
text: '欢迎来到 涂鸦丫,趣味练习纸任你选',
},
{
id: `update-${APP_VERSION}`,
text: `${APP_VERSION} 上线:${APP_VERSION_NOTE}`,
path: '/chinesePages/penControlSheet/penControlSheet',
},
];
/** 首页固定:每日打卡练习(不随云端配置变化) */
export const HOME_DAILY_CHECKIN_ITEMS: HomeDisplayItem[] = [
{