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
+124
View File
@@ -0,0 +1,124 @@
import type { WorksheetDefinition } from './types';
export const FOCUS_WORKSHEET_DEFINITIONS = [
{
id: 'color-shape-match',
title: '根据颜色画图形',
subtitle: '根据颜色画出对应图形',
ageMin: 4,
ageMax: 6,
difficulty: 2,
tags: ['专注力', '颜色', '图形'],
sortOrder: 201,
},
{
id: 'shape-symbol',
title: '图形符号配对',
subtitle: '根据图形画对应符号',
ageMin: 4,
ageMax: 6,
difficulty: 2,
tags: ['专注力', '图形', '符号'],
sortOrder: 202,
},
{
id: 'position-coloring',
title: '方位涂涂乐',
subtitle: '观察位置,在方格中涂色',
ageMin: 4,
ageMax: 6,
difficulty: 2,
tags: ['专注力', '方位', '涂色'],
sortOrder: 203,
},
{
id: 'color-pattern',
title: '颜色找规律',
subtitle: '观察颜色规律,涂色',
ageMin: 4,
ageMax: 6,
difficulty: 2,
tags: ['专注力', '颜色', '规律'],
sortOrder: 204,
},
{
id: 'match-connect',
title: '连连看',
subtitle: '根据物品连一连',
ageMin: 3,
ageMax: 6,
difficulty: 1,
tags: ['专注力', '连线', '匹配'],
sortOrder: 205,
},
{
id: 'line-recognition',
title: '线条识别',
subtitle: '认识不同线条,画对应线条',
ageMin: 3,
ageMax: 6,
difficulty: 1,
tags: ['专注力', '线条', '识别', '控笔'],
sortOrder: 206,
},
{
id: 'grid-reasoning',
title: '方格推理',
subtitle: '推理出合并方格并连线',
ageMin: 5,
ageMax: 7,
difficulty: 3,
tags: ['专注力', '方格', '推理', '逻辑思维'],
sortOrder: 207,
},
{
id: 'code-connect',
title: '译码连线',
subtitle: '按数字顺序连线',
ageMin: 5,
ageMax: 7,
difficulty: 3,
tags: ['专注力', '译码', '连线', '逻辑思维'],
sortOrder: 208,
},
{
id: 'dot-connect',
title: '数字点连线',
subtitle: '按数字顺序连点成图',
ageMin: 4,
ageMax: 6,
difficulty: 1,
tags: ['专注力', '数字', '连线'],
sortOrder: 209,
},
{
id: 'grid-drawing-3x3',
title: '格子仿画 3×3',
subtitle: '简单有趣,培养专注力',
ageMin: 3,
ageMax: 5,
difficulty: 1,
tags: ['专注力', '格子仿画', '观察'],
sortOrder: 210,
},
{
id: 'grid-drawing-5x5',
title: '格子仿画 5×5',
subtitle: '创意挑战,提升观察力',
ageMin: 4,
ageMax: 6,
difficulty: 2,
tags: ['专注力', '格子仿画', '观察'],
sortOrder: 211,
},
{
id: 'grid-drawing-7x7',
title: '格子仿画 7×7',
subtitle: '大师挑战,锻炼耐心',
ageMin: 6,
ageMax: 8,
difficulty: 3,
tags: ['专注力', '格子仿画', '耐心'],
sortOrder: 212,
},
] as const satisfies ReadonlyArray<WorksheetDefinition>;
+7
View File
@@ -0,0 +1,7 @@
export type { WorksheetDefinition } from './types';
export { MATH_WORKSHEET_DEFINITIONS } from './math';
export { FOCUS_WORKSHEET_DEFINITIONS } from './focus';
export { LETTER_TRACING_WORKSHEET_DEFINITIONS } from './letterTracing';
export { PINYIN_DICTATION_WORKSHEET_DEFINITIONS } from './pinyin';
export { PEN_CONTROL_WORKSHEET_DEFINITIONS } from './penControl';
export { WORD_COLORING_WORKSHEET_DEFINITIONS } from './wordColoring';
@@ -0,0 +1,81 @@
import type { WorksheetDefinition } from './types';
export const LETTER_TRACING_WORKSHEET_DEFINITIONS = [
{
id: 'letter-tracing-single',
icon: 'start-a',
title: '字母默认字帖',
subtitle: '配图、例句与描红',
ageMin: 4,
ageMax: 7,
difficulty: 1,
tags: ['字母', '描红', '看图描红'],
sortOrder: 42,
},
{
id: 'letter-tracing-upper-lower',
icon: 'draw-o',
title: '字母基础描红',
subtitle: 'Uppercase / Lowercase 总览',
ageMin: 5,
ageMax: 7,
difficulty: 1,
tags: ['字母', '描红', '字母总览'],
sortOrder: 44,
},
{
id: 'letter-tracing-case-pairing',
icon: 'font-size',
title: '大小写对照',
subtitle: '半组字母左大写右小写',
ageMin: 5,
ageMax: 7,
difficulty: 1,
tags: ['字母', '描红', '大小写练习'],
sortOrder: 45,
},
{
id: 'letter-tracing-two-column',
icon: 'two-columns',
title: '两列描红',
subtitle: '左 AM、右 NZ 配对描红',
ageMin: 5,
ageMax: 7,
difficulty: 1,
tags: ['字母', '描红', '两列练习'],
sortOrder: 43,
},
{
id: 'letter-tracing-half',
icon: 'square-half',
title: '13字母半表',
subtitle: '每行一个字母,13 字母半表',
ageMin: 5,
ageMax: 8,
difficulty: 2,
tags: ['字母', '描红', '半表练习'],
sortOrder: 47,
},
{
id: 'letter-tracing-three',
icon: 'ABC-list',
title: '三字母精练',
subtitle: '每页聚焦 3 个字母深度书写',
ageMin: 5,
ageMax: 7,
difficulty: 2,
tags: ['字母', '描红', '三字母精练'],
sortOrder: 46,
},
{
id: 'letter-tracing-daily-checkin',
icon: 'task-o',
title: '字母每日打卡',
subtitle: '四宫格每日字母打卡练习',
ageMin: 5,
ageMax: 7,
difficulty: 2,
tags: ['字母', '描红', '每日打卡'],
sortOrder: 48,
},
] as const satisfies ReadonlyArray<WorksheetDefinition>;
+264
View File
@@ -0,0 +1,264 @@
import type { WorksheetDefinition } from './types';
export const MATH_WORKSHEET_DEFINITIONS = [
{
id: 'number-find',
title: '找数字,涂一涂',
subtitle: '找出目标数字并涂色',
ageMin: 3,
ageMax: 5,
difficulty: 1,
tags: ['数学', '数字认知', '涂色'],
sortOrder: 101,
},
{
id: 'number-write',
title: '看数字,写一写',
subtitle: '按笔画顺序书写数字',
ageMin: 4,
ageMax: 6,
difficulty: 1,
tags: ['数学', '数字书写', '描红'],
sortOrder: 102,
},
{
id: 'number-coloring',
title: '按数字,涂颜色',
subtitle: '按指定数字涂色',
ageMin: 3,
ageMax: 5,
difficulty: 1,
tags: ['数学', '数字认知', '涂色'],
sortOrder: 103,
},
{
id: 'counting-matching',
title: '数一数,连一连',
subtitle: '连线配对数字和数量',
ageMin: 3,
ageMax: 5,
difficulty: 1,
tags: ['数学', '计数', '连线'],
sortOrder: 104,
},
{
id: 'number-object-match',
title: '数物连线',
subtitle: '连线数量相同的物体和数字',
ageMin: 3,
ageMax: 5,
difficulty: 1,
tags: ['数学', '数物对应', '连线'],
sortOrder: 105,
},
{
id: 'number-object-fill',
title: '数物填写',
subtitle: '数出数量,填写对应数字',
ageMin: 4,
ageMax: 6,
difficulty: 1,
tags: ['数学', '数物对应', '填写'],
sortOrder: 106,
},
{
id: 'counting-select',
title: '数一数,选一选',
subtitle: '数出数量,圈出正确答案',
ageMin: 3,
ageMax: 5,
difficulty: 1,
tags: ['数学', '计数', '选择'],
sortOrder: 107,
},
{
id: 'counting-fill',
title: '数一数,填一填',
subtitle: '数出物品数量,填写数字',
ageMin: 4,
ageMax: 6,
difficulty: 1,
tags: ['数学', '计数', '填写'],
sortOrder: 108,
},
{
id: 'compare',
title: '数一数,比大小',
subtitle: '比较数量,填入 ><=',
ageMin: 4,
ageMax: 6,
difficulty: 2,
tags: ['数学', '比较', '数量'],
sortOrder: 109,
},
{
id: 'number-sort',
title: '数字排序',
subtitle: '写出正确的数字顺序',
ageMin: 4,
ageMax: 6,
difficulty: 2,
tags: ['数学', '数字排序', '序列'],
sortOrder: 110,
},
{
id: 'missing-number',
title: '填上缺少的数字',
subtitle: '找出并填写缺失数字',
ageMin: 4,
ageMax: 6,
difficulty: 2,
tags: ['数学', '数字序列', '填写'],
sortOrder: 111,
},
{
id: 'number-decompose',
title: '10以内数的分与合',
subtitle: '把数字分一分,合一合',
ageMin: 5,
ageMax: 7,
difficulty: 1,
tags: ['数学', '分与合', '10以内'],
sortOrder: 112,
},
{
id: 'number-decompose-20',
title: '20以内数的分与合',
subtitle: '把数字分一分,合一合',
ageMin: 5,
ageMax: 7,
difficulty: 2,
tags: ['数学', '分与合', '20以内'],
sortOrder: 113,
},
{
id: 'one-digit-addition',
title: '一位数加法',
subtitle: '通过圆点学习一位数加法',
ageMin: 4,
ageMax: 6,
difficulty: 2,
tags: ['数学', '加法', '一位数'],
sortOrder: 114,
},
{
id: 'addition-5',
title: '5以内加法',
subtitle: '图形化展示5以内加法',
ageMin: 4,
ageMax: 6,
difficulty: 1,
tags: ['数学', '加法', '5以内', '计算题'],
sortOrder: 115,
},
{
id: 'addition-10',
title: '10以内加法',
subtitle: '图形化展示10以内加法',
ageMin: 4,
ageMax: 6,
difficulty: 2,
tags: ['数学', '加法', '10以内', '计算题'],
sortOrder: 116,
},
{
id: 'subtraction-10',
title: '10以内减法',
subtitle: '图形化展示10以内减法',
ageMin: 5,
ageMax: 7,
difficulty: 2,
tags: ['数学', '减法', '10以内', '计算题'],
sortOrder: 117,
},
{
id: 'addition-subtraction-10',
title: '10以内加减法',
subtitle: '加减法混合运算',
ageMin: 5,
ageMax: 7,
difficulty: 2,
tags: ['数学', '加减法', '10以内', '计算题'],
sortOrder: 118,
},
{
id: 'make-ten',
title: '凑十法练习',
subtitle: '20以内进位加法',
ageMin: 5,
ageMax: 7,
difficulty: 3,
tags: ['数学', '凑十法', '进位加法', '计算题'],
sortOrder: 119,
},
{
id: 'break-ten',
title: '破十法练习',
subtitle: '20以内退位减法',
ageMin: 5,
ageMax: 7,
difficulty: 3,
tags: ['数学', '破十法', '退位减法', '计算题'],
sortOrder: 120,
},
{
id: 'flat-ten',
title: '平十法练习',
subtitle: '20以内退位减法',
ageMin: 5,
ageMax: 7,
difficulty: 3,
tags: ['数学', '平十法', '退位减法', '计算题'],
sortOrder: 121,
},
{
id: 'borrow-ten',
title: '借十法练习',
subtitle: '20 以上退位减法',
ageMin: 6,
ageMax: 8,
difficulty: 4,
tags: ['数学', '借十法', '退位减法', '计算题'],
sortOrder: 122,
},
{
id: 'practice-addition',
title: '加法运算',
subtitle: '10/20/50/100 以内加法',
ageMin: 6,
ageMax: 8,
difficulty: 3,
tags: ['数学', '口算', '加法', '计算题'],
sortOrder: 123,
},
{
id: 'practice-subtraction',
title: '减法运算',
subtitle: '10/20/50/100以内减法',
ageMin: 6,
ageMax: 8,
difficulty: 3,
tags: ['数学', '口算', '减法', '计算题'],
sortOrder: 124,
},
{
id: 'practice-mixed',
title: '混合运算',
subtitle: '10/20/50/100以内加减法混合',
ageMin: 6,
ageMax: 8,
difficulty: 3,
tags: ['数学', '口算', '加减法', '计算题'],
sortOrder: 125,
},
{
id: 'multiplication-table',
title: '九九乘法表',
subtitle: '学习九九乘法口诀',
ageMin: 7,
ageMax: 8,
difficulty: 3,
tags: ['数学', '乘法', '九九乘法表'],
sortOrder: 126,
},
] as const satisfies ReadonlyArray<WorksheetDefinition>;
@@ -0,0 +1,15 @@
import type { WorksheetDefinition } from './types';
export const PEN_CONTROL_WORKSHEET_DEFINITIONS = [
{
id: 'pen-control-mix',
icon: 'edit',
title: '控笔练习',
subtitle: '多种控笔图形,运笔更轻松',
ageMin: 5,
ageMax: 7,
difficulty: 1,
tags: ['控笔', '运笔', '田字格', '学前'],
sortOrder: 40,
},
] as const satisfies ReadonlyArray<WorksheetDefinition>;
+59
View File
@@ -0,0 +1,59 @@
import type { WorksheetDefinition } from './types';
export const PINYIN_DICTATION_WORKSHEET_DEFINITIONS = [
{
id: 'pinyin-tracing',
icon: 'draw-o',
title: '拼音描红练习',
subtitle: '跟着描红学拼音字母',
ageMin: 5,
ageMax: 7,
difficulty: 1,
tags: ['拼音', '描红', '声母', '韵母'],
sortOrder: 50,
},
{
id: 'pinyin-dictation',
icon: 'start-a',
title: '拼音默写练习',
subtitle: '空白格子默写拼音字母',
ageMin: 6,
ageMax: 8,
difficulty: 2,
tags: ['拼音', '默写', '声母', '韵母'],
sortOrder: 51,
},
{
id: 'pinyin-tracing-v2',
icon: 'pen-draw',
title: '拼音描红 8 列',
subtitle: '跟写描红,声韵分块',
ageMin: 5,
ageMax: 7,
difficulty: 1,
tags: ['拼音', '描红', '声母', '韵母'],
sortOrder: 52,
},
{
id: 'pinyin-dictation-v2',
icon: 'ABC-underline',
title: '拼音默写 8 列',
subtitle: '空白默写,声韵分块',
ageMin: 6,
ageMax: 8,
difficulty: 2,
tags: ['拼音', '默写', '声母', '韵母'],
sortOrder: 53,
},
{
id: 'pinyin-daily',
icon: 'task-o',
title: '拼音每日打卡',
subtitle: '四宫格每日打卡练习',
ageMin: 5,
ageMax: 7,
difficulty: 2,
tags: ['拼音', '每日练习', '打卡'],
sortOrder: 54,
},
] as const satisfies ReadonlyArray<WorksheetDefinition>;
+13
View File
@@ -0,0 +1,13 @@
/** 本地 worksheet 元数据(与云库 `worksheets` 文档 `_id` 对齐) */
export interface WorksheetDefinition {
id: string;
title: string;
subtitle: string;
ageMin: number;
ageMax: number;
difficulty: 1 | 2 | 3 | 4;
tags: string[];
sortOrder: number;
/** 页面渲染时使用的图标,仅部分页面有 */
icon?: string;
}
@@ -0,0 +1,26 @@
import type { WorksheetDefinition } from './types';
export const WORD_COLORING_WORKSHEET_DEFINITIONS = [
{
id: 'word-coloring-grid',
icon: 'grid',
title: '网格涂色',
subtitle: '田字格涂色识字练习',
ageMin: 3,
ageMax: 6,
difficulty: 1,
tags: ['识字', '涂色', '田字格'],
sortOrder: 30,
},
{
id: 'word-coloring-find',
icon: 'search',
title: '找字涂色',
subtitle: '在字海中找到目标字并涂色',
ageMin: 3,
ageMax: 6,
difficulty: 1,
tags: ['识字', '涂色', '找字'],
sortOrder: 31,
},
] as const satisfies ReadonlyArray<WorksheetDefinition>;