mirror of
https://github.com/guilhermewerner/tomasulo-simulator
synced 2025-06-15 05:14:20 +00:00
Initial example selector
This commit is contained in:
@ -28,6 +28,9 @@ export default function Home() {
|
||||
router.push('/runner');
|
||||
};
|
||||
|
||||
let instructionList = [];
|
||||
|
||||
let exemplo1 = [
|
||||
{
|
||||
operacao: "LD",
|
||||
registradorR: "F6",
|
||||
@ -66,6 +69,12 @@ export default function Home() {
|
||||
}
|
||||
];
|
||||
|
||||
const handleSelect = (eventKey) => {
|
||||
switch (eventKey) {
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
return (
|
||||
<>
|
||||
<Head>
|
||||
@ -101,6 +110,17 @@ export default function Home() {
|
||||
<Button className="ms-4" variant="primary" type="submit">Execute</Button>
|
||||
</Col>
|
||||
</Row>
|
||||
<Nav variant="pills" defaultActiveKey="1" onSelect={(eventKey) => handleSelect(eventKey, handleChange)}>
|
||||
<Nav.Item>
|
||||
<Nav.Link eventKey="1">Exemplo 1</Nav.Link>
|
||||
</Nav.Item>
|
||||
<Nav.Item>
|
||||
<Nav.Link eventKey="2">Exemplo 2</Nav.Link>
|
||||
</Nav.Item>
|
||||
<Nav.Item>
|
||||
<Nav.Link eventKey="3">Exemplo 3</Nav.Link>
|
||||
</Nav.Item>
|
||||
</Nav>
|
||||
<Row className="row my-4">
|
||||
<Col>
|
||||
<Table bordered hover>
|
||||
|
@ -138,10 +138,10 @@
|
||||
resolved "https://registry.yarnpkg.com/@types/warning/-/warning-3.0.0.tgz#0d2501268ad8f9962b740d387c4654f5f8e23e52"
|
||||
integrity sha512-t/Tvs5qR47OLOr+4E9ckN8AmP2Tf16gWq+/qA4iUGS/OOyHVO8wv2vjJuX8SNOUTJyWb+2t7wJm6cXILFnOROA==
|
||||
|
||||
bootstrap@^5.3.0:
|
||||
version "5.3.0"
|
||||
resolved "https://registry.yarnpkg.com/bootstrap/-/bootstrap-5.3.0.tgz#0718a7cc29040ee8dbf1bd652b896f3436a87c29"
|
||||
integrity sha512-UnBV3E3v4STVNQdms6jSGO2CvOkjUMdDAVR2V5N4uCMdaIkaQjbcEAMqRimDHIs4uqBYzDAKCQwCB+97tJgHQw==
|
||||
bootstrap@5.3.0-alpha3:
|
||||
version "5.3.0-alpha3"
|
||||
resolved "https://registry.yarnpkg.com/bootstrap/-/bootstrap-5.3.0-alpha3.tgz#ad64d9a663c53ab7aca99c560e0bd16b5e023441"
|
||||
integrity sha512-FBhOWMxkCFr74hesJdchLXhqagPTXS+kRNU3gE0FR5Ki/AdPSz32Ik96Z28+yBluCnE/pc9st7l1yPwKgbtfSA==
|
||||
|
||||
busboy@1.6.0:
|
||||
version "1.6.0"
|
||||
|
Reference in New Issue
Block a user