Newer
Older
import {
Contribution,
Description,
Notebook,
Results,
Safety,
Team,
import { DescSidebar, SafetySidebar, NoSidebar, EngSide } from "./contents";
import { IBIE, JUDGEH, PRODESC, SUPH, PARTH, ENGH, HOMEH, HPH, SPONH, RESH, ATTH, CONTH, DESCH, EXPH, IMPH, NOTEH, SAFEH, TEAMH } from "./contents";
interface Base {
name: string | undefined;
}
class Folder implements Base {
name: string | undefined;
}
class Page implements Base {
name: string | undefined;
title: string | undefined;
path: string | undefined;
component: React.FC | undefined;
class PageRef implements Base{
name: string | undefined;
title: string | undefined;
path: string | undefined;
component?: React.FC | undefined;
header?: React.FC;
navlist?: React.FC;
}
const Pages: (Page | Folder)[] = [
{
name: "Attributions",
title: "Attributions",
path: "/attributions",
component: Attributions,
header: ATTH,
},
{
name: "Contribution",
title: "Contribution",
path: "/contribution",
component: Contribution,
header: CONTH,
name: "Description",
title: "Project Description",
path: "/description",
component: Description,
header: DESCH,
Liliana Sanfilippo
committed
name: "Engineering",
title: "Engineering",
path: "/engineering",
component: Engineering,
header: ENGH,
{
name: "Example",
title: "Example",
path: "/example",
component: Example,
header: HOMEH,
name: "Experiments",
title: "Experiments",
path: "/experiments",
component: Experiments,
header: EXPH,
},
{
name: "Human Practices",
title: "Human Practices",
path: "/human-practices",
component: HumanPractices,
{
name: "Home",
title: "Bielefeld CeBiTec",
path: "/",
{
name: "Home",
title: "Bielefeld CeBiTec",
path: "/index.html",
{
name: "iGem Bielefeld",
title: "iGem Bielefeld",
path: "/igem-bielefeld",
component: igemBielefeld,
header: IBIE,
navlist: NoSidebar,
},
{
name: "Impressum",
title: undefined,
path: "/impressum",
component: Impressum,
header: IMPH,
{
name: "Judging",
title: "Judging",
path: "/judging",
component: Judging,
header: JUDGEH,
name: "Notebook",
title: "Notebook",
path: "/notebook",
component: Notebook,
header: NOTEH,
name: "Sponsores and Partners",
title: "ponsores and Partners",
path: "/partners",
component: Partners,
header: SPONH,
{
name: "Parts",
title: "Parts",
path: "/parts",
component: Parts,
header: PARTH,
{
name: "Project Documentation",
title: "Project Documentation",
path: "/project-documentation",
component: ProDesc,
header: PRODESC,
navlist: NoSidebar
},
{
name: "Results",
title: "Results",
path: "/results",
component: Results,
header: RESH,
Liliana Sanfilippo
committed
name: "Biosafety",
title: "Biosafety",
path: "/safety",
component: Safety,
header: SAFEH,
Liliana Sanfilippo
committed
name: "Roster",
title: "Roster",
path: "/team",
component: Team,
header: TEAMH,
export const NavPages: (Page | PageRef | Folder)[] = [
{
name: "Home",
title: "Bielefeld CeBiTec",
path: "/",
component: Home,
header: HOMEH,
{
name: "Team",
folder: [
{
Liliana Sanfilippo
committed
name: "Roster",
title: "Roster",
path: "/team",
component: Team,
header: TEAMH,
},
{
name: "Attributions",
title: "Attributions",
path: "/attributions",
component: Attributions,
header: ATTH,
},
name: "Sponsores and Partners",
title: "Sponsores and Partners",
path: "/partners",
component: Partners,
header: SPONH,
name: "iGem Bielefeld",
title: "iGem Bielefeld",
path: "/igem-bielefeld",
component: igemBielefeld,
header: IBIE,
navlist: NoSidebar,
],
},
{
name: "Project",
folder: [
{
name: "Description",
title: "Project Description",
path: "/description",
component: Description,
header: DESCH,
},
Liliana Sanfilippo
committed
name: "Engineering",
title: "Engineering",
path: "/engineering",
component: Engineering,
header: ENGH,
navlist: EngSide ,
},
{
Liliana Sanfilippo
committed
title: "Biosafety",
path: "/safety",
component: Safety,
header: SAFEH,
navlist: SafetySidebar,
},
{
name: "Project Documentation",
title: "Project Documentation",
path: "/project-documentation",
component: ProDesc,
header: PRODESC,
navlist: NoSidebar
},
],
},
{
name: "Lab",
folder: [
{
name: "Experiments",
title: "Experiments",
path: "/experiments",
component: Experiments,
header: EXPH,
navlist: NoSidebar,
},
{
name: "Materials and Methods",
title: "Supplementary",
path: "/materials-methods",
component: Supplementary,
header: SUPH,
navlist: NoSidebar,
},
{
name: "Results",
title: "Results",
path: "/results",
component: Results,
header: RESH,
{
name: "Parts",
title: "Parts",
path: "/parts",
component: Parts,
header: PARTH,
title: "Notebook",
path: "/notebook",
component: Notebook,
header: NOTEH,
},
},
{
name: "Human Practices",
{
name: "Introduction",
title: "Introduction",
path: "/human-practices?tab=intro"
},
{
name: "Integrated Human Practices",
title: "Integrated Human Practices",
path: "/human-practices",
component: HumanPractices,
header: HPH,
name: "Feedback and Implementation",
title: "Feedback and Implementation",
path: "/human-practices?tab=feedback"
},
{
name: "Public Engagement",
title: "Education and Outreach",
path: "/human-practices?tab=public"
},
{
name: "Education",
title: "Education and Outreach",
path: "/human-practices?tab=edu"
},
{
name: "Collaboration",
title: "Collaboration",
path: "/human-practices?tab=collabs"
},
{
name: "Partnerships",
title: "Partnerships",
path: "/human-practices?tab=ships"
},
},
{
name: "Judging",
folder: [
{
name: "Overview",
title: "Judging",
Liliana Sanfilippo
committed
path: "/judging?tab=overview",
},
{
name: "Best New Part",
title: "Judging",
path: "/judging?tab=newpart",
},
{
name: "Safety & Security",
title: "Judging",
path: "/judging?tab=safety",
},
{
name: "Best Integrated Human Practice",
title: "Judging",
path: "/judging?tab=ihp",
},
]
},
{
name: "Contribution",
folder: [
{
name: "Contribution",
title: "Contribution",
path: "/contribution",
component: Contribution,
header: CONTH,
},
{
name: "BFH European MeetUp",
title: "MeetUp",
path: "contribution/?tab=bfh"
]
},
];