dao-governance-framework/forum-network/src/tests/reputation.html

33 lines
958 B
HTML
Raw Normal View History

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';
import { ValidationPool } from '../classes/validation-pool.js';
import { TokenHolder } from '../classes/token-holder.js';
import { ReputationToken } from '../classes/reputation-token.js';
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();
const pool = new ValidationPool();
const repToken = new ReputationToken();
// const tokenMinter = new TokenHolder('TokenMinter', scene);
await delay(DEFAULT_DELAY_INTERVAL);
</script>