2023-01-18 01:07:10 -06:00
|
|
|
<!DOCTYPE html>
|
|
|
|
<head>
|
|
|
|
<title>Reputation test</title>
|
2023-01-26 11:15:25 -06:00
|
|
|
<link type="text/css" rel="stylesheet" href="../index.css" />
|
2023-01-18 01:07:10 -06:00
|
|
|
</head>
|
|
|
|
<body>
|
|
|
|
<div id="test"></div>
|
|
|
|
</body>
|
|
|
|
<script type="module">
|
|
|
|
import { Box } from '../classes/box.js';
|
|
|
|
import { Scene } from '../classes/scene.js';
|
2023-01-29 04:38:28 -06:00
|
|
|
// import { ValidationPool } from '../classes/validation-pool.js';
|
|
|
|
// import { TokenHolder } from '../classes/token-holder.js';
|
|
|
|
// import { ReputationToken } from '../classes/reputation-token.js';
|
2023-01-18 01:07:10 -06:00
|
|
|
import { delay } from '../util.js';
|
|
|
|
|
|
|
|
const DEFAULT_DELAY_INTERVAL = 500;
|
|
|
|
|
|
|
|
const rootElement = document.getElementById('forum-test');
|
|
|
|
const rootBox = new Box('rootBox', rootElement).flex();
|
|
|
|
|
|
|
|
const scene = (window.scene = new Scene('Forum test', rootBox));
|
|
|
|
scene.withSequenceDiagram();
|
|
|
|
scene.withFlowchart();
|
|
|
|
|
2023-01-29 04:38:28 -06:00
|
|
|
// const pool = new ValidationPool();
|
|
|
|
// const repToken = new ReputationToken();
|
2023-01-18 01:07:10 -06:00
|
|
|
|
|
|
|
// const tokenMinter = new TokenHolder('TokenMinter', scene);
|
|
|
|
|
|
|
|
await delay(DEFAULT_DELAY_INTERVAL);
|
|
|
|
</script>
|