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';
import Terminal from './terminal.js';
import StatusBar from './statusbar.js';
const nominal = ;
class Console extends React.Component {
constructor(props) {
super(props);
this.swapper = this.swapper.bind(this);
this.state = {
bodyObj: ,
init: 0,
}
}
swapper(key, e) {
if (this.state.init === 0) {
this.replaceBody();
this.playSound();
} else if (this.state.init === 1) {
this.replaceBody(nominal);
}
this.setState({ init: this.state.init + 1 });
}
appendToBody(newContent) {
let bodyObj = JSON.parse(JSON.stringify(this.state.bodyObj)) + newContent;
this.setState({
bodyObj: bodyObj
});
}
replaceBody(newContent) {
this.setState({
bodyObj: newContent
});
}
playSound() {
var sound = document.getElementById("boot-sound")
sound.volume = 0.1;
sound.play();
}
render() {
return (
{this.state.bodyObj}
{this.state.init >= 2 ? : null}
);
}
}
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.state.logodisplay ? final : null}
this.setState({ logodisplay: true })}>
BoSLOO ACPI BIOS v0.1
Sakimori Ind. 2022
Initializing cache.................................... OK!
Initializing network.................................. OK!
Initializing GPU...................................... FAIL!
)
}
}
function PowerOn(props) {
return (
);
}
// =========================================
const root = ReactDOM.createRoot(document.getElementById("root"));
root.render();