-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmaintain.html
More file actions
381 lines (381 loc) · 18.2 KB
/
maintain.html
File metadata and controls
381 lines (381 loc) · 18.2 KB
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
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="width=device-width">
<meta name="google" content="notranslate">
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
<title>New Normal - Maintainance</title>
<link rel="stylesheet" href="styles/opensans.css">
<link rel="stylesheet" href="styles/crocodile.css">
<link rel="stylesheet" href="styles/maintain.css">
<script src="https://unpkg.com/@isomorphic-git/lightning-fs"></script>
<script src="https://unpkg.com/isomorphic-git"></script>
<script src="libs/table-sort.js"></script>
<script src="components/editable-card.mjs" type="module"></script>
<script src="components/argument-card.mjs" type="module"></script>
<script src="components/message-box.mjs" type="module"></script>
<script src="components/no-card.mjs" type="module"></script>
<script src="components/card-pile.mjs" type="module"></script>
<script src="components/card-back.mjs" type="module"></script>
<script src="components/label-card.mjs" type="module"></script>
<script src="components/cancel-card.mjs" type="module"></script>
<script src="components/fallacy-card.mjs" type="module"></script>
<script src="components/strawman-card.mjs" type="module"></script>
<script src="components/appeal-to-card.mjs" type="module"></script>
<script src="components/research-card.mjs" type="module"></script>
<script src="components/discuss-card.mjs" type="module"></script>
<script src="components/pause-card.mjs" type="module"></script>
<script src="components/banish-card.mjs" type="module"></script>
<script src="components/flip-card.mjs" type="module"></script>
<script src="components/sources-back.mjs" type="module"></script>
<script src="components/centered-cards.mjs" type="module"></script>
<script src="modules/content.mjs" type="module"></script>
<script src="modules/common.mjs" type="module"></script>
<script src="modules/filesystem.mjs" type="module"></script>
<script src="modules/maintain.mjs" type="module"></script>
</head>
<body class="notranslate" translate="no">
<div id="navigation" class="radio-tabs">
<button id="stop">❌</button>
<input id="_connect" type="radio" name="type" class="radio-tab" value="connect" onclick="navigateMaintain(event)" checked>
<label for="_connect">🛠️</label>
<select class="location" onchange="switchLocale(event.target.value)">
<option title="Deutschland" value="de-de">🇩🇪 Deutschland</option>
<option title="Österreich" value="de-at">🇦🇹 Österreich</option>
<option title="Schweiz" value="de-ch">🇨🇭 Schweiz</option>
<option title="Svizzera" value="it-ch">🇨🇭 Svizzera</option>
<option title="Suisse" value="fr-ch">🇨🇭 Suisse</option>
<option title="Danmark" value="da-da">🇩🇰 Danmark</option>
<option title="Liechtenstein" value="de-li">🇱🇮 Liechtenstein</option>
<option title="Italia" value="it-it">🇮🇹 Italia</option>
<option title="Italien" value="de-it">🇮🇹 Italien</option>
<option title="San Marino" value="it-sm">🇸🇲 San Marino</option>
<option title="Città del Vaticano" value="it-va">🇻🇦 Città del Vaticano</option>
<option title="United States" value="en-us">🇺🇸 United States</option>
<option title="United Kingdom" value="en-gb">🇬🇧 United Kingdom</option>
<option title="Australia" value="en-au">🇦🇺 Australia</option>
<option title="New Zealand" value="en-nz">🇳🇿 New Zealand</option>
<option title="Canada" value="en-ca">🇨🇦 Canada</option>
<option title="Canada" value="fr-ca">🇨🇦 Canada</option>
<option title="Polska" value="pl-pl">🇵🇱 Polska</option>
<option title="Antigua and Barbuda" value="en-ag">🇦🇬 Antigua and Barbuda</option>
<option title="The Bahamas" value="en-bs">🇧🇸 The Bahamas</option>
<option title="Barbados" value="en-bb">🇧🇧 Barbados</option>
<option title="Belize" value="en-bz">🇧🇿 Belize</option>
<option title="Dominica" value="en-dm">🇩🇲 Dominica</option>
<option title="Grenada" value="en-gd">🇬🇩 Grenada</option>
<option title="Guyana" value="en-gy">🇬🇾 Guyana</option>
<option title="Ireland" value="en-ie">🇮🇪 Ireland</option>
<option title="Jamaica" value="en-jm">🇯🇲 Jamaica</option>
<option title="Malta" value="en-mt">🇲🇹 Malta</option>
<option title="St Kitts and Nevis" value="en-kn">🇰🇳 St Kitts and Nevis</option>
<option title="St Lucia" value="en-lc">🇱🇨 St Lucia</option>
<option title="St Vincent and the Grenadines" value="en-vc">🇻🇨 St Vincent and the Grenadines</option>
<option title="Trinidad and Tobago" value="en-tt">🇹🇹 Trinidad and Tobago</option>
<option title="España" value="es-es">🇪🇸 España</option>
<option title="Cuba" value="es-cu">🇨🇺 Cuba</option>
<option title="Perú" value="es-pe">🇵🇪 Perú</option>
<option title="Chile" value="es-cl">🇨🇱 Chile</option>
<option title="México" value="es-mx">🇲🇽 México</option>
<option title="Puerto Rico" value="es-pr">🇵🇷 Puerto Rico</option>
<option title="Argentina" value="es-ar">🇦🇷 Argentina</option>
<option title="Bolivia" value="es-bo">🇧🇴 Bolivia</option>
<option title="Colombia" value="es-co">🇨🇴 Colombia</option>
<option title="Costa Rica" value="es-cr">🇨🇷 Costa Rica</option>
<option title="República Dominicana" value="es-do">🇩🇴 República Dominicana</option>
<option title="Ecuador" value="es-ec">🇪🇨 Ecuador</option>
<option title="El Salvador" value="es-sv">🇸🇻 El Salvador</option>
<option title="Guinea Ecuatorial" value="es-gq">🇬🇶 Guinea Ecuatorial</option>
<option title="Guatemala" value="es-gt">🇬🇹 Guatemala</option>
<option title="Honduras" value="es-hn">🇭🇳 Honduras</option>
<option title="Nicaragua" value="es-ni">🇳🇮 Nicaragua</option>
<option title="Panama" value="es-pa">🇵🇦 Panama</option>
<option title="Paraguay" value="es-py">🇵🇾 Paraguay</option>
<option title="Uruguay" value="es-uy">🇺🇾 Uruguay</option>
<option title="Venezuela" value="es-ve">🇻🇪 Venezuela</option>
<option title="Portugual" value="pt-pt">🇵🇹 Portugual</option>
<option title="Brasil" value="pt-br">🇧🇷 Brasil</option>
<option title="Angola" value="pt-ao">🇦🇴 Angola</option>
<option title="Moçambique" value="pt-mz">🇲🇿 Moçambique</option>
<option title="Guiné-Bissau" value="pt-gw">🇬🇼 Guiné-Bissau</option>
<option title="São Tomé & Príncipe" value="pt-st">🇸🇹 São Tomé & Príncipe</option>
<option title="Cabo Verde" value="pt-cv">🇨🇻 Cabo Verde</option>
<option title="France" value="fr-fr">🇫🇷 France</option>
<option title="Nederlands" value="nl-nl">🇳🇱 Nederlands</option>
<option title="België" value="nl-be">🇧🇪 België</option>
<option title="Belgien" value="de-be">🇧🇪 Belgien</option>
<option title="Belgique" value="fr-be">🇧🇪 Belgique</option>
<option title="Congo" value="fr-cd">🇨🇩 Congo</option>
<option title="Congo" value="fr-cg">🇨🇬 Congo</option>
<option title="Côte d’Ivoire" value="fr-ko">🇨🇮 Côte d’Ivoire</option>
<option title="Madagascar" value="fr-ko">🇲🇬 Madagascar</option>
<option title="Cameroun" value="fr-cm">🇨🇲 Cameroun</option>
<option title="Cameroon" value="en-cm">🇨🇲 Cameroon</option>
<option title="Burkina Faso" value="fr-bf">🇧🇫 Burkina Faso</option>
<option title="Niger" value="fr-ne">🇳🇪 Niger</option>
<option title="Mali" value="fr-ml">🇲🇱 Mali</option>
<option title="Sénégal" value="fr-sn">🇸🇳 Sénégal</option>
<option title="Haïti" value="fr-ht">🇭🇹 Haïti</option>
<option title="Benin" value="fr-bj">🇧🇯 Benin</option>
</select>
<select class="normality" onchange="loadMaintain(undefined, event.target.value)">
<option title="Pandemic" value="p">🦠 Pandemic</option>
<option title="Climate" value="c" disabled>🌎 Climate</option>
<option title="Gender" value="g" disabled>🌈 Gender</option>
<option title="Ukraine" value="u" disabled>🇺🇦 Ukraine</option>
<option title="Terror" value="t" disabled>💣 Terror</option>
<option title="Capitalism" value="k" disabled>💰Capitalism</option>
<option title="NWO" value="n" disabled>👁 NWO</option>
<option title="Moon" value="m" disabled>🚀 Moon</option>
</select>
<input id="_topics" type="radio" name="type" class="radio-tab" value="topics" onclick="navigateMaintain(event)">
<label for="_topics">Topics</label>
<input id="_arguments" type="radio" name="type" class="radio-tab" value="arguments" onclick="navigateMaintain(event)">
<label for="_arguments">Arguments</label>
<input id="_fallacies" type="radio" name="type" class="radio-tab" value="fallacies" onclick="navigateMaintain(event)">
<label for="_fallacies">Fallacies</label>
<input id="_appeal-tos" type="radio" name="type" class="radio-tab" value="appeal-tos" onclick="navigateMaintain(event)">
<label for="_appeal-tos">Appeal Tos</label>
<input id="_labels" type="radio" name="type" class="radio-tab" value="labels" onclick="navigateMaintain(event)">
<label for="_labels">Labels</label>
<input id="_cancels" type="radio" name="type" class="radio-tab" value="cancels" onclick="navigateMaintain(event)">
<label for="_cancels">Cancels</label>
<input id="_sources" type="radio" name="type" class="radio-tab" value="sources" onclick="navigateMaintain(event)">
<label for="_sources">Sources</label>
<input id="_messages" type="radio" name="type" class="radio-tab" value="messages" onclick="navigateMaintain(event)">
<label for="_messages">Messages</label>
<div id="edit-bar"><button onclick="addQuotes()">‘…’</button><button onclick="toggleBold()"><b>B</b></button><!--<button onclick="addShy()">-</button>--></div>
</div>
<div id="connect" class="tab">
<h2>
<span class="logo"><span class="red">New</span> <span class="blue">Normal</span></span><br>
<b>Maintenance</b>
<br>
How do you want to access the application data?</h2>
<button id="ro" onclick="connect()">👀<br><b>Locally, just to explore</b> (You won't be able to save)</button>
<button id="git" onclick="connect('lfs')">✔️<br><b>Through the offical git repository</b><br>(gitlab account needed)</button>
<button id="fs" onclick="connect('hdd')">🖋<br><b>Through a git clone on your computer</b> (best option for developers)</button>
</div>
<div id="topics" class="tab hidden">
<div class="master">
<div class="toolbar">
<input class="search" placeholder="🔍 Search topics" oninput="searchMaintain(event)">
<button disabled>➕ Add Topic</button>
</div>
<div class="table">
<table class="list table-sort" onkeydown="navigate(event)" onclick="update(event.target)" onfocus="update(event.target)">
<thead>
<tr>
<th>Id</th>
<th>Title</th>
<th>Sheep Title</th>
<th>Idiot Title</th>
<th>Sheep Label</th>
<th>Idiot Label</th>
</tr>
</thead>
<tbody>
</tbody>
</table>
</div>
</div>
<div class="details card-preview"></div>
</div>
<div id="arguments" class="tab hidden">
<div class="master">
<div class="toolbar">
<input class="search" placeholder="🔍 Search arguments" oninput="searchMaintain(event)">
<input type="checkbox" id="show-text" onclick="updateShowText()"><label for="show-text">Show Text</label>
<button>➕ Add Idiot Argument</button>
<button>➕ Add Sheep Argument</button>
</div>
<div class="table">
<table class="list table-sort" onkeydown="navigate(event)" onclick="updateArgument(event.target)" onfocus="updateArgument(event.target)">
<thead>
<tr>
<th>Id</th>
<th>✓</th>
<th>Title</th>
<th class="text hidden">Text</th>
<th>Length</th>
<th>Text Length</th>
<th>Topics</th>
</tr>
</thead>
<tbody>
</tbody>
</table>
</div>
</div>
<div class="details card-preview">
<div class="sources">
<table class="list">
<thead>
<tr>
<th class="hidden">Id</th>
<th>Language</th>
<th>Keys</th>
<th>URL</th>
<th>Text</th>
<th>Length</th>
</tr>
</thead>
<tbody>
</tbody>
</table>
</div>
</div>
</div>
<div id="appeal-tos" class="tab hidden">
<div class="master">
<div class="toolbar">
<input class="search" placeholder="🔍 Search appeal tos" oninput="searchMaintain(event)">
<button>➕ Add Idiot Appeal-to</button>
<button>➕ Add Sheep Appeal-to</button>
</div>
<div class="table">
<table class="list table-sort" onkeydown="navigate(event)" onclick="update(event.target)" onfocus="update(event.target)">
<thead>
<tr>
<th>Id</th>
<th>Class</th>
<th>Title</th>
<th>Text</th>
<th>Overall Length</th>
</tr>
</thead>
<tbody>
</tbody>
</table>
</div>
</div>
<div class="details card-preview">
</div>
</div>
<div id="fallacies" class="tab hidden">
<div class="master">
<div class="toolbar">
<input class="search" placeholder="🔍 Search fallacies" oninput="searchMaintain(event)">
<button>➕ Add Idiot Fallacy</button>
<button>➕ Add Sheep Fallacy</button>
</div>
<div class="table">
<table class="list table-sort" onkeydown="navigate(event)" onclick="update(event.target)" onfocus="update(event.target)">
<thead>
<tr>
<th>Id</th>
<th>Fallacy</th>
<th>Title</th>
<th>Length</th>
</tr>
</thead>
<tbody>
</tbody>
</table>
</div>
</div>
<div class="details card-preview">
</div>
</div>
<div id="labels" class="tab hidden">
<div class="master">
<div class="toolbar">
<input class="search" placeholder="🔍 Search labels" oninput="searchMaintain(event)">
<button>➕ Add Idiot Label</button>
<button>➕ Add Sheep Label</button>
</div>
<div class="table">
<table class="list table-sort" onkeydown="navigate(event)" onclick="update(event.target)" onfocus="update(event.target)">
<thead>
<tr>
<th>Id</th>
<th>Title</th>
<th>Length</th>
</tr>
</thead>
<tbody>
</tbody>
</table>
</div>
</div>
<div class="details card-preview">
</div>
</div>
<div id="cancels" class="tab hidden">
<div class="master">
<div class="toolbar">
<input class="search" placeholder="🔍 Search cancels" oninput="searchMaintain(event)">
<button>➕ Add Idiot Cancel</button>
<button>➕ Add Sheep Cancel</button>
</div>
<div class="table">
<table class="list table-sort" onkeydown="navigate(event)" onclick="update(event.target)" onfocus="update(event.target)">
<thead>
<tr>
<th>Id</th>
<th>Title</th>
<th>Length</th>
</tr>
</thead>
<tbody>
</tbody>
</table>
</div>
</div>
<div class="details card-preview">
</div>
</div>
<div id="sources" class="tab hidden">
<div class="master">
<div class="toolbar">
<input class="search" placeholder="🔍 Search sources" oninput="searchMaintain(event)">
<button disabled>➕ Add Source</button>
</div>
<div class="table">
<table class="list table-sort" onclick="updateSourcePreview(event.target)" onfocus="updateSourcePreview(event.target)">
<thead>
<tr>
<th class="hidden">Id</th>
<th>Language</th>
<th>Keys</th>
<th>URL</th>
<th>Text</th>
<th>Length</th>
</tr>
</thead>
<tbody>
</tbody>
</table>
</div>
</div>
<div class="details">
<iframe class="preview"></iframe>
</div>
</div>
<div id="messages" class="tab hidden">
<div class="master">
<div class="toolbar">
<input class="search" placeholder="🔍 Search messages" oninput="searchMaintain(event)">
</div>
<div class="table">
<table class="list table-sort" onkeydown="navigate(event)" onclick="update(event.target)" onfocus="update(event.target)">
<thead>
<tr>
<th class="hidden">Id</th>
<th>Keys</th>
<th>Message</th>
<th>Length</th>
</tr>
</thead>
<tbody>
</tbody>
</table>
</div>
</div>
<div class="details card-preview">
</div>
</div>
<div id="content" class="hidden"></div>
<div id="loader" class="hidden"></div>
</body>
</html>