aboutsummaryrefslogtreecommitdiffstats
path: root/subprojects/frontend/src/App.tsx
diff options
context:
space:
mode:
authorLibravatar Kristóf Marussy <kristof@marussy.com>2022-08-12 19:54:46 +0200
committerLibravatar Kristóf Marussy <kristof@marussy.com>2022-08-12 19:54:46 +0200
commitd22c3b0c257f5daf5b401988a35ab9ce981a2341 (patch)
tree0a661c927c37b52197326d1c05e211daf9bd19e5 /subprojects/frontend/src/App.tsx
parentfix(language): rule parsing test (diff)
downloadrefinery-d22c3b0c257f5daf5b401988a35ab9ce981a2341.tar.gz
refinery-d22c3b0c257f5daf5b401988a35ab9ce981a2341.tar.zst
refinery-d22c3b0c257f5daf5b401988a35ab9ce981a2341.zip
refactor(frontend): move from Webpack to Vite
Also overhaulds the building and linting for frontend assets.
Diffstat (limited to 'subprojects/frontend/src/App.tsx')
-rw-r--r--subprojects/frontend/src/App.tsx33
1 files changed, 9 insertions, 24 deletions
diff --git a/subprojects/frontend/src/App.tsx b/subprojects/frontend/src/App.tsx
index 54f92f9a..d3ec63eb 100644
--- a/subprojects/frontend/src/App.tsx
+++ b/subprojects/frontend/src/App.tsx
@@ -1,26 +1,19 @@
1import MenuIcon from '@mui/icons-material/Menu';
1import AppBar from '@mui/material/AppBar'; 2import AppBar from '@mui/material/AppBar';
2import Box from '@mui/material/Box'; 3import Box from '@mui/material/Box';
3import IconButton from '@mui/material/IconButton'; 4import IconButton from '@mui/material/IconButton';
4import Toolbar from '@mui/material/Toolbar'; 5import Toolbar from '@mui/material/Toolbar';
5import Typography from '@mui/material/Typography'; 6import Typography from '@mui/material/Typography';
6import MenuIcon from '@mui/icons-material/Menu';
7import React from 'react'; 7import React from 'react';
8 8
9import { EditorArea } from './editor/EditorArea'; 9import EditorArea from './editor/EditorArea';
10import { EditorButtons } from './editor/EditorButtons'; 10import EditorButtons from './editor/EditorButtons';
11import { GenerateButton } from './editor/GenerateButton'; 11import GenerateButton from './editor/GenerateButton';
12 12
13export function App(): JSX.Element { 13export default function App(): JSX.Element {
14 return ( 14 return (
15 <Box 15 <Box display="flex" flexDirection="column" sx={{ height: '100vh' }}>
16 display="flex" 16 <AppBar position="static" color="inherit">
17 flexDirection="column"
18 sx={{ height: '100vh' }}
19 >
20 <AppBar
21 position="static"
22 color="inherit"
23 >
24 <Toolbar> 17 <Toolbar>
25 <IconButton 18 <IconButton
26 edge="start" 19 edge="start"
@@ -30,11 +23,7 @@ export function App(): JSX.Element {
30 > 23 >
31 <MenuIcon /> 24 <MenuIcon />
32 </IconButton> 25 </IconButton>
33 <Typography 26 <Typography variant="h6" component="h1" flexGrow={1}>
34 variant="h6"
35 component="h1"
36 flexGrow={1}
37 >
38 Refinery 27 Refinery
39 </Typography> 28 </Typography>
40 </Toolbar> 29 </Toolbar>
@@ -48,11 +37,7 @@ export function App(): JSX.Element {
48 <EditorButtons /> 37 <EditorButtons />
49 <GenerateButton /> 38 <GenerateButton />
50 </Box> 39 </Box>
51 <Box 40 <Box flexGrow={1} flexShrink={1} sx={{ overflow: 'auto' }}>
52 flexGrow={1}
53 flexShrink={1}
54 sx={{ overflow: 'auto' }}
55 >
56 <EditorArea /> 41 <EditorArea />
57 </Box> 42 </Box>
58 </Box> 43 </Box>