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

@@ -42,8 +42,6 @@ const Settings = lazy(() => import('./pages/Settings').then(({ Settings: compone
const Setup = lazy(() => import('./pages/Setup').then(({ Setup: component }) => ({ default: component })));
const Login = lazy(() => import('./pages/Login').then(({ Login: component }) => ({ default: component })));
const ModuleSelection = lazy(() => import('./pages/ModuleSelection').then(({ ModuleSelection: component }) => ({ default: component })));
const Learning = lazy(() => import('./pages/Learning').then(({ Learning: component }) => ({ default: component })));
const LearningProjectDetail = lazy(() => import('./pages/Learning/ProjectDetail').then(({ LearningProjectDetail: component }) => ({ default: component })));
/**
* Error Boundary to catch and display React rendering errors
@@ -129,7 +127,6 @@ function moduleForPath(pathname: string): DesktopActivityModule | null {
const module = getGuardedAiModuleForPath(pathname);
if (module === 'programming') return 'programming';
if (module === 'painting') return 'painting';
if (module === 'learning') return 'learning';
if (module === 'robot') return 'robot';
return null;
}
@@ -457,8 +454,6 @@ function App() {
<Route path="/image-canvas" element={<ImageCanvas />} />
<Route path="/image-prompts" element={<ImagePromptMuseum />} />
<Route path="/ai-hardware" element={<AiHardware />} />
<Route path="/learning" element={<Learning />} />
<Route path="/learning/project/:projectId" element={<LearningProjectDetail />} />
<Route path="/workbench/:projectId" element={<Workbench />} />
<Route path="/models" element={<Models />} />
<Route path="/settings/*" element={<Settings />} />