import React from 'react';
import ReactDOM from 'react-dom/client';
import Typing from 'react-typing-animation';
import ClickableDiv from 'react-clickable-div';
import KeyboardEventHandler from 'react-keyboard-event-handler'
import './index.css';
import logos from './BoSLOO logo.json';
class Terminal extends React.Component {
constructor(props) {
super(props);
this.state = {
bodyObj: ,
init: false,
}
}
appendToBody(newContent) {
let bodyObj = JSON.parse(JSON.stringify(this.state.bodyObj)) + newContent;
this.setState({
bodyObj: bodyObj
});
}
replaceBody(newContent) {
this.setState({
bodyObj: newContent
});
}
handler() {
const init = this.state.init;
if (!init) { this.replaceBody('YIPPIE!'); this.setState({ init: true }); }
}
render() {
return (
{this.state.bodyObj}
{ if (!this.state.init) { this.replaceBody('YIPPIE!'); this.setState({ init: true }); } }} />
);
}
}
class SelfTest extends React.Component {
constructor(props) {
super(props);
this.state = {
logodisplay: false
}
}
render() {
const final = {logos.logo} < br />
Press any key to continue...
> _;
return (
this.setState({logodisplay: true})}>
BoSLOO ACPI BIOS v0.1
Sakimori Ind. 2022
Initializing cache.................................... OK!
Initializing network.................................. OK!
Initializing GPU...................................... FAIL!
{this.state.logodisplay ? final : null}
)
}
}
// =========================================
const root = ReactDOM.createRoot(document.getElementById("root"));
root.render();