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
+119 -8
View File
@@ -1,8 +1,119 @@
/**
* 桥接文件 - 保持向后兼容
* 实际数据已迁移到 core/data/worksheets.ts
*/
export {
FOCUS_FUNCTION_TYPES,
type FocusFunctionType,
} from '../core/data/worksheets';
export interface FocusFunctionType {
id: string;
page?: string;
title: string;
desc: string;
icon: string;
mode?: string;
img?: string;
}
export const FOCUS_FUNCTION_TYPES: FocusFunctionType[] = [
{
id: 'color-shape-match',
page: 'focusDraw',
title: '根据颜色画图形',
desc: '根据颜色画出对应图形',
icon: '🎯',
img: '/assets/focusEntrance/color-shape-match.png',
},
{
id: 'shape-symbol',
page: 'focusDraw',
title: '图形符号配对',
desc: '根据图形画对应符号',
icon: '🔗',
img: '/assets/focusEntrance/shape-symbol.png',
},
{
id: 'shape-recognition',
page: 'focusDraw',
title: '识别形状',
desc: '识别形状,涂一涂',
icon: '🔍',
img: '/assets/focusEntrance/shape-recognition.png',
},
{
id: 'position-coloring',
page: 'focusDraw',
title: '方位涂涂乐',
desc: '观察位置,在方格中涂色',
icon: '📍',
img: '/assets/focusEntrance/position-coloring.png',
},
{
id: 'color-pattern',
page: 'focusDraw',
title: '颜色找规律',
desc: '观察颜色规律,在空白图形中涂色',
icon: '🎨',
img: '/assets/focusEntrance/color-pattern.png',
},
{
id: 'match-connect',
page: 'focusDraw',
title: '连连看',
desc: '根据物品连一连',
icon: '🔗',
img: '/assets/focusEntrance/match-connect.png',
},
{
id: 'line-recognition',
page: 'focusDraw',
title: '线条识别',
desc: '认识不同线条,画出颜色对应的线条',
icon: '📏',
img: '/assets/focusEntrance/line-recognition.png',
},
{
id: 'grid-reasoning',
page: 'focusDraw',
title: '方格推理',
desc: '推理出合并方格并连线',
icon: '🧩',
img: '/assets/focusEntrance/grid-reasoning.png',
},
{
id: 'code-connect',
page: 'focusDraw',
title: '译码连线',
desc: '按数字顺序将数字对应颜色连线',
icon: '🔢',
img: '/assets/focusEntrance/code-connect.png',
},
{
id: 'dot-connect',
page: 'focusDraw',
title: '数字点连线',
desc: '按数字顺序连点成图',
icon: '🔗',
img: '/assets/focusEntrance/dot-connect.png',
},
{
id: 'grid-drawing-3x3',
page: 'focusDraw',
title: '格子仿画 3×3',
desc: '简单有趣,培养专注力',
icon: '🎨',
mode: '3x3',
img: '/assets/focusEntrance/grid-drawing-3x3.png',
},
{
id: 'grid-drawing-5x5',
page: 'focusDraw',
title: '格子仿画 5×5',
desc: '创意挑战,提升观察力',
icon: '🎨',
mode: '5x5',
img: '/assets/focusEntrance/grid-drawing-5x5.png',
},
{
id: 'grid-drawing-7x7',
page: 'focusDraw',
title: '格子仿画 7×7',
desc: '大师挑战,锻炼耐心',
icon: '🎨',
mode: '7x7',
img: '/assets/focusEntrance/grid-drawing-7x7.png',
},
];
+217 -5
View File
@@ -1,5 +1,217 @@
/**
* 桥接文件 - 保持向后兼容
* 实际数据已迁移到 core/data/worksheets.ts
*/
export { MATH_FUNCTION_TYPES, type MathFunctionType } from '../core/data/worksheets';
export interface MathFunctionType {
id: string;
page?: string;
title: string;
desc: string;
icon?: string;
img?: string;
}
export const MATH_FUNCTION_TYPES: MathFunctionType[] = [
{
id: 'number-find',
page: 'mathDraw',
title: '找数字,涂一涂',
desc: '在数字方阵中找出目标数字并涂色',
img: '/assets/mathEntrance/number-find.png',
},
{
id: 'number-write',
page: 'mathDraw',
title: '看数字,写一写',
desc: '按笔画顺序练习书写数字',
img: '/assets/mathEntrance/number-write.png',
},
{
id: 'number-coloring',
page: 'mathDraw',
title: '按数字,涂颜色',
desc: '按指定数字给对应圆圈涂色',
icon: '🎨',
img: '/assets/mathEntrance/number-coloring.png',
},
{
id: 'counting-matching',
page: 'mathDraw',
title: '数一数,连一连',
desc: '连线配对数字和对应数量图形',
icon: '🔗',
img: '/assets/mathEntrance/count-match.png',
},
{
id: 'number-object-match',
page: 'mathDraw',
title: '数物连线',
desc: '连线相同数量的物品和数字',
icon: '🔗',
img: '/assets/mathEntrance/number-object-match.png',
},
{
id: 'number-object-fill',
page: 'mathDraw',
title: '数物填写',
desc: '数物品数量,填写对应数字',
icon: '✏️',
img: '/assets/mathEntrance/number-object-fill.png',
},
{
id: 'counting-select',
page: 'mathDraw',
title: '数一数,选一选',
desc: '数出物品数量,圈出正确答案',
icon: '✓',
img: '/assets/mathEntrance/counting-select.png',
},
{
id: 'counting-fill',
page: 'mathDraw',
title: '数一数,填一填',
desc: '数出物品数量,填写数字',
icon: '✏️',
img: '/assets/mathEntrance/counting-fill.png',
},
{
id: 'compare',
page: 'mathDraw',
title: '数一数,比大小',
desc: '比较数量,填入 ><=',
icon: '⚖️',
img: '/assets/mathEntrance/compare.png',
},
{
id: 'number-sort',
page: 'mathDraw',
title: '数字排序',
desc: '写出正确的数字顺序',
icon: '🔢',
img: '/assets/mathEntrance/number-sort.png',
},
{
id: 'missing-number',
page: 'mathDraw',
title: '填上缺少的数字',
desc: '在数列中找出并填写缺失数字',
icon: '❓',
img: '/assets/mathEntrance/missing-number.png',
},
{
id: 'number-decompose',
page: 'mathDraw',
title: '10以内数的分与合',
desc: '把数字分一分,合一合',
icon: '🔢',
img: '/assets/mathEntrance/number-decompose.png',
},
{
id: 'number-decompose-20',
page: 'mathDraw',
title: '20以内数的分与合',
desc: '把数字分一分,合一合',
icon: '🔢',
img: '/assets/mathEntrance/number-decompose-20.png',
},
{
id: 'one-digit-addition',
page: 'mathDraw',
title: '一位数加法',
desc: '通过圆点学习一位数加法运算',
icon: '',
img: '/assets/mathEntrance/one-digit-addition.png',
},
{
id: 'addition-5',
page: 'mathDraw',
title: '5以内加法',
desc: '图形化展示 5 以内加法',
icon: '',
img: '/assets/mathEntrance/addition-5.png',
},
{
id: 'addition-10',
page: 'mathDraw',
title: '10以内加法',
desc: '图形化展示 10 以内加法',
icon: '',
img: '/assets/mathEntrance/addition-10.png',
},
{
id: 'subtraction-10',
page: 'mathDraw',
title: '10以内减法',
desc: '图形化展示 10 以内减法',
icon: '',
img: '/assets/mathEntrance/subtraction-10.png',
},
{
id: 'addition-subtraction-10',
page: 'mathDraw',
title: '10以内加减法',
desc: '加减法混合运算',
icon: '±',
img: '/assets/mathEntrance/addition-subtraction-10.png',
},
{
id: 'make-ten',
page: 'mathDraw',
title: '凑十法练习',
desc: '20 以内进位加法',
icon: '',
img: '/assets/mathEntrance/make-ten.png',
},
{
id: 'break-ten',
page: 'mathDraw',
title: '破十法练习',
desc: '20 以内退位减法',
icon: '',
img: '/assets/mathEntrance/break-ten.png',
},
{
id: 'flat-ten',
page: 'mathDraw',
title: '平十法练习',
desc: '20 以内退位减法',
icon: '',
img: '/assets/mathEntrance/flat-ten.png',
},
{
id: 'borrow-ten',
page: 'mathDraw',
title: '借十法练习',
desc: '20 以上退位减法',
icon: '',
img: '/assets/mathEntrance/borrow-ten.png',
},
{
id: 'practice-addition',
page: 'mathDraw',
title: '加法运算',
desc: '10/20/50/100 以内加法',
icon: '',
img: '/assets/mathEntrance/practice-addition.png',
},
{
id: 'practice-subtraction',
page: 'mathDraw',
title: '减法运算',
desc: '10/20/50/100 以内减法',
icon: '',
img: '/assets/mathEntrance/practice-subtraction.png',
},
{
id: 'practice-mixed',
page: 'mathDraw',
title: '混合运算',
desc: '10/20/50/100 以内加减法混合',
icon: '±',
img: '/assets/mathEntrance/practice-mixed.png',
},
{
id: 'multiplication-table',
page: 'mathDraw',
title: '九九乘法表',
desc: '学习九九乘法口诀',
icon: '✖️',
img: '/assets/mathEntrance/multiplication-table.png',
},
];