Skip to content
Snippets Groups Projects
Select Git revision
  • master default protected
  • L2SS-1914-fix_job_dispatch
  • TMSS-3170
  • TMSS-3167
  • TMSS-3161
  • TMSS-3158-Front-End-Only-Allow-Changing-Again
  • TMSS-3133
  • TMSS-3319-Fix-Templates
  • test-fix-deploy
  • TMSS-3134
  • TMSS-2872
  • defer-state
  • add-custom-monitoring-points
  • TMSS-3101-Front-End-Only
  • TMSS-984-choices
  • SDC-1400-Front-End-Only
  • TMSS-3079-PII
  • TMSS-2936
  • check-for-max-244-subbands
  • TMSS-2927---Front-End-Only-PXII
  • Before-Remove-TMSS
  • LOFAR-Release-4_4_318 protected
  • LOFAR-Release-4_4_317 protected
  • LOFAR-Release-4_4_316 protected
  • LOFAR-Release-4_4_315 protected
  • LOFAR-Release-4_4_314 protected
  • LOFAR-Release-4_4_313 protected
  • LOFAR-Release-4_4_312 protected
  • LOFAR-Release-4_4_311 protected
  • LOFAR-Release-4_4_310 protected
  • LOFAR-Release-4_4_309 protected
  • LOFAR-Release-4_4_308 protected
  • LOFAR-Release-4_4_307 protected
  • LOFAR-Release-4_4_306 protected
  • LOFAR-Release-4_4_304 protected
  • LOFAR-Release-4_4_303 protected
  • LOFAR-Release-4_4_302 protected
  • LOFAR-Release-4_4_301 protected
  • LOFAR-Release-4_4_300 protected
  • LOFAR-Release-4_4_299 protected
40 results

index.js

Blame
  • Code owners
    Assign users and groups as approvers for specific file changes. Learn more.
    index.js 4.78 KiB
    import React from 'react';
    import {
        Route,
        Switch,
        // Redirect,
    } from 'react-router-dom';
    
    import {NotFound} from '../layout/components/NotFound';
    import {ProjectList, ProjectCreate, ProjectView, ProjectEdit} from './Project';
    import {Dashboard} from './Dashboard';
    import {Scheduling} from './Scheduling';
    import {TaskEdit, TaskView, DataProduct} from './Task';
    import ViewSchedulingUnit from './Scheduling/ViewSchedulingUnit'
    import SchedulingUnitCreate from './Scheduling/create';
    import EditSchedulingUnit from './Scheduling/edit';
    import { CycleList, CycleCreate, CycleView, CycleEdit } from './Cycle';
    import {ReservationList, TimelineView, WeekTimelineView} from './Timeline';
    import SchedulingSetCreate from './Scheduling/create.scheduleset';
    import Workflow from './Workflow';
    
    
    
    export const routes = [
        {
            path: "/not-found",
            component: NotFound,
        },{
            path: "/dashboard",
            component: Dashboard,
            name: 'Dashboard',
            title: 'Dashboard'
        },{
            path: "/schedulingunit",
            component: Scheduling,
            name: 'Scheduling Unit',
            title: 'Scheduling Unit - List'
        },{
            path: "/schedulingunit/create",
            component: SchedulingUnitCreate,
            name: 'Scheduling Unit Add',
            title: 'Scheduling Unit - Add'
        },{
            path: "/task",
            component: TaskView,
            name: 'Task',
            title: 'Task-View'
        },{
            path: "/task/view",
            component: TaskView,
            name: 'Task',
            title: 'Task View'
        },{
            path: "/task/view/:type/:id",
            component: TaskView,
            name: 'Task Details',
            title: 'Task Details'
        },{
            path: "/task/edit",
            component: TaskEdit,
            name: 'Task Edit',
            title: 'Task-Edit'
        },{
            path: "/schedulingunit/view",
            component: ViewSchedulingUnit,
            name: 'Scheduling View',
            title: 'Scheduling Unit - Details'
        },{
            path: "/schedulingunit/edit/:id",
            component: EditSchedulingUnit,
            name: 'Scheduling Edit',
            title: 'Scheduling Unit - Edit'
        },{
            path: "/schedulingunit/view/:type/:id",
            component: ViewSchedulingUnit,
            name: 'Scheduling View'
        },{
            path: "/project",
            component: ProjectList,
            name: 'Project List',
            title: 'Project - List'
        },{
            path: "/project/create",
            component: ProjectCreate,
            name: 'Project Add',
            title: 'Project - Add'
        },{
            path: "/project/view",
            component: ProjectView,
            name: 'Project View',
            title: 'Project - Details '
        },{
            path: "/project/view/:id",
            component: ProjectView,
            name: 'Project View',
            title: 'Project - View'
        },
        {
            path: "/project/edit/:id",
            component: ProjectEdit,
            name: 'Project Edit',
            title: 'Project Edit'
        },{
            path: "/project/:project/schedulingunit/create",
            component: SchedulingUnitCreate,
            name: 'Scheduling Unit Add',
            title: 'Scheduling Unit - Add'
        },{
            path: "/cycle/edit/:id",
            component: CycleEdit,
            name: 'Cycle Edit',
            title:'Cycle-Edit'
        },{
            path: "/cycle/view",
            component: CycleView,
            name: 'Cycle View',
            title:'Cycle-View'
        },{
            path: "/cycle/view/:id",
            component: CycleView,
            name: 'Cycle View',
            title:'Cycle-View'
        }, {
            path: "/cycle/create",
            component: CycleCreate,
            name: 'Cycle Add',
            title:'Cycle-Add'
        },
        {
            path: "/cycle",
            component: CycleList,
            name: 'Cycle List',
            title:'Cycle-List'
        },
        {
            path: "/su/timelineview",
            component: TimelineView,
            name: 'Scheduling Unit Timeline',
            title:'SU Timeline View'
        },
        {
            path: "/su/timelineview/week",
            component: WeekTimelineView,
            name: 'Scheduling Unit Timeline - Week',
            title:'SU Weekly Timeline View'
        },
        {
            path: "/task/view/blueprint/:id/dataproducts",
            component: DataProduct,
            name: 'Data Product'
        },
        {
            path: "/schedulingset/schedulingunit/create",
            component: SchedulingSetCreate,
            name: 'Scheduling Set Add'
        },
        {
           path: "/schedulingunit/:id/workflow",
           component: Workflow,
           name: 'Workflow',
           title: 'QA Reporting (TO)'
        },
        {
            path: "/su/timelineview/reservation/list",
            component: ReservationList,
            name: 'Reservation List',
            title:'Reservation List'
        },
    ];
    
    export const RoutedContent = () => {
        return (
    	    <Switch>
                {/* <Redirect from="/" to="/" exact /> */}
                {routes.map(routeProps => <Route {...routeProps} exact key={routeProps.path} />)}
            </Switch>
        );
    }