Repository navigation
Expand file tree
/
Copy pathindex.html
More file actions
558 lines (533 loc) · 42.4 KB
/
Copy pathindex.html
File metadata and controls
558 lines (533 loc) · 42.4 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
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
<!doctype html>
<html lang="fr">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, viewport-fit=cover">
<meta name="theme-color" content="#1d4ed8">
<meta name="description" content="MindSpark — Atelier visuel local-first pour organiser, relier et créer avec vos fichiers, ressources et idées.">
<link rel="manifest" href="./manifest.webmanifest">
<link rel="icon" href="./icons/icon.svg" type="image/svg+xml">
<link rel="stylesheet" href="./styles.css">
<title>MindSpark — Atelier visuel</title>
</head>
<body>
<svg class="icon-sprite" aria-hidden="true">
<symbol id="i-folder-open" viewBox="0 0 24 24"><path d="M3 7.5h6l2 2h10v8.5a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z"/><path d="M3 7.5v-2a2 2 0 0 1 2-2h4l2 2h5a2 2 0 0 1 2 2"/></symbol>
<symbol id="i-workspace" viewBox="0 0 24 24"><rect x="3" y="3" width="7" height="7" rx="1.5"/><rect x="14" y="3" width="7" height="7" rx="1.5"/><rect x="3" y="14" width="7" height="7" rx="1.5"/><rect x="14" y="14" width="7" height="7" rx="1.5"/></symbol>
<symbol id="i-plus-circle" viewBox="0 0 24 24"><circle cx="12" cy="12" r="9"/><path d="M12 8v8M8 12h8"/></symbol>
<symbol id="i-eye" viewBox="0 0 24 24"><path d="M2.5 12s3.5-6 9.5-6 9.5 6 9.5 6-3.5 6-9.5 6-9.5-6-9.5-6z"/><circle cx="12" cy="12" r="2.5"/></symbol>
<symbol id="i-export" viewBox="0 0 24 24"><path d="M12 3v12M7.5 10.5 12 15l4.5-4.5"/><path d="M4 17v2a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-2"/></symbol>
<symbol id="i-file-plus" viewBox="0 0 24 24"><path d="M6 3h8l4 4v14H6z"/><path d="M14 3v5h5M12 11v6M9 14h6"/></symbol>
<symbol id="i-clock" viewBox="0 0 24 24"><circle cx="12" cy="12" r="9"/><path d="M12 7v5l3 2"/></symbol>
<symbol id="i-flask" viewBox="0 0 24 24"><path d="M9 3h6M10 3v5l-5 9a3 3 0 0 0 2.6 4.5h8.8A3 3 0 0 0 19 17l-5-9V3"/><path d="M7 16h10"/></symbol>
<symbol id="i-refresh" viewBox="0 0 24 24"><path d="M20 7v5h-5"/><path d="M4 17v-5h5"/><path d="M6.1 8a7 7 0 0 1 11.5-2L20 8M4 16l2.4 2A7 7 0 0 0 18 16"/></symbol>
<symbol id="i-save" viewBox="0 0 24 24"><path d="M5 3h12l3 3v15H4V4a1 1 0 0 1 1-1z"/><path d="M8 3v6h8V3M8 21v-7h8v7"/></symbol>
<symbol id="i-save-export" viewBox="0 0 24 24"><path d="M4 3h11l3 3v6"/><path d="M7 3v6h7V3M7 14v6h5"/><path d="M4 3v18h8"/><path d="M17 13v6M14.5 16.5 17 19l2.5-2.5"/><path d="M13 21h8"/></symbol>
<symbol id="i-printer" viewBox="0 0 24 24"><path d="M7 8V3h10v5"/><rect x="5" y="14" width="14" height="7" rx="1"/><path d="M5 17H3V10a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2v7h-2M17 12h.01"/></symbol>
<symbol id="i-box" viewBox="0 0 24 24"><path d="m4 7 8-4 8 4-8 4z"/><path d="M4 7v10l8 4 8-4V7M12 11v10"/></symbol>
<symbol id="i-folder-plus" viewBox="0 0 24 24"><path d="M3 6.5h6l2 2h8a2 2 0 0 1 2 2V18a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z"/><path d="M12 11v6M9 14h6"/></symbol>
<symbol id="i-lightbulb" viewBox="0 0 24 24"><path d="M9 18h6M10 21h4"/><path d="M8.5 15.5C7 14.3 6 12.6 6 10.5a6 6 0 1 1 12 0c0 2.1-1 3.8-2.5 5-.8.7-1.2 1.3-1.3 2H9.8c-.1-.7-.5-1.3-1.3-2z"/></symbol>
<symbol id="i-link" viewBox="0 0 24 24"><path d="M8.5 15.5 15.5 8.5"/><path d="m7 17-2 2a4 4 0 0 1-5.7-5.7l3-3A4 4 0 0 1 8 10"/><path d="m17 7 2-2a4 4 0 0 1 5.7 5.7l-3 3A4 4 0 0 1 16 14"/></symbol>
<symbol id="i-focus" viewBox="0 0 24 24"><path d="M8 3H5a2 2 0 0 0-2 2v3M16 3h3a2 2 0 0 1 2 2v3M8 21H5a2 2 0 0 1-2-2v-3M16 21h3a2 2 0 0 0 2-2v-3"/><circle cx="12" cy="12" r="3"/></symbol>
<symbol id="i-layout" viewBox="0 0 24 24"><rect x="3" y="4" width="18" height="16" rx="2"/><path d="M9 4v16M9 10h12"/></symbol>
<symbol id="i-pointer" viewBox="0 0 24 24"><path d="m5 3 13 8-6 2-2 6z"/></symbol>
<symbol id="i-frame" viewBox="0 0 24 24"><path d="M8 3H5a2 2 0 0 0-2 2v3M16 3h3a2 2 0 0 1 2 2v3M8 21H5a2 2 0 0 1-2-2v-3M16 21h3a2 2 0 0 0 2-2v-3"/></symbol>
<symbol id="i-shape" viewBox="0 0 24 24"><rect x="3" y="3" width="8" height="8" rx="1.5"/><circle cx="17" cy="7" r="4"/><path d="m12 21 5-8 5 8z"/></symbol>
<symbol id="i-text" viewBox="0 0 24 24"><path d="M5 5h14M12 5v14M8 19h8"/></symbol>
<symbol id="i-image" viewBox="0 0 24 24"><rect x="3" y="4" width="18" height="16" rx="2"/><circle cx="8.5" cy="9" r="1.5"/><path d="m4 17 5-5 4 4 2-2 5 5"/></symbol>
<symbol id="i-zap" viewBox="0 0 24 24"><path d="M13 2 4 14h7l-1 8 9-12h-7z"/></symbol>
<symbol id="i-file-text" viewBox="0 0 24 24"><path d="M6 3h8l4 4v14H6z"/><path d="M14 3v5h5M9 13h6M9 17h6"/></symbol>
<symbol id="i-palette" viewBox="0 0 24 24"><path d="M12 3a9 9 0 1 0 0 18h1.5a2 2 0 0 0 0-4H12a2 2 0 0 1 0-4h4a5 5 0 0 0 5-5c0-3-4-5-9-5z"/><circle cx="7.5" cy="10" r=".8"/><circle cx="10" cy="6.8" r=".8"/><circle cx="15" cy="7.2" r=".8"/></symbol>
<symbol id="i-relation" viewBox="0 0 24 24"><circle cx="6" cy="17" r="2"/><circle cx="18" cy="7" r="2"/><path d="M8 16c4-1 4-7 8-8"/><path d="m13 7 3 1 1-3"/></symbol>
<symbol id="i-panel-left" viewBox="0 0 24 24"><rect x="3" y="4" width="18" height="16" rx="2"/><path d="M9 4v16M14 9l-3 3 3 3"/></symbol>
<symbol id="i-panel-right" viewBox="0 0 24 24"><rect x="3" y="4" width="18" height="16" rx="2"/><path d="M15 4v16M10 9l3 3-3 3"/></symbol>
<symbol id="i-trash" viewBox="0 0 24 24"><path d="M4 7h16M9 3h6l1 4H8zM7 7l1 14h8l1-14M10 11v6M14 11v6"/></symbol>
<symbol id="i-file-edit" viewBox="0 0 24 24"><path d="M6 3h8l4 4v7"/><path d="M14 3v5h5M6 3v18h7"/><path d="m14 18 5-5 2 2-5 5-3 1z"/></symbol>
<symbol id="i-markdown" viewBox="0 0 24 24"><rect x="2.5" y="5" width="19" height="14" rx="2"/><path d="M6 15V9l3 3 3-3v6M15 12h4M17 10l2 2-2 2"/></symbol>
<symbol id="i-eye-off" viewBox="0 0 24 24"><path d="M3 3l18 18"/><path d="M10.5 6.2A10.5 10.5 0 0 1 12 6c6 0 9.5 6 9.5 6a16 16 0 0 1-2.2 3"/><path d="M6.1 7.1C3.7 8.8 2.5 12 2.5 12S6 18 12 18c1.1 0 2.1-.2 3-.5"/><path d="M9.9 9.9a3 3 0 0 0 4.2 4.2"/></symbol>
<symbol id="i-filter" viewBox="0 0 24 24"><path d="M4 5h16l-6 7v5l-4 2v-7z"/></symbol>
<symbol id="i-settings" viewBox="0 0 24 24"><circle cx="12" cy="12" r="3"/><path d="M19.4 15a1.7 1.7 0 0 0 .3 1.9l.1.1-2.8 2.8-.1-.1a1.7 1.7 0 0 0-1.9-.3 1.7 1.7 0 0 0-1 1.6v.2h-4V21a1.7 1.7 0 0 0-1-1.6 1.7 1.7 0 0 0-1.9.3l-.1.1L4.2 17l.1-.1a1.7 1.7 0 0 0 .3-1.9A1.7 1.7 0 0 0 3 14H2.8v-4H3a1.7 1.7 0 0 0 1.6-1 1.7 1.7 0 0 0-.3-1.9L4.2 7 7 4.2l.1.1a1.7 1.7 0 0 0 1.9.3 1.7 1.7 0 0 0 1-1.6v-.2h4V3a1.7 1.7 0 0 0 1 1.6 1.7 1.7 0 0 0 1.9-.3l.1-.1L19.8 7l-.1.1a1.7 1.7 0 0 0-.3 1.9 1.7 1.7 0 0 0 1.6 1h.2v4H21a1.7 1.7 0 0 0-1.6 1z"/></symbol>
</svg>
<header class="topbar">
<div class="brand">
<span class="brand-mark">M</span>
<div><strong>MindSpark — Atelier visuel</strong><small id="workspaceName">Aucun espace de travail ouvert</small></div>
</div>
<nav class="toolbar" aria-label="Commandes principales">
<details id="workspaceMenu" class="toolbar-menu" data-menu>
<summary><svg class="ui-icon" aria-hidden="true"><use href="#i-workspace"></use></svg><span>Espace de travail</span><span class="chevron" aria-hidden="true">⌄</span></summary>
<div class="toolbar-menu-panel">
<button id="newWorkspaceBtn"><svg class="ui-icon" aria-hidden="true"><use href="#i-file-plus"></use></svg><span class="button-label">Nouveau</span></button>
<button id="recentBtn"><svg class="ui-icon" aria-hidden="true"><use href="#i-clock"></use></svg><span class="button-label">Récents</span></button>
<button id="openBtn"><svg class="ui-icon" aria-hidden="true"><use href="#i-folder-open"></use></svg><span class="button-label">Ouvrir</span></button>
<span class="menu-divider"></span>
<button id="scanBtn" disabled><svg class="ui-icon" aria-hidden="true"><use href="#i-refresh"></use></svg><span class="button-label">Rescanner le dossier</span></button>
<button id="exclusionsBtn" disabled><svg class="ui-icon" aria-hidden="true"><use href="#i-filter"></use></svg><span class="button-label">Exclusions…</span></button>
<button id="settingsBtn" disabled><svg class="ui-icon" aria-hidden="true"><use href="#i-settings"></use></svg><span class="button-label">Paramètres…</span></button>
<span class="menu-divider"></span>
<button id="demoBtn"><svg class="ui-icon" aria-hidden="true"><use href="#i-flask"></use></svg><span class="button-label">Charger la démo</span></button>
<span class="menu-divider"></span>
<button id="feedbackBtn" type="button"><span aria-hidden="true">💬</span><span class="button-label">Retour / DEV-CMD…</span></button>
</div>
</details>
<details id="insertionMenu" class="toolbar-menu workspace-command hidden" data-menu>
<summary><svg class="ui-icon" aria-hidden="true"><use href="#i-plus-circle"></use></svg><span>Insertion</span><span class="chevron" aria-hidden="true">⌄</span></summary>
<div class="toolbar-menu-panel">
<button id="folderBtn" disabled><svg class="ui-icon" aria-hidden="true"><use href="#i-folder-plus"></use></svg><span class="button-label">Nouveau dossier</span></button>
<button id="textFileBtn" disabled><svg class="ui-icon" aria-hidden="true"><use href="#i-file-edit"></use></svg><span class="button-label">Fichier texte (.txt)</span></button>
<button id="markdownFileBtn" disabled><svg class="ui-icon" aria-hidden="true"><use href="#i-markdown"></use></svg><span class="button-label">Fichier Markdown (.md)</span></button>
<button id="ideaBtn" disabled><svg class="ui-icon" aria-hidden="true"><use href="#i-lightbulb"></use></svg><span class="button-label">Nouvelle idée</span></button>
<button id="urlBtn" disabled><svg class="ui-icon" aria-hidden="true"><use href="#i-link"></use></svg><span class="button-label">Lien web</span></button>
</div>
</details>
<details id="viewMenu" class="toolbar-menu workspace-command hidden" data-menu>
<summary><svg class="ui-icon" aria-hidden="true"><use href="#i-eye"></use></svg><span>Vue</span><span class="chevron" aria-hidden="true">⌄</span></summary>
<div class="toolbar-menu-panel">
<div class="view-switcher">
<label for="viewSelect">Carte active</label>
<select id="viewSelect" disabled aria-label="Carte active"></select>
</div>
<button id="newViewBtn" disabled><svg class="ui-icon" aria-hidden="true"><use href="#i-plus-circle"></use></svg><span class="button-label">Nouvelle carte</span></button>
<button id="duplicateViewBtn" disabled><svg class="ui-icon" aria-hidden="true"><use href="#i-file-plus"></use></svg><span class="button-label">Dupliquer la carte</span></button>
<button id="renameViewBtn" disabled><svg class="ui-icon" aria-hidden="true"><use href="#i-file-edit"></use></svg><span class="button-label">Renommer la carte</span></button>
<span class="menu-divider"></span>
<button id="fitBtn" disabled><svg class="ui-icon" aria-hidden="true"><use href="#i-focus"></use></svg><span class="button-label">Ajuster toute la carte</span></button>
<div class="view-switcher">
<label for="viewLayoutSelect">Disposition</label>
<select id="viewLayoutSelect" disabled aria-label="Disposition de la carte">
<option value="right">Vers la droite</option>
<option value="left">Vers la gauche</option>
<option value="down">Vers le bas</option>
<option value="balanced">Équilibrée gauche / droite</option>
<option value="radial">Radiale / étoile</option>
</select>
</div>
<button id="autoLayoutBtn" disabled><svg class="ui-icon" aria-hidden="true"><use href="#i-layout"></use></svg><span class="button-label">Réorganiser selon la disposition</span></button>
<span class="menu-divider"></span>
<button id="toggleResourcesBtn"><svg class="ui-icon" aria-hidden="true"><use href="#i-panel-left"></use></svg><span class="button-label">Afficher/masquer Ressources</span></button>
<button id="toggleInspectorBtn"><svg class="ui-icon" aria-hidden="true"><use href="#i-panel-right"></use></svg><span class="button-label">Afficher/masquer Détails</span></button>
<span class="menu-divider"></span>
<button id="exportBtn" disabled><svg class="ui-icon" aria-hidden="true"><use href="#i-export"></use></svg><span class="button-label">Exporter la vue…</span></button>
</div>
</details>
<details id="saveMenu" class="toolbar-menu save-menu workspace-command hidden" data-menu>
<summary id="saveMenuSummary" title="Enregistrer ou exporter" aria-label="Enregistrer ou exporter"><svg class="ui-icon" aria-hidden="true"><use href="#i-save-export"></use></svg><span class="save-menu-label">Enregistrer</span><span class="chevron" aria-hidden="true">⌄</span></summary>
<div class="toolbar-menu-panel">
<button id="saveNowBtn" type="button"><svg class="ui-icon" aria-hidden="true"><use href="#i-save"></use></svg><span class="button-label">Enregistrer</span></button>
<button id="saveExportBtn" type="button"><svg class="ui-icon" aria-hidden="true"><use href="#i-export"></use></svg><span class="button-label">Exporter</span></button>
</div>
</details>
<button id="showResourcesBtn" class="mobile-only">☰ Ressources</button>
<button id="showInspectorBtn" class="mobile-only">ⓘ Détails</button>
</nav>
<div class="status"><span id="status">Prêt</span><span class="badge">v0.3.18</span></div>
</header>
<main class="shell">
<aside id="resourcesPanel" class="panel resources">
<div class="panel-head"><div><strong>Ressources</strong><small id="count">0 élément</small></div><div class="panel-head-actions"><button id="collapseResourcesBtn" class="panel-toggle desktop-only" type="button" title="Rabattre le panneau Ressources" aria-label="Rabattre Ressources"><svg class="ui-icon" aria-hidden="true"><use href="#i-panel-left"></use></svg></button><button class="close mobile-only" data-close="resourcesPanel">×</button></div></div>
<div class="panel-body panel-scroll resources-scroll">
<label class="search"><span>⌕</span><input id="search" type="search" placeholder="Fichier, tag, note…"></label>
<div class="legend"><span>📁 dossier</span><span>📄 fichier</span><span>💡 idée</span><span>🔗 web</span></div>
<div id="tree"></div>
</div>
</aside>
<section class="stage">
<button id="restoreResourcesBtn" class="panel-restore left hidden desktop-only" type="button" title="Afficher Ressources" aria-label="Afficher Ressources"><svg class="ui-icon" aria-hidden="true"><use href="#i-panel-right"></use></svg></button>
<button id="restoreInspectorBtn" class="panel-restore right hidden desktop-only" type="button" title="Afficher Détails" aria-label="Afficher Détails"><svg class="ui-icon" aria-hidden="true"><use href="#i-panel-left"></use></svg></button>
<div id="stageTools" class="stage-tools hidden">
<div id="mapPalette" class="map-palette" aria-label="Outils de la mindmap">
<button id="mapSelectBtn" class="active" type="button" title="Sélection / déplacement" aria-label="Sélection"><svg class="ui-icon" aria-hidden="true"><use href="#i-pointer"></use></svg></button>
<span class="palette-divider"></span>
<button id="mapFolderBtn" type="button" title="Créer un dossier enfant" aria-label="Créer un dossier"><svg class="ui-icon" aria-hidden="true"><use href="#i-folder-plus"></use></svg></button>
<button id="mapIdeaBtn" type="button" title="Créer une idée" aria-label="Créer une idée"><svg class="ui-icon" aria-hidden="true"><use href="#i-lightbulb"></use></svg></button>
<button id="mapRelationBtn" type="button" title="Créer une relation depuis le nœud sélectionné" aria-label="Créer une relation"><svg class="ui-icon" aria-hidden="true"><use href="#i-relation"></use></svg></button>
<button id="mapFrameBtn" type="button" title="Créer ou sélectionner un groupe visuel" aria-label="Groupe visuel"><svg class="ui-icon" aria-hidden="true"><use href="#i-frame"></use></svg></button>
<span class="palette-divider"></span>
<button id="mapShapeBtn" type="button" title="Ajouter une forme libre" aria-label="Ajouter une forme"><svg class="ui-icon" aria-hidden="true"><use href="#i-shape"></use></svg></button>
<button id="mapTextBtn" type="button" title="Ajouter une annotation texte" aria-label="Ajouter du texte"><svg class="ui-icon" aria-hidden="true"><use href="#i-text"></use></svg></button>
<button id="mapImageBtn" type="button" title="Ajouter une image libre depuis l’espace de travail" aria-label="Ajouter une image libre"><svg class="ui-icon" aria-hidden="true"><use href="#i-image"></use></svg></button>
</div>
<span class="sep"></span>
<button id="zoomOut" title="Zoom arrière" aria-label="Zoom arrière">−</button><span id="zoomValue">100%</span><button id="zoomIn" title="Zoom avant" aria-label="Zoom avant">+</button>
<span class="sep"></span><span id="hint">Glisser le fond pour déplacer la vue</span>
</div>
<div id="welcome" class="welcome">
<div class="welcome-icon">✨</div>
<h1>Une idée commence par une étincelle. Puis elle se connecte.</h1>
<p>Commencez par une page vierge, partez d’un dossier existant ou reprenez un espace de travail récent.</p>
<div class="welcome-actions">
<section class="welcome-card welcome-new">
<div class="welcome-card-icon">+</div>
<div><strong>Nouveau</strong><span>Construire un nouvel espace de travail.</span></div>
<div class="welcome-card-actions">
<button id="welcomeNew" type="button">Vierge</button>
<button id="welcomeOpen" type="button" class="primary">📂 Créer à partir d’un dossier</button>
</div>
</section>
<button id="welcomeRecent" type="button" class="welcome-card welcome-choice hidden">
<span class="welcome-card-icon">◷</span>
<span><strong>Récents</strong><small>Reprendre un espace de travail déjà ouvert.</small></span>
</button>
<button id="welcomeDemo" type="button" class="welcome-card welcome-choice">
<span class="welcome-card-icon">✦</span>
<span><strong>Démo</strong><small>Découvrir MindSpark avec un exemple prêt à explorer.</small></span>
</button>
</div>
<small>Local-first : le contenu de l’espace de travail n'est pas envoyé par l'application.</small>
</div>
<div id="viewport" class="viewport hidden">
<div id="world" class="world">
<div id="frames"></div>
<svg id="edges" width="8000" height="8000"></svg>
<div id="visualObjects"></div>
<div id="nodes"></div>
</div>
</div>
<div id="compat" class="compat hidden"><strong>Mode compatibilité :</strong> le navigateur fournit une copie de lecture du dossier. Les métadonnées seront exportées en JSON au lieu d'être écrites directement dans .glom/.</div>
</section>
<aside id="inspectorPanel" class="panel inspector">
<div class="panel-head"><div><strong>Détails</strong><small id="selectionKind">Aucune sélection</small></div><div class="panel-head-actions"><button id="collapseInspectorBtn" class="panel-toggle desktop-only" type="button" title="Rabattre le panneau Détails" aria-label="Rabattre Détails"><svg class="ui-icon" aria-hidden="true"><use href="#i-panel-right"></use></svg></button><button class="close mobile-only" data-close="inspectorPanel">×</button></div></div>
<div id="inspectorScroll" class="panel-scroll inspector-scroll">
<div id="noSelection" class="no-selection">👆<p>Sélectionnez un nœud, une relation ou un objet graphique pour afficher ses propriétés.</p></div>
<form id="visualForm" class="form hidden">
<details class="inspector-section" open>
<summary><svg class="ui-icon" aria-hidden="true"><use href="#i-shape"></use></svg><span class="button-label">Objet graphique</span></summary>
<div class="details-grid">
<label>Type<code id="visualKind">—</code></label>
<label id="visualTextLabel">Texte<input id="visualText" type="text"></label>
<label id="visualShapeLabel">Forme
<select id="visualShape">
<option value="rectangle">Rectangle</option>
<option value="ellipse">Ellipse</option>
<option value="diamond">Losange</option>
</select>
</label>
<label>Largeur<input id="visualWidth" type="number" min="40" max="1200" step="10"></label>
<label>Hauteur<input id="visualHeight" type="number" min="30" max="800" step="10"></label>
<label id="visualFontSizeLabel">Taille du texte<input id="visualFontSize" type="number" min="8" max="96" step="1"></label>
<label id="visualFontFamilyLabel">Police
<select id="visualFontFamily"><option value="system">Système</option><option value="rounded">Arrondie</option><option value="serif">Serif</option><option value="mono">Monospace</option></select>
</label>
<label id="visualFontWeightLabel">Graisse
<select id="visualFontWeight"><option value="500">Normale</option><option value="650">Semi-gras</option><option value="800">Gras</option></select>
</label>
<label id="visualTextAlignLabel">Alignement
<select id="visualTextAlign"><option value="left">Gauche</option><option value="center">Centre</option><option value="right">Droite</option></select>
</label>
<label id="visualItalicLabel" class="check-row"><input id="visualItalic" type="checkbox"> Italique</label>
<label id="visualTextColorLabel">Couleur du texte<input id="visualTextColor" type="color" value="#172033"></label>
<label id="visualFillLabel">Fond<input id="visualFill" type="color" value="#e0e7ff"></label>
<label id="visualStrokeLabel">Bordure<input id="visualStroke" type="color" value="#6366f1"></label>
<label id="visualImageSourceLabel" class="hidden">Source<code id="visualImageSource">—</code></label>
<label id="visualImageFitLabel" class="hidden">Ajustement
<select id="visualImageFit"><option value="contain">Contenir</option><option value="cover">Recadrer</option><option value="fill">Étirer</option></select>
</label>
<label id="visualImageOpacityLabel" class="hidden">Opacité
<div class="range-row"><input id="visualImageOpacity" type="range" min="10" max="100" step="1" value="100"><output id="visualImageOpacityValue">100 %</output></div>
</label>
<label id="visualImageRadiusLabel" class="hidden">Coins
<div class="range-row"><input id="visualImageRadius" type="range" min="0" max="60" step="1" value="8"><output id="visualImageRadiusValue">8 px</output></div>
</label>
</div>
</details>
<div class="form-actions">
<button type="button" id="deleteVisualBtn" class="danger"><svg class="ui-icon" aria-hidden="true"><use href="#i-trash"></use></svg><span class="button-label">Supprimer l’objet</span></button>
</div>
</form>
<form id="edgeForm" class="form hidden">
<details class="inspector-section" open>
<summary><svg class="ui-icon" aria-hidden="true"><use href="#i-relation"></use></svg><span class="button-label">Relation</span></summary>
<div class="details-grid">
<label>Type<code id="edgeKind">—</code></label>
<label>Libellé<input id="edgeLabel" type="text" placeholder="Relation sans nom"></label>
<label>Couleur<input id="edgeColor" type="color" value="#3b82f6"></label>
<label>Épaisseur
<div class="range-row"><input id="edgeWidth" type="range" min="1" max="10" step="0.1" value="2.2"><output id="edgeWidthValue">2.5 px</output></div>
</label>
<label>Style de trait
<select id="edgeLineStyle">
<option value="solid">Plein</option>
<option value="dashed">Pointillé</option>
<option value="dotted">Points</option>
</select>
</label>
<label>Flèche
<select id="edgeArrow">
<option value="none">Aucune</option>
<option value="end">Vers la cible</option>
<option value="both">Aux deux extrémités</option>
</select>
</label>
<label>Courbure
<div class="range-row"><input id="edgeCurvature" type="range" min="0" max="100" step="1" value="42"><output id="edgeCurvatureValue">42 %</output></div>
</label>
</div>
</details>
<div class="form-actions">
<button type="button" id="deleteEdgeBtn" class="danger">🗑️ Supprimer la relation</button>
</div>
</form>
<form id="form" class="form hidden">
<details class="inspector-section" open>
<summary><svg class="ui-icon" aria-hidden="true"><use href="#i-file-text"></use></svg><span class="button-label">Détails</span></summary>
<div class="details-grid">
<label>Titre d'affichage<input id="title" type="text"></label>
<label>Type<code id="kind"></code></label>
<label>Chemin / URL<code id="path"></code></label>
<label>Taille<code id="size">—</code></label>
<label>Dernière modification<code id="modified">—</code></label>
<label>Tags <small>(séparés par des virgules)</small><input id="tags" type="text"></label>
<label>Notes<textarea id="notes" rows="6"></textarea></label>
</div>
</details>
<details class="inspector-section" id="contextActionsSection" open>
<summary><svg class="ui-icon" aria-hidden="true"><use href="#i-zap"></use></svg><span class="button-label">Actions</span></summary>
<div class="context-actions">
<button type="button" id="contextFolderBtn"><svg class="ui-icon" aria-hidden="true"><use href="#i-folder-plus"></use></svg><span class="button-label">Dossier enfant</span></button>
<button type="button" id="contextIdeaBtn"><svg class="ui-icon" aria-hidden="true"><use href="#i-lightbulb"></use></svg><span class="button-label">Idée liée</span></button>
<button type="button" id="contextRelationBtn"><svg class="ui-icon" aria-hidden="true"><use href="#i-relation"></use></svg><span class="button-label">Relation</span></button>
<button type="button" id="contextFrameBtn"><svg class="ui-icon" aria-hidden="true"><use href="#i-frame"></use></svg><span class="button-label">Cadre / groupe visuel</span></button>
<button type="button" id="contextExcludeBtn"><svg class="ui-icon" aria-hidden="true"><use href="#i-eye-off"></use></svg><span class="button-label">Exclure du workspace</span></button>
</div>
</details>
<details class="inspector-section" id="branchLayoutSection">
<summary><svg class="ui-icon" aria-hidden="true"><use href="#i-layout"></use></svg><span class="button-label">Disposition de la branche</span></summary>
<div class="branch-layout-controls">
<label>Disposition des enfants
<select id="branchLayoutMode">
<option value="">Hériter de la carte / branche parente</option>
<option value="right">Vers la droite</option>
<option value="left">Vers la gauche</option>
<option value="down">Vers le bas</option>
<option value="balanced">Équilibrée gauche / droite</option>
<option value="radial">Radiale / étoile</option>
</select>
</label>
<small>La surcharge appartient uniquement à cette carte et s’applique à ce nœud et ses descendants.</small>
<button type="button" id="branchLayoutApplyBtn">Réorganiser cette branche</button>
</div>
</details>
<details class="inspector-section" open>
<summary><svg class="ui-icon" aria-hidden="true"><use href="#i-palette"></use></svg><span class="button-label">Style du nœud</span></summary>
<div class="style-grid">
<label>Icône / emoji<input id="nodeIcon" type="text" maxlength="8" placeholder="Auto"></label>
<label>Taille du texte
<div class="range-row"><input id="fontSize" type="range" min="8" max="72" step="1" value="14"><output id="fontSizeValue">14 px</output></div>
</label>
<label>Largeur du nœud
<div class="range-row"><input id="nodeWidth" type="range" min="140" max="720" step="10" value="240"><output id="nodeWidthValue">240 px</output></div>
</label>
<label>Hauteur du nœud
<div class="range-row"><input id="nodeHeight" type="range" min="60" max="360" step="10" value="74"><output id="nodeHeightValue">74 px</output></div>
</label>
<label>Police
<select id="fontFamily">
<option value="system">Système</option>
<option value="rounded">Arrondie</option>
<option value="serif">Serif</option>
<option value="mono">Monospace</option>
</select>
</label>
<label>Graisse
<select id="fontWeight">
<option value="500">Normale</option>
<option value="650">Semi-gras</option>
<option value="800">Gras</option>
</select>
</label>
<label>Alignement
<select id="textAlign"><option value="left">Gauche</option><option value="center">Centre</option><option value="right">Droite</option></select>
</label>
<label class="check-row"><input id="fontItalic" type="checkbox"> Italique</label>
<label>Texte<input id="textColor" type="color" value="#172033"></label>
<label>Fond<input id="backgroundColor" type="color" value="#ffffff"></label>
<label>Bordure<input id="borderColor" type="color" value="#d8deea"></label>
<label>Épaisseur bordure
<div class="range-row"><input id="borderWidth" type="range" min="0" max="12" step="1" value="1"><output id="borderWidthValue">1 px</output></div>
</label>
<label>Forme
<select id="nodeShape"><option value="rounded">Arrondie</option><option value="rectangle">Rectangle</option><option value="pill">Capsule</option></select>
</label>
<label class="check-row"><input id="nodeLocked" type="checkbox"> Verrouiller la position</label>
<label class="check-row"><input id="moveBranch" type="checkbox"> Déplacer cette branche comme un groupe</label>
<label id="imageToggleLabel" class="check-row hidden"><input id="showNodeImage" type="checkbox"> Afficher l’image dans le nœud</label>
</div>
<div class="mini-actions">
<button type="button" id="copyStyleBtn">📋 Copier style</button>
<button type="button" id="pasteStyleBtn" disabled>📌 Coller style</button>
<button type="button" id="resetStyleBtn">↺ Réinitialiser</button>
</div>
</details>
<details class="inspector-section" id="branchFrameSection">
<summary><svg class="ui-icon" aria-hidden="true"><use href="#i-frame"></use></svg><span class="button-label">Cadre / groupe visuel</span></summary>
<div class="frame-controls">
<button type="button" id="frameToggleBtn">+ Créer un groupe depuis cette branche</button>
<div id="frameFields" class="style-grid hidden">
<label>Titre du groupe<input id="frameTitle" type="text" placeholder="Nom du groupe"></label>
<label>Taille du titre
<div class="range-row"><input id="frameFontSize" type="range" min="8" max="48" step="1" value="12"><output id="frameFontSizeValue">12 px</output></div>
</label>
<label>Police
<select id="frameFontFamily"><option value="system">Système</option><option value="rounded">Arrondie</option><option value="serif">Serif</option><option value="mono">Monospace</option></select>
</label>
<label>Graisse
<select id="frameFontWeight"><option value="500">Normale</option><option value="650">Semi-gras</option><option value="800">Gras</option></select>
</label>
<label class="check-row"><input id="frameItalic" type="checkbox"> Italique</label>
<label>Couleur du titre<input id="frameTextColor" type="color" value="#6366f1"></label>
<label>Couleur du cadre<input id="frameBorderColor" type="color" value="#6366f1"></label>
<label>Couleur de fond<input id="frameBackgroundColor" type="color" value="#eef2ff"></label>
<label>Opacité du fond
<div class="range-row"><input id="frameOpacity" type="range" min="0" max="40" step="1" value="10"><output id="frameOpacityValue">10 %</output></div>
</label>
<label>Style
<select id="frameBorderStyle"><option value="solid">Plein</option><option value="dashed">Pointillé</option></select>
</label>
<div class="group-meta">
<span>Membres</span><strong id="frameMemberCount">0</strong>
</div>
<div class="group-size-grid">
<label>Largeur<input id="frameWidth" type="number" min="120" step="10" value="320"></label>
<label>Hauteur<input id="frameHeight" type="number" min="80" step="10" value="180"></label>
</div>
<label class="check-row"><input id="frameLocked" type="checkbox"> Verrouiller le groupe</label>
<div class="group-actions">
<button type="button" id="frameFitBtn">↔ Ajuster au contenu</button>
<button type="button" id="frameCaptureBtn">⊞ Adopter les nœuds contenus</button>
</div>
</div>
</div>
</details>
<div class="form-actions">
<button type="button" id="openResource">👁️ Ouvrir / prévisualiser</button>
<button type="button" id="linkBtn">⛓️ Relier à…</button>
<button type="button" id="collapseBtn">▾ Replier</button>
<button type="button" id="deleteBtn" class="danger hidden">🗑️ Supprimer ce nœud</button>
</div>
</form>
</div>
</aside>
</main>
<dialog id="preview">
<header><div><strong id="previewTitle"></strong><small id="previewMeta"></small></div><button id="previewClose">×</button></header>
<div id="previewBody"></div>
</dialog>
<dialog id="recentDialog" class="small-dialog">
<header><div><strong>Espaces de travail récents</strong><small>Basculer rapidement entre vos dossiers</small></div><button id="recentClose">×</button></header>
<div class="recent-panel">
<p class="recent-help">Les autorisations restent gérées par le navigateur. Il peut vous demander de confirmer de nouveau l’accès après un redémarrage.</p>
<div id="recentList" class="recent-list"></div>
</div>
</dialog>
<dialog id="exportDialog" class="small-dialog export-dialog">
<header><div><strong>Imprimer ou exporter</strong><small>Vue active ou espace de travail complet</small></div><button id="exportClose">×</button></header>
<div class="export-panel">
<details id="exportPrintSection" class="export-section">
<summary><svg class="ui-icon" aria-hidden="true"><use href="#i-printer"></use></svg><span><strong>Imprimer</strong><small>SVG, PNG ou impression / PDF de la vue active</small></span><span class="chevron" aria-hidden="true">⌄</span></summary>
<div class="export-section-body">
<label>Orientation
<select id="exportOrientation"><option value="landscape">Paysage</option><option value="portrait">Portrait</option></select>
</label>
<label class="check-row"><input id="exportHidden" type="checkbox"> Inclure les branches repliées</label>
<p>Le canvas est libre. MindSpark calcule les limites réelles du contenu puis redimensionne la vue pour tenir sur l’A4 choisi.</p>
<div class="export-actions">
<button id="exportSvgBtn" type="button">⬇️ SVG A4</button>
<button id="exportPngBtn" type="button">🖼️ PNG A4</button>
<button id="exportPrintBtn" type="button" class="primary">🖨️ Imprimer / PDF</button>
</div>
</div>
</details>
<details id="exportWorkspaceSection" class="export-section">
<summary><svg class="ui-icon" aria-hidden="true"><use href="#i-box"></use></svg><span><strong>Espace de travail</strong><small>Structure, ressources et métadonnées MindSpark</small></span><span class="chevron" aria-hidden="true">⌄</span></summary>
<div class="export-section-body">
<p>Exporter ou matérialiser la structure complète : dossiers + métadonnées <code>.glom</code>.</p>
<div class="export-actions workspace-actions">
<button id="zipWorkspaceBtn" type="button">📦 Template ZIP</button>
<button id="materializeBtn" type="button">📁 Créer sur disque</button>
</div>
</div>
</details>
</div>
</dialog>
<dialog id="imageObjectDialog" class="small-dialog">
<header><div><strong>Ajouter une image libre</strong><small>Référence un fichier image déjà présent dans le workspace</small></div><button id="imageObjectClose">×</button></header>
<div class="image-picker-panel">
<label class="search"><span>⌕</span><input id="imageObjectSearch" type="search" placeholder="Nom ou chemin de l’image…"></label>
<div id="imageObjectList" class="image-picker-list"></div>
</div>
</dialog>
<dialog id="settingsDialog" class="small-dialog">
<header><div><strong>Paramètres de l’espace de travail</strong><small>Comportement des cartes MindSpark</small></div><button id="settingsClose">×</button></header>
<form id="settingsForm" class="settings-panel">
<label class="check-row"><input id="autoCollapseEnabled" type="checkbox"> Replier automatiquement les branches volumineuses</label>
<label class="settings-field">Seuil d’enfants directs
<input id="autoCollapseThreshold" type="number" min="1" max="9999" step="1" inputmode="numeric">
<small>Une nouvelle carte replie une branche si elle contient plus que ce nombre d’enfants directs.</small>
</label>
<label class="settings-field">Disposition par défaut des nouvelles cartes
<select id="defaultLayoutMode">
<option value="right">Vers la droite</option>
<option value="left">Vers la gauche</option>
<option value="down">Vers le bas</option>
<option value="balanced">Équilibrée gauche / droite</option>
<option value="radial">Radiale / étoile</option>
</select>
<small>Ce choix n’altère pas automatiquement les cartes déjà existantes.</small>
</label>
<p>Les cartes existantes conservent leurs choix de repli lors d’un rescan. Le bouton ci-dessous ne fait que replier les branches qui dépassent le seuil ; il ne déplie rien.</p>
<div class="settings-actions">
<button id="settingsApplyCurrentBtn" type="button">Appliquer à la carte active</button>
<button type="submit" class="primary">Enregistrer</button>
</div>
</form>
</dialog>
<dialog id="feedbackDialog" class="small-dialog feedback-dialog">
<header><div><strong>Retour / DEV-CMD</strong><small>Signaler un bug ou demander une action sur MindSpark</small></div><button id="feedbackClose" type="button">×</button></header>
<form id="feedbackForm" class="feedback-panel">
<label>Type de demande
<select id="feedbackAction">
<option value="ISSUE">Signaler un problème</option>
<option value="ANALYZE">Demander une analyse</option>
<option value="FIX">Demander une correction</option>
<option value="CONTINUE">Continuer le développement</option>
<option value="REVIEW">Demander une revue</option>
</select>
</label>
<label>Description
<textarea id="feedbackDescription" rows="7" required placeholder="Décris précisément ce que tu observes ou ce que tu souhaites."></textarea>
</label>
<p class="feedback-help">La commande inclut automatiquement le projet, le dépôt, la version et un REQUEST-ID unique. Aucun contenu de ton workspace n’est joint.</p>
<div class="feedback-actions">
<button id="feedbackGithub" type="button" class="primary">Créer une issue GitHub</button>
<button id="feedbackCopy" type="button">Copier DEV-CMD</button>
<button id="feedbackMail" type="button">Préparer un e-mail</button>
</div>
<p id="feedbackStatus" class="feedback-status" aria-live="polite"></p>
</form>
</dialog>
<dialog id="exclusionsDialog" class="small-dialog">
<header><div><strong>Exclusions du workspace</strong><small>Masquer sans supprimer du disque</small></div><button id="exclusionsClose">×</button></header>
<div class="exclusions-panel">
<p>Les règles sont enregistrées dans <code>.glom/workspace.json</code>. Exemples : <code>*.bak</code>, <code>nppBackup/**</code>, <code>Sources/Brouillons</code>.</p>
<form id="exclusionForm" class="exclusion-add">
<input id="exclusionPattern" type="text" placeholder="Chemin ou motif, ex. *.bak">
<button type="submit" class="primary">Ajouter</button>
</form>
<div class="exclusion-presets">
<button id="excludeBakPreset" type="button">+ *.bak</button>
<button id="excludeNppPreset" type="button">+ nppBackup/**</button>
</div>
<div id="exclusionsList" class="exclusions-list"></div>
</div>
</dialog>
<input id="folderFallback" type="file" webkitdirectory multiple hidden>
<script>
window.addEventListener("error",function(e){
var s=document.getElementById("status");if(s){s.textContent="Erreur de démarrage — rechargez la page";s.style.color="#b42318"}
console.error("MindSpark bootstrap error",e.error||e.message||e);
});
window.addEventListener("unhandledrejection",function(e){console.error("MindSpark unhandled rejection",e.reason||e)});
</script>
<script type="module" src="./src/app.js"></script>
</body>
</html>