-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
51 lines (47 loc) · 3.22 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>MM2 example</title>
<link rel="stylesheet" href="./styles.css">
</head>
<body class="flex flex-col items-center max-w-4xl gap-2 py-10 mx-auto">
<h1 class="mb-4 text-3xl font-bold text-center">KDF</h1>
<h2 class="my-4 text-4xl font-bold text-center">You shouldn't be seeing this page if running via docker</h2>
<h2 class="mr-auto text-2xl font-bold text-left">Logs</h2>
<div id="logs-container" class="h-64 p-2 overflow-y-auto border border-gray-700 rounded-md">
<div id="logs" class="text-white"></div>
</div>
<!-- <div class="flex flex-row items-start gap-2">
<div class="flex flex-col gap-2">
<label for="wid_conf_input">Config JSON</label>
<textarea id="wid_conf_input" cols="40" rows="10"
class="p-2 text-white bg-gray-800 border border-gray-700 rounded-md">{"gui":"WASMTEST","mm2":1,"passphrase":"wasmtest","allow_weak_password":true,"rpc_password":"testpsw","netid":8762,"coins":[{"coin":"ETH","protocol":{"type":"ETH"}},{"coin":"RICK","overwintered":1,"txversion":4,"protocol":{"type":"UTXO"}},{"coin":"MORTY","overwintered":1,"txversion":4,"protocol":{"type":"UTXO"}}]}</textarea>
<button id="wid_run_mm2_button" class="px-4 py-2 text-white bg-blue-500 rounded-md">Start
MM2</button>
<button id="wid_stop_mm2_button" class="px-4 py-2 text-white bg-red-500 rounded-md">Stop
MM2</button>
</div>
<div class="flex flex-col gap-2">
<label for="wid_rpc_input">RPC payload JSON</label>
<textarea id="wid_rpc_input" cols="40" rows="10"
class="p-2 text-white bg-gray-800 border border-gray-700 rounded-md">[{"userpass":"testpsw","method":"electrum","mm2":1,"coin":"RICK","tx_history":true,"servers":[{"url":"electrum1.cipig.net:30017","protocol":"WSS"}]},{"userpass":"testpsw","method":"electrum","mm2":1,"coin":"MORTY","tx_history":true,"servers":[{"url":"electrum1.cipig.net:30018","protocol":"WSS"}]},{"userpass":"testpsw","method":"enable","mm2":1,"coin":"ETH","swap_contract_address":"0x8500AFc0bc5214728082163326C2FF0C73f4a871","urls":["http://eth1.cipig.net:8555"]}]</textarea>
<button id="wid_mm2_rpc_button" class="px-4 py-2 text-white bg-blue-500 rounded-md">Submit
request</button>
</div>
</div> -->
<h2 class="mt-8 text-2xl font-bold">WebSocket Status</h1>
<!-- <div class="flex flex-col gap-2">
<input type="text" id="message" class="p-2 text-white bg-gray-800 border border-gray-700 rounded-md"
placeholder="Enter message">
<button id="send-btn" class="px-4 py-2 text-white bg-blue-500 rounded-md">Send</button>
</div> -->
<div class="flex flex-col gap-2">
<div id="connection-status" class="p-2 text-purple-500 border border-gray-700 rounded-md">Connection status
</div>
<!-- <div id="output" class="p-2 text-white border border-gray-700 rounded-md">Output here</div> -->
<div id="error" class="p-2 text-red-500 border border-gray-700 rounded-md">Error here</div>
</div>
</body>
<script src="./js/script.js" type="module"></script>
</html>