RWKV-Runner/frontend/src/pages/index.tsx

87 lines
1.7 KiB
TypeScript
Raw Normal View History

2023-05-22 02:52:06 +00:00
import { ReactElement } from 'react';
import { Configs } from './Configs';
2023-05-04 15:55:24 +00:00
import {
2023-05-20 05:46:33 +00:00
ArrowDownload20Regular,
Chat20Regular,
DataUsageSettings20Regular,
DocumentSettings20Regular,
Home20Regular,
Info20Regular,
Settings20Regular,
Storage20Regular
2023-05-04 15:55:24 +00:00
} from '@fluentui/react-icons';
2023-05-22 02:52:06 +00:00
import { Home } from './Home';
import { Chat } from './Chat';
import { Models } from './Models';
import { Train } from './Train';
import { Settings } from './Settings';
import { About } from './About';
import { Downloads } from './Downloads';
2023-05-04 15:55:24 +00:00
type NavigationItem = {
2023-05-20 05:46:33 +00:00
label: string;
path: string;
icon: ReactElement;
element: ReactElement;
top: boolean;
2023-05-04 15:55:24 +00:00
};
export const pages: NavigationItem[] = [
2023-05-20 05:46:33 +00:00
{
label: 'Home',
path: '/',
2023-05-22 02:52:06 +00:00
icon: <Home20Regular />,
element: <Home />,
2023-05-20 05:46:33 +00:00
top: true
},
{
label: 'Chat',
path: '/chat',
2023-05-22 02:52:06 +00:00
icon: <Chat20Regular />,
element: <Chat />,
2023-05-20 05:46:33 +00:00
top: true
},
{
label: 'Configs',
path: '/configs',
2023-05-22 02:52:06 +00:00
icon: <DocumentSettings20Regular />,
element: <Configs />,
2023-05-20 05:46:33 +00:00
top: true
},
{
label: 'Models',
path: '/models',
2023-05-22 02:52:06 +00:00
icon: <DataUsageSettings20Regular />,
element: <Models />,
2023-05-20 05:46:33 +00:00
top: true
},
{
label: 'Downloads',
path: '/downloads',
2023-05-22 02:52:06 +00:00
icon: <ArrowDownload20Regular />,
element: <Downloads />,
2023-05-20 05:46:33 +00:00
top: true
},
{
label: 'Train',
path: '/train',
2023-05-22 02:52:06 +00:00
icon: <Storage20Regular />,
element: <Train />,
2023-05-20 05:46:33 +00:00
top: true
},
{
label: 'Settings',
path: '/settings',
2023-05-22 02:52:06 +00:00
icon: <Settings20Regular />,
element: <Settings />,
2023-05-20 05:46:33 +00:00
top: false
},
{
label: 'About',
path: '/about',
2023-05-22 02:52:06 +00:00
icon: <Info20Regular />,
element: <About />,
2023-05-20 05:46:33 +00:00
top: false
}
2023-05-04 15:55:24 +00:00
];