-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
update after npm run prettier:format
- Loading branch information
Showing
16 changed files
with
559 additions
and
548 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,19 @@ | ||
<!doctype html> | ||
<html lang="en"> | ||
|
||
<head> | ||
<meta charset="UTF-8" /> | ||
<link rel="icon" type="image/x-icon" href="/favicon.ico" /> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> | ||
<link rel="manifest" href="/webmanifest.json" /> | ||
<!-- Runtime environment variables --> | ||
<!-- With Vite, type must be text/javascript, see: | ||
<head> | ||
<meta charset="UTF-8" /> | ||
<link rel="icon" type="image/x-icon" href="/favicon.ico" /> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> | ||
<link rel="manifest" href="/webmanifest.json" /> | ||
<!-- Runtime environment variables --> | ||
<!-- With Vite, type must be text/javascript, see: | ||
https://stackoverflow.com/questions/70617812/change-environmet-variables-at-runtime-react-vite-with-docker-and-nginx--> | ||
<script type="text/javascript" src="/config.js"></script> | ||
<title>FTA/FMEA Analysis</title> | ||
</head> | ||
|
||
<body style="margin: 0"> | ||
<div id="root"></div> | ||
<script type="module" src="/src/index.tsx"></script> | ||
</body> | ||
<script type="text/javascript" src="/config.js"></script> | ||
<title>FTA/FMEA Analysis</title> | ||
</head> | ||
|
||
</html> | ||
<body style="margin: 0"> | ||
<div id="root"></div> | ||
<script type="module" src="/src/index.tsx"></script> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,13 @@ | ||
import * as React from 'react'; | ||
import DashboardContentProvider from '@hooks/DashboardContentProvider'; | ||
import DashboardContent from '@components/dashboard/content/DashboardContent'; | ||
import * as React from "react"; | ||
import DashboardContentProvider from "@hooks/DashboardContentProvider"; | ||
import DashboardContent from "@components/dashboard/content/DashboardContent"; | ||
|
||
const Dashboard = () => { | ||
return ( | ||
<DashboardContentProvider> | ||
<DashboardContent /> | ||
</DashboardContentProvider> | ||
); | ||
return ( | ||
<DashboardContentProvider> | ||
<DashboardContent /> | ||
</DashboardContentProvider> | ||
); | ||
}; | ||
|
||
export default Dashboard; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,32 +1,35 @@ | ||
import React, { useState } from 'react'; | ||
import DashboardContentProvider from '@hooks/DashboardContentProvider'; | ||
import { Box, Button, Divider, Typography } from '@mui/material'; | ||
import DashboardFailureModesTableList from '@components/dashboard/content/list/DashboardFailureModesTableList'; | ||
import FailureModesTableAggregateDialog from '@components/dialog/failureModesTable/aggregate/FailureModesTableAggregateDialog'; | ||
import React, { useState } from "react"; | ||
import DashboardContentProvider from "@hooks/DashboardContentProvider"; | ||
import { Box, Button, Divider, Typography } from "@mui/material"; | ||
import DashboardFailureModesTableList from "@components/dashboard/content/list/DashboardFailureModesTableList"; | ||
import FailureModesTableAggregateDialog from "@components/dialog/failureModesTable/aggregate/FailureModesTableAggregateDialog"; | ||
|
||
const FmeaOverview = () => { | ||
const [createFmeaAggregateDialogOpen, setCreateFmeaAggregateDialogOpen] = useState<boolean>(false); | ||
const [createFmeaAggregateDialogOpen, setCreateFmeaAggregateDialogOpen] = useState<boolean>(false); | ||
|
||
const handleDialogOpen = () => { | ||
setCreateFmeaAggregateDialogOpen(true); | ||
}; | ||
const handleDialogOpen = () => { | ||
setCreateFmeaAggregateDialogOpen(true); | ||
}; | ||
|
||
return ( | ||
<DashboardContentProvider> | ||
<Box marginTop={3} marginLeft={2} marginRight={2}> | ||
{/* TODO: Add to sep. component */} | ||
<Box display='flex' flexDirection='row' justifyContent='space-between'> | ||
<Typography variant='h5'>Fault Trees</Typography> | ||
<Button variant='contained' onClick={handleDialogOpen}> | ||
New fmea worksheet | ||
</Button> | ||
</Box> | ||
return ( | ||
<DashboardContentProvider> | ||
<Box marginTop={3} marginLeft={2} marginRight={2}> | ||
{/* TODO: Add to sep. component */} | ||
<Box display="flex" flexDirection="row" justifyContent="space-between"> | ||
<Typography variant="h5">Fault Trees</Typography> | ||
<Button variant="contained" onClick={handleDialogOpen}> | ||
New fmea worksheet | ||
</Button> | ||
</Box> | ||
|
||
<DashboardFailureModesTableList /> | ||
<FailureModesTableAggregateDialog open={createFmeaAggregateDialogOpen} onClose={() => setCreateFmeaAggregateDialogOpen(false)} /> | ||
</Box> | ||
</DashboardContentProvider> | ||
); | ||
<DashboardFailureModesTableList /> | ||
<FailureModesTableAggregateDialog | ||
open={createFmeaAggregateDialogOpen} | ||
onClose={() => setCreateFmeaAggregateDialogOpen(false)} | ||
/> | ||
</Box> | ||
</DashboardContentProvider> | ||
); | ||
}; | ||
|
||
export default FmeaOverview; |
Oops, something went wrong.