Skip to content

Commit

Permalink
Removed all unused routes (#50) (#44)
Browse files Browse the repository at this point in the history
  • Loading branch information
Omarley7 authored Apr 22, 2023
1 parent 23330ad commit 4aac6f7
Show file tree
Hide file tree
Showing 22 changed files with 18 additions and 466 deletions.
1 change: 0 additions & 1 deletion .github/workflows/server.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ on:
jobs:
test:
runs-on: ubuntu-latest
continue-on-error: true
steps:
- name: Checkout
uses: actions/checkout@v3
Expand Down
3 changes: 2 additions & 1 deletion client/script/test.bash
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
#!/bin/bash
printf "\n\n################ Testing in progress ################"
printf "\n################ Running Jest ################\n"
export PATH="$(yarn bin):$PATH"
PATH="$(yarn bin):$PATH"
export PATH
jest .

# { { yarn start 2>&3 || [ $? -eq 137 ]; } 3>&2 2>/dev/null & } <-- Does not work. Trying to only suppress error 137.
Expand Down
78 changes: 0 additions & 78 deletions client/src/components/Chart.tsx

This file was deleted.

67 changes: 0 additions & 67 deletions client/src/components/RecentRuns.tsx

This file was deleted.

27 changes: 0 additions & 27 deletions client/src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,8 @@ import { createBrowserRouter, RouterProvider } from 'react-router-dom';
import ReactDOM from 'react-dom/client';
import WorkBench from 'route/workbench/Workbench';
import AppProvider from 'AppProvider';
import Dashboard from './route/dashboard/Dashboard';
import Library from './route/library/Library';
import DigitalTwins from './route/digitaltwins/DigitalTwins';
import ScenarioAnalysis from './route/scenarioAnalysis/ScenarioAnalysis';
import DTHistory from './route/history/History';
import SignIn from './route/auth/Signin';
import Account from './route/auth/Account';

Expand All @@ -20,14 +17,6 @@ const router = createBrowserRouter([
path: '/',
element: <SignIn />,
},
{
path: 'dashboard',
element: (
<PrivateRoute>
<Dashboard />
</PrivateRoute>
),
},
{
path: 'library',
element: (
Expand All @@ -44,22 +33,6 @@ const router = createBrowserRouter([
</PrivateRoute>
),
},
{
path: 'sanalysis',
element: (
<PrivateRoute>
<ScenarioAnalysis />
</PrivateRoute>
),
},
{
path: 'history',
element: (
<PrivateRoute>
<DTHistory />
</PrivateRoute>
),
},
{
path: 'account',
element: (
Expand Down
11 changes: 0 additions & 11 deletions client/src/page/MenuItems.tsx
Original file line number Diff line number Diff line change
@@ -1,12 +1,9 @@
import * as React from 'react';
import ListItemButton from '@mui/material/ListItemButton';
import ListItemIcon from '@mui/material/ListItemIcon';
import DashboardIcon from '@mui/icons-material/Dashboard';
import ExtensionIcon from '@mui/icons-material/Extension';
import PeopleIcon from '@mui/icons-material/People';
import HistoryIcon from '@mui/icons-material/History';
import EngineeringIcon from '@mui/icons-material/Engineering';
import QuestionMarkIcon from '@mui/icons-material/QuestionMark';
import { Link } from 'react-router-dom';

const tolinkStyle = {
Expand All @@ -24,21 +21,13 @@ interface MenuItemEntry {
}

const menuItems: MenuItemEntry[] = [
{ index: 0, name: 'Dashboard', icon: <DashboardIcon />, link: '/dashboard' },
{ index: 1, name: 'Library', icon: <ExtensionIcon />, link: '/library' },
{
index: 2,
name: 'Digital Twins',
icon: <PeopleIcon />,
link: '/digitaltwins',
},
{
index: 3,
name: 'Scenario Analysis',
icon: <QuestionMarkIcon />,
link: '/sanalysis',
},
{ index: 4, name: 'History', icon: <HistoryIcon />, link: '/history' },
{
index: 5,
name: 'Workbench',
Expand Down
2 changes: 1 addition & 1 deletion client/src/route/auth/Signin.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ function SignIn() {
const handleSubmit = (event: React.FormEvent<HTMLFormElement>) => {
event.preventDefault();
logIn();
navigate('/dashboard');
navigate('/library');
};

return (
Expand Down
34 changes: 0 additions & 34 deletions client/src/route/dashboard/Dashboard.tsx

This file was deleted.

27 changes: 0 additions & 27 deletions client/src/route/history/History.tsx

This file was deleted.

31 changes: 0 additions & 31 deletions client/src/route/history/Logs.tsx

This file was deleted.

23 changes: 0 additions & 23 deletions client/src/route/scenarioAnalysis/ScenarioAnalysis.tsx

This file was deleted.

18 changes: 0 additions & 18 deletions client/src/route/scenarioAnalysis/ScenarioAnalysisTabData.ts

This file was deleted.

Loading

0 comments on commit 4aac6f7

Please sign in to comment.