-
Notifications
You must be signed in to change notification settings - Fork 95
Expand file tree
/
Copy pathoptions.html
More file actions
694 lines (624 loc) · 28 KB
/
options.html
File metadata and controls
694 lines (624 loc) · 28 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
<!DOCTYPE html>
<html>
<head>
<style>
:root {
/* 主色 */
--b3-theme-primary: #3575f0;
--b3-theme-primary-light: rgba(53, 117, 240, .54);
--b3-theme-primary-lighter: rgba(53, 117, 240, .38);
--b3-theme-primary-lightest: rgba(53, 117, 240, .12);
--b3-theme-secondary: #f3a92f;
--b3-theme-background: #fff;
--b3-theme-background-light: #dfe0e1;
--b3-theme-surface: #f6f6f6;
--b3-theme-surface-light: rgba(243, 243, 243, .86);
--b3-theme-surface-lighter: #e0e0e0;
--b3-theme-error: #d23f31;
--b3-theme-success: #65b84d;
/* 文字颜色 */
--b3-theme-on-primary: #fff;
--b3-theme-on-secondary: #fff;
--b3-theme-on-background: #222;
--b3-theme-on-surface: #5f6368;
--b3-theme-on-surface-light: rgba(95, 99, 104, .68);
--b3-theme-on-error: #fff;
/* 字体 */
--b3-font-family: "Helvetica Neue", "Luxi Sans", "DejaVu Sans", "Hiragino Sans GB", "Microsoft Yahei", sans-serif, "Apple Color Emoji", "Noto Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Android Emoji", "EmojiSymbols";
--b3-font-family-protyle: var(--b3-font-family);
--b3-font-family-code: "JetBrainsMono-Regular", mononoki, Consolas, "Liberation Mono", Menlo, Courier, monospace, var(--b3-font-family);
--b3-font-family-graph: mononoki;
--b3-font-family-emoji: "Segoe UI Emoji", "Segoe UI Symbol", "Segoe UI", "Apple Color Emoji", "Twemoji Mozilla", "Noto Color Emoji", "Android Emoji";
--b3-font-family-math: KaTeX_Math;
/* 顶部工具栏 */
--b3-toolbar-background: var(--b3-theme-surface);
--b3-toolbar-blur-background: #fcfcfc;
--b3-toolbar-color: var(--b3-theme-on-surface);
--b3-toolbar-hover: var(--b3-theme-background-light);
--b3-toolbar-left-mac: 69px;
/* 线条 */
--b3-border-color: var(--b3-theme-surface-lighter);
--b3-border-radius: 6px;
--b3-border-radius-b: 12px;
/* 滚动条 */
--b3-scroll-color: rgba(0, 0, 0, .2);
/* 列表 */
--b3-list-hover: rgba(0, 0, 0, .075);
--b3-list-icon-hover: rgba(33, 34, 36, .1);
/* 菜单 */
--b3-menu-background: var(--b3-theme-surface);
/* 提示 */
--b3-tooltips-background: rgba(0, 0, 0, .9);
--b3-tooltips-color: var(--b3-theme-background-light);
--b3-tooltips-shadow: 0 2px 8px rgba(0, 0, 0, .1);
/* av */
--b3-av-hover: #e8e8e9;
--b3-av-background-hl: #e8eefc;
/* 为空提示 */
--b3-empty-color: var(--b3-theme-on-surface-light);
/* 遮罩 */
--b3-mask-background: rgba(220, 220, 220, .4);
/* 卡片背景 */
--b3-card-error-color: rgb(97, 26, 21);
--b3-card-error-background: #f5d1cf;
--b3-card-warning-color: rgb(102, 60, 0);
--b3-card-warning-background: #ffe8c8;
--b3-card-info-color: rgb(13, 60, 97);
--b3-card-info-background: #d6eaf9;
--b3-card-success-color: rgb(30, 70, 32);
--b3-card-success-background: #d7eed8;
/* 自定义文字 */
--b3-font-color1: var(--b3-card-error-color);
--b3-font-color2: var(--b3-card-warning-color);
--b3-font-color3: var(--b3-card-info-color);
--b3-font-color4: var(--b3-card-success-color);
--b3-font-color5: var(--b3-theme-on-surface);
--b3-font-color6: var(--b3-theme-primary);
--b3-font-color7: var(--b3-theme-secondary);
--b3-font-color8: var(--b3-theme-error);
--b3-font-color9: #f5539e;
--b3-font-color10: #944194;
--b3-font-color11: #65b84d;
--b3-font-color12: #f5822e;
--b3-font-color13: var(--b3-theme-background);
--b3-font-background1: var(--b3-card-error-background);
--b3-font-background2: var(--b3-card-warning-background);
--b3-font-background3: var(--b3-card-info-background);
--b3-font-background4: var(--b3-card-success-background);
--b3-font-background5: #e2e3e4;
--b3-font-background6: #acd0fc;
--b3-font-background7: #fdeed6;
--b3-font-background8: #fae1cf;
--b3-font-background9: #fdd5e7;
--b3-font-background10: #e6c7e6;
--b3-font-background11: #def0d9;
--b3-font-background12: #fae3e4;
--b3-font-background13: var(--b3-theme-on-background);
/* 动画效果 */
--b3-transition: all .2s cubic-bezier(0, 0, .2, 1) 0ms;
--b3-width-transition: width .2s cubic-bezier(0, 0, .2, 1) 0ms;
--b3-color-transition: color .2s cubic-bezier(0, 0, .2, 1) 0ms;
/* 下拉菜单 */
--b3-select-background: url("data:image/svg+xml;utf8,<svg fill='rgba(95, 99, 104, .68)' height='24' viewBox='0 0 24 24' width='24' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/><path d='M0 0h24v24H0z' fill='none'/></svg>") no-repeat right 2px center var(--b3-theme-background);
/* 阴影 */
--b3-point-shadow: 0 0 1px 0 rgba(0, 0, 0, .1), 0 0 2px 0 rgba(0, 0, 0, .2);
--b3-dialog-shadow: 0 8px 24px rgba(0, 0, 0, .2);
--b3-button-shadow: 0 5px 5px -3px rgb(0 0 0 / .2), 0 8px 10px 1px rgb(0 0 0 / .14), 0 3px 14px 2px rgb(0 0 0 / .12);
/* 图表颜色 */
--b3-graph-p-point: #076f7e;
--b3-graph-heading-point: #8250df;
--b3-graph-math-point: #80FFA5;
--b3-graph-code-point: #00DDFF;
--b3-graph-table-point: #37A2FF;
--b3-graph-list-point: #FF0087;
--b3-graph-todo-point: #FFBF00;
--b3-graph-olist-point: #b3005f;
--b3-graph-listitem-point: #f65b00;
--b3-graph-bq-point: #8d48e3;
--b3-graph-super-point: #dd79ff;
--b3-graph-doc-point: #202124;
--b3-graph-tag-point: #dbf32f;
--b3-graph-asset-point: #05c091;
--b3-graph-line: #5f6368;
--b3-graph-ref-line: #d23f31;
--b3-graph-tag-line: #5f6b06;
--b3-graph-tag-tag-line: #dbf32f;
--b3-graph-asset-line: #037457;
--b3-graph-hl-point: #f3a92f;
--b3-graph-hl-line: #4285f4;
/* 编辑器搜索颜色 */
--b3-protyle-search-background: #ffe955;
--b3-protyle-search-border-color: #f2e680;
--b3-protyle-search-current-background: #a5d3fe;
/* 代码片段背景 */
--b3-protyle-code-background: rgba(27, 31, 35, .05);
--b3-protyle-code-linenumber-hl: #b9d1f4;
/* 所见即所得行内元素颜色 */
--b3-protyle-inline-strong-color: #202124;
--b3-protyle-inline-em-color: #202124;
--b3-protyle-inline-s-color: #202124;
--b3-protyle-inline-link-color: #4285f4;
--b3-protyle-inline-mark-background: rgb(252, 212, 126);
--b3-protyle-inline-mark-color: #202124;
--b3-protyle-inline-tag-color: #5f6368;
--b3-protyle-inline-blockref-color: #8957e5;
--b3-protyle-inline-fileref-color: #21862e;
/* PDF */
--b3-pdf-selection: #d0e9c8;
--b3-pdf-sidebar-width: 200px;
--b3-pdf-offset: 0;
--b3-pdf-background1: var(--b3-theme-error);
--b3-pdf-background2: #f5822e;
--b3-pdf-background3: #FACA5A;
--b3-pdf-background4: #7CC868;
--b3-pdf-background5: #FC5C88;
--b3-pdf-background6: #69B0F2;
--b3-pdf-background7: #C885DA;
--b3-pdf-dark: #212224;
}
/* https://github.com/siyuan-note/siyuan/issues/6440 */
.protyle-action--order:after {
mix-blend-mode: multiply;
}
.b3-typography .hljs,
.protyle-wysiwyg .hljs {
padding: 0.2em 0.4em;
margin: 0;
font-size: 85%;
border-radius: var(--b3-border-radius);
font-family: var(--b3-font-family-code);
word-break: break-word;
background-size: 20px 20px;
white-space: pre-wrap;
background-color: var(--b3-protyle-code-background);
}
.b3-text-field {
border: 0;
border-radius: 6px;
box-shadow: inset 0 0 0 0.6px #5f6368;
padding: 4px 8px;
line-height: 20px;
box-sizing: border-box;
color: #222;
transition: box-shadow 120ms 0ms cubic-bezier(0, 0, 0.2, 1);
background-color: #fff;
-webkit-appearance: none;
font-variant-ligatures: none;
width: 256px;
}
.b3-text-field:hover {
box-shadow: inset 0 0 0 .6px #222;
}
.b3-text-field:focus {
outline: none;
box-shadow: inset 0 0 0 1px #3575f0, 0 0 0 3px rgba(53, 117, 240, .12);
}
.b3-switch {
flex-shrink: 0;
-webkit-appearance: none;
box-sizing: border-box;
width: 28px;
height: 12px;
border: 1px solid transparent;
border-radius: var(--b3-border-radius-b);
margin: 0;
outline: none;
display: inline-block;
position: relative;
cursor: pointer;
background-color: var(--b3-theme-surface-lighter);
overflow: inherit;
user-select: none;
}
.b3-switch:after {
border: 1px solid var(--b3-theme-surface-lighter);
box-shadow: var(--b3-point-shadow);
box-sizing: border-box;
width: 16px;
height: 16px;
border-radius: 50%;
pointer-events: none;
z-index: 1;
content: '';
background-color: #fff;
left: -4px;
top: -3px;
display: block;
position: absolute;
transition: transform .3s ease, opacity .2s;
}
.b3-switch:before {
content: '';
left: -14px;
right: initial;
top: -13px;
width: 36px;
height: 36px;
background-color: rgba(158, 158, 158, .12);
display: none;
border-radius: 24px;
position: absolute;
transition: transform .3s ease, opacity .2s;
opacity: .54;
}
.b3-switch:checked {
background-color: var(--b3-theme-primary-light);
}
.b3-switch:checked:after {
background-color: var(--b3-theme-primary);
border-color: var(--b3-theme-primary);
}
.b3-switch:checked:before,
.b3-switch:checked:after {
transform: translateX(19px);
transition: transform .6s cubic-bezier(.2, .85, .32, 1.2), opacity .3s;
}
.b3-switch:disabled {
opacity: .38;
cursor: not-allowed;
}
.b3-switch:hover:not(:disabled):before,
.b3-switch:focus:not(:disabled):before {
display: inline-block;
}
.b3-switch:focus:not(:disabled):before {
background-color: var(--b3-theme-primary-lightest);
}
.b3-select {
border: 0;
border-radius: var(--b3-border-radius);
padding: 4px 26px 4px 8px;
box-sizing: border-box;
line-height: 20px;
color: var(--b3-theme-on-background);
transition: box-shadow 120ms 0ms cubic-bezier(0, 0, .2, 1), background-color .2s cubic-bezier(0, 0, .2, 1) 0ms;
height: 28px;
font-size: 14px;
box-shadow: inset 0 0 0 .6px var(--b3-theme-on-surface);
background: var(--b3-select-background);
appearance: none;
cursor: pointer;
overflow: hidden;
width: 256px;
}
.b3-select:hover {
box-shadow: inset 0 0 0 .6px var(--b3-theme-on-background);
background-color: var(--b3-theme-surface);
}
.b3-select:focus {
outline: none;
box-shadow: inset 0 0 0 1px var(--b3-theme-primary), 0 0 0 3px var(--b3-theme-primary-lightest);
}
.b3-button {
width: 256px;
cursor: pointer;
color: var(--b3-theme-on-primary);
border-radius: var(--b3-border-radius);
line-height: 20px;
padding: 4px 8px;
background-color: var(--b3-theme-primary);
white-space: nowrap;
display: inline-flex;
align-items: center;
justify-content: center;
transition: box-shadow 280ms cubic-bezier(.4, 0, .2, 1);
border: 0;
box-sizing: border-box;
text-align: center;
}
.b3-button:hover,
.b3-button:focus {
text-decoration: none;
box-shadow: var(--b3-button-shadow);
}
.b3-button:active {
box-shadow: 0 5px 5px -3px rgba(0, 0, 0, .2), 0 8px 10px 1px rgba(0, 0, 0, .14), 0 3px 14px 2px rgba(0, 0, 0, .12);
}
.fn__hr {
height: 8px;
}
.b3-label {
color: var(--b3-theme-on-surface);
margin-bottom: 4px;
}
.b3-icon {
position: absolute;
left: 1px;
top: 1px;
height: 16px;
width: 16px;
cursor: pointer;
padding: 5px;
fill: currentColor;
display: inline-block;
color: var(--b3-theme-on-surface);
cursor: pointer;
}
/* 添加模板弹窗样式 */
.template-modal {
display: none;
position: fixed;
z-index: 1000;
left: 0;
top: 0;
width: 100%;
height: 100%;
background-color: rgba(0, 0, 0, 0.5);
}
.template-modal-content {
background-color: var(--b3-theme-background);
margin: 3% auto;
padding: 16px;
border-radius: var(--b3-border-radius);
width: 80%;
max-width: 500px;
box-shadow: var(--b3-dialog-shadow);
position: relative;
}
.template-close {
position: absolute;
top: 8px;
right: 8px;
color: var(--b3-theme-on-surface);
font-size: 20px;
cursor: pointer;
}
.template-header {
font-weight: bold;
margin-bottom: 16px;
font-size: 16px;
color: var(--b3-theme-on-background);
}
.template-textarea {
width: 100%;
height: 180px;
padding: 8px;
box-sizing: border-box;
margin-bottom: 16px;
border-radius: var(--b3-border-radius);
border: 1px solid var(--b3-border-color);
resize: vertical;
font-family: var(--b3-font-family-code);
}
.template-help {
margin-bottom: 16px;
color: var(--b3-theme-on-surface);
font-size: 13px;
}
.template-buttons {
display: flex;
justify-content: flex-end;
gap: 8px;
}
.template-saved-msg {
display: none;
color: var(--b3-theme-success);
margin-top: 8px;
text-align: center;
}
/* 添加配置按钮样式 */
.config-button {
width: 24px;
height: 24px;
margin-left: 8px;
cursor: pointer;
color: var(--b3-theme-on-surface);
}
/* 自定义下拉菜单样式 */
.custom-dropdown {
position: relative;
width: 100%;
}
.dropdown-display {
border: 0;
border-radius: var(--b3-border-radius);
padding: 4px 26px 4px 8px;
box-sizing: border-box;
line-height: 20px;
color: var(--b3-theme-on-background);
transition: box-shadow 120ms 0ms cubic-bezier(0, 0, 0.2, 1), background-color .2s cubic-bezier(0, 0, .2, 1) 0ms;
height: 28px;
font-size: 14px;
box-shadow: inset 0 0 0 .6px var(--b3-theme-on-surface);
background: var(--b3-select-background);
cursor: pointer;
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
}
.dropdown-display:hover {
box-shadow: inset 0 0 0 .6px var(--b3-theme-on-background);
background-color: var(--b3-theme-surface);
}
.dropdown-display:focus {
outline: none;
box-shadow: inset 0 0 0 1px var(--b3-theme-primary), 0 0 0 3px var(--b3-theme-primary-lightest);
}
.dropdown-menu {
display: none;
position: absolute;
top: 100%;
left: 0;
right: 0;
background-color: var(--b3-theme-background);
border: 1px solid var(--b3-border-color);
border-radius: var(--b3-border-radius);
box-shadow: var(--b3-dialog-shadow);
z-index: 1000;
max-height: 250px;
overflow-y: auto;
}
.dropdown-menu.open {
display: block;
}
.dropdown-input {
width: 100%;
padding: 8px;
box-sizing: border-box;
border: none;
border-bottom: 1px solid var(--b3-border-color);
outline: none;
font-size: 14px;
}
.dropdown-options {
list-style: none;
margin: 0;
padding: 0;
overflow-y: auto;
}
.dropdown-options li {
padding: 8px;
cursor: pointer;
color: var(--b3-theme-on-background);
}
.dropdown-options li:hover {
background-color: var(--b3-list-hover);
}
.dropdown-options li.selected {
background-color: var(--b3-theme-primary-lightest);
color: var(--b3-theme-primary);
}
</style>
</head>
<body>
<div style="max-width: 256px;">
<div id="log" style="color: #d23f31;margin-bottom: 16px"></div>
<label style="display: flex;align-items: center;padding: 0 8px 16px 0;">
<div style="flex: 1" data-i18n="show_tip">Show tips</div>
<input class="b3-switch" id="showTip" checked type="checkbox">
</label>
<div class="b3-label" data-i18n="siyuan_url">SiYuan URL</div>
<input id="ip" class="b3-text-field">
<div class="fn__hr"></div>
<div class="b3-label" data-i18n="api_token">API token</div>
<div style="position: relative">
<input id="token" type="password" class="b3-text-field" style="padding-left: 28px">
<svg class="b3-icon" viewBox="0 0 32 32">
<path
d="M16 22.182q2.582 0 4.382-1.8t1.8-4.382-1.8-4.382-4.382-1.8-4.382 1.8-1.8 4.382 1.8 4.382 4.382 1.8zM16 20.073q-1.709 0-2.891-1.182t-1.182-2.891 1.182-2.891 2.891-1.182 2.891 1.182 1.182 2.891-1.182 2.891-2.891 1.182zM16 26.909q-5.309 0-9.6-3.018t-6.4-7.891q2.109-4.873 6.4-7.891t9.6-3.018 9.6 3.018 6.4 7.891q-2.109 4.873-6.4 7.891t-9.6 3.018zM16 24.727q4.4 0 8.091-2.382t5.618-6.345q-1.927-3.964-5.618-6.345t-8.091-2.382-8.091 2.382-5.655 6.345q1.964 3.964 5.655 6.345t8.091 2.382z">
</path>
</svg>
</div>
<div class="fn__hr"></div>
<div class="b3-label" data-i18n="save_path">Save path</div>
<div class="custom-dropdown" id="savePathDropdown">
<div class="dropdown-display" id="savePathDisplay"></div>
<div class="dropdown-menu" id="savePathMenu">
<input type="text" class="dropdown-input" id="savePathInput" data-i18n="save_path_placeholder"
placeholder="Enter a keyword to search" />
<ul class="dropdown-options" id="savePathOptions"></ul>
</div>
</div>
<div class="fn__hr"></div>
<div class="b3-label" data-i18n="tags">Tags</div>
<input class="b3-text-field" id="tags" data-i18n="tags_placeholder"
placeholder="Use commas to separate multiple tags" />
<div class="fn__hr"></div>
<div class="b3-label" data-i18n="database_label">Database</div>
<div class="custom-dropdown" id="databaseDropdown">
<div class="dropdown-display" id="databaseDisplay"></div>
<div class="dropdown-menu" id="databaseMenu">
<input type="text" class="dropdown-input" id="databaseInput" data-i18n="database_search_placeholder"
placeholder="Enter a keyword to search database" />
<ul class="dropdown-options" id="databaseOptions"></ul>
</div>
</div>
<div class="fn__hr"></div>
<div class="fn__hr"></div>
<label style="display: flex;align-items: center;padding: 0 8px 16px 0;">
<div style="flex: 1" data-i18n="assets">Download assets</div>
<input class="b3-switch" id="assets" checked type="checkbox">
</label>
<label style="display: flex;align-items: center;padding: 0 8px 16px 0;">
<div style="flex: 1" data-i18n="dirsFirst">Show directories first in path search</div>
<input class="b3-switch" id="dirsFirst" checked type="checkbox">
</label>
<label style="display: flex;align-items: center;padding: 0 8px 16px 0;">
<div class="b3-label" style="flex: 1" data-i18n="exp">Show experimental features</div>
<input class="b3-switch" id="exp" type="checkbox">
</label>
<div id="expGroup" style="display: none;">
<div class="b3-label" style="font-size: 14px; color: red;" data-i18n="exp_tips">*: Experimental features may
be unstable. If there is a problem with clipping, consider switching it.</div>
<label style="display: flex;align-items: center;padding: 0 8px 16px 0;">
<div style="flex: 1" data-i18n="exp_span">Detect span text newlines*</div>
<input class="b3-switch" id="expSpan" type="checkbox">
</label>
<label style="display: flex;align-items: center;padding: 0 8px 16px 0;">
<div style="flex: 1" data-i18n="exp_bold">Detect bold style*</div>
<input class="b3-switch" id="expBold" type="checkbox">
</label>
<label style="display: flex;align-items: center;padding: 0 8px 16px 0;">
<div style="flex: 1" data-i18n="exp_italic">Detect italic style*</div>
<input class="b3-switch" id="expItalic" type="checkbox">
</label>
<label style="display: flex;align-items: center;padding: 0 8px 16px 0;">
<div style="flex: 1" data-i18n="exp_underline">Detect underline style*</div>
<input class="b3-switch" id="expUnderline" type="checkbox">
</label>
<label style="display: flex;align-items: center;padding: 0 8px 16px 0;">
<div style="flex: 1" data-i18n="exp_remove_img_link">Remove image links*</div>
<input class="b3-switch" id="expRemoveImgLink" type="checkbox">
</label>
<label style="display: flex;align-items: center;padding: 0 8px 16px 0;">
<div style="flex: 1" data-i18n="exp_list_doc_tree">Show the document tree after clipping*</div>
<input class="b3-switch" id="expListDocTree" type="checkbox">
</label>
<label style="display: flex;align-items: center;padding: 0 8px 16px 0;">
<div style="flex: 1" data-i18n="exp_open_after_clip">Open the document after clipping*</div>
<input class="b3-switch" id="expOpenAfterClip" type="checkbox">
</label>
<label style="display: flex;align-items: center;padding: 0 8px 16px 0;">
<div style="flex: 1" data-i18n="exp_svg_to_img">Detect SVGs embedded in HTML*</div>
<input class="b3-switch" id="expSvgToImg" type="checkbox">
</label>
</div>
<label style="display: flex;align-items: center;padding: 0 8px 16px 0;">
<div class="b3-label" style="flex: 1" data-i18n="template_config">Clipping template settings</div>
<svg class="config-button" id="templateConfig" viewBox="0 0 24 24">
<path
d="M12,15.5A3.5,3.5 0 0,1 8.5,12A3.5,3.5 0 0,1 12,8.5A3.5,3.5 0 0,1 15.5,12A3.5,3.5 0 0,1 12,15.5M19.43,12.97C19.47,12.65 19.5,12.33 19.5,12C19.5,11.67 19.47,11.34 19.43,11L21.54,9.37C21.73,9.22 21.78,8.95 21.66,8.73L19.66,5.27C19.54,5.05 19.27,4.96 19.05,5.05L16.56,6.05C16.04,5.66 15.5,5.32 14.87,5.07L14.5,2.42C14.46,2.18 14.25,2 14,2H10C9.75,2 9.54,2.18 9.5,2.42L9.13,5.07C8.5,5.32 7.96,5.66 7.44,6.05L4.95,5.05C4.73,4.96 4.46,5.05 4.34,5.27L2.34,8.73C2.21,8.95 2.27,9.22 2.46,9.37L4.57,11C4.53,11.34 4.5,11.67 4.5,12C4.5,12.33 4.53,12.65 4.57,12.97L2.46,14.63C2.27,14.78 2.21,15.05 2.34,15.27L4.34,18.73C4.46,18.95 4.73,19.03 4.95,18.95L7.44,17.94C7.96,18.34 8.5,18.68 9.13,18.93L9.5,21.58C9.54,21.82 9.75,22 10,22H14C14.25,22 14.46,21.82 14.5,21.58L14.87,18.93C15.5,18.67 16.04,18.34 16.56,17.94L19.05,18.95C19.27,19.03 19.54,18.95 19.66,18.73L21.66,15.27C21.78,15.05 21.73,14.78 21.54,14.63L19.43,12.97Z" />
</svg>
</label>
<label style="display: flex;align-items: center;padding: 0 8px 16px 0;">
<div style="flex: 1" data-i18n="language">Interface language</div>
<select style="width: auto" class="b3-select" id="language">
<option value="ar">العربية</option>
<option value="de">Deutsch</option>
<option value="en" selected>English</option>
<option value="es">Español</option>
<option value="fr">Français</option>
<option value="he">עברית</option>
<option value="it">Italiano</option>
<option value="ja">日本語</option>
<option value="pl">Polski</option>
<option value="ru">Русский</option>
<option value="zh_TW">繁體中文</option>
<option value="zh_CN">简体中文</option>
</select>
</label>
<button class="b3-button" id="send" data-i18n="send">Send to SiYuan</button>
</div>
<!-- 添加模板配置弹窗 -->
<div id="templateModal" class="template-modal">
<div class="template-modal-content">
<span id="closeTemplate" class="template-close">×</span>
<div class="template-header" data-i18n="template_config">Clipping template settings</div>
<textarea id="templateText" class="template-textarea"></textarea>
<div id="templateHelp" class="template-help">
<!-- 这里将由JS填充模板变量的帮助信息 -->
</div>
<div class="template-buttons">
<button id="restoreTemplate" class="b3-button" style="background-color: #e0e0e0; color: #333; width: auto;" data-i18n="template_restore_default">Restore default</button>
<button id="cancelTemplate" class="b3-button"
style="background-color: #e0e0e0; color: #333; width: auto;"
data-i18n="template_cancel">Cancel</button>
<button id="saveTemplate" class="b3-button" style="width: auto;" data-i18n="template_save">Save</button>
</div>
<div id="templateSavedMsg" class="template-saved-msg" data-i18n="template_saved">Template saved successfully
</div>
</div>
</div>
<script src="popup.js"></script>
</body>
</html>