Repository navigation
Expand file tree
/
Copy pathindex.html
More file actions
705 lines (682 loc) · 45.4 KB
/
Copy pathindex.html
File metadata and controls
705 lines (682 loc) · 45.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
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
<!DOCTYPE html>
<html lang="en" data-mode="light">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Simple Notes Desktop</title>
<link rel="stylesheet" href="./src/styles.css" />
</head>
<body>
<div id="app">
<div id="splash">
<div class="spinner"></div>
</div>
<!-- Main Container -->
<div id="main-container" class="hidden">
<!-- Toolbar -->
<div class="toolbar">
<button id="new-note-btn" class="btn-icon" title="New Note" type="button">
<svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true">
<path d="M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z"></path>
<polyline points="14 2 14 8 20 8"></polyline>
<line x1="12" y1="18" x2="12" y2="12"></line>
<line x1="9" y1="15" x2="15" y2="15"></line>
</svg>
</button>
<button id="new-checklist-btn" class="btn-icon" title="New Checklist" type="button">
<svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true">
<polyline points="9 11 12 14 22 4"></polyline>
<path d="M21 12v7a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h11"></path>
</svg>
</button>
<button id="new-folder-btn" class="btn-icon" title="New Folder" type="button">
<svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true">
<path d="M22 19a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h5l2 3h9a2 2 0 0 1 2 2z"></path>
<line x1="12" y1="11" x2="12" y2="17"></line>
<line x1="9" y1="14" x2="15" y2="14"></line>
</svg>
</button>
<button id="sync-btn" class="btn-icon" title="Sync" type="button">
<svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true">
<polyline points="23 4 23 10 17 10"></polyline>
<polyline points="1 20 1 14 7 14"></polyline>
<path d="M3.51 9a9 9 0 0 1 14.85-3.36L23 10M1 14l4.64 4.36A9 9 0 0 0 20.49 15"></path>
</svg>
</button>
<div class="toolbar-separator" aria-hidden="true"></div>
<button id="select-mode-btn" class="btn-icon" title="Select multiple notes (Ctrl+Click)" type="button">
<svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true">
<rect x="2" y="3" width="5" height="5" rx="1"></rect>
<line x1="10" y1="5.5" x2="22" y2="5.5"></line>
<rect x="2" y="9.5" width="5" height="5" rx="1"></rect>
<polyline points="2.8 12.1 4.3 13.6 6.8 11.1"></polyline>
<line x1="10" y1="12" x2="22" y2="12"></line>
<rect x="2" y="16" width="5" height="5" rx="1"></rect>
<polyline points="2.8 18.6 4.3 20.1 6.8 17.6"></polyline>
<line x1="10" y1="18.5" x2="22" y2="18.5"></line>
</svg>
</button>
<button id="trash-view-btn" class="btn-icon" title="Trash" type="button">
<svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true">
<polyline points="3 6 5 6 21 6"></polyline>
<path d="M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6m3 0V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2"></path>
</svg>
</button>
<button id="archive-view-btn" class="btn-icon" title="Archive" type="button">
<svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true">
<polyline points="21 8 21 21 3 21 3 8"></polyline>
<rect x="1" y="3" width="22" height="5"></rect>
<line x1="10" y1="12" x2="14" y2="12"></line>
</svg>
</button>
<div class="spacer"></div>
<button id="settings-btn" class="btn-icon" title="Settings" type="button">
<svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true">
<circle cx="12" cy="12" r="3"></circle>
<path d="M19.4 15a1.65 1.65 0 0 0 .33 1.82l.06.06a2 2 0 0 1 0 2.83 2 2 0 0 1-2.83 0l-.06-.06a1.65 1.65 0 0 0-1.82-.33 1.65 1.65 0 0 0-1 1.51V21a2 2 0 0 1-2 2 2 2 0 0 1-2-2v-.09A1.65 1.65 0 0 0 9 19.4a1.65 1.65 0 0 0-1.82.33l-.06.06a2 2 0 0 1-2.83 0 2 2 0 0 1 0-2.83l.06-.06a1.65 1.65 0 0 0 .33-1.82 1.65 1.65 0 0 0-1.51-1H3a2 2 0 0 1-2-2 2 2 0 0 1 2-2h.09A1.65 1.65 0 0 0 4.6 9a1.65 1.65 0 0 0-.33-1.82l-.06-.06a2 2 0 0 1 0-2.83 2 2 0 0 1 2.83 0l.06.06a1.65 1.65 0 0 0 1.82.33H9a1.65 1.65 0 0 0 1-1.51V3a2 2 0 0 1 2-2 2 2 0 0 1 2 2v.09a1.65 1.65 0 0 0 1 1.51 1.65 1.65 0 0 0 1.82-.33l.06-.06a2 2 0 0 1 2.83 0 2 2 0 0 1 0 2.83l-.06.06a1.65 1.65 0 0 0-.33 1.82V9a1.65 1.65 0 0 0 1.51 1H21a2 2 0 0 1 2 2 2 2 0 0 1-2 2h-.09a1.65 1.65 0 0 0-1.51 1z"></path>
</svg>
</button>
</div>
<!-- F6: Batch Actions Bar -->
<div id="batch-actions" class="batch-actions" style="display: none;">
<span class="selection-count">0 selected</span>
<div class="batch-actions-buttons">
<button id="batch-pin-btn" class="btn-batch" title="Pin selected notes" type="button">
<svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true">
<line x1="12" y1="17" x2="12" y2="22"/>
<path d="M5 17h14v-1.76a2 2 0 0 0-1.11-1.79l-1.78-.9A2 2 0 0 1 15 10.76V6h1a2 2 0 0 0 0-4H8a2 2 0 0 0 0 4h1v4.76a2 2 0 0 1-1.11 1.79l-1.78.9A2 2 0 0 0 5 15.24Z"/>
</svg>
Pin
</button>
<button id="batch-unpin-btn" class="btn-batch" title="Unpin selected notes" type="button">
<svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true">
<line x1="2" y1="2" x2="22" y2="22"/>
<line x1="12" y1="17" x2="12" y2="22"/>
<path d="M9 9v1.76a2 2 0 0 1-1.11 1.79l-1.78.9A2 2 0 0 0 5 15.24V17h12"/>
<path d="M15 9.34V6h1a2 2 0 0 0 0-4H8a2 2 0 0 0-.34.03"/>
</svg>
Unpin
</button>
<button id="batch-color-btn" class="btn-batch" title="Change color of selected notes" type="button">
<svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true">
<circle cx="13.5" cy="6.5" r=".5" fill="currentColor"/>
<circle cx="17.5" cy="10.5" r=".5" fill="currentColor"/>
<circle cx="8.5" cy="7.5" r=".5" fill="currentColor"/>
<circle cx="6.5" cy="12.5" r=".5" fill="currentColor"/>
<path d="M12 2C6.5 2 2 6.5 2 12s4.5 10 10 10c.926 0 1.648-.746 1.648-1.688 0-.437-.18-.835-.437-1.125-.29-.289-.438-.652-.438-1.125a1.64 1.64 0 0 1 1.668-1.668h1.996c3.051 0 5.555-2.503 5.555-5.554C21.965 6.012 17.461 2 12 2z"/>
</svg>
Color
</button>
<button id="batch-archive-btn" class="btn-batch" title="Archive/unarchive selected notes" type="button">
<svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true">
<polyline points="21 8 21 21 3 21 3 8"></polyline>
<rect x="1" y="3" width="22" height="5"></rect>
<line x1="10" y1="12" x2="14" y2="12"></line>
</svg>
Archive
</button>
<button id="batch-move-btn" class="btn-batch" title="Move selected notes to folder" type="button">
<svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true">
<path d="M22 19a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h5l2 3h9a2 2 0 0 1 2 2z"></path>
</svg>
Move
</button>
<button id="batch-delete-btn" class="btn-danger-batch" title="Delete selected notes" type="button">
<svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true">
<polyline points="3 6 5 6 21 6"></polyline>
<path d="M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6m3 0V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2"></path>
<line x1="10" y1="11" x2="10" y2="17"></line>
<line x1="14" y1="11" x2="14" y2="17"></line>
</svg>
Delete
</button>
<button id="batch-cancel-btn" class="btn-cancel" title="Cancel selection" type="button">✕</button>
</div>
</div>
<!-- E2EE-Sperre: sichtbar, solange der Sync pausiert (sync_blocked) -->
<div id="sync-blocked-banner" class="sync-blocked-banner" role="status" hidden>
Sync paused: this sync folder was end-to-end encrypted on another device. Simple Notes Desktop can't read
encrypted folders yet, so nothing on the server is changed. Your notes stay on this computer. Turn encryption
off on the other device to sync again.
</div>
<!-- Main Layout -->
<div class="main-layout">
<!-- Sidebar -->
<div class="sidebar">
<div class="search-container">
<div class="search-row">
<input
type="text"
id="search-input"
class="search-input"
placeholder="Search notes..."
/>
<button id="list-sort-btn" class="btn-icon-small" title="Sort: Last modified" type="button">
<svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true">
<line x1="4" y1="6" x2="16" y2="6"/>
<line x1="4" y1="12" x2="12" y2="12"/>
<line x1="4" y1="18" x2="8" y2="18"/>
</svg>
</button>
</div>
</div>
<div id="notes-list" class="notes-list"></div>
</div>
<div class="sidebar-resize-handle" id="sidebar-resize-handle"></div>
<!-- Editor Area -->
<div class="editor-area">
<div id="no-note-selected" class="placeholder">
<p>Select a note or create a new one</p>
</div>
<div id="editor-container" class="hidden">
<div class="editor-header">
<input
type="text"
id="note-title"
class="note-title"
placeholder="Note Title..."
/>
<div class="editor-actions">
<button id="undo-btn" class="btn-icon-small" title="Undo (Ctrl+Z)" disabled type="button">
<svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true">
<path d="M3 7v6h6"/>
<path d="M3 13C5 7 10 4 16 5.5A9 9 0 0 1 21 13"/>
</svg>
</button>
<button id="preview-toggle-btn" class="btn-icon-small" title="Toggle Preview" type="button">
<svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true">
<path d="M1 12s4-8 11-8 11 8 11 8-4 8-11 8-11-8-11-8z"></path>
<circle cx="12" cy="12" r="3"></circle>
</svg>
</button>
<button id="add-checklist-item-btn" class="btn-icon-small hidden" title="Add Item (Ctrl+Enter)" type="button">
<svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true">
<line x1="12" y1="5" x2="12" y2="19"/>
<line x1="5" y1="12" x2="19" y2="12"/>
</svg>
</button>
<button id="checklist-sort-btn" class="btn-icon-small hidden" title="Sort Checklist" type="button">
<svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true">
<line x1="4" y1="6" x2="16" y2="6"></line>
<line x1="4" y1="12" x2="12" y2="12"></line>
<line x1="4" y1="18" x2="8" y2="18"></line>
<polyline points="15 15 18 18 21 15"></polyline>
<line x1="18" y1="12" x2="18" y2="18"></line>
</svg>
</button>
<button id="note-color-btn" class="btn-icon-small" title="Note color" type="button">
<svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true">
<circle cx="13.5" cy="6.5" r=".5" fill="currentColor"/>
<circle cx="17.5" cy="10.5" r=".5" fill="currentColor"/>
<circle cx="8.5" cy="7.5" r=".5" fill="currentColor"/>
<circle cx="6.5" cy="12.5" r=".5" fill="currentColor"/>
<path d="M12 2C6.5 2 2 6.5 2 12s4.5 10 10 10c.926 0 1.648-.746 1.648-1.688 0-.437-.18-.835-.437-1.125-.29-.289-.438-.652-.438-1.125a1.64 1.64 0 0 1 1.668-1.668h1.996c3.051 0 5.555-2.503 5.555-5.554C21.965 6.012 17.461 2 12 2z"/>
</svg>
</button>
<span id="sync-status" class="sync-status"></span>
<button id="note-menu-btn" class="btn-icon-small" title="More actions" type="button">
<svg width="16" height="16" viewBox="0 0 24 24" fill="currentColor" aria-hidden="true">
<circle cx="12" cy="5" r="1.5"/>
<circle cx="12" cy="12" r="1.5"/>
<circle cx="12" cy="19" r="1.5"/>
</svg>
</button>
<button id="delete-note-btn" class="btn-danger-small" type="button">
<svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true">
<polyline points="3 6 5 6 21 6"></polyline>
<path d="M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6m3 0V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2"></path>
</svg>
Delete
</button>
</div>
</div>
<div id="markdown-toolbar" class="markdown-toolbar hidden">
<button class="md-toolbar-btn" id="md-btn-bold" type="button" title="Bold (Ctrl+B)" aria-label="Bold">
<svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true">
<path d="M6 4h8a4 4 0 0 1 4 4 4 4 0 0 1-4 4H6z"/>
<path d="M6 12h9a4 4 0 0 1 4 4 4 4 0 0 1-4 4H6z"/>
</svg>
</button>
<button class="md-toolbar-btn" id="md-btn-italic" type="button" title="Italic (Ctrl+I)" aria-label="Italic">
<svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true">
<line x1="19" y1="4" x2="10" y2="4"/>
<line x1="14" y1="20" x2="5" y2="20"/>
<line x1="15" y1="4" x2="9" y2="20"/>
</svg>
</button>
<button class="md-toolbar-btn" id="md-btn-strikethrough" type="button" title="Strikethrough" aria-label="Strikethrough">
<svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true">
<line x1="5" y1="12" x2="19" y2="12"/>
<path d="M16 6c0-1.7-1.8-3-4-3s-4 1.3-4 3 1.8 3 4 3 4 1.3 4 3-1.8 3-4 3-4-1.3-4-3"/>
</svg>
</button>
<div class="md-toolbar-sep" aria-hidden="true"></div>
<button class="md-toolbar-btn" id="md-btn-heading" type="button" title="Heading" aria-label="Heading">
<svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true">
<line x1="4" y1="4" x2="4" y2="20"/>
<line x1="20" y1="4" x2="20" y2="20"/>
<line x1="4" y1="12" x2="20" y2="12"/>
</svg>
</button>
<button class="md-toolbar-btn" id="md-btn-code" type="button" title="Inline Code" aria-label="Inline Code">
<svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true">
<polyline points="16 18 22 12 16 6"/>
<polyline points="8 6 2 12 8 18"/>
</svg>
</button>
<button class="md-toolbar-btn" id="md-btn-link" type="button" title="Link" aria-label="Link">
<svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true">
<path d="M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71"/>
<path d="M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71"/>
</svg>
</button>
<button class="md-toolbar-btn" id="md-btn-image" type="button" title="Insert Image" aria-label="Insert Image">
<svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true">
<rect x="3" y="3" width="18" height="18" rx="2" ry="2"/>
<circle cx="8.5" cy="8.5" r="1.5"/>
<polyline points="21 15 16 10 5 21"/>
</svg>
</button>
<div class="md-toolbar-sep" aria-hidden="true"></div>
<button class="md-toolbar-btn" id="md-btn-list" type="button" title="Bullet List" aria-label="Bullet List">
<svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true">
<line x1="9" y1="6" x2="20" y2="6"/>
<line x1="9" y1="12" x2="20" y2="12"/>
<line x1="9" y1="18" x2="20" y2="18"/>
<circle cx="4" cy="6" r="1" fill="currentColor" stroke="none"/>
<circle cx="4" cy="12" r="1" fill="currentColor" stroke="none"/>
<circle cx="4" cy="18" r="1" fill="currentColor" stroke="none"/>
</svg>
</button>
<button class="md-toolbar-btn" id="md-btn-checklist" type="button" title="Checklist Item" aria-label="Checklist Item">
<svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true">
<rect x="3" y="5" width="6" height="6" rx="1"/>
<polyline points="4 8 5.5 9.5 8 7"/>
<line x1="12" y1="8" x2="21" y2="8"/>
<rect x="3" y="13" width="6" height="6" rx="1"/>
<line x1="12" y1="16" x2="21" y2="16"/>
</svg>
</button>
<button class="md-toolbar-btn" id="md-btn-hr" type="button" title="Horizontal Rule" aria-label="Horizontal Rule">
<svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true">
<line x1="3" y1="8" x2="21" y2="8"/>
<line x1="3" y1="12" x2="21" y2="12" stroke-width="3"/>
<line x1="3" y1="16" x2="21" y2="16"/>
</svg>
</button>
<button class="md-toolbar-btn" id="md-btn-table" type="button" title="Table (inside a table: add a row)" aria-label="Table">
<svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true">
<rect x="3" y="4" width="18" height="16" rx="2"/>
<line x1="3" y1="10" x2="21" y2="10"/>
<line x1="3" y1="15" x2="21" y2="15"/>
<line x1="12" y1="4" x2="12" y2="20"/>
</svg>
</button>
</div>
<div id="editor" class="editor"></div>
<div id="preview" class="preview hidden"></div>
<div id="checklist-container" class="hidden checklist-container"></div>
</div>
</div>
</div>
</div>
<!-- Settings Dialog -->
<div id="settings-dialog" class="dialog hidden">
<div class="dialog-content">
<div class="settings-dialog-header">
<button id="settings-back-btn" class="btn-icon hidden" type="button" title="Back" aria-label="Back to settings">
<svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true">
<polyline points="15 18 9 12 15 6"></polyline>
</svg>
</button>
<h2>Settings</h2>
</div>
<div class="dialog-scroll-body">
<!-- Home: navigation cards -->
<div id="settings-home" class="settings-home">
<button class="settings-nav-card" data-section="appearance" type="button">
<svg width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true">
<circle cx="13.5" cy="6.5" r=".5" fill="currentColor"/><circle cx="17.5" cy="10.5" r=".5" fill="currentColor"/><circle cx="8.5" cy="7.5" r=".5" fill="currentColor"/><circle cx="6.5" cy="12.5" r=".5" fill="currentColor"/><path d="M12 2C6.5 2 2 6.5 2 12s4.5 10 10 10c.926 0 1.648-.746 1.648-1.688 0-.437-.18-.835-.437-1.125-.29-.289-.438-.652-.438-1.125a1.64 1.64 0 0 1 1.668-1.668h1.996c3.051 0 5.555-2.503 5.555-5.554C21.965 6.012 17.461 2 12 2z"/>
</svg>
<span class="settings-nav-label">Appearance</span>
<svg class="settings-nav-chevron" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><polyline points="9 18 15 12 9 6"></polyline></svg>
</button>
<button class="settings-nav-card" data-section="connection" type="button">
<svg width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true">
<path d="M5 12.55a11 11 0 0 1 14.08 0"/><path d="M1.42 9a16 16 0 0 1 21.16 0"/><path d="M8.53 16.11a6 6 0 0 1 6.95 0"/><line x1="12" y1="20" x2="12.01" y2="20"/>
</svg>
<span class="settings-nav-label">Connection<span id="connection-folder-subtitle" class="settings-nav-sublabel"></span></span>
<svg class="settings-nav-chevron" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><polyline points="9 18 15 12 9 6"></polyline></svg>
</button>
<button class="settings-nav-card" data-section="markdown" type="button">
<svg width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true">
<path d="M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z"/><polyline points="14 2 14 8 20 8"/><line x1="16" y1="13" x2="8" y2="13"/><line x1="16" y1="17" x2="8" y2="17"/>
</svg>
<span class="settings-nav-label">Markdown Export<span id="markdown-nav-sublabel" class="settings-nav-sublabel"></span></span>
<svg class="settings-nav-chevron" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><polyline points="9 18 15 12 9 6"></polyline></svg>
</button>
<button class="settings-nav-card" data-section="system" type="button">
<svg width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true">
<rect x="2" y="3" width="20" height="14" rx="2" ry="2"/><line x1="8" y1="21" x2="16" y2="21"/><line x1="12" y1="17" x2="12" y2="21"/>
</svg>
<span class="settings-nav-label">System</span>
<svg class="settings-nav-chevron" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><polyline points="9 18 15 12 9 6"></polyline></svg>
</button>
<button class="settings-nav-card" data-section="activity" type="button">
<svg width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true">
<circle cx="12" cy="12" r="10"/><polyline points="12 6 12 12 16 14"/>
</svg>
<span class="settings-nav-label">Activity Log</span>
<svg class="settings-nav-chevron" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><polyline points="9 18 15 12 9 6"></polyline></svg>
</button>
<button id="updates-card" class="settings-nav-card hidden" data-section="updates" type="button">
<svg width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true">
<polyline points="8 17 12 21 16 17"/><line x1="12" y1="12" x2="12" y2="21"/><path d="M20.88 18.09A5 5 0 0 0 18 9h-1.26A8 8 0 1 0 3 16.29"/>
</svg>
<span class="settings-nav-label">Updates</span>
<svg class="settings-nav-chevron" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><polyline points="9 18 15 12 9 6"></polyline></svg>
</button>
<button class="settings-nav-card" data-section="about" type="button">
<svg width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true">
<circle cx="12" cy="12" r="10"/><line x1="12" y1="8" x2="12" y2="12"/><line x1="12" y1="16" x2="12.01" y2="16"/>
</svg>
<span class="settings-nav-label">About</span>
<svg class="settings-nav-chevron" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><polyline points="9 18 15 12 9 6"></polyline></svg>
</button>
</div>
<!-- Appearance -->
<div class="settings-section hidden" data-section="appearance">
<h3>Appearance</h3>
<div class="form-group">
<label>Theme</label>
<div id="theme-grid" class="theme-grid" role="group" aria-label="Theme"></div>
</div>
<div class="form-group">
<label>Font Size</label>
<div class="chip-selector" id="font-size-chips">
<button class="chip" data-value="small" type="button">
<span class="chip-preview" style="font-size:0.85em">Aa</span>
<span>Small</span>
</button>
<button class="chip" data-value="system" type="button">
<span class="chip-preview" style="font-size:1em">Aa</span>
<span>System</span>
</button>
<button class="chip" data-value="normal" type="button">
<span class="chip-preview" style="font-size:1em">Aa</span>
<span>Normal</span>
</button>
<button class="chip" data-value="large" type="button">
<span class="chip-preview" style="font-size:1.15em">Aa</span>
<span>Large</span>
</button>
<button class="chip" data-value="xlarge" type="button">
<span class="chip-preview" style="font-size:1.3em">Aa</span>
<span>XLarge</span>
</button>
</div>
</div>
<div class="form-group">
<label for="default-open-mode-select">Open text notes in</label>
<select id="default-open-mode-select">
<option value="edit">Edit mode</option>
<option value="preview">Preview</option>
</select>
</div>
<div class="form-group">
<label for="image-compression-select">Image compression</label>
<select id="image-compression-select">
<option value="compressed">Compressed (recommended)</option>
<option value="lossless">Lossless</option>
<option value="original">Original</option>
</select>
<small class="form-hint" id="image-compression-hint">
WebP, resized to max. 1920px. Smaller files; strips EXIF/GPS location data.
</small>
<small class="form-hint">Applies when you insert a new image. Already-inserted images are not reprocessed.</small>
</div>
<div class="form-group">
<label for="default-image-size-select">Default image size</label>
<select id="default-image-size-select">
<option value="25">Small</option>
<option value="50">Medium</option>
<option value="75">Large</option>
<option value="100">Full</option>
</select>
<small class="form-hint">Applies when you insert a new image. Change an individual image's size from its right-click menu.</small>
</div>
<div class="form-group">
<label>
<input type="checkbox" id="autosave-checkbox" />
Autosave
</label>
</div>
</div>
<!-- Connection -->
<div class="settings-section hidden" data-section="connection">
<h3>Connection</h3>
<div class="form-group">
<label>
<input type="checkbox" id="offline-mode-checkbox" />
Offline mode
</label>
<small class="form-hint">Local mode: notes are kept on this device only. No automatic synchronization.</small>
</div>
<div class="form-group">
<label for="settings-server-url">Server URL</label>
<input type="text" id="settings-server-url" placeholder="http://192.168.1.10:8080" />
</div>
<div class="form-group">
<label for="settings-username">Username</label>
<input type="text" id="settings-username" autocomplete="username" />
</div>
<div class="form-group">
<label for="settings-password">Password</label>
<input type="password" id="settings-password" autocomplete="current-password" />
</div>
<details class="advanced-toggle" id="sync-folder-advanced">
<summary>Advanced</summary>
<div class="form-group">
<label for="sync-folder-input">Sync Folder</label>
<div class="sync-folder-input-wrapper">
<span class="sync-folder-prefix">/</span>
<input type="text" id="sync-folder-input" placeholder="notes" maxlength="50" />
<span class="sync-folder-suffix">/</span>
</div>
<small class="form-hint">WebDAV folder for notes (default: "notes"). Only letters, numbers, dash and underscore.</small>
<small class="form-hint">Use the same server and folder as the Android/web app. Don't enter the "-md" markdown folder — it's derived automatically.</small>
</div>
</details>
<div class="form-group">
<button id="test-connection-btn" class="btn-secondary" type="button">Test connection</button>
<span id="connection-status" class="form-hint">Status: Offline</span>
</div>
</div>
<!-- Markdown Export -->
<div class="settings-section hidden" data-section="markdown">
<h3>Markdown Export</h3>
<div class="form-group">
<label>
<input type="checkbox" id="markdown-export-checkbox" />
Markdown export
</label>
<small class="form-hint">Also mirror notes as human-readable .md files in a "-md" folder next to the JSON (off by default).</small>
</div>
</div>
<!-- System -->
<div class="settings-section hidden" data-section="system">
<h3>System</h3>
<div class="form-group">
<label>
<input type="checkbox" id="tray-checkbox" />
Minimize to system tray
</label>
<small class="form-hint">Keep running in the background when the window is closed</small>
</div>
<div class="form-group">
<label>
<input type="checkbox" id="autostart-checkbox" />
Start with system
</label>
<small class="form-hint">Launch automatically when you log in</small>
</div>
<div class="form-group">
<label>Device ID</label>
<input type="text" id="device-id" readonly />
</div>
</div>
<!-- Activity Log -->
<div class="settings-section hidden" data-section="activity">
<h3>Activity Log</h3>
<div class="form-group">
<small class="form-hint">Human-readable history of sync events, trashes, restores and conflicts — per device.</small>
<div id="activity-log-list" class="activity-log-list"></div>
<div id="activity-log-empty" class="form-hint hidden">No activity yet.</div>
</div>
<div class="form-group activity-log-actions">
<button id="activity-log-clear-btn" class="btn-secondary" type="button">Clear log</button>
</div>
<div id="activity-log-status" class="form-hint hidden"></div>
</div>
<!-- Updates Section (nur auf Windows sichtbar, gesteuert per JS) -->
<div id="updates-section" class="settings-section hidden" data-section="updates">
<h3>Updates</h3>
<div class="form-group">
<label class="checkbox-label">
<input type="checkbox" id="update-notifications-checkbox" />
Show update notifications
</label>
<p class="form-hint">Show a popup when an update is available</p>
</div>
<div class="form-group">
<div class="update-check-row">
<button id="check-updates-btn" class="btn-secondary" type="button">Check for Updates</button>
<span id="update-status" class="update-status hidden"></span>
</div>
<button id="install-update-btn" class="btn-primary update-install-btn hidden" type="button">Install Update</button>
</div>
</div>
<!-- About Section -->
<div class="settings-section hidden" data-section="about">
<h3>About</h3>
<div class="about-info">
<div class="about-row">
<span class="about-label">Version:</span>
<span id="app-version" class="about-value">Loading...</span>
</div>
<div class="about-row">
<span class="about-label">Changelog:</span>
<button id="view-changelog-btn" class="btn-secondary about-changelog-btn" type="button">View changelog</button>
</div>
<div class="about-row">
<span class="about-label">Repository:</span>
<a href="#" id="github-link" class="about-link" title="Open on GitHub">
github.com/inventory69/simple-notes-desktop
</a>
</div>
<div class="about-row">
<span class="about-label">License:</span>
<span class="about-value">MIT</span>
</div>
</div>
</div>
</div>
<div class="form-actions">
<button id="save-settings-btn" class="btn-primary" type="button">Save</button>
<button id="cancel-settings-btn" class="btn-secondary" type="button">Cancel</button>
</div>
</div>
</div>
</div>
<!-- Print target: filled by NoteEditor.print(), the only thing visible under @media print.
.preview reuses the preview pane's Markdown styles (lists, tables, headings). -->
<div id="print-root" class="preview" hidden></div>
<!-- Color Picker Popup -->
<div id="color-picker-popup" class="color-picker-popup hidden" role="dialog" aria-label="Choose note color">
<div class="color-circles">
<!-- "No color" circle -->
<button class="color-circle color-none" data-color="" title="No color" type="button" aria-label="Remove color">
<svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" aria-hidden="true">
<line x1="18" y1="6" x2="6" y2="18"/><line x1="6" y1="6" x2="18" y2="18"/>
</svg>
</button>
<!-- 11 Farbkreise werden per JS gerendert -->
</div>
</div>
<!-- Image Actions Menu (right-click on a preview image) -->
<div id="image-actions-menu" class="image-actions-menu hidden" role="dialog" aria-label="Image options">
<div class="image-menu-row">
<button class="image-menu-icon-btn" data-align="left" title="Align left" type="button" aria-label="Align left">
<svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" aria-hidden="true">
<line x1="17" y1="10" x2="3" y2="10"/><line x1="21" y1="6" x2="3" y2="6"/><line x1="21" y1="14" x2="3" y2="14"/><line x1="17" y1="18" x2="3" y2="18"/>
</svg>
</button>
<button class="image-menu-icon-btn" data-align="center" title="Align center" type="button" aria-label="Align center">
<svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" aria-hidden="true">
<line x1="18" y1="10" x2="6" y2="10"/><line x1="21" y1="6" x2="3" y2="6"/><line x1="21" y1="14" x2="3" y2="14"/><line x1="18" y1="18" x2="6" y2="18"/>
</svg>
</button>
<button class="image-menu-icon-btn" data-align="right" title="Align right" type="button" aria-label="Align right">
<svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" aria-hidden="true">
<line x1="21" y1="10" x2="7" y2="10"/><line x1="21" y1="6" x2="3" y2="6"/><line x1="21" y1="14" x2="3" y2="14"/><line x1="21" y1="18" x2="7" y2="18"/>
</svg>
</button>
<button class="image-menu-icon-btn" data-align="inline" title="Inline with text" type="button" aria-label="Inline with text">
<svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" aria-hidden="true">
<line x1="3" y1="6" x2="21" y2="6"/><path d="M3 12h15l-4-4m4 4l-4 4"/><line x1="3" y1="18" x2="21" y2="18"/>
</svg>
</button>
<button class="image-menu-icon-btn image-menu-info-btn hidden" title="Image information" type="button" aria-label="Image information">
<svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" aria-hidden="true">
<circle cx="12" cy="12" r="10"/><line x1="12" y1="16" x2="12" y2="12"/><line x1="12" y1="8" x2="12.01" y2="8"/>
</svg>
</button>
<button class="image-menu-icon-btn image-menu-copy-btn hidden" title="Copy image" type="button" aria-label="Copy image">
<svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true">
<rect x="9" y="9" width="13" height="13" rx="2" ry="2"/><path d="M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1"/>
</svg>
</button>
</div>
<div class="image-menu-sizes"></div>
<input type="text" class="dialog-input image-menu-alt-input" placeholder="Alt text" />
</div>
<!-- Image Viewer Overlay (left-click on a preview image) -->
<div id="image-viewer-overlay" class="image-viewer-overlay hidden">
<img id="image-viewer-img" alt="" draggable="false" />
</div>
<!-- Update Toast (unten rechts, Windows-only) -->
<div id="update-toast" class="update-toast hidden" role="alert" aria-live="polite">
<span id="update-toast-text"></span>
<div class="update-toast-actions">
<button id="update-toast-install" class="btn-primary" type="button">Install</button>
<button id="update-toast-dismiss" class="update-toast-dismiss" type="button" aria-label="Dismiss">✕</button>
</div>
</div>
<!-- Changelog Teaser (bottom-right, shown once after an app update) -->
<div id="changelog-teaser" class="update-toast changelog-teaser hidden" role="status" aria-live="polite">
<strong class="changelog-teaser-title">What's new</strong>
<span id="changelog-teaser-text" class="changelog-teaser-text"></span>
<div class="update-toast-actions">
<button id="changelog-teaser-view-btn" class="btn-primary" type="button">See full changelog</button>
<button id="changelog-teaser-dismiss" class="update-toast-dismiss" type="button" aria-label="Dismiss">✕</button>
</div>
</div>
<!-- Changelog Dialog (full history, per-version cards) -->
<div id="changelog-dialog" class="dialog hidden">
<div class="dialog-content changelog-dialog-content">
<div class="settings-dialog-header">
<h2>What's New</h2>
<button id="changelog-dialog-close-btn" class="btn-icon" type="button" title="Close" aria-label="Close">
<svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true">
<line x1="18" y1="6" x2="6" y2="18"></line><line x1="6" y1="6" x2="18" y2="18"></line>
</svg>
</button>
</div>
<div class="dialog-scroll-body">
<div id="changelog-cards" class="changelog-cards"></div>
</div>
</div>
</div>
<script type="module" src="./src/main.js"></script>
</body>
</html>