feat: remove Learning module

This commit is contained in:
inman
2026-09-04 12:01:42 +08:00
parent bdc290c2cf
commit bd0873f348
39 changed files with 104 additions and 2278 deletions

View File

@@ -1,10 +1,10 @@
import type { LucideIcon } from 'lucide-react';
import { Bot, Code2, Paintbrush, Sigma } from 'lucide-react';
import { Bot, Code2, Paintbrush } from 'lucide-react';
import type { ModuleAccess, ModuleAccessKey } from '../../shared/module-access';
export const AI_MODULE_SELECTION_PATH = '/module-select';
export type AiModuleId = 'programming' | 'painting' | 'learning' | 'robot';
export type AiModuleId = 'programming' | 'painting' | 'robot';
export type AiModuleDefinition = {
id: AiModuleId;
@@ -36,15 +36,6 @@ export const aiModules: readonly AiModuleDefinition[] = [
enabled: true,
Icon: Paintbrush,
},
{
id: 'learning',
title: 'Makelore Learning',
subtitle: 'AI 学习',
description: '用顶尖的方法解锁万物规律',
route: '/learning',
enabled: true,
Icon: Sigma,
},
{
id: 'robot',
title: 'Makelore Robot',
@@ -60,7 +51,6 @@ export const aiModules: readonly AiModuleDefinition[] = [
const moduleAccessKeyById: Record<AiModuleId, ModuleAccessKey> = {
programming: 'programming',
painting: 'design',
learning: 'learning',
robot: 'robot',
};
@@ -113,9 +103,6 @@ export function getGuardedAiModuleForPath(pathname: string): AiModuleId | null {
if (pathname === '/ai-hardware' || pathname.startsWith('/ai-hardware/')) {
return 'robot';
}
if (pathname === '/learning' || pathname.startsWith('/learning/')) {
return 'learning';
}
if (PROGRAMMING_ROUTE_PREFIXES.some((route) => matchesRoute(pathname, route))) {
return 'programming';
}