-
Notifications
You must be signed in to change notification settings - Fork 3
/
index.html
97 lines (90 loc) · 7.55 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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>SmartC - C Compiler for Signum - %version%</title>
<link rel="stylesheet" href="style.css">
<link rel="icon" type="image/png" sizes="16x16" href="assets/favicon-16.png">
<link rel="icon" type="image/png" sizes="32x32" href="assets/favicon-32.png">
<link rel="icon" type="image/png" sizes="256x256" href="assets/favicon.png">
<script type="module" src="./lib/index.js"></script>
<script src="3rd-party/winbox.bundle.js"></script>
<script src="3rd-party/highlight.min.js"></script>
<link href="3rd-party/styles/tomorrow.css" rel="stylesheet">
</head>
<body data-version="2.3.0">
<header class="gdrow1 gdcol12 gmrow1 headerDesktop headerMobile" id="h1_title"><strong>SmartC</strong> - C Compiler for Signum - %version%</header>
<fieldset id="source_fieldset" class="gdrow2 gdcol12 gmrow2"><legend id="source_legend">❐ Source code:</legend>
<div id="source_window" class="div_window_source">
<textarea id="source-code" accesskey="a" placeholder="Write here your program. Access key: Alt+Shift+a" class="inc_height" spellcheck="false" wrap="soft"></textarea>
<pre id="color_code"></pre>
<span id="tooltip_span" class="tooltip">Cursor: 0:0</span>
</div>
</fieldset>
<fieldset id="actions_fieldset" class="gdrow3 gdcol1 gmrow3"><legend id="actions_legend">❐ Actions:</legend>
<div id="actions_window" class="div_window_grid">
<input type="checkbox" id="source_is_c" checked="true" style="display: none;">
<input type="checkbox" id="debug" style="display: none;">
<button id="compile" accesskey="c" title="Alt+Shift+c" class="btn_class grow1 gcol12"><u>C</u>ompile</button><br />
<a href="https://github.com/deleterium/SmartC/blob/v2.1/docs/README.md" target="_blank" accesskey="h" title="Alt+Shift+h - Project documentation" class="btn_class grow1 gcol3"><u>H</u>elp</a>
<button id="save" accesskey="s" title="Alt+Shift+s - Save in browser" class="btn_class grow2 gcol1"><u>S</u>ave</button>
<button id="load" accesskey="l" title="Alt+Shift+l" class="btn_class grow2 gcol2"><u>L</u>oad</button>
<label for="source_is_c" class="btn_class grow2 gcol3" id="bt1" title="Toggle source language">C</label>
<label for="debug" accesskey="d" title="Alt+Shift+d - Toggle debug" class="btn_class grow2 gcol4" id="bt2"><u>D</u>ebug</label>
</div>
</fieldset>
<fieldset id="status_fieldset" class="gdrow3 gdcol2 gmrow4"><legend id="status_legend">❐ Status:</legend>
<div id="status_window" class="div_window_normal">
<pre id="status_output"></pre>
</div>
</fieldset>
<fieldset id="assembly_fieldset" class="gdrow4 gdcol1 gmrow5"><legend id="assembly_legend">❐ Assembly output:</legend>
<div id="assembly_window" class="div_window_normal">
<button id="copy_assembly" class="btn btn-default">Copy to clipboard</button><br><br>
<pre id="assembly_output"></pre>
</div>
</fieldset>
<fieldset id="deployment_fieldset" class="gdrow4 gdcol2 gmrow6"><legend id="deployment_legend">❐ Localhost node deployment form for smart contract:</legend>
<div id="deployment_window" class="div_window_normal">
<section class="table">
<div class="div_row"><div class="div_cell">Deployment:</div><div class="div_cell">
<label title="localhost:6876" class="default">
<input type="radio" value="6876" name="deploy" checked="true"> Testnet
</label>
<label title="localhost:8125" class="default">
<input type="radio" value="8125" name="deploy"> Main
</label>
<label title="manual" class="default">
<input type="radio" value="manual" name="deploy">Manual
<input type="text" id="user_server">
</label>
</div>
</div>
</section>
<form action="http://localhost:6876/burst" method="POST" target="formresponse" id="deploy_form" >
<section class="table">
<input type="hidden" name="requestType" value="createATProgram">
<div class="div_row"><div class="div_cell">Contract Name:</div><div class="div_cell"><input type="text" name="name" style="width:100%;" pattern="[a-zA-Z0-9]{1,30}" title="Only letters (a to Z) and numbers"></div></div>
<div class="div_row"><div class="div_cell">Description:</div><div class="div_cell"><textarea name="description" rows="5" style="width:100%;min-width:200px;"></textarea></div></div>
<div class="div_row"><div class="div_cell">Bytecode:</div><div class="div_cell"><input type="text" name="code" style="width:100%;min-width:200px;" pattern="[a-fA-F0-9]{1,}"></div></div>
<div class="div_row"><div class="div_cell">Bytedata:</div><div class="div_cell"><input type="text" name="data" style="width:100%;min-width:200px;"></div></div>
<div class="div_row"><div class="div_cell">Data Pages:</div><div class="div_cell"><input type="number" name="dpages" value="1" style="width:100%;min-width:200px;"></div></div>
<div class="div_row"><div class="div_cell">Code Stack Pages:</div><div class="div_cell"><input type="number" name="cspages" value="0" style="width:100%;min-width:200px;"></div></div>
<div class="div_row"><div class="div_cell">User Stack Pages:</div><div class="div_cell"><input type="number" name="uspages" value="0" style="width:100%;min-width:200px;"></div></div>
<div class="div_row"><div class="div_cell">Min. Activation Amount NQT:</div><div class="div_cell"><input type="text" name="minActivationAmountNQT" style="width:100%;min-width:200px;"></div></div>
<div class="div_row"><div class="div_cell">Secret Phrase:</div><div class="div_cell"><input type="password" name="secretPhrase" style="width:100%;min-width:200px;"></div></div>
<div class="div_row"><div class="div_cell">PublicKey:</div><div class="div_cell"><input type="text" name="publicKey" style="width:100%;min-width:200px;"></div></div>
<div class="div_row"><div class="div_cell">Fee (NQT):</div><div class="div_cell"><input type="text" name="feeNQT" style="width:100%;min-width:200px;"></div></div>
<div class="div_row"><div class="div_cell">Tx Deadline (minutes):</div><div class="div_cell"><input type="text" name="deadline" style="width:100%;min-width:200px;" value="24"></div></div>
<div class="div_row"><div class="div_cell">ReferencedTransactionFullHash:</div><div class="div_cell"><input type="text" name="referencedTransactionFullHash" style="width:100%;min-width:200px;"></div></div>
<div class="div_row"><div class="div_cell">Broadcast Tx?</div><div class="div_cell"><input type="text" name="broadcast" style="width:100%;min-width:200px;" placeholder="true"></div></div>
<div class="div_row"><div class="div_cell"><input type="submit" class="btn btn-default" value="Submit"></div><div class="div_cell"></div></div>
</section>
</form>
<h5>Response:</h5>
<iframe src="about:blank" name='formresponse' id="deployment_iframe" title="Deployment response"></iframe>
</div>
</fieldset>
</body>
</html>