diff --git a/src/misc/modals/Process.js b/src/misc/modals/Process.js deleted file mode 100644 index 3eee837..0000000 --- a/src/misc/modals/Process.js +++ /dev/null @@ -1,120 +0,0 @@ -import React from 'react'; - -import { Trans } from '@lingui/macro'; -import makeStyles from '@mui/styles/makeStyles'; -import Divider from '@mui/material/Divider'; -import Grid from '@mui/material/Grid'; -import Modal from '@mui/material/Modal'; -import Typography from '@mui/material/Typography'; - -import ModalContent from '../ModalContent'; -import Progress from '../Progress'; -import Textarea from '../Textarea'; - -const useStyles = makeStyles((theme) => ({ - title: { - marginBottom: '-.3em', - marginTop: '0em', - fontWeight: 'bold', - }, - textarea: { - marginBottom: '-1em', - }, - box: { - backgroundColor: theme.palette.background.modalbox, - borderRadius: 4, - padding: '1em', - }, - banner: { - marginBottom: '-1em', - }, - logging: { - marginTop: '.15em', - }, -})); - -const initLogdata = (logdata) => { - if (!logdata) { - logdata = {}; - } - - return { - prelude: [], - log: [], - ...logdata, - }; -}; - -const formatLogline = (entry) => { - let line = '@' + entry[0] + ' '; - - const matches = entry[1].match(/^\[([0-9A-Za-z]+) @ 0x[0-9a-f]+\]/i); - if (matches !== null) { - let t = '[' + matches[1]; - for (let i = 0; i < 10 - matches[1].length; i++) { - t += ' '; - } - t += ']'; - line += entry[1].replace(matches[0], t); - } else { - line += entry[1]; - } - - return line; -}; - -const Component = function (props) { - const classes = useStyles(); - const logdata = initLogdata(props.logdata); - - return ( - - - - - - -
- - - - Banner - -