-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathoptions.html
More file actions
652 lines (590 loc) · 36.8 KB
/
options.html
File metadata and controls
652 lines (590 loc) · 36.8 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
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<style>
/* 라이트/다크 모드 변수 */
:root {
--bg: #f8f9fa;
--panel: #ffffff;
--text: #333333;
--text-muted: #6c757d;
--border: #dee2e6;
--input-bg: #ffffff;
--tab-btn: #f1f3f5;
--tab-hover: #e9ecef;
--th-bg: #f8f9fa;
--input-text: #495057;
--release-bg: #ffffff;
}
body.dark-mode {
--bg: #121212;
--panel: #1e1e1e;
--text: #e0e0e0;
--text-muted: #a0a0a0;
--border: #333333;
--input-bg: #2d2d2d;
--tab-btn: #252525;
--tab-hover: #333333;
--th-bg: #252525;
--input-text: #e0e0e0;
--release-bg: #252525;
}
body {
font-family: 'Malgun Gothic', sans-serif;
padding: 15px;
margin: 0;
min-width: 720px;
width: calc(100% - 30px);
line-height: 1.6;
overflow-x: auto;
background-color: var(--bg);
color: var(--text);
transition: background-color 0.3s, color 0.3s;
padding-bottom: 100px;
}
.container {
width: 100%;
background: var(--panel);
padding: 20px;
border-radius: 8px;
box-shadow: 0 4px 12px rgba(0,0,0,0.05);
box-sizing: border-box;
border: 1px solid var(--border);
}
.header-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
h2, h3, h4 { margin: 0; color: var(--text); }
/* 테마 토글 스위치 */
.theme-switch-wrapper { display: flex; align-items: center; gap: 10px; margin-left: 15px;}
.theme-switch { display: inline-block; width: 46px; height: 24px; position: relative; }
.theme-switch input { opacity: 0; width: 0; height: 0; }
.slider { position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0; background-color: #80bdff; transition: .3s; border-radius: 24px; }
.slider:before { position: absolute; content: "☀️"; font-size: 13px; display:flex; align-items:center; justify-content:center; height: 18px; width: 18px; left: 3px; bottom: 3px; background-color: white; transition: .3s; border-radius: 50%; }
input:checked + .slider { background-color: #495057; }
input:checked + .slider:before { transform: translateX(22px); content: "🌙"; background-color: #2d2d2d; }
.tabs { display: flex; border-bottom: 2px solid var(--border); margin-bottom: 15px; gap: 5px; }
.tab-btn {
background: var(--tab-btn); border: 1px solid var(--border); border-bottom: none;
padding: 8px 20px; font-size: 14px; cursor: pointer; color: var(--text-muted); font-weight: bold;
border-radius: 8px 8px 0 0; transition: background 0.2s, color 0.2s;
}
.tab-btn:hover { background: var(--tab-hover); }
.tab-btn.active {
background: var(--panel); color: #0d6efd; border: 2px solid var(--border);
border-bottom: 2px solid var(--panel); margin-bottom: -2px;
}
.tab-content { display: none; }
.tab-content.active { display: block; animation: fadeIn 0.2s; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
input[type="text"], textarea, select {
width: 100%;
padding: 8px;
box-sizing: border-box;
border: 1px solid var(--border);
border-radius: 4px;
background: var(--input-bg);
color: var(--text);
}
input[type="text"]:focus, textarea:focus, select:focus {
outline: none; border-color: #80bdff; box-shadow: 0 0 0 0.2rem rgba(0,123,255,.25);
}
button {
cursor: pointer; padding: 6px 12px; border: none; border-radius: 4px;
background: #0d6efd; color: white; white-space: nowrap; font-weight: bold; transition: opacity 0.2s;
}
button:hover { opacity: 0.85; }
.site-tag {
background: var(--bg); padding: 6px 10px; border-radius: 6px; font-size: 12px;
display: inline-flex; align-items: center; gap: 8px; margin: 0 6px 6px 0; border: 1px solid var(--border);
}
.site-tag code { color: #d63384; font-size: 11px; background: rgba(127,127,127,0.1); padding: 2px 6px; border-radius: 4px;}
/* 테이블 모던 스타일 도입 */
table { width: 100%; border-collapse: separate; border-spacing: 0 8px; margin-top: 10px; table-layout: fixed; font-size: 13px; }
th { padding: 12px 8px; font-weight: bold; color: var(--text-muted); background: transparent; border-bottom: 2px solid var(--border); text-align: center; font-size: 12px; letter-spacing: 0.5px; }
/* 각 열의 고정 너비를 명시하여 겹침 현상 완벽 방지 */
th:nth-child(1) { width: 70px; }
th:nth-child(2) { text-align: left; padding-left: 12px; width: auto; }
th:nth-child(3) { width: 75px; }
th:nth-child(4) { width: 145px; } /* 권수 + 누락 배지 영역 넉넉하게 확보 */
th:nth-child(5) { width: 95px; } /* 등록일 영역 확보 */
th:nth-child(6) { width: 105px; } /* 관리 버튼 영역 확보 */
td { background: var(--panel); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 8px; text-align: center; vertical-align: middle; transition: background-color 0.2s; }
td:first-child { border-left: 1px solid var(--border); border-radius: 8px 0 0 8px; }
td:last-child { border-right: 1px solid var(--border); border-radius: 0 8px 8px 0; }
tr:hover td { background: var(--tab-hover); }
.btn-save { background: #20c997; margin-right: 4px; padding: 4px 10px; font-size: 11px; }
.btn-del { background: #fa5252; padding: 4px 10px; font-size: 11px; }
/* 인라인 에디터 인풋 필드 고도화 */
.edit-title, .edit-res, .edit-vol {
width: 100%;
border: 1px solid transparent;
background: transparent;
padding: 6px 10px;
border-radius: 6px;
font-size: 13px;
font-family: inherit;
color: var(--text);
transition: all 0.2s ease;
box-sizing: border-box;
}
.edit-title { text-align: left; font-weight: 500; }
.edit-res, .edit-vol { text-align: center; }
.edit-title:hover, .edit-res:hover, .edit-vol:hover {
border-color: var(--border);
background: var(--input-bg);
}
.edit-title:focus, .edit-res:focus, .edit-vol:focus {
outline: none;
border-color: #0d6efd;
background: var(--input-bg);
box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.12);
}
/* 타입 선택기 커스텀 배지 스타일 */
select.edit-type {
appearance: none;
-webkit-appearance: none;
font-weight: bold;
text-align: center;
text-align-last: center;
padding: 5px 12px;
border-radius: 20px;
font-size: 12px;
cursor: pointer;
border: 1px solid transparent;
width: 100%;
min-width: 80px;
transition: all 0.2s ease;
}
select.edit-type:focus {
outline: none;
box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.2);
}
select.edit-type[data-type="exclude"] { background: #ffe3e3; color: #e03131; }
body.dark-mode select.edit-type[data-type="exclude"] { background: #2b1d1d; color: #ff8787; }
select.edit-type[data-type="incomplete"] { background: #fff4e6; color: #d9480f; }
body.dark-mode select.edit-type[data-type="incomplete"] { background: #2b221a; color: #ffd8a8; }
select.edit-type[data-type="complete"] { background: #e7f5ff; color: #0c85e9; }
body.dark-mode select.edit-type[data-type="complete"] { background: #1a242f; color: #a5d8ff; }
.flex-row { display: flex; gap: 10px; align-items: center; margin-bottom: 12px; }
.batch-control {
margin-top: 15px; padding: 12px; background: var(--bg); border-radius: 8px; border: 1px solid var(--border);
display: flex; justify-content: space-between; align-items: center; font-size: 13px;
}
.batch-control {flex-direction: row;align-items: flex-start;gap: 10px;display: flex;flex-direction: row;}
.batch-control > div {width: 100% !important;display: flex;flex-direction: column;gap: 5px;flex-shrink: 1;}
.batch-control > div > strong {}
.batch-control > div > div{display:flex;gap:5px}
.batch-control > div > div > select{min-width:100px;max-width:50%}
.panel-box {
background: var(--panel); border: 1px solid var(--border); padding: 15px; border-radius: 8px; margin-bottom: 15px;
}
.panel-box h4 { margin-top: 0; margin-bottom: 10px; border-bottom: 1px solid var(--border); padding-bottom: 8px; }
.release-item { background: var(--release-bg); border: 1px solid var(--border); padding: 20px; border-radius: 8px; margin-bottom: 15px; box-shadow: 0 2px 5px rgba(0,0,0,0.02); }
.release-version { font-size: 18px; font-weight: bold; color: #0d6efd; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--border); padding-bottom: 12px; margin-bottom: 15px; }
.release-date { font-size: 12px; color: var(--text-muted); font-weight: normal; }
.release-body { font-size: 13px; color: var(--text); line-height: 1.7; }
.release-body h3 { margin: 20px 0 10px 0; font-size: 15px; color: var(--text); font-weight: 800; display: flex; align-items: center; gap: 5px; }
.release-body h4 { margin: 15px 0 8px 0; font-size: 14px; color: var(--text); font-weight: bold; }
.release-body p { margin: 8px 0; }
.release-body ul { margin: 10px 0; padding-left: 25px; }
.release-body li { margin-bottom: 6px; }
.release-body li.sub-li { list-style-type: circle; color: var(--text-muted); font-size: 12px; margin-top: 4px; margin-bottom: 4px;}
.release-body strong { color: #20c997; background: rgba(32, 201, 151, 0.1); padding: 0 4px; border-radius: 3px; }
.pagination-container { display: flex; justify-content: center; gap: 5px; margin-top: 15px; padding: 15px 0; margin-bottom: 0; position: sticky; bottom: 0; background: var(--panel); z-index: 100; border-top: 1px solid var(--border); box-shadow: 0 -4px 12px rgba(0,0,0,0.05); }
.page-btn {
background: var(--panel); border: 1px solid var(--border);
padding: 5px 12px; border-radius: 4px; cursor: pointer; color: var(--text);
font-weight: bold; font-size: 13px; transition: all 0.2s;
}
.page-btn:hover:not(:disabled) { background: var(--tab-hover); }
.page-btn.active { background: #0d6efd; color: white; border-color: #0d6efd; pointer-events: none; }
.page-btn:disabled { opacity: 0.4; cursor: not-allowed; }
/* 슬라이드 패널 전용 스타일 (카드형 프리미엄 그리드 레이아웃) */
body.side-panel-mode { min-width: 320px; width: 100%; padding: 10px; box-sizing: border-box;}
body.side-panel-mode .container { padding: 0px; border-radius: 0; box-shadow: none; border: none; background: transparent; }
body.side-panel-mode .header-row { flex-direction: column; align-items: flex-start; gap: 10px; }
body.side-panel-mode .header-row > div { flex-wrap: wrap; gap: 5px; margin-left: 0; width: 100%; justify-content: space-between; }
body.side-panel-mode .theme-switch-wrapper { margin-left: 0; }
body.side-panel-mode .tabs { flex-wrap: wrap; gap: 2px; }
body.side-panel-mode .tab-btn { flex: 1 1 45%; font-size: 12px; padding: 6px; text-align: center; border-radius: 4px 4px 0 0; }
body.side-panel-mode #statsDashboard { flex-wrap: wrap; gap: 4px; }
body.side-panel-mode #statsDashboard > div { flex: 1 1 45%; margin-bottom: 2px; padding: 6px; }
body.side-panel-mode .batch-control { flex-direction: column; align-items: flex-start; gap: 10px; }
body.side-panel-mode .batch-control > div { width: 100% !important; display: flex; flex-direction: column; gap: 5px; }
body.side-panel-mode .batch-control > div > strong {}
body.side-panel-mode .batch-control > div > div{display:flex}
body.side-panel-mode .batch-control select, body.side-panel-mode .batch-control input { width: 100% !important; margin-left: 0 !important; }
body.side-panel-mode table { display: block; width: 100% !important; border: none; background: transparent; }
body.side-panel-mode thead { display: none !important; }
body.side-panel-mode tbody { display: block; width: 100%; }
body.side-panel-mode tbody tr {
display: grid !important;
/* 3열 레이아웃을 85px(타입), 1fr(제목), 115px(권수/관리)로 조정하여 공간 확보 */
grid-template-columns: 85px 1fr 115px !important;
grid-template-rows: auto auto auto;
background: var(--panel);
border: 1px solid var(--border);
border-radius: 12px;
margin-bottom: 12px;
padding: 12px;
width: 100%;
box-sizing: border-box;
gap: 8px 4px;
}
body.side-panel-mode tbody tr:hover {
transform: translateY(-2px);
box-shadow: 0 4px 12px rgba(0,0,0,0.06);
border-color: #0d6efd;
}
body.side-panel-mode td {
border: none !important;
padding: 0 !important;
text-align: left;
vertical-align: middle;
background: transparent !important;
width: auto !important;
height: auto !important;
}
body.side-panel-mode td:first-child, body.side-panel-mode td:last-child { border-radius: 0; }
/* 중복 찾기 그룹 헤더 사이드패널 레이아웃 예외 처리 */
body.side-panel-mode tbody tr.group-header-tr {
display: block !important;
padding: 0 !important;
margin-bottom: 8px !important;
border: none !important;
background: transparent !important;
box-shadow: none !important;
}
body.side-panel-mode tbody tr.group-header-tr:hover {
transform: none !important;
}
body.side-panel-mode tbody tr.group-header-tr td {
display: block !important;
width: 100% !important;
box-sizing: border-box;
border-radius: 8px !important;
}
/* 1행 배치: 타입 배지, 날짜, 관리 버튼 */
body.side-panel-mode td:nth-child(1) { grid-row: 1; grid-column: 1; display: flex; align-items: center; }
body.side-panel-mode td:nth-child(5) {
grid-row: 1; grid-column: 2;
display: block !important;
line-height: 24px;
color: var(--text-muted);
font-size: 11px;
padding-left: 8px !important;
white-space: nowrap !important;
overflow: hidden !important;
text-overflow: ellipsis !important;
}
body.side-panel-mode td:nth-child(6) { grid-row: 1; grid-column: 3; display: flex; gap: 4px; justify-content: flex-end; align-items: center; }
body.side-panel-mode td:nth-child(6) button { padding: 4px 8px; font-size: 11px; }
/* 2행 배치: 도서 제목 (강조된 컴포넌트 박스 형태) */
body.side-panel-mode td:nth-child(2) {
grid-row: 2;
grid-column: 1 / span 3;
background: rgba(127,127,127,0.05);
padding: 2px !important;
border-radius: 8px;
border: 1px solid transparent;
transition: border-color 0.2s;
}
body.side-panel-mode td:nth-child(2):focus-within {
border-color: rgba(13, 110, 253, 0.3);
background: var(--input-bg);
}
body.side-panel-mode td:nth-child(2) input {
font-size: 13px;
font-weight: 600;
background: transparent !important;
border: none !important;
box-shadow: none !important;
padding: 6px 10px;
background: #cccccc30 !important;
}
/* 3행 배치: 해상도 및 권수 입력 필드 */
body.side-panel-mode td:nth-child(3), body.side-panel-mode td:nth-child(4) {
display: flex !important;
align-items: center;
background: var(--input-bg);
border: 1px solid var(--border);
border-radius: 8px;
padding: 2px 8px !important;
box-sizing: border-box;
background: #cccccc30 !important;
}
body.side-panel-mode td:nth-child(3) { grid-row: 3; grid-column: 1 / span 2; }
body.side-panel-mode td:nth-child(4) { grid-row: 3; grid-column: 3; }
body.side-panel-mode td:nth-child(3):before { content: "📺"; font-size: 11px; margin-right: 6px; color: var(--text-muted); }
body.side-panel-mode td:nth-child(4):before { content: "📑"; font-size: 11px; margin-right: 6px; color: var(--text-muted); }
body.side-panel-mode td:nth-child(3) input, body.side-panel-mode td:nth-child(4) input {
border: none !important;
background: transparent !important;
padding: 4px 0 !important;
font-size: 12px;
font-weight: 500;
box-shadow: none !important;
text-align: left;
}
body.side-panel-mode .panel-box { padding: 10px; }
body.side-panel-mode .flex-row { flex-direction: column; align-items: stretch; gap: 8px; }
body.side-panel-mode .flex-row input { width: 100%; }
/* 신규 추가: 누락 권수 관리 팝오버 및 배지 스타일 */
.missing-badge { font-size: 10px; background: #ffe3e3; color: #e03131; padding: 2px 6px; border-radius: 4px; margin-left: 4px; cursor: pointer; border: 1px solid #ffb8b8; white-space: nowrap; font-weight: bold; }
body.dark-mode .missing-badge { background: #2b1d1d; color: #ff8787; border-color: #4a2a2a; }
.missing-badge.empty { background: transparent; color: var(--text-muted); border: 1px dashed var(--border); }
#missingPopover { position: absolute; display: none; background: var(--panel); border: 1px solid var(--border); border-radius: 8px; padding: 12px; box-shadow: 0 4px 15px rgba(0,0,0,0.2); z-index: 10000; width: 240px; box-sizing: border-box; }
#missingPopover .popover-header { display: flex; justify-content: space-between; align-items: center; font-size: 12px; font-weight: bold; border-bottom: 1px solid var(--border); padding-bottom: 8px; margin-bottom: 8px; color: var(--text); }
#missingPopover .vol-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 5px; max-height: 200px; overflow-y: auto; padding-right: 4px; }
#missingPopover .vol-item { text-align: center; padding: 6px 0; font-size: 11px; background: var(--input-bg); border: 1px solid var(--border); border-radius: 4px; cursor: pointer; user-select: none; color: var(--text); font-weight: 500; transition: all 0.1s; }
#missingPopover .vol-item:hover { border-color: #0d6efd; }
#missingPopover .vol-item.missing { background: #ffe3e3; color: #e03131; border-color: #ffa8a8; text-decoration: line-through; opacity: 0.8; }
body.dark-mode #missingPopover .vol-item.missing { background: #2b1d1d; color: #ff8787; border-color: #4a2a2a; }
.sub-options{}
.sub-options label{font-size: 14px;cursor: pointer;display: flex;align-items: center;gap: 0px;margin-bottom: 10px;color: var(--text);flex-wrap: wrap;}
.sub-options label>input{width: 16px;height: 16px;margin: 0;cursor: pointer;margin-right: 10px;}
.sub-options label>b{}
.sub-options label>span{width:100%;color:var(--text-muted);font-size: 12px;font-weight: normal;display: block;margin-left: 24px;width: 100%;}
details[open] .toggle-icon {
transform: rotate(90deg);
}
</style>
</head>
<body>
<div class="container">
<div class="header-row">
<h2>⚙️ 도서 목록 매칭 매니저</h2>
<div style="display: flex;align-items: center;justify-content: flex-end;align-content: center;flex-direction: row;">
<div class="theme-switch-wrapper">
<label class="theme-switch" title="다크 모드 온/오프 (기본: 시스템 테마)">
<input type="checkbox" id="themeToggle">
<span class="slider"></span>
</label>
</div>
<span style="font-size: 13px; color: var(--text-muted);">현재 버전: <b id="current-version">v1.0</b></span>
<button id="manual-check-btn" style="margin-left: 15px; padding: 4px 8px; font-size: 11px; background: var(--tab-hover); color: var(--text);">업데이트 확인</button>
<span id="update-status-msg" style="margin-left: 10px; font-size: 11px; display: none; font-weight: bold;"></span>
<a id="update-link" href="#" target="_blank" style="display: none; margin-left: 10px; font-size: 11px; background: #dc3545; color: white; padding: 4px 8px; border-radius: 4px; text-decoration: none; font-weight: bold;">🚀 새 버전 업데이트 가능!</a>
<a href="https://github.com/dongkkase/Chrome_Library_Management/issues" target="_blank" style="margin-left: 10px; font-size: 11px; background: #dc3545; color: white; padding: 4px 8px; border-radius: 4px; text-decoration: none; font-weight: bold;">🐞 버그 신고 및 건의</a>
</div>
</div>
<div class="tabs">
<button class="tab-btn active" data-target="tab-books">📚 도서 목록 관리</button>
<button class="tab-btn" data-target="tab-settings">🌐 사이트 및 설정</button>
<button class="tab-btn" data-target="tab-backup">💾 데이터 백업</button>
<button class="tab-btn" data-target="tab-history">📜 업데이트 내역</button>
</div>
<div id="tab-books" class="tab-content active">
<div id="statsDashboard" style="display: flex; gap: 8px; margin-bottom: 15px; text-align: center;">
<div style="flex: 1; background: var(--panel); border: 1px solid var(--border); border-radius: 6px; padding: 8px;">
<div style="font-size: 11px; color: var(--text-muted); font-weight:bold;">전체 수집</div>
<div style="font-size: 18px; font-weight: 900; color: #0d6efd;" id="stat-total">0</div>
</div>
<div style="flex: 1; background: var(--panel); border: 1px solid var(--border); border-radius: 6px; padding: 8px;">
<div style="font-size: 11px; color: var(--text-muted); font-weight:bold;">완결 도서</div>
<div style="font-size: 18px; font-weight: 900; color: #4dabf7;" id="stat-complete">0</div>
</div>
<div style="flex: 1; background: var(--panel); border: 1px solid var(--border); border-radius: 6px; padding: 8px;">
<div style="font-size: 11px; color: var(--text-muted); font-weight:bold;">미완결 도서</div>
<div style="font-size: 18px; font-weight: 900; color: #ff922b;" id="stat-incomplete">0</div>
</div>
<div style="flex: 1; background: var(--panel); border: 1px solid var(--border); border-radius: 6px; padding: 8px;">
<div style="font-size: 11px; color: var(--text-muted); font-weight:bold;">제외 도서</div>
<div style="font-size: 18px; font-weight: 900; color: #ff6b6b;" id="stat-exclude">0</div>
</div>
</div>
<div class="panel-box" style="background: var(--bg);">
<h4 style="font-size: 14px;">📝 새로운 도서 일괄 등록</h4>
<select id="bulkTypeSelect" style="width: 100%; margin-bottom: 8px; border-color: var(--border); font-weight: bold; color: var(--input-text); font-size: 13px;">
<option value="exclude">🚫 '제외' 타입으로 일괄 저장 (기본값)</option>
<option value="incomplete">⏳ '미완' 타입으로 일괄 저장</option>
<option value="complete">✅ '완결' 타입으로 일괄 저장</option>
</select>
<textarea id="bulkInput" rows="3" placeholder="제목 권수 해상도 (여러 줄 입력 가능) 예: 원피스 13권 1500px" style="font-size: 13px;"></textarea>
<div id="bulkPreview" style="margin-top:8px; font-size:12px; color:var(--text-muted); background:var(--panel); padding:8px 12px; border-radius:4px; border:1px solid var(--border); display:none;"></div>
<button id="saveBtn" style="width:100%; margin-top: 8px; background: #20c997; font-size: 14px;">목록에 일괄 추가하기</button>
</div>
<div class="batch-control">
<div>
<strong style="color: var(--text);">검색된 결과 타입 일괄 변경:</strong>
<div>
<select id="batchTypeSelect" style="width: auto; margin-left: 5px; display: inline-block;">
<option value="exclude">제외</option>
<option value="incomplete">미완</option>
<option value="complete">완결</option>
</select>
<button id="batchUpdateBtn" style="margin-left: 5px; background: #6c757d; padding: 4px 12px;">일괄 적용</button>
</div>
</div>
<div>
<strong style="color: var(--text);">검색:</strong>
<div style="display: flex; width: 100%; gap: 5px; align-items: center;">
<button id="findDuplicatesBtn" style="background: #fd7e14; padding: 6px 12px; font-size: 12px;" title="공백과 기호를 무시하고 제목이 겹치는 항목을 검색합니다.">🔍 중복 찾기</button>
<div style="position: relative; width: 100%;">
<input type="text" id="searchInput" placeholder="저장된 제목 검색..." style="width: 100%; border-color: #0d6efd; padding-right: 24px; box-sizing: border-box;">
<span id="clearSearchBtn" style="position: absolute; right: 8px; top: 50%; transform: translateY(-50%); cursor: pointer; color: var(--text-muted); font-size: 16px; font-weight: bold; display: none; line-height: 1;" title="검색어 지우기">×</span>
</div>
<select id="sortSelect" style="width: 40%; min-width: 110px; box-sizing: border-box;">
<option value="id_desc">최신 등록순</option>
<option value="id_asc">오래된 등록순</option>
<option value="title_asc">제목 가나다순</option>
<option value="title_desc">제목 역순</option>
</select>
</div>
</div>
</div>
<div id="listCountDisplay" style="margin-top: 15px; margin-bottom: 8px; font-weight: bold; color: var(--text-muted); font-size: 13px;"></div>
<table>
<thead>
<tr>
<th style="width: 75px;">타입</th>
<th>도서 제목</th>
<th style="width: 80px;">해상도</th>
<th style="width: 60px;">권수</th>
<th style="width: 80px;">등록일</th>
<th style="width: 110px;">관리</th>
</tr>
</thead>
<tbody id="listBody"></tbody>
</table>
<div id="paginationContainer" class="pagination-container"></div>
</div>
<div id="tab-settings" class="tab-content">
<div class="panel-box">
<h4 style="font-size: 14px;">🌐 작동 허용 사이트 및 상세페이지 돔(DOM) 관리</h4>
<p style="font-size: 12px; color: var(--text-muted); margin-top: -10px; margin-bottom: 12px;">확장프로그램이 작동할 사이트를 관리합니다. 낯선 사이트는 상세페이지에서 <b>[우클릭 ➡️ 요소를 상세페이지 제목으로 등록]</b> 기능을 사용하면 훨씬 정확하게 등록됩니다.</p>
<div class="flex-row">
<input type="text" id="siteInput" placeholder="직접 추가 (예: domain.com)">
<button id="addSiteBtn">수동 추가</button>
</div>
<div id="siteList" style="margin-top: 10px; display: flex; flex-wrap: wrap;"></div>
</div>
<div class="panel-box">
<h4 style="font-size: 14px; color: #dc3545; border-bottom: 1px solid rgba(220,53,69,0.3);">🚫 제목 파싱 금지어 (필터링) 관리</h4>
<p style="font-size: 12px; color: var(--text-muted); margin-top: -10px; margin-bottom: 12px;">
웹사이트 제목에서 <b>무조건 삭제하고 싶은 단어(작가명, 스캔팀 등)</b>를 등록하세요. <br>
<span style="color:#e83e8c;">💡 예시:</span> '신카이 마코토'를 등록하면 👉 "별의 목소리 신카이 마코토"가 "별의 목소리"로 자동 정제됩니다. (주의: 일반 명사를 등록하면 정상적인 책 제목도 잘릴 수 있습니다.)
</p>
<div class="flex-row">
<input type="text" id="filterInput" placeholder="삭제할 텍스트 정확히 입력 (예: 오다 에이치로)">
<button id="addFilterBtn" style="background:#dc3545;">금지어 추가</button>
</div>
<div id="filterList" style="margin-top: 10px; display: flex; flex-wrap: wrap; gap: 6px;"></div>
</div>
<div class="panel-box sub-options">
<h4 style="font-size: 14px;">⚙️ 확장 기능 설정</h4>
<label>
<input type="checkbox" id="autoFolderCheckbox" checked>
<b>자동 폴더 생성 다운로드</b>
<span>바로다운로드 시 책 제목으로 폴더를 자동 생성합니다</span>
</label>
<label>
<input type="checkbox" id="showDownloadUICheckbox" checked>
<b>다운로드 현황판 표시</b>
<span>화면 좌측 하단에 실시간 진행률 팝업 노출</span>
</label>
<label>
<input type="checkbox" id="autoConfirmCheckbox" checked>
<b>확인창(Confirm) 자동 스킵</b>
<span>포인트 차감 등 반복되는 귀찮은 알림창 무시</span>
</label>
<label>
<input type="checkbox" id="focusLeftTabCheckbox">
<b>활성 탭 종료 시 왼쪽 탭 포커스</b>
<span>크롬 기본값인 '오른쪽 탭' 대신 '왼쪽 탭'으로 이동합니다</span>
</label>
<label>
<input type="checkbox" id="openSlidePanelCheckbox">
<b>슬라이드 패널로 열기</b>
<span>체크 시 확장프로그램 아이콘 클릭 시 우측 사이드 패널로 열립니다</span>
</label>
<label>
<input type="checkbox" id="connectEverythingCheckbox">
<b>에브리띵 연결</b>
<span>
<div style="">
체크 시 게시물 상세페이지에서 에브리띵 검색 기능을 활성화합니다.<br>
<details style="margin-top: 12px; max-width: 550px; border: 1px solid var(--border); border-radius: 8px; background: var(--bg); overflow: hidden; box-sizing: border-box;">
<summary style="padding: 12px 14px; font-size: 13px; font-weight: bold; color: var(--text); cursor: pointer; user-select: none; list-style: none; display: flex; justify-content: space-between; align-items: center;">
<span>[Everything 연동 방법 확인하기]</span>
<span class="toggle-icon" style="font-size: 10px; transition: transform 0.2s; color: var(--text-muted);">▶</span>
</summary>
<div style="padding: 14px; border-top: 1px solid var(--border); background: var(--panel);">
<ol style="margin: 0; padding-left: 16px; display: flex; flex-direction: column; gap: 10px; color: var(--text-muted);">
<li>에브리띵 공식 사이트에서 프로그램을 다운로드 및 설치합니다. (URL: <a href="https://www.voidtools.com/ko-kr/" target="_blank" style="color: #0d6efd; text-decoration: none; font-weight: bold;">voidtools.com</a>)</li>
<li>Everything 프로그램을 실행합니다.</li>
<li>상단 메뉴에서 <b>[도구] > [설정] > [일반]</b>으로 이동한 뒤, <b>'es: URL 연결(P)'</b> 항목을 체크하고 [확인]을 클릭합니다.
<img src="/images/everything01.png" style="max-width: 100%; height: auto; margin-top: 8px; border: 1px solid var(--border); border-radius: 6px; display: block;" alt="Everything 설정 가이드">
</li>
<li>본 확장프로그램 설정에서 <b>'에브리띵 연결'</b> 옵션을 체크합니다.</li>
<li>게시물 상세페이지에서 '에브리띵검색' 버튼 클릭 시, 최초 1회에 한해 Everything 프로그램과의 연결 허용 여부를 묻는 브라우저 팝업이 발생합니다. 이때 <b>'항상 허용'</b>을 선택하시면 이후부터 클릭 즉시 추출된 책 제목으로 에브리띵 검색이 자동 실행됩니다.
<img src="/images/everything02.png" style="max-width: 100%; height: auto; margin-top: 8px; border: 1px solid var(--border); border-radius: 6px; display: block;" alt="연결 허용 가이드">
</li>
</ol>
</div>
</details>
</div>
</span>
</label>
<label>
<input type="checkbox" id="showListQuickBtnCheckbox">
<b>리스트 퀵 버튼 표시</b>
<span>게시물 목록의 뱃지 아래에 퀵 액션 버튼을 표시합니다</span>
</label>
<label style="margin-left: 24px; border-left: 2px solid var(--border); padding-left: 10px; margin-top: -5px;">
<input type="checkbox" id="showListQuickBtnHoverCheckbox">
<b>마우스 오버 시에만 표시 (퀵 버튼)</b>
<span>마우스를 올렸을 때만 퀵 버튼을 표시하여 목록을 깔끔하게 유지합니다</span>
</label>
<label>
<input type="checkbox" id="supportSingleCharCheckbox">
<b>1글자 매칭 지원</b>
<span>1글자 제목의 도서도 매칭합니다 (영어, 숫자는 제외)</span>
</label>
<label>
<input type="checkbox" id="useCustomThemeCheckbox">
<b>게시판 전용 테마 적용</b>
<span>지원하는 게시판 리스트의 디자인 일부를 변경합니다</span>
</label>
</div>
</div>
<div id="tab-backup" class="tab-content">
<div class="panel-box" style="text-align: center; padding: 30px 20px;">
<h4 style="border:none; margin-bottom: 5px; font-size: 16px;">💾 데이터 안전하게 보관하기</h4>
<p style="color: var(--text-muted); font-size: 13px; margin-bottom: 25px;">소중하게 모은 도서 데이터를 파일로 저장하거나, 기존 데이터를 복구합니다.</p>
<div style="display: flex; justify-content: center; gap: 15px; margin-bottom: 20px;">
<button id="exportBtn" style="background: #17a2b8; padding: 10px 25px; font-size: 14px;">⬇️ 내 PC로 데이터 백업</button>
<button id="importBtn" style="background: #fd7e14; padding: 10px 25px; font-size: 14px;">⬆️ 기존 데이터 복구</button>
<input type="file" id="fileInput" style="display:none" accept=".json">
</div>
<div style="background: var(--bg); display: inline-block; padding: 8px 15px; border-radius: 15px; font-size: 13px; color: var(--text-muted); border: 1px solid var(--border);">
<b id="lastBackupTime">최근 백업 기록: 없음</b>
</div>
</div>
<div class="panel-box">
<h4 style="font-size: 14px;">⏱️ 타임머신 (자동 로컬 스냅샷)</h4>
<p style="font-size: 12px; color: var(--text-muted); margin-top: -10px; margin-bottom: 12px;">매일 브라우저를 처음 켤 때 자동으로 저장된 최근 7일간의 복원 지점입니다. 클릭 한 번으로 과거 상태로 되돌릴 수 있습니다.</p>
<ul id="snapshotList" style="list-style:none; padding:0; margin:0; display:flex; flex-direction:column; gap:8px;">
<li style="font-size: 13px; color: var(--text-muted);">스냅샷을 불러오는 중...</li>
</ul>
</div>
</div>
<div id="tab-history" class="tab-content">
<div class="panel-box" style="border:none; padding: 0;">
<div id="releaseHistoryContainer">
<div style="text-align: center; color: var(--text-muted); padding: 30px;">
⏳ GitHub에서 업데이트 기록을 불러오는 중입니다...
</div>
</div>
</div>
</div>
</div>
<button id="undoBtn" style="position: fixed; bottom: 30px; right: 30px; display: none; padding: 10px 18px; font-size: 14px; font-weight: 900; background: #ffc107; color: #000; box-shadow: 0 4px 15px rgba(0,0,0,0.3); border-radius: 30px; z-index: 9999; animation: fadeIn 0.3s;">
⏪ 방금 전 작업 취소하기
</button>
<script src="dexie.min.js"></script>
<script src="db.js"></script>
<script src="common.js"></script>
<script src="options.js"></script>
</body>
</html>