-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
562 lines (522 loc) · 27.3 KB
/
Copy pathindex.html
File metadata and controls
562 lines (522 loc) · 27.3 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
559
560
561
562
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>Thoughts Mapper</title>
<link rel="stylesheet" href="styles.css" />
</head>
<body>
<div id="appShell" class="app-shell">
<aside class="left-panel" aria-label="Library">
<header class="brand">
<div class="brand-mark" aria-hidden="true">TM</div>
<div>
<h1>Thoughts Mapper</h1>
<p id="saveState">Ready</p>
</div>
<button id="libraryCloseButton" class="mobile-panel-close" type="button" aria-label="Close library">x</button>
</header>
<div class="project-controls collapsed" id="projectControls" aria-label="Projects">
<label class="field compact-field">
<span>Project</span>
<select id="projectSelect"></select>
</label>
<label class="field compact-field">
<span>Project name</span>
<input id="projectNameInput" type="text" maxlength="80" />
</label>
<button id="newProjectToggleButton" type="button">New project</button>
<div id="newProjectPanel" class="new-project-panel" hidden>
<label class="field compact-field">
<span>Template</span>
<select id="templateSelect">
<option value="">Choose template</option>
</select>
</label>
<input id="newProjectNameInput" type="text" maxlength="80" placeholder="New project name" autocomplete="off" />
<button id="createTemplateButton" type="button">Create project</button>
</div>
</div>
<label class="search-box">
<span aria-hidden="true"></span>
<input id="searchInput" type="search" placeholder="Search titles, notes, tags" autocomplete="off" />
</label>
<form id="quickCaptureForm" class="quick-add">
<input id="quickCaptureInput" type="text" maxlength="80" placeholder="Capture a thought..." autocomplete="off" />
<button type="submit" title="Capture to inbox" aria-label="Capture to inbox">Add</button>
</form>
<div class="shortcut-hint">Ctrl+K to capture</div>
<div class="filter-row">
<select id="tagFilterInput" aria-label="Filter by tag">
<option value="">All tags</option>
</select>
<button id="inboxFilterButton" type="button" title="Show unlinked inbox thoughts">Inbox <span id="inboxCount">0</span></button>
<button id="reviewButton" type="button" title="Review thinking queues">Review</button>
</div>
<div class="section-heading">
<span>Library</span>
<span id="thoughtCount">0</span>
</div>
<nav id="thoughtList" class="thought-list" aria-label="Thought list"></nav>
<details class="sidebar-actions data-actions">
<summary title="Backup, import, and export">Data</summary>
<div class="data-action-menu">
<button id="snapshotButton" type="button" title="Create, restore, or delete named snapshots">Snapshots</button>
<button id="exportButton" type="button" title="Export a full JSON backup">Backup JSON</button>
<button id="markdownExportButton" type="button" title="Export notes as a Markdown document">Export notes</button>
<button id="markdownFolderExportButton" type="button" title="Export one Markdown file per thought">Markdown folder</button>
<button id="opmlExportButton" type="button" title="Export the hierarchy as OPML">Export OPML</button>
<button id="jsonCanvasExportButton" type="button" title="Export to Obsidian JSON Canvas">JSON Canvas</button>
<button id="svgExportButton" type="button" title="Export the visible map as SVG">Export SVG</button>
<button id="pngExportButton" type="button" title="Export the visible map as PNG">Export PNG</button>
<label class="file-button">
Import JSON
<input id="importInput" type="file" accept=".json,application/json" />
</label>
<label class="file-button">
Import Markdown
<input id="markdownImportInput" type="file" accept=".md,.markdown,text/markdown" multiple webkitdirectory />
</label>
<label class="file-button">
Import OPML
<input id="opmlImportInput" type="file" accept=".opml,.xml,text/xml,application/xml" />
</label>
<label class="file-button">
Import Canvas
<input id="jsonCanvasImportInput" type="file" accept=".canvas,.json,application/json" />
</label>
</div>
</details>
</aside>
<div id="leftResizeHandle" class="panel-resize-handle left-resize" role="separator" aria-label="Resize library panel" aria-orientation="vertical" tabindex="0"></div>
<main class="map-stage" aria-label="Thought map">
<div class="ambient-layer" aria-hidden="true">
<span></span>
<span></span>
<span></span>
<span></span>
<span></span>
<span></span>
</div>
<div class="stage-toolbar" aria-label="Map tools">
<button id="sidebarToggleButton" class="toolbar-icon-button" type="button" title="Hide thoughts sidebar" aria-label="Hide thoughts sidebar">Menu</button>
<button id="detailsToggleButton" class="toolbar-icon-button" type="button" title="Hide thought details" aria-label="Hide thought details">Details</button>
<div class="stage-view-switch" role="tablist" aria-label="Stage view">
<button id="mapViewButton" class="active" type="button" role="tab" aria-selected="true">Map</button>
<button id="outlineViewButton" type="button" role="tab" aria-selected="false">Outline</button>
<button id="walkViewButton" type="button" role="tab" aria-selected="false">Walk</button>
</div>
<button id="presentationButton" class="toolbar-icon-button" type="button" title="Start presentation mode" aria-label="Start presentation mode" aria-pressed="false">Present</button>
<button id="fitButton" class="toolbar-icon-button" type="button" title="Fit map" aria-label="Fit map">Fit</button>
<output id="zoomFactor" class="zoom-factor" aria-label="Zoom 100%" title="Zoom 100%">100%</output>
<button id="settingsButton" class="toolbar-icon-button" type="button" title="Open settings" aria-label="Open settings">Settings</button>
<button id="moreButton" class="toolbar-icon-button" type="button" title="More map tools" aria-label="More map tools">...</button>
<div id="moreMenu" class="more-menu" hidden>
<button id="undoButton" type="button" title="Undo" aria-label="Undo">Undo</button>
<button id="redoButton" type="button" title="Redo" aria-label="Redo">Redo</button>
<button id="centerButton" type="button" title="Center thought" aria-label="Center thought">Center thought</button>
<button id="resetButton" type="button" title="Reset camera to default zoom and origin" aria-label="Reset camera to default zoom and origin">Reset view</button>
<button id="settingsMenuButton" class="mobile-menu-only" type="button" title="Open settings" aria-label="Open settings">Settings</button>
</div>
</div>
<svg id="graph" role="img" aria-label="Visual thought graph">
<defs>
<filter id="nodeShadow" x="-30%" y="-30%" width="160%" height="160%">
<feDropShadow dx="0" dy="8" stdDeviation="10" flood-color="#20344f" flood-opacity="0.16" />
</filter>
</defs>
<rect id="graphBackground" width="100%" height="100%" />
<g id="viewport">
<g id="linksLayer"></g>
<g id="nodesLayer"></g>
</g>
</svg>
<section id="outlineView" class="outline-view" aria-label="Outline view" hidden>
<div class="outline-board">
<header class="outline-header">
<div>
<span>Outline</span>
<h2 id="outlineTitle">My first map</h2>
</div>
<p id="outlineSummary">0 thoughts</p>
</header>
<div id="outlineTree" class="outline-tree"></div>
</div>
</section>
<section id="walkView" class="walk-view" aria-label="Walk mode" hidden>
<div class="walk-board">
<header class="walk-header">
<div>
<span>Walk</span>
<h2 id="walkTitle">Select a thought</h2>
</div>
<p id="walkProgress">0 of 0</p>
</header>
<p id="walkMeta" class="walk-meta"></p>
<div id="walkNote" class="walk-note"></div>
<div id="walkContext" class="walk-context"></div>
<div class="walk-actions">
<button id="walkPrevButton" type="button">Previous</button>
<button id="walkNextButton" type="button">Next</button>
<button id="walkMapButton" type="button">Show on map</button>
</div>
</div>
</section>
<div id="stagePrompt" class="stage-prompt" hidden>Select a thought, or press Ctrl+K to capture.</div>
</main>
<div id="rightResizeHandle" class="panel-resize-handle right-resize" role="separator" aria-label="Resize details panel" aria-orientation="vertical" tabindex="0"></div>
<aside class="right-panel" aria-label="Thought details">
<div class="mobile-sheet-bar">
<span aria-hidden="true"></span>
<strong>Details</strong>
<button id="detailsCloseButton" class="mobile-panel-close" type="button" aria-label="Close details">x</button>
</div>
<section id="detailsEmpty" class="empty-state">
<h2>Thought</h2>
<p>Create or select a thought.</p>
</section>
<section id="detailsPanel" class="details-panel" hidden>
<div class="thought-header">
<input id="titleInput" class="thought-title-input" type="text" maxlength="80" />
<button id="deleteButton" class="danger-button" type="button">Delete</button>
</div>
<div class="details-tabs" role="tablist" aria-label="Thought sections">
<button id="detailsTabDetails" class="details-tab active" type="button" role="tab" aria-selected="true" aria-controls="detailsTabPanelDetails">Details</button>
<button id="detailsTabNotes" class="details-tab" type="button" role="tab" aria-selected="false" aria-controls="detailsTabPanelNotes">Notes</button>
<button id="detailsTabLinks" class="details-tab" type="button" role="tab" aria-selected="false" aria-controls="detailsTabPanelLinks">Links</button>
<button id="detailsTabSources" class="details-tab" type="button" role="tab" aria-selected="false" aria-controls="detailsTabPanelSources">Sources</button>
</div>
<div id="detailsTabPanelDetails" class="details-tab-panel details-overview-panel" role="tabpanel" aria-labelledby="detailsTabDetails">
<div class="thought-meta-row">
<label class="field compact-field">
<span>Type</span>
<div class="kind-control">
<select id="kindInput"></select>
<button id="kindDefaultButton" type="button" title="Use this kind by default">Default</button>
</div>
</label>
<label class="field compact-field">
<span>Tags</span>
<input id="tagInput" type="text" placeholder="research, project, later" />
</label>
</div>
<span id="selectedType" class="type-pill">Idea</span>
<section id="inboxPlacementPanel" class="inbox-placement" hidden>
<div>
<strong>Place inbox thought</strong>
<p id="placePreviewText">Choose where this thought belongs.</p>
</div>
<div class="place-form">
<label class="field compact-field">
<span>Connect to</span>
<select id="placeTargetInput" aria-label="Place with thought"></select>
</label>
<label class="field compact-field">
<span>Connection</span>
<select id="placeRelationInput" aria-label="Placement relation">
<option value="child-of">Place below</option>
<option value="parent-of">Place above</option>
<option value="related">Connect beside</option>
</select>
</label>
<button id="placeThoughtButton" type="button">Place thought</button>
</div>
</section>
</div>
<div id="detailsTabPanelNotes" class="details-tab-panel details-notes-panel" role="tabpanel" aria-labelledby="detailsTabNotes" hidden>
<div class="field field-notes">
<div class="note-field-header">
<span>Notes</span>
<button id="openNoteWorkspaceButton" type="button">Open note</button>
</div>
<div
id="notePreview"
class="note-preview"
role="button"
tabindex="0"
aria-label="Notes preview. Activate to edit. Markdown supported."
></div>
<textarea id="noteInput" rows="12" hidden></textarea>
</div>
</div>
<div id="detailsTabPanelLinks" class="details-tab-panel details-links-panel" role="tabpanel" aria-labelledby="detailsTabLinks" hidden>
<form id="linkForm" class="link-form">
<label class="field link-search-field">
<span>Connect to...</span>
<input id="linkTargetInput" list="linkTargetOptions" type="search" placeholder="Search thoughts" autocomplete="off" />
<datalist id="linkTargetOptions"></datalist>
</label>
<div class="link-inline-row">
<select id="linkRelationInput">
<option value="parent-of">Add below</option>
<option value="child-of">Place above</option>
<option value="related">Connect beside</option>
</select>
<button id="linkSubmitButton" type="submit">Connect</button>
</div>
<p id="linkPreviewText" class="relationship-preview">Search for a thought to connect.</p>
</form>
<form id="connectedThoughtForm" class="link-form connected-thought-form">
<label class="field link-search-field">
<span>Create connected thought</span>
<input id="connectedThoughtTitleInput" type="text" maxlength="80" placeholder="New thought title" autocomplete="off" />
</label>
<div class="link-inline-row">
<select id="connectedThoughtRelationInput" aria-label="New thought connection">
<option value="parent-of">Add below</option>
<option value="child-of">Place above</option>
<option value="related">Connect beside</option>
</select>
<button id="connectedThoughtSubmitButton" type="submit">Create</button>
</div>
</form>
<div class="section-heading">
<span>Connections</span>
<span id="connectionCount">0</span>
</div>
<div id="connectionList" class="connection-list"></div>
<div class="section-heading">
<span>Mentioned by</span>
<span id="backlinkCount">0</span>
</div>
<div id="backlinkList" class="connection-list"></div>
<div class="section-heading">
<span>Mentions</span>
<span id="mentionCount">0</span>
</div>
<div id="mentionList" class="connection-list"></div>
</div>
<div id="detailsTabPanelSources" class="details-tab-panel details-sources-panel" role="tabpanel" aria-labelledby="detailsTabSources" hidden>
<form id="attachmentForm" class="link-form source-form">
<label class="field link-search-field">
<span>Title</span>
<input id="attachmentTitleInput" type="text" maxlength="100" placeholder="Article, file, transcript..." autocomplete="off" />
</label>
<div class="link-inline-row source-inline-row">
<select id="attachmentKindInput" aria-label="Source type">
<option value="url">URL</option>
<option value="file">File reference</option>
</select>
<input id="attachmentRefInput" type="text" maxlength="2048" placeholder="https://... or file path" autocomplete="off" />
<button type="submit">Add</button>
</div>
</form>
<div class="section-heading">
<span>Sources</span>
<span></span>
</div>
<div id="attachmentList" class="source-list"></div>
</div>
</section>
</aside>
<button id="mobileScrim" class="mobile-scrim" type="button" aria-label="Close panel" hidden></button>
</div>
<section id="noteWorkspace" class="note-workspace" hidden aria-label="Note workspace">
<div class="note-workspace-panel">
<header class="note-workspace-header">
<div>
<span>Note workspace</span>
<h2 id="noteWorkspaceTitle">Untitled</h2>
</div>
<button id="closeNoteWorkspaceButton" type="button" aria-label="Close note workspace">Close</button>
</header>
<div class="note-workspace-body">
<section class="field note-workspace-editor">
<span>Write</span>
<div
id="noteWorkspaceInput"
class="note-live-editor"
contenteditable="true"
role="textbox"
aria-multiline="true"
spellcheck="true"
tabindex="0"
></div>
</section>
</div>
</div>
</section>
<form id="mobileCaptureForm" class="mobile-capture" hidden>
<input id="mobileCaptureInput" type="text" maxlength="80" placeholder="Capture a thought..." autocomplete="off" />
<button type="submit">Add</button>
<button id="mobileCaptureCancelButton" class="mobile-capture-close" type="button" aria-label="Close capture">x</button>
</form>
<button id="mobileCaptureButton" class="mobile-fab" type="button" aria-label="Capture a thought">+</button>
<section id="inboxReviewPanel" class="inbox-review" hidden aria-label="Inbox review">
<header>
<div>
<h2>Review</h2>
<p id="inboxReviewProgress">No unplaced thoughts.</p>
</div>
<div class="inbox-review-header-actions">
<select id="reviewModeInput" aria-label="Review mode">
<option value="unplaced">Unplaced</option>
<option value="orphaned">Orphaned</option>
<option value="missing-mentions">Missing mentions</option>
<option value="open-questions">Open questions</option>
<option value="stale-notes">Stale notes</option>
<option value="unchecked-tasks">Unchecked tasks</option>
</select>
<button id="inboxReviewPrevButton" type="button">Previous</button>
<button id="inboxReviewNextButton" type="button">Next</button>
<button id="inboxReviewCloseButton" type="button" aria-label="Close inbox review">Close</button>
</div>
</header>
<div class="inbox-review-body">
<div class="inbox-review-current">
<span>Current inbox thought</span>
<strong id="inboxReviewTitle">Inbox clear</strong>
</div>
<p id="inboxReviewNote">Captured thoughts will appear here until you connect them.</p>
<label class="field compact-field">
<span>Connect to</span>
<select id="inboxReviewTargetInput" aria-label="Connect inbox thought to"></select>
</label>
<p id="inboxReviewPreview" class="relationship-preview">Choose a thought to connect.</p>
<div class="inbox-review-actions">
<button id="inboxReviewChildButton" type="button">Place below</button>
<button id="inboxReviewParentButton" type="button">Place above</button>
<button id="inboxReviewRelatedButton" type="button">Connect beside</button>
<button id="reviewOpenNoteButton" type="button">Open note</button>
<button id="reviewFixButton" type="button">Fix</button>
<button id="inboxReviewKeepButton" type="button">Skip for now</button>
</div>
</div>
</section>
<section id="commandPalette" class="command-palette" hidden role="dialog" aria-modal="true" aria-label="Command palette">
<div class="command-palette-panel">
<header>
<span>Command</span>
<button id="commandPaletteCloseButton" type="button" aria-label="Close command palette">Close</button>
</header>
<input id="commandPaletteInput" type="search" autocomplete="off" placeholder="Create, connect, jump, tag, note, export..." />
<div id="commandPaletteList" class="command-palette-list" role="listbox"></div>
<p id="commandPaletteHint">Ctrl+P or Ctrl+/</p>
</div>
</section>
<section id="snapshotPanel" class="snapshot-panel" hidden role="dialog" aria-modal="true" aria-label="Snapshots">
<div class="snapshot-card">
<header>
<div>
<h2>Snapshots</h2>
<p>Named restore points for this project.</p>
</div>
<button id="snapshotCloseButton" type="button" aria-label="Close snapshots">Close</button>
</header>
<div class="snapshot-create-row">
<input id="snapshotNameInput" type="text" maxlength="80" placeholder="Before restructuring" autocomplete="off" />
<button id="createSnapshotButton" type="button">Create snapshot</button>
</div>
<div id="snapshotList" class="snapshot-list"></div>
</div>
</section>
<div id="contextMenu" class="context-menu" hidden>
<form id="nodeCreateForm" class="context-form">
<div class="context-title">New connected thought</div>
<input id="nodeCreateInput" type="text" maxlength="80" placeholder="Thought title" autocomplete="off" />
<textarea id="nodeCreateNoteInput" maxlength="1200" placeholder="Notes, details, next step..."></textarea>
<select id="nodeCreateRelationInput" aria-label="Connection">
<option value="parent-of">Below this thought</option>
<option value="child-of">Above this thought</option>
<option value="related">Beside this thought</option>
</select>
<div class="context-actions">
<button id="nodeCreateCancelButton" type="button">Cancel</button>
<button type="submit">Create</button>
</div>
</form>
<form id="linkEditForm" class="context-form" hidden>
<div class="context-title">Connection</div>
<input id="linkNameInput" type="text" maxlength="80" placeholder="Connection name" autocomplete="off" />
<select id="linkDirectionInput" aria-label="Connection relationship">
<option value="parent-forward">Keep direction</option>
<option value="parent-reverse">Reverse direction</option>
<option value="related">Connect beside</option>
</select>
<div class="context-actions">
<button id="linkUnlinkButton" class="context-danger" type="button">Remove</button>
<button type="submit">Save</button>
</div>
<div class="context-divider"></div>
<div class="context-title">Reconnect</div>
<select id="linkKeepInput" aria-label="Keep this thought connected"></select>
<select id="linkRetargetInput" aria-label="Connect to another thought"></select>
<select id="linkRetargetRelationInput" aria-label="Reconnect relationship">
<option value="parent-of">Move other below</option>
<option value="child-of">Move other above</option>
<option value="related">Connect beside</option>
<option value="sibling">Place as sibling</option>
</select>
<button id="linkRetargetButton" type="button">Reconnect</button>
</form>
</div>
<section id="settingsPage" class="settings-page" hidden aria-label="Settings">
<div class="settings-card">
<header class="settings-header">
<div>
<h2>Settings</h2>
<p>Visual preferences for the current map.</p>
</div>
<button id="settingsCloseButton" type="button" aria-label="Close settings">Close</button>
</header>
<div class="settings-grid">
<label class="field">
<span>Line thickness</span>
<input id="lineThicknessInput" type="range" min="1" max="8" step="0.5" />
</label>
<output id="lineThicknessValue" class="setting-value">1.5</output>
<label class="field">
<span>Line shape</span>
<select id="connectionTypeInput">
<option value="straight">Straight</option>
<option value="curve">Curve</option>
</select>
</label>
<label class="field">
<span>Line ends</span>
<select id="lineEndpointInput">
<option value="floating">Floating line</option>
<option value="touching">Touching line</option>
</select>
</label>
<label class="field">
<span>Colour scheme</span>
<select id="colourSchemeInput" aria-label="Colour scheme">
<option value="light-mint">Light</option>
<option value="dark-calm">Dark</option>
<option value="light-eink">E-ink</option>
<option value="high-contrast">High contrast</option>
<option value="presentation">Presentation</option>
<option value="light-leaves">Falling leaves</option>
<option value="dark-starfield">Starfield</option>
<option value="dark-fire">Fire</option>
</select>
</label>
<label class="setting-toggle">
<strong>Calm mode</strong>
<input id="calmModeInput" type="checkbox" />
</label>
<section class="settings-section mobile-management-section">
<div class="settings-section-header">
<h3>Project & data</h3>
</div>
<div id="mobileManagement" class="mobile-management"></div>
</section>
<section class="settings-section kind-settings">
<div class="settings-section-header">
<h3>Types</h3>
</div>
<div id="kindList" class="kind-list"></div>
<div class="kind-add-row">
<input id="newKindNameInput" type="text" maxlength="32" placeholder="New type" autocomplete="off" />
<input id="newKindColorInput" type="color" aria-label="New type colour" />
<button id="addKindButton" type="button">Add</button>
</div>
</section>
</div>
</div>
</section>
<script type="module" src="/src/main.ts"></script>
</body>
</html>