Skip to content

Commit

Permalink
feat: add model template routes
Browse files Browse the repository at this point in the history
  • Loading branch information
DPS0340 committed Dec 13, 2022
1 parent 6a24ec8 commit d0d2721
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/constants/routes.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import SearchIcon from '@mui/icons-material/Search';
import CloudQueueIcon from '@mui/icons-material/CloudQueue';
import LibraryBooksIcon from '@mui/icons-material/LibraryBooks';
import GitHubIcon from '@mui/icons-material/GitHub';
import CodeIcon from '@mui/icons-material/Code';
import IRouterDatum from '../interfaces/router';
import Home from '../pages/home';
import Login from '../pages/login';
Expand Down Expand Up @@ -40,6 +41,7 @@ import { Registries } from '../pages/registries';
import { CreateRegistry } from '../pages/registries/create';
import { GitHub } from '../pages/github';
import { ApiDocs } from '../pages/api-docs';
import { ModelTemplate } from '../pages/model-template';

const routes: IRouterDatum[] = [
{
Expand Down Expand Up @@ -230,6 +232,13 @@ const routes: IRouterDatum[] = [
page: Tracing,
for: ['Owner', 'Admin', 'User'],
},
{
uri: '/model-template',
name: 'Model Template',
icon: <CodeIcon fontSize="large" />,
page: ModelTemplate,
for: ['Owner', 'Admin', 'User'],
},
{
uri: '/api-docs',
name: 'API Docs',
Expand Down
9 changes: 9 additions & 0 deletions src/pages/model-template/index.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
import { useEffect } from 'react';

export const ModelTemplate = () => {
useEffect(() => {
window.location.replace('https://github.com/so1s/so1s-model-template');
}, []);

return <></>;
};

0 comments on commit d0d2721

Please sign in to comment.