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

36 lines
1.0 KiB
HTML
Raw Normal View History

2023-01-18 01:07:10 -06:00
<!DOCTYPE html>
2023-02-02 21:51:54 -06:00
2023-01-18 01:07:10 -06:00
<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>
2023-02-02 21:51:54 -06:00
2023-01-18 01:07:10 -06:00
<body>
2023-02-02 21:51:54 -06:00
<h2><a href="../">DGF Tests</a></h2>
<div id="scene"></div>
2023-01-18 01:07:10 -06:00
</body>
<script type="module">
2023-02-02 21:51:54 -06:00
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';
2023-01-18 01:07:10 -06:00
2023-02-02 21:51:54 -06:00
const DEFAULT_DELAY_INTERVAL = 500;
2023-01-18 01:07:10 -06:00
2023-02-02 21:51:54 -06:00
const rootElement = document.getElementById('scene');
const rootBox = new Box('rootBox', rootElement).flex();
2023-01-18 01:07:10 -06:00
2023-02-02 21:51:54 -06:00
const scene = (window.scene = new Scene('Reputation test', rootBox));
scene.withSequenceDiagram();
scene.withFlowchart();
2023-01-18 01:07:10 -06:00
2023-02-02 21:51:54 -06:00
// const pool = new ValidationPool();
// const repToken = new ReputationToken();
2023-01-18 01:07:10 -06:00
2023-02-02 21:51:54 -06:00
// const tokenMinter = new TokenHolder('TokenMinter', scene);
2023-01-18 01:07:10 -06:00
2023-02-02 21:51:54 -06:00
await delay(DEFAULT_DELAY_INTERVAL);
2023-01-18 01:07:10 -06:00
</script>