-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
241 lines (213 loc) · 12.7 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
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
<!DOCTYPE html>
<html lang="en" data-bs-theme="dark">
<head>
<meta charset="UTF-8" />
<title>Mallet</title>
<!-- GitHub Pages favicon.ico Fix -->
<link rel="shortcut icon" type="image/x-icon" href="favicon.ico?">
<script type="text/javascript" src="vendor/luaparse/luaparse.js"></script>
<!-- jQuery v3.7.1 -->
<script type="text/javascript" src="vendor/jquery/3.7.1/jquery.min.js"></script>
<!-- jQueryUI v.1.13.2 -->
<link rel="stylesheet" href="vendor/jquery-ui/1.13.2/jquery-ui.min.css" />
<script type="text/javascript" src="vendor/jquery-ui/1.13.2/jquery-ui.min.js"></script>
<link rel="stylesheet" href="vendor/bs5treeview-1.2.0/dist/css/bstreeview.min.css" />
<link rel="stylesheet" href="vendor/fontawesome/css/all.min.css" />
<!-- Include stylesheet -->
<link href="https://cdn.jsdelivr.net/npm/quill@2.0.0/dist/quill.snow.css" rel="stylesheet" />
<link rel="stylesheet"
href="https://cdn.jsdelivr.net/npm/quilljs-markdown@latest/dist/quilljs-markdown-common-style.css"
rel="stylesheet" />
<!-- <link rel="stylesheet" href="/vendor/highlight/styles/base16/synth-midnight-terminal-dark.min.css" /> -->
<link rel="stylesheet" href="vendor/highlight/styles/felipec.min.css" />
<!-- Compiled SCSS -->
<link rel="stylesheet" href="assets/css/main.css" />
</head>
<body>
<!-- [Screen] - Main Layer -->
<div id="screen-layer-main" class="screen" style="position: relative">
<!-- [Screen] - Sidebar -->
<div id="screen-sidebar-container" class="screen-sidebar-start" style="user-select: none;"></div>
<!-- [Screen] - Content -->
<div id="screen-content-container" class="screen-content-end p-4" style="position: relative; overflow-y: auto;">
<img class="img-logo" src="assets/media/logo_544.png" />
<div id="screen-content-end-container" class="justify-content-center" style="display: flex;"></div>
<button id="btn-card-code" class="btn btn-sm responsive-btn"
style="z-index: 2; position: absolute; top: 1rem; right: 1rem;">
<div class="btn-pane" style="width: 30px; height: 30px;">
<i id="icon-card" class="fa-regular fa-rectangle-list" style="display: none;"></i>
<i id="icon-code" class="fa-solid fa-code" style="display: block;"></i>
</div>
</button>
<!-- New / Edit Name Modal -->
<div id="modal-name" class="modal fade" tabindex="-1" data-bs-backdrop="static">
<div class="modal-dialog modal-dialog-centered modal-dialog-scrollable">
<div class="modal-content">
<div class="modal-header">
<h5 id="title-name" class="modal-title"></h5>
<button type="button" class="btn-close" style="filter: unset;" data-bs-dismiss="modal"
aria-label="Close"></button>
</div>
<div class="modal-body">
<div class="mb-3 needs-validation">
<label for="input-name" class="form-label mb-2">Name</label>
<input type="text" id="input-name" class="form-control is-invalid responsive-input mt-1"
spellcheck="false" />
<div class="invalid-feedback">
Please provide a valid name.
</div>
</div>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-secondary" data-bs-dismiss="modal">Close</button>
<button id="btn-name-create" type="button" class="btn btn-success">Create</button>
</div>
</div>
</div>
</div>
<!-- Confirm Modal -->
<div id="modal-confirm" class="modal fade" tabindex="-1" data-bs-backdrop="static">
<div class="modal-dialog modal-dialog-centered modal-dialog-scrollable">
<div class="modal-content">
<div class="modal-header">
<h5 id="title-confirm" class="modal-title">Confirm</h5>
<button type="button" class="btn-close" style="filter: unset;" data-bs-dismiss="modal"
aria-label="Close"></button>
</div>
<div class="modal-body">
<p id="body-confirm" class="card-text">Are you sure?</p>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-secondary" data-bs-dismiss="modal">Close</button>
<button id="btn-confirm" type="button" class="btn btn-danger">Confirm</button>
</div>
</div>
</div>
</div>
<!-- Greet Modal -->
<div id="modal-greet" class="modal fade" style="--bs-modal-width: 800px;" tabindex="-1">
<div class="modal-dialog modal-dialog-centered modal-dialog-scrollable">
<div class="modal-content">
<div class="modal-header">
<h5 id="title-confirm" class="modal-title">Mallet BETA</h5>
</div>
<div class="modal-body">
<p class="fs-6">
<strong>Mallet</strong> is a program for documenting code in <strong><a
href="https://projectzomboid.com/blog/" target="_blank">Project
Zomboid</a></strong>.
Mallet produces
JSON documents for the <strong><a href="https://github.com/asledgehammer/PZ-Rosetta"
target="_blank">PZ-Rosetta</a></strong> framework,
deployed through the <strong><a href="https://github.com/asledgehammer/Umbrella"
target="_blank">Umbrella</a></strong> project.
<strong>Mallet</strong> is currently a WIP tool and is being actively developed and
polished.
Keep in mind that there may be jerky animations (or the lack thereof), when operating
the tool.
Value checks and error-broadcasting are currently very limited. If you need to check and
see if
the tool had an error occur, use the debug console in your web browser to check for
errors.
</p>
<p>
<a href="https://github.com/asledgehammer/Candle-Patch">Java API Catalog</a>
</p>
<h4>Support</h4>
<p>If you like what I do and helped your community a lot, feel free to buy me a coffee!<br>
<a href="https://ko-fi.com/jabdoesthings target="
_blank"">https://ko-fi.com/jabdoesthings</a></br>
<a href="https://www.paypal.com/paypalme/JabJabJab target="
_blank"">https://www.paypal.com/paypalme/JabJabJab</a></br>
</p>
<p>Discord Server: <a href="https://discord.gg/u3vWvcPX8f target="
_blank"">https://discord.gg/u3vWvcPX8f</a></p>
</div>
<div class="modal-footer">
<button id="btn-confirm" type="button" class="btn btn-primary"
data-bs-dismiss="modal">Ok</button>
</div>
</div>
</div>
</div>
<!-- Copy Button -->
<button id="btn-code-preview-copy" class="btn btn-sm responsive-btn"
style="display: none; position: absolute; top: 1rem; right: 4.5rem; z-index: 5" title="Copy Code">
<div class="btn-pane">
<i class="fa-solid fa-copy"></i>
</div>
</button>
<button id="btn-code-preview-cog" class="btn btn-sm responsive-btn"
style="display: none; position: absolute; top: 1rem; right: 7rem; z-index: 5" title="Copy Code">
<div class="btn-pane">
<i class="fa-solid fa-language"></i>
</div>
</button>
<div id="btns-code-left" class="p-0"
style="display: none; z-index: 5; position: absolute; top: 1rem; left: 1rem;">
<button id="app-btn-language-lua" class="btn btn-sm btn-primary" title="View Lua Code">Lua</button>
<button id="app-btn-language-typescript" class="btn btn-sm btn-primary"
title="View Lua Code">TypeScript</button>
<button id="app-btn-language-json" class="btn btn-sm btn-primary" title="View Lua Code">Rosetta
JSON</button>
</div>
<pre id="code-preview" class="w-100 h-100 p-4 m-0"
style="display: none; position: absolute; background-color: black; overflow: scroll;"></pre>
<!-- Simple Toast -->
<div class="p-0 m-0"
style="position: absolute; pointer-events: none; top: 0; left: 0; width: 100%; height: 100%;">
<div id="toast-simple" class="toast text-white"
style="filter: saturate(0.5); position: absolute; bottom: 1rem; left: 50%; transform: translateX(-50%);"
role="alert" aria-live="assertive" aria-atomic="true">
<div class="d-flex">
<div id="toast-simple-body" class="toast-body"></div>
<button type="button" class="btn-close me-2 m-auto text-white"
style="filter: none !important; font-weight: bold;" data-bs-dismiss="toast"
aria-label="Close"></button>
</div>
</div>
</div>
<!-- Error Toast -->
<div class="p-0 m-0"
style="position: absolute; pointer-events: none; top: 0; left: 0; width: 100%; height: 100%;">
<div id="toast-error" class="toast text-white"
style="filter: saturate(0.5); position: absolute; bottom: 1rem; left: 50%; transform: translateX(-50%);"
role="alert" aria-live="assertive" aria-atomic="true">
<div class="d-flex">
<div id="toast-error-body" class="toast-body">
<p id="toast-error-text"></p>
<textarea id="toast-error-details"></textarea>
</div>
<button type="button" class="btn-close me-2 m-auto text-white"
style="filter: none !important; font-weight: bold;" data-bs-dismiss="toast"
aria-label="Close"></button>
</div>
</div>
</div>
</div>
</div>
<script type="text/javascript" src="vendor/ten-lines-typescript-amd-loader.js"></script>
<script type="text/javascript" src="vendor/highlight/highlight.min.js"></script>
<script type="text/javascript" src="vendor/bootstrap/5.3.2/js/bootstrap.bundle.js"></script>
<script type="text/javascript" src="vendor/bs5treeview-1.2.0/dist/js/bstreeview.min.js"></script>
<!-- Include the Quill library -->
<script src="https://cdn.jsdelivr.net/npm/quill@2.0.0/dist/quill.js"></script>
<script src="https://cdn.jsdelivr.net/npm/quilljs-markdown@latest/dist/quilljs-markdown.js"></script>
<!-- To make TypeScript happy.. -->
<script>
define(['highlight.js'], ["require", "exports"], function (require, exports) {
exports.default = { ...hljs };
});
</script>
<script>
define(['luaparse'], ["require", "exports"], function (require, exports) {
console.log(luaparse);
exports.default = { ...luaparse };
});
</script>
<script type="text/javascript" src="known_types.js"></script>
<script type="text/javascript" src="build/app.js"></script>
<!-- For loading rosetta JSON files. -->
<input type=file id="load-file" style="display: none" accept="application/json" />
</body>
</html>