-
Notifications
You must be signed in to change notification settings - Fork 155
Expand file tree
/
Copy pathcore.js
More file actions
82 lines (79 loc) · 1.78 KB
/
core.js
File metadata and controls
82 lines (79 loc) · 1.78 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
import { lazy } from 'react'
import {
LayoutDashboard,
Settings,
Puzzle,
Activity,
Box,
Network,
} from 'lucide-react'
const Dashboard = lazy(() => import('../pages/Dashboard'))
const SettingsPage = lazy(() => import('../pages/Settings'))
const Extensions = lazy(() => import('../pages/Extensions'))
const GPUMonitor = lazy(() => import('../pages/GPUMonitor'))
const Models = lazy(() => import('../pages/Models'))
const ServiceMap = lazy(() => import('../pages/ServiceMap'))
export const coreRoutes = [
{
id: 'dashboard',
path: '/',
label: 'Dashboard',
icon: LayoutDashboard,
component: Dashboard,
getProps: ({ status, loading }) => ({ status, loading }),
sidebar: true,
order: 0,
},
{
id: 'gpu-monitor',
path: '/gpu',
label: 'GPU Monitor',
icon: Activity,
component: GPUMonitor,
getProps: () => ({}),
// Route is always registered; sidebar entry only appears on multi-GPU systems
sidebar: ({ status }) => (status?.gpu?.gpu_count || 1) > 1,
order: 1,
},
{
id: 'extensions',
path: '/extensions',
label: 'Extensions',
icon: Puzzle,
component: Extensions,
getProps: () => ({}),
sidebar: true,
order: 2,
},
{
id: 'integrations',
path: '/extensions/integrations',
label: 'Integrations',
icon: Network,
component: ServiceMap,
getProps: () => ({}),
sidebar: true,
order: 2.1,
},
{
id: 'models',
path: '/models',
label: 'Models',
icon: Box,
component: Models,
getProps: () => ({}),
sidebar: true,
order: 3,
},
{
id: 'settings',
path: '/settings',
label: 'Settings',
icon: Settings,
component: SettingsPage,
getProps: () => ({}),
sidebar: true,
order: 99,
},
]
export const coreExternalLinks = []