@willwade/aac-processors 0.0.30 โ 0.1.1
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/README.md +52 -852
- package/dist/browser/core/baseProcessor.js +241 -0
- package/dist/browser/core/stringCasing.js +179 -0
- package/dist/browser/core/treeStructure.js +255 -0
- package/dist/browser/index.browser.js +73 -0
- package/dist/browser/processors/applePanelsProcessor.js +582 -0
- package/dist/browser/processors/astericsGridProcessor.js +1509 -0
- package/dist/browser/processors/dotProcessor.js +221 -0
- package/dist/browser/processors/gridset/commands.js +962 -0
- package/dist/browser/processors/gridset/crypto.js +53 -0
- package/dist/browser/processors/gridset/password.js +49 -0
- package/dist/browser/processors/gridset/pluginTypes.js +277 -0
- package/dist/browser/processors/gridset/resolver.js +137 -0
- package/dist/browser/processors/gridset/symbolAlignment.js +276 -0
- package/dist/browser/processors/gridset/symbols.js +464 -0
- package/dist/browser/processors/gridsetProcessor.js +2002 -0
- package/dist/browser/processors/obfProcessor.js +705 -0
- package/dist/browser/processors/opmlProcessor.js +274 -0
- package/dist/browser/types/aac.js +38 -0
- package/dist/browser/utilities/analytics/utils/idGenerator.js +89 -0
- package/dist/browser/utilities/translation/translationProcessor.js +200 -0
- package/dist/browser/utils/io.js +95 -0
- package/dist/browser/validation/baseValidator.js +156 -0
- package/dist/browser/validation/gridsetValidator.js +356 -0
- package/dist/browser/validation/obfValidator.js +500 -0
- package/dist/browser/validation/validationTypes.js +46 -0
- package/dist/cli/index.js +5 -5
- package/dist/core/analyze.d.ts +2 -2
- package/dist/core/analyze.js +2 -2
- package/dist/core/baseProcessor.d.ts +5 -4
- package/dist/core/baseProcessor.js +22 -27
- package/dist/core/treeStructure.d.ts +5 -5
- package/dist/core/treeStructure.js +1 -4
- package/dist/index.browser.d.ts +37 -0
- package/dist/index.browser.js +99 -0
- package/dist/index.d.ts +1 -48
- package/dist/index.js +1 -136
- package/dist/index.node.d.ts +48 -0
- package/dist/index.node.js +152 -0
- package/dist/processors/applePanelsProcessor.d.ts +5 -4
- package/dist/processors/applePanelsProcessor.js +58 -62
- package/dist/processors/astericsGridProcessor.d.ts +7 -6
- package/dist/processors/astericsGridProcessor.js +31 -42
- package/dist/processors/dotProcessor.d.ts +5 -4
- package/dist/processors/dotProcessor.js +25 -33
- package/dist/processors/excelProcessor.d.ts +4 -3
- package/dist/processors/excelProcessor.js +6 -3
- package/dist/processors/gridset/crypto.d.ts +18 -0
- package/dist/processors/gridset/crypto.js +57 -0
- package/dist/processors/gridset/helpers.d.ts +1 -1
- package/dist/processors/gridset/helpers.js +18 -8
- package/dist/processors/gridset/password.d.ts +20 -3
- package/dist/processors/gridset/password.js +29 -12
- package/dist/processors/gridset/symbols.js +63 -46
- package/dist/processors/gridset/wordlistHelpers.d.ts +3 -3
- package/dist/processors/gridset/wordlistHelpers.js +21 -20
- package/dist/processors/gridsetProcessor.d.ts +7 -12
- package/dist/processors/gridsetProcessor.js +116 -77
- package/dist/processors/obfProcessor.d.ts +9 -7
- package/dist/processors/obfProcessor.js +131 -56
- package/dist/processors/obfsetProcessor.d.ts +5 -4
- package/dist/processors/obfsetProcessor.js +10 -16
- package/dist/processors/opmlProcessor.d.ts +5 -4
- package/dist/processors/opmlProcessor.js +27 -34
- package/dist/processors/snapProcessor.d.ts +8 -7
- package/dist/processors/snapProcessor.js +15 -12
- package/dist/processors/touchchatProcessor.d.ts +8 -7
- package/dist/processors/touchchatProcessor.js +22 -17
- package/dist/types/aac.d.ts +0 -2
- package/dist/types/aac.js +2 -0
- package/dist/utils/io.d.ts +12 -0
- package/dist/utils/io.js +107 -0
- package/dist/validation/gridsetValidator.js +10 -9
- package/dist/validation/snapValidator.js +28 -35
- package/docs/BROWSER_USAGE.md +618 -0
- package/docs/PAGESET_GETTING_STARTED.md +185 -0
- package/examples/README.md +77 -0
- package/examples/browser-test-server.js +81 -0
- package/examples/browser-test.html +331 -0
- package/examples/vitedemo/QUICKSTART.md +75 -0
- package/examples/vitedemo/README.md +157 -0
- package/examples/vitedemo/index.html +531 -0
- package/examples/vitedemo/package-lock.json +1221 -0
- package/examples/vitedemo/package.json +18 -0
- package/examples/vitedemo/src/main.ts +871 -0
- package/examples/vitedemo/test-files/example.dot +14 -0
- package/examples/vitedemo/test-files/example.grd +1 -0
- package/examples/vitedemo/test-files/example.gridset +0 -0
- package/examples/vitedemo/test-files/example.obz +0 -0
- package/examples/vitedemo/test-files/example.opml +18 -0
- package/examples/vitedemo/test-files/simple.obf +53 -0
- package/examples/vitedemo/tsconfig.json +24 -0
- package/examples/vitedemo/vite.config.ts +34 -0
- package/package.json +21 -4
|
@@ -0,0 +1,531 @@
|
|
|
1
|
+
<!DOCTYPE html>
|
|
2
|
+
<html lang="en">
|
|
3
|
+
<head>
|
|
4
|
+
<meta charset="UTF-8">
|
|
5
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
6
|
+
<title>AAC Processors - Browser Demo</title>
|
|
7
|
+
<style>
|
|
8
|
+
* {
|
|
9
|
+
box-sizing: border-box;
|
|
10
|
+
margin: 0;
|
|
11
|
+
padding: 0;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
body {
|
|
15
|
+
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
|
|
16
|
+
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
|
|
17
|
+
min-height: 100vh;
|
|
18
|
+
padding: 20px;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
.container {
|
|
22
|
+
max-width: 1400px;
|
|
23
|
+
margin: 0 auto;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
header {
|
|
27
|
+
background: white;
|
|
28
|
+
border-radius: 12px;
|
|
29
|
+
padding: 30px;
|
|
30
|
+
margin-bottom: 20px;
|
|
31
|
+
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
h1 {
|
|
35
|
+
color: #333;
|
|
36
|
+
margin-bottom: 10px;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
.subtitle {
|
|
40
|
+
color: #666;
|
|
41
|
+
font-size: 14px;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
.main-grid {
|
|
45
|
+
display: grid;
|
|
46
|
+
grid-template-columns: 400px 1fr;
|
|
47
|
+
gap: 20px;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
.panel {
|
|
51
|
+
background: white;
|
|
52
|
+
border-radius: 12px;
|
|
53
|
+
padding: 20px;
|
|
54
|
+
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
.panel-title {
|
|
58
|
+
font-size: 18px;
|
|
59
|
+
font-weight: 600;
|
|
60
|
+
color: #333;
|
|
61
|
+
margin-bottom: 15px;
|
|
62
|
+
padding-bottom: 10px;
|
|
63
|
+
border-bottom: 2px solid #667eea;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
.tab-header {
|
|
67
|
+
display: flex;
|
|
68
|
+
gap: 8px;
|
|
69
|
+
margin-bottom: 15px;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
.tab-btn {
|
|
73
|
+
flex: 1;
|
|
74
|
+
border: 1px solid #d6daf5;
|
|
75
|
+
background: #f7f8ff;
|
|
76
|
+
color: #3d4bb8;
|
|
77
|
+
padding: 8px 12px;
|
|
78
|
+
border-radius: 8px;
|
|
79
|
+
font-size: 13px;
|
|
80
|
+
font-weight: 600;
|
|
81
|
+
cursor: pointer;
|
|
82
|
+
transition: all 0.2s;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
.tab-btn.active {
|
|
86
|
+
background: #667eea;
|
|
87
|
+
color: #fff;
|
|
88
|
+
border-color: #667eea;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
.tab-content {
|
|
92
|
+
display: none;
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
.tab-content.active {
|
|
96
|
+
display: block;
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
.upload-area {
|
|
100
|
+
border: 2px dashed #ccc;
|
|
101
|
+
border-radius: 8px;
|
|
102
|
+
padding: 30px;
|
|
103
|
+
text-align: center;
|
|
104
|
+
cursor: pointer;
|
|
105
|
+
transition: all 0.3s;
|
|
106
|
+
margin-bottom: 15px;
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
.upload-area:hover {
|
|
110
|
+
border-color: #667eea;
|
|
111
|
+
background: #f8f9ff;
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
.upload-area.dragover {
|
|
115
|
+
border-color: #667eea;
|
|
116
|
+
background: #f0f2ff;
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
.upload-icon {
|
|
120
|
+
font-size: 48px;
|
|
121
|
+
margin-bottom: 10px;
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
#fileInput {
|
|
125
|
+
display: none;
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
.btn {
|
|
129
|
+
background: #667eea;
|
|
130
|
+
color: white;
|
|
131
|
+
border: none;
|
|
132
|
+
padding: 10px 20px;
|
|
133
|
+
border-radius: 6px;
|
|
134
|
+
cursor: pointer;
|
|
135
|
+
font-size: 14px;
|
|
136
|
+
font-weight: 500;
|
|
137
|
+
transition: background 0.3s;
|
|
138
|
+
width: 100%;
|
|
139
|
+
margin-bottom: 10px;
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
.btn:hover {
|
|
143
|
+
background: #5568d3;
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
.btn:disabled {
|
|
147
|
+
background: #ccc;
|
|
148
|
+
cursor: not-allowed;
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
.btn-secondary {
|
|
152
|
+
background: #6c757d;
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
.btn-secondary:hover {
|
|
156
|
+
background: #5a6268;
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
.stats {
|
|
160
|
+
display: grid;
|
|
161
|
+
grid-template-columns: repeat(2, 1fr);
|
|
162
|
+
gap: 10px;
|
|
163
|
+
margin-bottom: 15px;
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
.stat-card {
|
|
167
|
+
background: #f8f9fa;
|
|
168
|
+
border-radius: 8px;
|
|
169
|
+
padding: 15px;
|
|
170
|
+
text-align: center;
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
.stat-value {
|
|
174
|
+
font-size: 24px;
|
|
175
|
+
font-weight: 700;
|
|
176
|
+
color: #667eea;
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
.stat-label {
|
|
180
|
+
font-size: 12px;
|
|
181
|
+
color: #666;
|
|
182
|
+
margin-top: 5px;
|
|
183
|
+
}
|
|
184
|
+
|
|
185
|
+
.processor-info {
|
|
186
|
+
background: #e7f3ff;
|
|
187
|
+
border-left: 4px solid #667eea;
|
|
188
|
+
padding: 12px;
|
|
189
|
+
border-radius: 4px;
|
|
190
|
+
margin-bottom: 15px;
|
|
191
|
+
font-size: 13px;
|
|
192
|
+
}
|
|
193
|
+
|
|
194
|
+
.processor-name {
|
|
195
|
+
font-weight: 600;
|
|
196
|
+
color: #333;
|
|
197
|
+
}
|
|
198
|
+
|
|
199
|
+
.results-panel {
|
|
200
|
+
max-height: 600px;
|
|
201
|
+
overflow-y: auto;
|
|
202
|
+
}
|
|
203
|
+
|
|
204
|
+
.page-card {
|
|
205
|
+
background: #f8f9fa;
|
|
206
|
+
border-radius: 8px;
|
|
207
|
+
padding: 15px;
|
|
208
|
+
margin-bottom: 15px;
|
|
209
|
+
border-left: 4px solid #667eea;
|
|
210
|
+
}
|
|
211
|
+
|
|
212
|
+
.page-title {
|
|
213
|
+
font-size: 16px;
|
|
214
|
+
font-weight: 600;
|
|
215
|
+
color: #333;
|
|
216
|
+
margin-bottom: 10px;
|
|
217
|
+
}
|
|
218
|
+
|
|
219
|
+
.button-grid {
|
|
220
|
+
display: grid;
|
|
221
|
+
grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
|
|
222
|
+
gap: 10px;
|
|
223
|
+
margin-top: 10px;
|
|
224
|
+
}
|
|
225
|
+
|
|
226
|
+
.button-item {
|
|
227
|
+
background: white;
|
|
228
|
+
border: 1px solid #ddd;
|
|
229
|
+
border-radius: 6px;
|
|
230
|
+
padding: 10px;
|
|
231
|
+
font-size: 12px;
|
|
232
|
+
cursor: pointer;
|
|
233
|
+
transition: all 0.2s;
|
|
234
|
+
}
|
|
235
|
+
|
|
236
|
+
.button-item:hover {
|
|
237
|
+
border-color: #667eea;
|
|
238
|
+
background: #f8f9ff;
|
|
239
|
+
}
|
|
240
|
+
|
|
241
|
+
.button-label {
|
|
242
|
+
font-weight: 600;
|
|
243
|
+
color: #333;
|
|
244
|
+
margin-bottom: 5px;
|
|
245
|
+
}
|
|
246
|
+
|
|
247
|
+
.button-message {
|
|
248
|
+
color: #666;
|
|
249
|
+
font-size: 11px;
|
|
250
|
+
}
|
|
251
|
+
|
|
252
|
+
.button-type {
|
|
253
|
+
display: inline-block;
|
|
254
|
+
padding: 2px 6px;
|
|
255
|
+
border-radius: 3px;
|
|
256
|
+
font-size: 10px;
|
|
257
|
+
margin-top: 5px;
|
|
258
|
+
font-weight: 500;
|
|
259
|
+
}
|
|
260
|
+
|
|
261
|
+
.type-speak { background: #d4edda; color: #155724; }
|
|
262
|
+
.type-navigate { background: #cce5ff; color: #004085; }
|
|
263
|
+
.type-other { background: #e2e3e5; color: #383d41; }
|
|
264
|
+
|
|
265
|
+
.log-panel {
|
|
266
|
+
background: #1e1e1e;
|
|
267
|
+
color: #d4d4d4;
|
|
268
|
+
border-radius: 8px;
|
|
269
|
+
padding: 15px;
|
|
270
|
+
font-family: 'Monaco', 'Menlo', 'Courier New', monospace;
|
|
271
|
+
font-size: 12px;
|
|
272
|
+
max-height: 200px;
|
|
273
|
+
overflow-y: auto;
|
|
274
|
+
margin-top: 15px;
|
|
275
|
+
}
|
|
276
|
+
|
|
277
|
+
.log-entry {
|
|
278
|
+
margin-bottom: 5px;
|
|
279
|
+
padding: 3px 0;
|
|
280
|
+
}
|
|
281
|
+
|
|
282
|
+
.log-info { color: #4ec9b0; }
|
|
283
|
+
.log-success { color: #6a9955; }
|
|
284
|
+
.log-error { color: #f48771; }
|
|
285
|
+
.log-warn { color: #dcdcaa; }
|
|
286
|
+
|
|
287
|
+
.test-results {
|
|
288
|
+
margin-top: 15px;
|
|
289
|
+
padding: 15px;
|
|
290
|
+
background: #f8f9fa;
|
|
291
|
+
border-radius: 8px;
|
|
292
|
+
}
|
|
293
|
+
|
|
294
|
+
.test-item {
|
|
295
|
+
display: flex;
|
|
296
|
+
align-items: center;
|
|
297
|
+
padding: 8px 0;
|
|
298
|
+
border-bottom: 1px solid #e0e0e0;
|
|
299
|
+
}
|
|
300
|
+
|
|
301
|
+
.test-item:last-child {
|
|
302
|
+
border-bottom: none;
|
|
303
|
+
}
|
|
304
|
+
|
|
305
|
+
.test-status {
|
|
306
|
+
width: 24px;
|
|
307
|
+
height: 24px;
|
|
308
|
+
border-radius: 50%;
|
|
309
|
+
display: flex;
|
|
310
|
+
align-items: center;
|
|
311
|
+
justify-content: center;
|
|
312
|
+
margin-right: 10px;
|
|
313
|
+
font-weight: 700;
|
|
314
|
+
font-size: 14px;
|
|
315
|
+
}
|
|
316
|
+
|
|
317
|
+
.test-pass { background: #d4edda; color: #155724; }
|
|
318
|
+
.test-fail { background: #f8d7da; color: #721c24; }
|
|
319
|
+
.test-pending { background: #e2e3e5; color: #383d41; }
|
|
320
|
+
|
|
321
|
+
.test-name {
|
|
322
|
+
flex: 1;
|
|
323
|
+
font-size: 13px;
|
|
324
|
+
}
|
|
325
|
+
|
|
326
|
+
.demo-section {
|
|
327
|
+
background: #f8f9ff;
|
|
328
|
+
border-radius: 10px;
|
|
329
|
+
padding: 15px;
|
|
330
|
+
border: 1px solid #e4e7ff;
|
|
331
|
+
margin-bottom: 15px;
|
|
332
|
+
}
|
|
333
|
+
|
|
334
|
+
.section-title {
|
|
335
|
+
font-size: 14px;
|
|
336
|
+
font-weight: 700;
|
|
337
|
+
color: #3942a3;
|
|
338
|
+
margin-bottom: 10px;
|
|
339
|
+
}
|
|
340
|
+
|
|
341
|
+
.field {
|
|
342
|
+
display: flex;
|
|
343
|
+
flex-direction: column;
|
|
344
|
+
gap: 6px;
|
|
345
|
+
margin-bottom: 10px;
|
|
346
|
+
font-size: 12px;
|
|
347
|
+
color: #4d4d4d;
|
|
348
|
+
}
|
|
349
|
+
|
|
350
|
+
.field select,
|
|
351
|
+
.field input {
|
|
352
|
+
border: 1px solid #d7d9f5;
|
|
353
|
+
border-radius: 6px;
|
|
354
|
+
padding: 8px 10px;
|
|
355
|
+
font-size: 13px;
|
|
356
|
+
}
|
|
357
|
+
|
|
358
|
+
.action-row {
|
|
359
|
+
display: flex;
|
|
360
|
+
gap: 10px;
|
|
361
|
+
}
|
|
362
|
+
|
|
363
|
+
.action-row .btn {
|
|
364
|
+
margin-bottom: 0;
|
|
365
|
+
}
|
|
366
|
+
|
|
367
|
+
.hint {
|
|
368
|
+
font-size: 12px;
|
|
369
|
+
color: #667;
|
|
370
|
+
margin-top: 8px;
|
|
371
|
+
}
|
|
372
|
+
|
|
373
|
+
.status-pill {
|
|
374
|
+
margin-top: 10px;
|
|
375
|
+
font-size: 12px;
|
|
376
|
+
padding: 8px 10px;
|
|
377
|
+
border-radius: 8px;
|
|
378
|
+
background: #eef0ff;
|
|
379
|
+
color: #4a4a8a;
|
|
380
|
+
}
|
|
381
|
+
|
|
382
|
+
.status-pill.success {
|
|
383
|
+
background: #e0f4e7;
|
|
384
|
+
color: #256d3b;
|
|
385
|
+
}
|
|
386
|
+
|
|
387
|
+
.status-pill.warn {
|
|
388
|
+
background: #fff4d6;
|
|
389
|
+
color: #7a5a00;
|
|
390
|
+
}
|
|
391
|
+
|
|
392
|
+
.code-preview {
|
|
393
|
+
background: #0f172a;
|
|
394
|
+
color: #d7e3ff;
|
|
395
|
+
padding: 12px;
|
|
396
|
+
border-radius: 8px;
|
|
397
|
+
font-size: 12px;
|
|
398
|
+
max-height: 220px;
|
|
399
|
+
overflow: auto;
|
|
400
|
+
white-space: pre-wrap;
|
|
401
|
+
}
|
|
402
|
+
|
|
403
|
+
@media (max-width: 1024px) {
|
|
404
|
+
.main-grid {
|
|
405
|
+
grid-template-columns: 1fr;
|
|
406
|
+
}
|
|
407
|
+
}
|
|
408
|
+
</style>
|
|
409
|
+
</head>
|
|
410
|
+
<body>
|
|
411
|
+
<div class="container">
|
|
412
|
+
<header>
|
|
413
|
+
<h1>๐ฏ AAC Processors Browser Demo</h1>
|
|
414
|
+
<p class="subtitle">Test AAC file processors in your browser - Vite bundled with full TypeScript support</p>
|
|
415
|
+
</header>
|
|
416
|
+
|
|
417
|
+
<div class="main-grid">
|
|
418
|
+
<!-- Left Panel: Upload & Controls -->
|
|
419
|
+
<div class="panel">
|
|
420
|
+
<div class="panel-title">๐ Load AAC File</div>
|
|
421
|
+
|
|
422
|
+
<div class="upload-area" id="dropArea">
|
|
423
|
+
<div class="upload-icon">๐ค</div>
|
|
424
|
+
<p><strong>Drop file here</strong> or click to upload</p>
|
|
425
|
+
<p style="font-size: 12px; color: #999; margin-top: 5px;">
|
|
426
|
+
Supports: .dot, .opml, .obf, .obz, .gridset, .plist, .grd
|
|
427
|
+
</p>
|
|
428
|
+
</div>
|
|
429
|
+
|
|
430
|
+
<input type="file" id="fileInput" accept=".dot,.opml,.obf,.obz,.gridset,.plist,.grd">
|
|
431
|
+
|
|
432
|
+
<div id="fileInfo" style="display: none;">
|
|
433
|
+
<div class="processor-info">
|
|
434
|
+
<div class="processor-name" id="processorName"></div>
|
|
435
|
+
<div id="fileDetails" style="margin-top: 5px; color: #666;"></div>
|
|
436
|
+
</div>
|
|
437
|
+
</div>
|
|
438
|
+
|
|
439
|
+
<button class="btn" id="processBtn" disabled>๐ Process File</button>
|
|
440
|
+
<button class="btn btn-secondary" id="runTestsBtn">๐งช Run Compatibility Tests</button>
|
|
441
|
+
<button class="btn btn-secondary" id="clearBtn">๐๏ธ Clear Results</button>
|
|
442
|
+
|
|
443
|
+
<div class="stats" id="stats" style="display: none;">
|
|
444
|
+
<div class="stat-card">
|
|
445
|
+
<div class="stat-value" id="pageCount">0</div>
|
|
446
|
+
<div class="stat-label">Pages</div>
|
|
447
|
+
</div>
|
|
448
|
+
<div class="stat-card">
|
|
449
|
+
<div class="stat-value" id="buttonCount">0</div>
|
|
450
|
+
<div class="stat-label">Buttons</div>
|
|
451
|
+
</div>
|
|
452
|
+
<div class="stat-card">
|
|
453
|
+
<div class="stat-value" id="textCount">0</div>
|
|
454
|
+
<div class="stat-label">Texts</div>
|
|
455
|
+
</div>
|
|
456
|
+
<div class="stat-card">
|
|
457
|
+
<div class="stat-value" id="loadTime">0ms</div>
|
|
458
|
+
<div class="stat-label">Load Time</div>
|
|
459
|
+
</div>
|
|
460
|
+
</div>
|
|
461
|
+
|
|
462
|
+
<div class="log-panel" id="logPanel">
|
|
463
|
+
<div class="log-entry log-info">Ready to process files...</div>
|
|
464
|
+
</div>
|
|
465
|
+
|
|
466
|
+
<div class="test-results" id="testResults" style="display: none;">
|
|
467
|
+
<div class="panel-title">Test Results</div>
|
|
468
|
+
<div id="testList"></div>
|
|
469
|
+
</div>
|
|
470
|
+
</div>
|
|
471
|
+
|
|
472
|
+
<!-- Right Panel: Results -->
|
|
473
|
+
<div class="panel results-panel">
|
|
474
|
+
<div class="panel-title">๐ AAC Pageset Lab</div>
|
|
475
|
+
<div class="tab-header">
|
|
476
|
+
<button class="tab-btn active" data-tab="inspectTab">Inspect</button>
|
|
477
|
+
<button class="tab-btn" data-tab="pagesetTab">Create & Convert</button>
|
|
478
|
+
</div>
|
|
479
|
+
<div class="tab-content active" id="inspectTab">
|
|
480
|
+
<div id="results">
|
|
481
|
+
<p style="color: #999; text-align: center; padding: 40px;">
|
|
482
|
+
Load a file to see its contents here
|
|
483
|
+
</p>
|
|
484
|
+
</div>
|
|
485
|
+
</div>
|
|
486
|
+
<div class="tab-content" id="pagesetTab">
|
|
487
|
+
<div class="demo-section">
|
|
488
|
+
<div class="section-title">โจ Create a Sample Pageset</div>
|
|
489
|
+
<div class="field">
|
|
490
|
+
<label for="templateSelect">Template</label>
|
|
491
|
+
<select id="templateSelect">
|
|
492
|
+
<option value="starter">Starter 2x2 + Feelings</option>
|
|
493
|
+
<option value="home">Home & Core 3x3</option>
|
|
494
|
+
</select>
|
|
495
|
+
</div>
|
|
496
|
+
<div class="field">
|
|
497
|
+
<label for="formatSelect">Output format</label>
|
|
498
|
+
<select id="formatSelect">
|
|
499
|
+
<option value="obf">OBF (.obf)</option>
|
|
500
|
+
<option value="obz">OBZ (.obz)</option>
|
|
501
|
+
</select>
|
|
502
|
+
</div>
|
|
503
|
+
<div class="action-row">
|
|
504
|
+
<button class="btn" id="createPagesetBtn">Generate & Download</button>
|
|
505
|
+
<button class="btn btn-secondary" id="previewPagesetBtn">Preview in Viewer</button>
|
|
506
|
+
</div>
|
|
507
|
+
<div class="hint">Creates a demo AACTree, then exports to OBF/OBZ.</div>
|
|
508
|
+
</div>
|
|
509
|
+
|
|
510
|
+
<div class="demo-section">
|
|
511
|
+
<div class="section-title">๐ Convert Loaded Pageset</div>
|
|
512
|
+
<div class="action-row">
|
|
513
|
+
<button class="btn" id="convertToObfBtn" disabled>Download .obf</button>
|
|
514
|
+
<button class="btn btn-secondary" id="convertToObzBtn" disabled>Download .obz</button>
|
|
515
|
+
</div>
|
|
516
|
+
<div class="hint">Upload and process a file first, then export it in another format.</div>
|
|
517
|
+
<div class="status-pill" id="conversionStatus">No pageset loaded yet.</div>
|
|
518
|
+
</div>
|
|
519
|
+
|
|
520
|
+
<div class="demo-section">
|
|
521
|
+
<div class="section-title">๐ Export Preview</div>
|
|
522
|
+
<pre class="code-preview" id="pagesetOutput">Generate or convert a pageset to preview the output JSON.</pre>
|
|
523
|
+
</div>
|
|
524
|
+
</div>
|
|
525
|
+
</div>
|
|
526
|
+
</div>
|
|
527
|
+
</div>
|
|
528
|
+
|
|
529
|
+
<script type="module" src="/src/main.ts"></script>
|
|
530
|
+
</body>
|
|
531
|
+
</html>
|