完善客户端模块与工作区能力
This commit is contained in:
@@ -1,9 +1,9 @@
|
||||
import type { LucideIcon } from 'lucide-react';
|
||||
import { Code2, Paintbrush, Sigma } from 'lucide-react';
|
||||
import { Bot, Code2, Paintbrush, Sigma } from 'lucide-react';
|
||||
|
||||
export const AI_MODULE_SELECTION_PATH = '/module-select';
|
||||
|
||||
export type AiModuleId = 'programming' | 'painting' | 'learning';
|
||||
export type AiModuleId = 'programming' | 'painting' | 'learning' | 'robot';
|
||||
|
||||
export type AiModuleDefinition = {
|
||||
id: AiModuleId;
|
||||
@@ -13,6 +13,7 @@ export type AiModuleDefinition = {
|
||||
route: string | null;
|
||||
enabled: boolean;
|
||||
Icon: LucideIcon;
|
||||
switcherLabel?: string;
|
||||
};
|
||||
|
||||
export const aiModules: readonly AiModuleDefinition[] = [
|
||||
@@ -43,6 +44,16 @@ export const aiModules: readonly AiModuleDefinition[] = [
|
||||
enabled: false,
|
||||
Icon: Sigma,
|
||||
},
|
||||
{
|
||||
id: 'robot',
|
||||
title: 'Makelore Robot',
|
||||
subtitle: 'AI 机器',
|
||||
description: '制作你的第一个机器人小伙伴',
|
||||
route: null,
|
||||
enabled: false,
|
||||
Icon: Bot,
|
||||
switcherLabel: 'Robot 机器',
|
||||
},
|
||||
];
|
||||
|
||||
export function getAiModuleForPath(pathname: string): AiModuleId {
|
||||
|
||||
Reference in New Issue
Block a user