Gave bit fluming its own message (#974)

This commit is contained in:
Kelenius 2023-12-19 13:28:34 +03:00 committed by GitHub
parent 3a7ff7880d
commit 5789003d46
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -10,6 +10,7 @@ import Typography from "@mui/material/Typography";
import Tooltip from "@mui/material/Tooltip";
import { Settings } from "../../Settings/Settings";
import Button from "@mui/material/Button";
import { CompletedProgramName } from "@enums";
const useStyles = makeStyles(() =>
createStyles({
@ -121,9 +122,30 @@ export function BitverseRoot(props: IProps): React.ReactElement {
const [destroySequence, setDestroySequence] = useState(!props.quick);
if (destroySequence) {
return (
<CinematicText
lines={[
let cinematicLines;
if (props.flume) {
cinematicLines = [
`Running ${CompletedProgramName.bitFlume}...`,
"...........",
"...........",
"counter dq 0x0",
"mov [counter], EXC",
"dec [counter]",
"mov EXC, [counter]",
"...........",
"...........",
`[WARN] BitNode-${destroyed} assertion error:`,
"Expected inputs to be strictly equal:",
"<Number of incoming connections>, <Number of outgoing connections>",
"Running full scan...",
"..............................................",
"..............................................",
"Hanging connection located, disconnecting...",
"..............................................",
"..............................................",
];
} else {
cinematicLines = [
"[ERROR] SEMPOOL INVALID",
"[ERROR] Segmentation Fault",
"[ERROR] SIGKILL RECVD",
@ -143,11 +165,9 @@ export function BitverseRoot(props: IProps): React.ReactElement {
"..............................................",
"..............................................",
"..............................................",
]}
onDone={() => setDestroySequence(false)}
auto={true}
/>
);
];
}
return <CinematicText lines={cinematicLines} onDone={() => setDestroySequence(false)} auto={true} />;
}
const nextSourceFileLvl = (n: number): number => {