feat: add Makelore Robot hardware module
This commit is contained in:
@@ -49,8 +49,8 @@ export const aiModules: readonly AiModuleDefinition[] = [
|
||||
title: 'Makelore Robot',
|
||||
subtitle: 'AI 机器',
|
||||
description: '制作你的第一个机器人小伙伴',
|
||||
route: null,
|
||||
enabled: false,
|
||||
route: '/ai-hardware',
|
||||
enabled: true,
|
||||
Icon: Bot,
|
||||
switcherLabel: 'Robot 机器',
|
||||
},
|
||||
@@ -60,5 +60,8 @@ export function getAiModuleForPath(pathname: string): AiModuleId {
|
||||
if (pathname === '/image-canvas' || pathname.startsWith('/image-canvas/')) {
|
||||
return 'painting';
|
||||
}
|
||||
if (pathname === '/ai-hardware' || pathname.startsWith('/ai-hardware/')) {
|
||||
return 'robot';
|
||||
}
|
||||
return 'programming';
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user