-
Notifications
You must be signed in to change notification settings - Fork 0
/
reader.html
229 lines (229 loc) · 12 KB
/
reader.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
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
<!DOCTYPE html>
<html>
<head>
<title>Assembl Transfer Validation File Reader</title>
<link rel="stylesheet" href="rstyles.css" />
<script>
const { ipcRenderer } = require('electron');
const prettySize = require('prettysize');
const readerHelp = require('./resources/json/readerhelp.json');
</script>
<script src="resources/js/validationreader.js"></script>
</head>
<body onload="domReady();">
<header>
<img class="assembl-logo-icon" src="resources/png/icon.png" /><div class="assembl-logo-text">Assembl</div><div class="assembl-logo-subtext">Transfer Validation File<span id="reader"> Reader</span></div>
</header>
<nav>
<button title="Print document" onclick="window.print();">⎙</button>
</nav>
<div id="validation-reader" style="display: none;">
<details open>
<summary>General</summary>
<table>
<tr>
<th>Version</th>
<td id="val-general-version"></td>
<td class="help"><button data-for="val-general-version" class="help-btn" onclick="showHelp(this.getAttribute('data-for'));">?</button></td>
</tr>
<tr>
<th>Issued on</th>
<td id="val-general-currenttime"></td>
<td class="help"><button data-for="val-general-currenttime" class="help-btn" onclick="showHelp(this.getAttribute('data-for'));">?</button></td>
</tr>
</table>
</details>
<details open>
<summary>File</summary>
<table>
<tr>
<th>Size</th>
<td id="val-file-size"></td>
<td class="help"><button data-for="val-file-size" class="help-btn" onclick="showHelp(this.getAttribute('data-for'));">?</button></td>
</tr>
<tr>
<th>Path</th>
<td id="val-file-path"></td>
<td class="help"><button data-for="val-file-path" class="help-btn" onclick="showHelp(this.getAttribute('data-for'));">?</button></td>
</tr>
<tr>
<th>Name</th>
<td id="val-file-name"></td>
<td class="help"><button data-for="val-file-name" class="help-btn" onclick="showHelp(this.getAttribute('data-for'));">?</button></td>
</tr>
<tr>
<th>Last modified</th>
<td id="val-file-lastmodified"></td>
<td class="help"><button data-for="val-file-lastmodified" class="help-btn" onclick="showHelp(this.getAttribute('data-for'));">?</button></td>
</tr>
<tr>
<th>License</th>
<td id="val-file-license"></td>
<td class="help"><button data-for="val-file-license" class="help-btn" onclick="showHelp(this.getAttribute('data-for'));">?</button></td>
</tr>
<tr>
<th>Description</th>
<td id="val-file-description"></td>
<td class="help"><button data-for="val-file-description" class="help-btn" onclick="showHelp(this.getAttribute('data-for'));">?</button></td>
</tr>
<tr>
<th>Hash</th>
<td id="val-file-hash" class="code"></td>
<td class="help"><button data-for="val-file-hash" class="help-btn" onclick="showHelp(this.getAttribute('data-for'));">?</button></td>
</tr>
</table>
</details>
<details open>
<summary>Stellar Blockchain</summary>
<table>
<tr>
<th>Transaction ID</th>
<td id="val-stellar-transactionid" class="code"></td>
<td class="help"><button data-for="val-stellar-transactionid" class="help-btn" onclick="showHelp(this.getAttribute('data-for'));">?</button></td>
</tr>
<tr>
<th>Time</th>
<td id="val-stellar-time"></td>
<td class="help"><button data-for="val-stellar-time" class="help-btn" onclick="showHelp(this.getAttribute('data-for'));">?</button></td>
</tr>
<tr>
<th>Ledger</th>
<td id="val-stellar-ledger"></td>
<td class="help"><button data-for="val-stellar-ledger" class="help-btn" onclick="showHelp(this.getAttribute('data-for'));">?</button></td>
</tr>
</table>
</details>
<details open>
<summary>Transmission</summary>
<table>
<tr>
<th>Encryption enabled</th>
<td id="val-transmission-encryption-enabled"></td>
<td class="help"><button data-for="val-transmission-encryption-enabled" class="help-btn" onclick="showHelp(this.getAttribute('data-for'));">?</button></td>
</tr>
<tr>
<th>Encryption method</th>
<td id="val-transmission-encryption-method"></td>
<td class="help"><button data-for="val-transmission-encryption-method" class="help-btn" onclick="showHelp(this.getAttribute('data-for'));">?</button></td>
</tr>
<tr>
<th>Encryption level</th>
<td id="val-transmission-encryption-level"></td>
<td class="help"><button data-for="val-transmission-encryption-level" class="help-btn" onclick="showHelp(this.getAttribute('data-for'));">?</button></td>
</tr>
<tr>
<th>Transfer protocol</th>
<td id="val-transmission-protocol"></td>
<td class="help"><button data-for="val-transmission-protocol" class="help-btn" onclick="showHelp(this.getAttribute('data-for'));">?</button></td>
</tr>
</table>
</details>
<details open>
<summary>Sender</summary>
<table>
<tr>
<th>Name</th>
<td id="val-sender-name"></td>
<td class="help"><button data-for="val-sender-name" class="help-btn" onclick="showHelp(this.getAttribute('data-for'));">?</button></td>
</tr>
<tr>
<th>Assembl ID</th>
<td id="val-sender-assemblid" class="code"></td>
<td class="help"><button data-for="val-sender-assemblid" class="help-btn" onclick="showHelp(this.getAttribute('data-for'));">?</button></td>
</tr>
<tr>
<th>ORCID iD</th>
<td id="val-sender-orcidid" class="code"></td>
<td class="help"><button data-for="val-sender-orcidid" class="help-btn" onclick="showHelp(this.getAttribute('data-for'));">?</button></td>
</tr>
</table>
</details>
<details open>
<summary>Receiver</summary>
<table>
<tr>
<th>Name</th>
<td id="val-receiver-name"></td>
<td class="help"><button data-for="val-receiver-name" class="help-btn" onclick="showHelp(this.getAttribute('data-for'));">?</button></td>
</tr>
<tr>
<th>Assembl ID</th>
<td id="val-receiver-assemblid" class="code"></td>
<td class="help"><button data-for="val-receiver-assemblid" class="help-btn" onclick="showHelp(this.getAttribute('data-for'));">?</button></td>
</tr>
<tr>
<th>ORCID iD</th>
<td id="val-receiver-orcidid" class="code"></td>
<td class="help"><button data-for="val-receiver-orcidid" class="help-btn" onclick="showHelp(this.getAttribute('data-for'));">?</button></td>
</tr>
</table>
</details>
<details open>
<summary>Source</summary>
<code id="val-json"></code>
</details>
</div>
<div id="verification-reader" style="display: none;">
<details open>
<summary>General</summary>
<table>
<tr>
<th>Version</th>
<td id="ver-general-version"></td>
<td class="help"><button data-for="ver-general-version" class="help-btn" onclick="showHelp(this.getAttribute('data-for'));">?</button></td>
</tr>
<tr>
<th>Issued on</th>
<td id="ver-general-currenttime"></td>
<td class="help"><button data-for="ver-general-currenttime" class="help-btn" onclick="showHelp(this.getAttribute('data-for'));">?</button></td>
</tr>
</table>
</details>
<details open>
<summary>Validation File</summary>
<table>
<tr>
<th>Path</th>
<td id="ver-validation-path"></td>
<td class="help"><button data-for="ver-validation-path" class="help-btn" onclick="showHelp(this.getAttribute('data-for'));">?</button></td>
</tr>
<tr>
<th>Name</th>
<td id="ver-validation-name"></td>
<td class="help"><button data-for="ver-validation-name" class="help-btn" onclick="showHelp(this.getAttribute('data-for'));">?</button></td>
</tr>
<tr>
<th>Hash</th>
<td id="ver-validation-hash" class="code"></td>
<td class="help"><button data-for="ver-validation-hash" class="help-btn" onclick="showHelp(this.getAttribute('data-for'));">?</button></td>
</tr>
</table>
</details>
<details open>
<summary>Stellar Blockchain</summary>
<table>
<tr>
<th>Transaction ID</th>
<td id="ver-stellar-transactionid" class="code"></td>
<td class="help"><button data-for="ver-stellar-transactionid" class="help-btn" onclick="showHelp(this.getAttribute('data-for'));">?</button></td>
</tr>
<tr>
<th>Time</th>
<td id="ver-stellar-time"></td>
<td class="help"><button data-for="ver-stellar-time" class="help-btn" onclick="showHelp(this.getAttribute('data-for'));">?</button></td>
</tr>
<tr>
<th>Ledger</th>
<td id="ver-stellar-ledger"></td>
<td class="help"><button data-for="ver-stellar-ledger" class="help-btn" onclick="showHelp(this.getAttribute('data-for'));">?</button></td>
</tr>
</table>
</details>
<details open>
<summary>Source</summary>
<code id="ver-json"></code>
</details>
</div>
<div id="not-main">Loading...</div>
</body>
</html>