@liascript/exporter 3.0.0--1.0.3 → 3.0.1--1.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/assets/capacitor/{index.bfe7363b.js → index.a7f021f7.js} +1 -1
- package/dist/assets/capacitor/index.html +1 -1
- package/dist/assets/capacitor/{jszip.min.f6eda75b.js → jszip.min.43389eb1.js} +1 -1
- package/dist/assets/capacitor/{trystero-ipfs.min.b27a61d7.js → trystero-ipfs.min.f25fe3e7.js} +1 -1
- package/dist/assets/indexeddb/{index.599a57d6.js → index.4aceca2f.js} +1 -1
- package/dist/assets/indexeddb/index.html +1 -1
- package/dist/assets/indexeddb/{jszip.min.63142cc8.js → jszip.min.4fbcc13f.js} +1 -1
- package/dist/assets/scorm2004/{index.7a5820ab.js → index.33bec53a.js} +1 -1
- package/dist/assets/scorm2004/index.html +1 -1
- package/dist/assets/scorm2004/{jszip.min.63142cc8.js → jszip.min.4fbcc13f.js} +1 -1
- package/dist/assets/xapi/{index.018a032a.js → index.f2e89e49.js} +1 -1
- package/dist/assets/xapi/index.html +1 -1
- package/dist/assets/xapi/{jszip.min.eaecf580.js → jszip.min.19c66d77.js} +1 -1
- package/dist/index.js +47 -47
- package/dist/server/presets.json +94 -0
- package/dist/server/presets.yaml +120 -0
- package/dist/server/public/app.js +1 -0
- package/dist/server/public/assets/android.svg +38 -0
- package/dist/server/public/assets/cmi.svg +154 -0
- package/dist/server/public/assets/docx.svg +20 -0
- package/dist/server/public/assets/edX.svg +75 -0
- package/dist/server/public/assets/edx.svg +75 -0
- package/dist/server/public/assets/epub.svg +18 -0
- package/dist/server/public/assets/icon.svg +82 -0
- package/dist/server/public/assets/ilias.png +0 -0
- package/dist/server/public/assets/json.svg +4 -0
- package/dist/server/public/assets/learnworlds.png +0 -0
- package/dist/server/public/assets/moodle.svg +190 -0
- package/dist/server/public/assets/opal.png +0 -0
- package/dist/server/public/assets/openolat.png +0 -0
- package/dist/server/public/assets/pdf.svg +4 -0
- package/dist/server/public/assets/rdf.svg +4 -0
- package/dist/server/public/assets/scorm.png +0 -0
- package/dist/server/public/assets/web.png +0 -0
- package/dist/server/public/assets/xapi.png +0 -0
- package/dist/server/public/i18n.js +1 -0
- package/dist/server/public/index.html +1587 -0
- package/dist/server/public/locales/de.json +247 -0
- package/dist/server/public/locales/en.json +247 -0
- package/dist/server/public/status.html +251 -0
- package/dist/server/public/styles.css +712 -0
- package/package.json +5 -1
- package/.parcelrc +0 -3
- package/DESKTOP_APP_README.md +0 -58
- package/DOCKERHUB_DESCRIPTION.md +0 -52
- package/Dockerfile +0 -129
- package/PLAYSTORE_GUIDE.md +0 -172
- package/action.yml +0 -157
- package/custom.css +0 -10
- package/electron-builder.json +0 -149
- package/src/cli.ts +0 -69
- package/src/colorize.ts +0 -115
- package/src/export/android.ts +0 -419
- package/src/export/docx.ts +0 -1025
- package/src/export/epub.ts +0 -1306
- package/src/export/h5p.ts +0 -390
- package/src/export/helper.ts +0 -360
- package/src/export/ims.ts +0 -191
- package/src/export/pdf.ts +0 -406
- package/src/export/presets.ts +0 -220
- package/src/export/project.ts +0 -829
- package/src/export/rdf.ts +0 -551
- package/src/export/scorm12.ts +0 -167
- package/src/export/scorm2004.ts +0 -140
- package/src/export/web.ts +0 -306
- package/src/export/xapi.ts +0 -424
- package/src/exporter.ts +0 -296
- package/src/index.ts +0 -96
- package/src/parser.ts +0 -373
- package/src/presets.yaml +0 -219
- package/src/types.ts +0 -82
- package/tsconfig.json +0 -24
|
@@ -0,0 +1,712 @@
|
|
|
1
|
+
:root {
|
|
2
|
+
/* LiaScript Brand Colors */
|
|
3
|
+
--turquoise-darker: rgb(15, 54, 69);
|
|
4
|
+
--turquoise-dark: rgb(16, 116, 117);
|
|
5
|
+
--turquoise: rgb(20, 115, 117);
|
|
6
|
+
|
|
7
|
+
/* Theme Colors */
|
|
8
|
+
--primary: var(--turquoise);
|
|
9
|
+
--primary-light: rgba(20, 115, 117, 0.1);
|
|
10
|
+
--secondary: #64748b;
|
|
11
|
+
--success: #22c55e;
|
|
12
|
+
--error: #ef4444;
|
|
13
|
+
--bg: #f8fafc;
|
|
14
|
+
--card-bg: #ffffff;
|
|
15
|
+
--border: #e2e8f0;
|
|
16
|
+
--text: #1e293b;
|
|
17
|
+
--text-muted: #64748b;
|
|
18
|
+
--shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1);
|
|
19
|
+
--shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
|
|
20
|
+
--transition: all 0.2s ease;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
* {
|
|
24
|
+
margin: 0;
|
|
25
|
+
padding: 0;
|
|
26
|
+
box-sizing: border-box;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
body {
|
|
30
|
+
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
|
|
31
|
+
'Helvetica Neue', Arial, sans-serif;
|
|
32
|
+
background: var(--bg);
|
|
33
|
+
color: var(--text);
|
|
34
|
+
line-height: 1.6;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
/* Navbar */
|
|
38
|
+
.navbar {
|
|
39
|
+
background: var(--card-bg);
|
|
40
|
+
border-bottom: 1px solid var(--border);
|
|
41
|
+
box-shadow: var(--shadow);
|
|
42
|
+
position: sticky;
|
|
43
|
+
top: 0;
|
|
44
|
+
z-index: 100;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
.navbar-container {
|
|
48
|
+
max-width: 800px;
|
|
49
|
+
margin: 0 auto;
|
|
50
|
+
padding: 0 1rem;
|
|
51
|
+
display: flex;
|
|
52
|
+
align-items: center;
|
|
53
|
+
justify-content: space-between;
|
|
54
|
+
height: 60px;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
.navbar-brand {
|
|
58
|
+
display: flex;
|
|
59
|
+
align-items: center;
|
|
60
|
+
text-decoration: none;
|
|
61
|
+
transition: var(--transition);
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
.navbar-brand img {
|
|
65
|
+
height: 36px;
|
|
66
|
+
width: 36px;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
.navbar-brand:hover {
|
|
70
|
+
opacity: 0.8;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
.navbar-menu {
|
|
74
|
+
display: flex;
|
|
75
|
+
align-items: center;
|
|
76
|
+
gap: 1rem;
|
|
77
|
+
list-style: none;
|
|
78
|
+
margin: 0;
|
|
79
|
+
padding: 0;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
.navbar-link {
|
|
83
|
+
text-decoration: none;
|
|
84
|
+
color: var(--turquoise-darker);
|
|
85
|
+
padding: 0.5rem 1rem;
|
|
86
|
+
border-radius: 6px;
|
|
87
|
+
transition: var(--transition);
|
|
88
|
+
font-weight: 700;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
.navbar-link:hover {
|
|
92
|
+
color: var(--turquoise);
|
|
93
|
+
background: var(--primary-light);
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
.navbar-link.active {
|
|
97
|
+
color: var(--turquoise);
|
|
98
|
+
background: var(--primary-light);
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
/* Language Selector */
|
|
102
|
+
.language-selector-container {
|
|
103
|
+
display: flex;
|
|
104
|
+
align-items: center;
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
.language-selector {
|
|
108
|
+
background: var(--card-bg);
|
|
109
|
+
border: 2px solid var(--border);
|
|
110
|
+
border-radius: 6px;
|
|
111
|
+
padding: 0.3rem;
|
|
112
|
+
font-size: 0.8rem;
|
|
113
|
+
font-weight: 600;
|
|
114
|
+
color: var(--turquoise-darker);
|
|
115
|
+
cursor: pointer;
|
|
116
|
+
transition: var(--transition);
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
.language-selector:hover {
|
|
120
|
+
border-color: var(--turquoise);
|
|
121
|
+
background-color: var(--primary-light);
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
.language-selector:focus {
|
|
125
|
+
outline: none;
|
|
126
|
+
border-color: var(--turquoise);
|
|
127
|
+
box-shadow: 0 0 0 3px var(--primary-light);
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
.language-selector option {
|
|
131
|
+
background: var(--card-bg);
|
|
132
|
+
color: var(--turquoise-darker);
|
|
133
|
+
font-weight: 600;
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
.container {
|
|
137
|
+
max-width: 800px;
|
|
138
|
+
margin: 0 auto;
|
|
139
|
+
padding: 2rem 1rem;
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
/* Header */
|
|
143
|
+
header {
|
|
144
|
+
text-align: center;
|
|
145
|
+
margin-bottom: 3rem;
|
|
146
|
+
padding: 2rem 1rem;
|
|
147
|
+
background: var(--turquoise);
|
|
148
|
+
border-radius: 12px;
|
|
149
|
+
color: white;
|
|
150
|
+
box-shadow: var(--shadow);
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
header h1 {
|
|
154
|
+
font-size: 2rem;
|
|
155
|
+
margin-bottom: 0.5rem;
|
|
156
|
+
color: white;
|
|
157
|
+
font-weight: 600;
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
.subtitle {
|
|
161
|
+
color: rgba(255, 255, 255, 0.9);
|
|
162
|
+
font-size: 1rem;
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
/* Card */
|
|
166
|
+
.card {
|
|
167
|
+
background: var(--card-bg);
|
|
168
|
+
border: 1px solid var(--border);
|
|
169
|
+
border-radius: 12px;
|
|
170
|
+
padding: 2rem;
|
|
171
|
+
margin-bottom: 1.5rem;
|
|
172
|
+
box-shadow: var(--shadow);
|
|
173
|
+
transition: var(--transition);
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
.card:hover {
|
|
177
|
+
box-shadow: var(--shadow-lg);
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
.card h2 {
|
|
181
|
+
font-size: 1.25rem;
|
|
182
|
+
margin-bottom: 1.5rem;
|
|
183
|
+
color: var(--turquoise-darker);
|
|
184
|
+
font-weight: 700;
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
/* Tabs */
|
|
188
|
+
.source-tabs,
|
|
189
|
+
.export-tabs {
|
|
190
|
+
display: flex;
|
|
191
|
+
gap: 0.5rem;
|
|
192
|
+
margin-bottom: 1.5rem;
|
|
193
|
+
border-bottom: 1px solid var(--border);
|
|
194
|
+
}
|
|
195
|
+
|
|
196
|
+
.tab-button,
|
|
197
|
+
.export-tab-button {
|
|
198
|
+
background: none;
|
|
199
|
+
border: none;
|
|
200
|
+
padding: 0.75rem 1.5rem;
|
|
201
|
+
cursor: pointer;
|
|
202
|
+
font-size: 0.95rem;
|
|
203
|
+
color: var(--text-muted);
|
|
204
|
+
border-bottom: 2px solid transparent;
|
|
205
|
+
transition: all 0.2s;
|
|
206
|
+
}
|
|
207
|
+
|
|
208
|
+
.tab-button:hover,
|
|
209
|
+
.export-tab-button:hover {
|
|
210
|
+
color: var(--text);
|
|
211
|
+
}
|
|
212
|
+
|
|
213
|
+
.tab-button.active,
|
|
214
|
+
.export-tab-button.active {
|
|
215
|
+
color: var(--primary);
|
|
216
|
+
border-bottom-color: var(--primary);
|
|
217
|
+
}
|
|
218
|
+
|
|
219
|
+
.tab-panel,
|
|
220
|
+
.export-tab-panel {
|
|
221
|
+
display: none;
|
|
222
|
+
}
|
|
223
|
+
|
|
224
|
+
.tab-panel.active,
|
|
225
|
+
.export-tab-panel.active {
|
|
226
|
+
display: block;
|
|
227
|
+
}
|
|
228
|
+
|
|
229
|
+
/* Upload Area */
|
|
230
|
+
.upload-area {
|
|
231
|
+
border: 2px dashed var(--border);
|
|
232
|
+
border-radius: 12px;
|
|
233
|
+
padding: 3rem 2rem;
|
|
234
|
+
text-align: center;
|
|
235
|
+
cursor: pointer;
|
|
236
|
+
transition: var(--transition);
|
|
237
|
+
background: var(--bg);
|
|
238
|
+
}
|
|
239
|
+
|
|
240
|
+
.upload-area:hover {
|
|
241
|
+
border-color: var(--turquoise);
|
|
242
|
+
background: var(--primary-light);
|
|
243
|
+
}
|
|
244
|
+
|
|
245
|
+
.upload-area.drag-over {
|
|
246
|
+
border-color: var(--turquoise);
|
|
247
|
+
background: var(--primary-light);
|
|
248
|
+
border-style: solid;
|
|
249
|
+
}
|
|
250
|
+
|
|
251
|
+
.upload-area svg {
|
|
252
|
+
color: var(--turquoise);
|
|
253
|
+
margin-bottom: 1rem;
|
|
254
|
+
}
|
|
255
|
+
|
|
256
|
+
.upload-area p {
|
|
257
|
+
color: var(--text);
|
|
258
|
+
margin-bottom: 0.5rem;
|
|
259
|
+
font-weight: 500;
|
|
260
|
+
}
|
|
261
|
+
|
|
262
|
+
.upload-area .hint {
|
|
263
|
+
color: var(--text-muted);
|
|
264
|
+
font-size: 0.875rem;
|
|
265
|
+
}
|
|
266
|
+
|
|
267
|
+
.upload-area input[type='file'] {
|
|
268
|
+
display: none;
|
|
269
|
+
}
|
|
270
|
+
|
|
271
|
+
/* File List */
|
|
272
|
+
.file-list {
|
|
273
|
+
margin-top: 1rem;
|
|
274
|
+
}
|
|
275
|
+
|
|
276
|
+
.file-item {
|
|
277
|
+
display: flex;
|
|
278
|
+
align-items: center;
|
|
279
|
+
gap: 1rem;
|
|
280
|
+
padding: 0.75rem;
|
|
281
|
+
background: var(--bg);
|
|
282
|
+
border: 1px solid var(--border);
|
|
283
|
+
border-radius: 8px;
|
|
284
|
+
margin-bottom: 0.5rem;
|
|
285
|
+
transition: var(--transition);
|
|
286
|
+
}
|
|
287
|
+
|
|
288
|
+
.file-item:hover {
|
|
289
|
+
border-color: var(--turquoise);
|
|
290
|
+
background: var(--primary-light);
|
|
291
|
+
}
|
|
292
|
+
|
|
293
|
+
.file-name {
|
|
294
|
+
flex: 1;
|
|
295
|
+
font-size: 0.95rem;
|
|
296
|
+
}
|
|
297
|
+
|
|
298
|
+
.file-size {
|
|
299
|
+
color: var(--text-muted);
|
|
300
|
+
font-size: 0.875rem;
|
|
301
|
+
}
|
|
302
|
+
|
|
303
|
+
.remove-file {
|
|
304
|
+
background: none;
|
|
305
|
+
border: none;
|
|
306
|
+
color: var(--error);
|
|
307
|
+
font-size: 1.5rem;
|
|
308
|
+
cursor: pointer;
|
|
309
|
+
padding: 0;
|
|
310
|
+
width: 24px;
|
|
311
|
+
height: 24px;
|
|
312
|
+
display: flex;
|
|
313
|
+
align-items: center;
|
|
314
|
+
justify-content: center;
|
|
315
|
+
border-radius: 4px;
|
|
316
|
+
transition: background 0.2s;
|
|
317
|
+
}
|
|
318
|
+
|
|
319
|
+
.remove-file:hover {
|
|
320
|
+
background: #fee;
|
|
321
|
+
}
|
|
322
|
+
|
|
323
|
+
/* Form Elements */
|
|
324
|
+
.form-group {
|
|
325
|
+
margin-bottom: 1.5rem;
|
|
326
|
+
}
|
|
327
|
+
|
|
328
|
+
.form-group label {
|
|
329
|
+
display: block;
|
|
330
|
+
margin-bottom: 0.5rem;
|
|
331
|
+
font-weight: 500;
|
|
332
|
+
color: var(--text);
|
|
333
|
+
}
|
|
334
|
+
|
|
335
|
+
.form-group input,
|
|
336
|
+
.form-group select,
|
|
337
|
+
.form-group textarea {
|
|
338
|
+
width: 100%;
|
|
339
|
+
padding: 0.75rem;
|
|
340
|
+
border: 1px solid var(--border);
|
|
341
|
+
border-radius: 6px;
|
|
342
|
+
font-size: 1rem;
|
|
343
|
+
transition: border-color 0.2s;
|
|
344
|
+
font-family: inherit;
|
|
345
|
+
}
|
|
346
|
+
|
|
347
|
+
.form-group input:focus,
|
|
348
|
+
.form-group select:focus,
|
|
349
|
+
.form-group textarea:focus {
|
|
350
|
+
outline: none;
|
|
351
|
+
border-color: var(--turquoise);
|
|
352
|
+
box-shadow: 0 0 0 3px var(--primary-light);
|
|
353
|
+
}
|
|
354
|
+
|
|
355
|
+
.form-group textarea {
|
|
356
|
+
resize: vertical;
|
|
357
|
+
min-height: 80px;
|
|
358
|
+
font-family: 'Monaco', 'Courier New', monospace;
|
|
359
|
+
font-size: 0.875rem;
|
|
360
|
+
}
|
|
361
|
+
|
|
362
|
+
.form-group input[readonly] {
|
|
363
|
+
background: var(--bg);
|
|
364
|
+
color: var(--text-muted);
|
|
365
|
+
}
|
|
366
|
+
|
|
367
|
+
.form-group .hint {
|
|
368
|
+
display: block;
|
|
369
|
+
margin-top: 0.25rem;
|
|
370
|
+
font-size: 0.875rem;
|
|
371
|
+
color: var(--text-muted);
|
|
372
|
+
}
|
|
373
|
+
|
|
374
|
+
.form-row {
|
|
375
|
+
display: grid;
|
|
376
|
+
grid-template-columns: 1fr 1fr;
|
|
377
|
+
gap: 1rem;
|
|
378
|
+
}
|
|
379
|
+
|
|
380
|
+
/* Preset Grid */
|
|
381
|
+
.preset-grid {
|
|
382
|
+
display: grid;
|
|
383
|
+
grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
|
|
384
|
+
gap: 1rem;
|
|
385
|
+
margin-bottom: 1.5rem;
|
|
386
|
+
}
|
|
387
|
+
|
|
388
|
+
.preset-tile {
|
|
389
|
+
position: relative;
|
|
390
|
+
cursor: pointer;
|
|
391
|
+
}
|
|
392
|
+
|
|
393
|
+
.preset-tile input[type='radio'] {
|
|
394
|
+
position: absolute;
|
|
395
|
+
opacity: 0;
|
|
396
|
+
}
|
|
397
|
+
|
|
398
|
+
.preset-content {
|
|
399
|
+
border: 2px solid var(--border);
|
|
400
|
+
border-radius: 12px;
|
|
401
|
+
padding: 1.5rem 1rem;
|
|
402
|
+
text-align: center;
|
|
403
|
+
transition: var(--transition);
|
|
404
|
+
background: white;
|
|
405
|
+
}
|
|
406
|
+
|
|
407
|
+
.preset-tile:hover .preset-content {
|
|
408
|
+
border-color: var(--turquoise);
|
|
409
|
+
background: var(--primary-light);
|
|
410
|
+
}
|
|
411
|
+
|
|
412
|
+
.preset-tile input:checked + .preset-content {
|
|
413
|
+
border-color: var(--turquoise);
|
|
414
|
+
background: var(--primary-light);
|
|
415
|
+
box-shadow: 0 0 0 3px rgba(20, 115, 117, 0.1);
|
|
416
|
+
}
|
|
417
|
+
|
|
418
|
+
.preset-content h3 {
|
|
419
|
+
font-size: 1rem;
|
|
420
|
+
margin-bottom: 0.25rem;
|
|
421
|
+
color: var(--turquoise-darker);
|
|
422
|
+
font-weight: 600;
|
|
423
|
+
}
|
|
424
|
+
|
|
425
|
+
.preset-content p {
|
|
426
|
+
font-size: 0.875rem;
|
|
427
|
+
color: var(--text-muted);
|
|
428
|
+
margin-bottom: 0.5rem;
|
|
429
|
+
}
|
|
430
|
+
|
|
431
|
+
.format-icon {
|
|
432
|
+
font-size: 2rem;
|
|
433
|
+
margin-bottom: 0.5rem;
|
|
434
|
+
}
|
|
435
|
+
|
|
436
|
+
/* Collapsible */
|
|
437
|
+
.collapsible-toggle {
|
|
438
|
+
background: none;
|
|
439
|
+
border: none;
|
|
440
|
+
cursor: pointer;
|
|
441
|
+
font-size: 1.25rem;
|
|
442
|
+
font-weight: 600;
|
|
443
|
+
color: var(--text);
|
|
444
|
+
display: flex;
|
|
445
|
+
align-items: center;
|
|
446
|
+
gap: 0.5rem;
|
|
447
|
+
padding: 0;
|
|
448
|
+
width: 100%;
|
|
449
|
+
text-align: left;
|
|
450
|
+
}
|
|
451
|
+
|
|
452
|
+
.toggle-icon {
|
|
453
|
+
font-size: 0.875rem;
|
|
454
|
+
transition: transform 0.2s;
|
|
455
|
+
}
|
|
456
|
+
|
|
457
|
+
.collapsible-content {
|
|
458
|
+
margin-top: 1.5rem;
|
|
459
|
+
}
|
|
460
|
+
|
|
461
|
+
.hidden {
|
|
462
|
+
display: none;
|
|
463
|
+
}
|
|
464
|
+
|
|
465
|
+
/* Settings Groups */
|
|
466
|
+
.settings-group {
|
|
467
|
+
margin-bottom: 2rem;
|
|
468
|
+
padding-bottom: 1.5rem;
|
|
469
|
+
border-bottom: 1px solid var(--border);
|
|
470
|
+
}
|
|
471
|
+
|
|
472
|
+
.settings-group:last-child {
|
|
473
|
+
border-bottom: none;
|
|
474
|
+
margin-bottom: 0;
|
|
475
|
+
padding-bottom: 0;
|
|
476
|
+
}
|
|
477
|
+
|
|
478
|
+
.settings-heading {
|
|
479
|
+
font-size: 1rem;
|
|
480
|
+
font-weight: 600;
|
|
481
|
+
color: var(--turquoise-darker);
|
|
482
|
+
margin-bottom: 1rem;
|
|
483
|
+
}
|
|
484
|
+
|
|
485
|
+
.settings-group .form-group {
|
|
486
|
+
margin-bottom: 1rem;
|
|
487
|
+
}
|
|
488
|
+
|
|
489
|
+
.settings-group .form-group:last-child {
|
|
490
|
+
margin-bottom: 0;
|
|
491
|
+
}
|
|
492
|
+
|
|
493
|
+
.settings-group.no-settings {
|
|
494
|
+
border-bottom: none;
|
|
495
|
+
text-align: center;
|
|
496
|
+
padding: 2rem 0;
|
|
497
|
+
}
|
|
498
|
+
|
|
499
|
+
.form-group label input[type='checkbox'] {
|
|
500
|
+
width: auto;
|
|
501
|
+
margin-right: 0.5rem;
|
|
502
|
+
cursor: pointer;
|
|
503
|
+
}
|
|
504
|
+
|
|
505
|
+
/* Buttons */
|
|
506
|
+
.btn-primary {
|
|
507
|
+
background: var(--turquoise);
|
|
508
|
+
color: white;
|
|
509
|
+
border: none;
|
|
510
|
+
padding: 0.875rem 2rem;
|
|
511
|
+
font-size: 1rem;
|
|
512
|
+
font-weight: 500;
|
|
513
|
+
border-radius: 8px;
|
|
514
|
+
cursor: pointer;
|
|
515
|
+
transition: var(--transition);
|
|
516
|
+
display: inline-flex;
|
|
517
|
+
align-items: center;
|
|
518
|
+
gap: 0.5rem;
|
|
519
|
+
text-decoration: none;
|
|
520
|
+
}
|
|
521
|
+
|
|
522
|
+
.btn-primary:hover {
|
|
523
|
+
background: var(--turquoise-dark);
|
|
524
|
+
}
|
|
525
|
+
|
|
526
|
+
.btn-primary:disabled {
|
|
527
|
+
background: var(--secondary);
|
|
528
|
+
cursor: not-allowed;
|
|
529
|
+
}
|
|
530
|
+
|
|
531
|
+
.btn-secondary {
|
|
532
|
+
background: var(--secondary);
|
|
533
|
+
color: white;
|
|
534
|
+
border: none;
|
|
535
|
+
padding: 0.875rem 2rem;
|
|
536
|
+
font-size: 1rem;
|
|
537
|
+
font-weight: 500;
|
|
538
|
+
border-radius: 6px;
|
|
539
|
+
cursor: pointer;
|
|
540
|
+
transition: background 0.2s;
|
|
541
|
+
}
|
|
542
|
+
|
|
543
|
+
.btn-secondary:hover {
|
|
544
|
+
background: #475569;
|
|
545
|
+
}
|
|
546
|
+
|
|
547
|
+
/* Submit Section */
|
|
548
|
+
.submit-section {
|
|
549
|
+
text-align: center;
|
|
550
|
+
}
|
|
551
|
+
|
|
552
|
+
.submit-section .btn-primary {
|
|
553
|
+
margin-bottom: 1rem;
|
|
554
|
+
}
|
|
555
|
+
|
|
556
|
+
.info-text {
|
|
557
|
+
color: var(--text-muted);
|
|
558
|
+
font-size: 0.875rem;
|
|
559
|
+
line-height: 1.5;
|
|
560
|
+
}
|
|
561
|
+
|
|
562
|
+
/* Modal */
|
|
563
|
+
.modal {
|
|
564
|
+
position: fixed;
|
|
565
|
+
top: 0;
|
|
566
|
+
left: 0;
|
|
567
|
+
right: 0;
|
|
568
|
+
bottom: 0;
|
|
569
|
+
background: rgba(0, 0, 0, 0.5);
|
|
570
|
+
display: flex;
|
|
571
|
+
align-items: center;
|
|
572
|
+
justify-content: center;
|
|
573
|
+
z-index: 1000;
|
|
574
|
+
padding: 1rem;
|
|
575
|
+
}
|
|
576
|
+
|
|
577
|
+
.modal.hidden {
|
|
578
|
+
display: none;
|
|
579
|
+
}
|
|
580
|
+
|
|
581
|
+
.modal-content {
|
|
582
|
+
background: var(--card-bg);
|
|
583
|
+
border-radius: 12px;
|
|
584
|
+
padding: 2rem;
|
|
585
|
+
max-width: 500px;
|
|
586
|
+
width: 100%;
|
|
587
|
+
box-shadow: var(--shadow-lg);
|
|
588
|
+
animation: modalSlideIn 0.3s ease;
|
|
589
|
+
}
|
|
590
|
+
|
|
591
|
+
@keyframes modalSlideIn {
|
|
592
|
+
from {
|
|
593
|
+
opacity: 0;
|
|
594
|
+
transform: translateY(-20px);
|
|
595
|
+
}
|
|
596
|
+
to {
|
|
597
|
+
opacity: 1;
|
|
598
|
+
transform: translateY(0);
|
|
599
|
+
}
|
|
600
|
+
}
|
|
601
|
+
|
|
602
|
+
.modal-content h2 {
|
|
603
|
+
margin-bottom: 1.5rem;
|
|
604
|
+
color: var(--turquoise-darker);
|
|
605
|
+
font-weight: 600;
|
|
606
|
+
}
|
|
607
|
+
|
|
608
|
+
.modal-content p {
|
|
609
|
+
margin-bottom: 0.75rem;
|
|
610
|
+
}
|
|
611
|
+
|
|
612
|
+
.success-message {
|
|
613
|
+
color: var(--success);
|
|
614
|
+
font-weight: 500;
|
|
615
|
+
margin-top: 1rem;
|
|
616
|
+
}
|
|
617
|
+
|
|
618
|
+
.modal-actions {
|
|
619
|
+
display: flex;
|
|
620
|
+
gap: 1rem;
|
|
621
|
+
margin-top: 2rem;
|
|
622
|
+
}
|
|
623
|
+
|
|
624
|
+
.modal-actions .btn-primary,
|
|
625
|
+
.modal-actions .btn-secondary {
|
|
626
|
+
flex: 1;
|
|
627
|
+
justify-content: center;
|
|
628
|
+
}
|
|
629
|
+
|
|
630
|
+
/* Footer */
|
|
631
|
+
footer {
|
|
632
|
+
text-align: center;
|
|
633
|
+
margin-top: 4rem;
|
|
634
|
+
padding: 2rem 0;
|
|
635
|
+
color: var(--text-muted);
|
|
636
|
+
font-size: 0.875rem;
|
|
637
|
+
}
|
|
638
|
+
|
|
639
|
+
/* Responsive */
|
|
640
|
+
@media (max-width: 640px) {
|
|
641
|
+
.navbar-container {
|
|
642
|
+
flex-direction: column;
|
|
643
|
+
height: auto;
|
|
644
|
+
padding: 1rem;
|
|
645
|
+
gap: 1rem;
|
|
646
|
+
}
|
|
647
|
+
|
|
648
|
+
.navbar-brand {
|
|
649
|
+
font-size: 1rem;
|
|
650
|
+
}
|
|
651
|
+
|
|
652
|
+
.navbar-menu {
|
|
653
|
+
width: 100%;
|
|
654
|
+
justify-content: center;
|
|
655
|
+
}
|
|
656
|
+
|
|
657
|
+
.preset-grid {
|
|
658
|
+
grid-template-columns: 1fr 1fr;
|
|
659
|
+
}
|
|
660
|
+
|
|
661
|
+
.form-row {
|
|
662
|
+
grid-template-columns: 1fr;
|
|
663
|
+
}
|
|
664
|
+
|
|
665
|
+
.modal-actions {
|
|
666
|
+
flex-direction: column;
|
|
667
|
+
}
|
|
668
|
+
}
|
|
669
|
+
|
|
670
|
+
/* Status Page */
|
|
671
|
+
.status-badge {
|
|
672
|
+
display: inline-block;
|
|
673
|
+
padding: 0.25rem 0.75rem;
|
|
674
|
+
border-radius: 4px;
|
|
675
|
+
font-size: 0.875rem;
|
|
676
|
+
font-weight: 500;
|
|
677
|
+
}
|
|
678
|
+
.status-queued {
|
|
679
|
+
background: #dbeafe;
|
|
680
|
+
color: #1e40af;
|
|
681
|
+
}
|
|
682
|
+
.status-processing {
|
|
683
|
+
background: #fef3c7;
|
|
684
|
+
color: #92400e;
|
|
685
|
+
}
|
|
686
|
+
.status-completed {
|
|
687
|
+
background: #d1fae5;
|
|
688
|
+
color: #065f46;
|
|
689
|
+
}
|
|
690
|
+
.status-failed {
|
|
691
|
+
background: #fee2e2;
|
|
692
|
+
color: #991b1b;
|
|
693
|
+
}
|
|
694
|
+
.progress-bar {
|
|
695
|
+
width: 100%;
|
|
696
|
+
height: 8px;
|
|
697
|
+
background: var(--border);
|
|
698
|
+
border-radius: 4px;
|
|
699
|
+
overflow: hidden;
|
|
700
|
+
margin: 1rem 0;
|
|
701
|
+
}
|
|
702
|
+
.progress-fill {
|
|
703
|
+
height: 100%;
|
|
704
|
+
background: var(--primary);
|
|
705
|
+
transition: width 0.3s;
|
|
706
|
+
}
|
|
707
|
+
.refresh-info {
|
|
708
|
+
text-align: center;
|
|
709
|
+
color: var(--text-muted);
|
|
710
|
+
font-size: 0.875rem;
|
|
711
|
+
margin-top: 1rem;
|
|
712
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@liascript/exporter",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.1--1.0.3",
|
|
4
4
|
"description": "A generic exporter for LiaScript",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"repository": {
|
|
@@ -17,6 +17,9 @@
|
|
|
17
17
|
"liaex": "dist/index.js"
|
|
18
18
|
},
|
|
19
19
|
"preferGlobal": true,
|
|
20
|
+
"files": [
|
|
21
|
+
"dist/"
|
|
22
|
+
],
|
|
20
23
|
"scripts": {
|
|
21
24
|
"postinstall": "npx puppeteer browsers install chrome",
|
|
22
25
|
"__preinstall": "cd LiaScript && npm i && npm run build:scorm1.2 && cp -r dist ../assets/scorm1.2",
|
|
@@ -33,6 +36,7 @@
|
|
|
33
36
|
"asset:capacitor": "cd LiaScript && git checkout feat/capacitor8 && rm -rf node_modules && npm i && npm run build:indexeddb && cp -r dist ../dist/assets/capacitor && git checkout development && rm -rf node_modules && npm i",
|
|
34
37
|
"asset:deduplicate": "./scripts/deduplicate-assets.sh",
|
|
35
38
|
"build": "npx parcel build --no-cache --no-source-maps src/index.ts && npm run shebang && npm run copy:public && npm run copy:presets",
|
|
39
|
+
"build:all": "npm run clean && npm run build:assets && npm run build && npm run minify",
|
|
36
40
|
"build:debug": "npx parcel build --target node --no-minify --log-level 5 src/index.ts",
|
|
37
41
|
"watch": "npx parcel serve --no-cache --no-source-maps src/index.ts --out-dir dist --out-file index.js",
|
|
38
42
|
"copy:public": "node scripts/copy-files.js",
|
package/.parcelrc
DELETED