@huyooo/file-explorer-frontend-react 0.4.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (46) hide show
  1. package/dist/index.css +1740 -0
  2. package/dist/index.css.map +1 -0
  3. package/dist/index.d.ts +562 -0
  4. package/dist/index.js +3453 -0
  5. package/dist/index.js.map +1 -0
  6. package/dist/style.css +3 -0
  7. package/package.json +58 -0
  8. package/src/components/Breadcrumb.css +61 -0
  9. package/src/components/Breadcrumb.tsx +38 -0
  10. package/src/components/CompressDialog.css +264 -0
  11. package/src/components/CompressDialog.tsx +222 -0
  12. package/src/components/ContextMenu.css +155 -0
  13. package/src/components/ContextMenu.tsx +375 -0
  14. package/src/components/FileGrid.css +267 -0
  15. package/src/components/FileGrid.tsx +277 -0
  16. package/src/components/FileIcon.css +41 -0
  17. package/src/components/FileIcon.tsx +86 -0
  18. package/src/components/FileInfoDialog.css +252 -0
  19. package/src/components/FileInfoDialog.tsx +202 -0
  20. package/src/components/FileList.css +226 -0
  21. package/src/components/FileList.tsx +228 -0
  22. package/src/components/FileListView.css +36 -0
  23. package/src/components/FileListView.tsx +355 -0
  24. package/src/components/FileSidebar.css +94 -0
  25. package/src/components/FileSidebar.tsx +66 -0
  26. package/src/components/ProgressDialog.css +211 -0
  27. package/src/components/ProgressDialog.tsx +183 -0
  28. package/src/components/SortIndicator.css +7 -0
  29. package/src/components/SortIndicator.tsx +19 -0
  30. package/src/components/StatusBar.css +20 -0
  31. package/src/components/StatusBar.tsx +21 -0
  32. package/src/components/Toolbar.css +150 -0
  33. package/src/components/Toolbar.tsx +127 -0
  34. package/src/components/Window.css +246 -0
  35. package/src/components/Window.tsx +335 -0
  36. package/src/hooks/useApplicationIcon.ts +80 -0
  37. package/src/hooks/useDragAndDrop.ts +104 -0
  38. package/src/hooks/useMediaPlayer.ts +164 -0
  39. package/src/hooks/useSelection.ts +112 -0
  40. package/src/hooks/useWindowDrag.ts +60 -0
  41. package/src/hooks/useWindowResize.ts +126 -0
  42. package/src/index.css +3 -0
  43. package/src/index.ts +34 -0
  44. package/src/types/index.ts +274 -0
  45. package/src/utils/fileTypeIcon.ts +309 -0
  46. package/src/utils/folderTypeIcon.ts +132 -0
package/dist/index.css ADDED
@@ -0,0 +1,1740 @@
1
+ /* src/components/FileIcon.css */
2
+ .file-icon--folder {
3
+ color: rgb(96, 165, 250);
4
+ fill: rgb(96, 165, 250);
5
+ }
6
+ .file-icon--image {
7
+ color: rgb(168, 85, 247);
8
+ }
9
+ .file-icon--text {
10
+ color: rgb(107, 114, 128);
11
+ }
12
+ .file-icon--code {
13
+ color: rgb(34, 197, 94);
14
+ }
15
+ .file-icon--music {
16
+ color: rgb(248, 113, 113);
17
+ }
18
+ .file-icon--video {
19
+ color: rgb(37, 99, 235);
20
+ }
21
+ .file-icon--pdf {
22
+ color: rgb(220, 38, 38);
23
+ }
24
+ .file-icon--application {
25
+ color: rgb(139, 92, 246);
26
+ }
27
+ .file-icon--archive {
28
+ color: rgb(234, 179, 8);
29
+ }
30
+ .file-icon--default {
31
+ color: rgb(156, 163, 175);
32
+ }
33
+
34
+ /* src/components/FileGrid.css */
35
+ .file-grid {
36
+ display: grid;
37
+ grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
38
+ gap: 6px;
39
+ padding: 12px;
40
+ align-content: start;
41
+ grid-auto-rows: min-content;
42
+ overflow-y: auto;
43
+ overflow-x: hidden;
44
+ }
45
+ .file-grid-item {
46
+ display: flex;
47
+ flex-direction: column;
48
+ align-items: center;
49
+ padding: 4px;
50
+ border-radius: 6px;
51
+ cursor: pointer;
52
+ border: 1px solid transparent;
53
+ transition: background-color 120ms ease, border-color 120ms ease;
54
+ position: relative;
55
+ overflow: hidden;
56
+ min-width: 0;
57
+ width: 100%;
58
+ }
59
+ .file-grid-item[draggable=true] {
60
+ cursor: grab;
61
+ }
62
+ .file-grid-item:active {
63
+ cursor: grabbing;
64
+ }
65
+ .file-grid-item--normal:hover {
66
+ background: rgba(0, 0, 0, 0.04);
67
+ }
68
+ .file-grid-item--selected {
69
+ background: rgba(0, 122, 255, 0.12);
70
+ border-color: rgba(0, 122, 255, 0.2);
71
+ }
72
+ .file-grid-item--selected:hover {
73
+ background: rgba(0, 122, 255, 0.16);
74
+ }
75
+ .file-grid-item--drag-over {
76
+ background: rgba(0, 122, 255, 0.2);
77
+ border-color: rgba(0, 122, 255, 0.4);
78
+ }
79
+ .file-grid-item-icon {
80
+ position: relative;
81
+ pointer-events: none;
82
+ display: flex;
83
+ align-items: center;
84
+ justify-content: center;
85
+ width: 48px;
86
+ height: 48px;
87
+ flex-shrink: 0;
88
+ }
89
+ .file-grid-item-thumbnail {
90
+ width: 48px;
91
+ height: 48px;
92
+ object-fit: cover;
93
+ object-position: center;
94
+ border-radius: 4px;
95
+ box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08), 0 0 0 1px rgba(0, 0, 0, 0.04);
96
+ background: #f5f5f5;
97
+ display: block;
98
+ }
99
+ .file-grid-item-thumbnail--application {
100
+ object-fit: contain;
101
+ background: transparent;
102
+ box-shadow: none;
103
+ border-radius: 10px;
104
+ }
105
+ .file-grid-item-thumbnail--selected {
106
+ box-shadow: 0 2px 6px rgba(0, 122, 255, 0.2), 0 0 0 2px rgba(0, 122, 255, 0.3);
107
+ }
108
+ .file-grid-item-thumbnail--video {
109
+ position: relative;
110
+ border-radius: 4px;
111
+ overflow: hidden;
112
+ background: #000;
113
+ width: 48px;
114
+ height: 48px;
115
+ box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
116
+ display: flex;
117
+ align-items: center;
118
+ justify-content: center;
119
+ }
120
+ .file-grid-item-thumbnail--video > img {
121
+ width: 100%;
122
+ height: 100%;
123
+ object-fit: cover;
124
+ object-position: center;
125
+ display: block;
126
+ }
127
+ .file-grid-item-video-play {
128
+ position: absolute;
129
+ inset: 0;
130
+ display: flex;
131
+ align-items: center;
132
+ justify-content: center;
133
+ pointer-events: none;
134
+ opacity: 0.9;
135
+ transition: opacity 150ms;
136
+ }
137
+ .file-grid-item-thumbnail--video:hover .file-grid-item-video-play {
138
+ opacity: 0;
139
+ }
140
+ .file-grid-item-video-play-icon {
141
+ width: 20px;
142
+ height: 20px;
143
+ border-radius: 50%;
144
+ background: rgba(0, 0, 0, 0.5);
145
+ backdrop-filter: blur(4px);
146
+ display: flex;
147
+ align-items: center;
148
+ justify-content: center;
149
+ }
150
+ .file-grid-item-video-play-icon::before {
151
+ content: "";
152
+ width: 0;
153
+ height: 0;
154
+ border-top: 4px solid transparent;
155
+ border-left: 7px solid white;
156
+ border-bottom: 4px solid transparent;
157
+ margin-left: 2px;
158
+ }
159
+ .file-grid-item-name-wrapper {
160
+ display: flex;
161
+ align-items: flex-start;
162
+ justify-content: center;
163
+ width: 100%;
164
+ min-height: 0;
165
+ }
166
+ .file-grid-item-name {
167
+ font-size: 12px;
168
+ line-height: 1.3;
169
+ text-align: center;
170
+ padding: 2px;
171
+ border-radius: 3px;
172
+ user-select: none;
173
+ cursor: default;
174
+ transition: color 100ms;
175
+ color: #1d1d1f;
176
+ width: 100%;
177
+ display: flex;
178
+ flex-direction: column;
179
+ align-items: center;
180
+ justify-content: flex-start;
181
+ min-height: 0;
182
+ }
183
+ .file-grid-item-name-base {
184
+ display: -webkit-box;
185
+ -webkit-line-clamp: 1;
186
+ -webkit-box-orient: vertical;
187
+ overflow: hidden;
188
+ word-break: break-word;
189
+ text-overflow: ellipsis;
190
+ width: 100%;
191
+ text-align: center;
192
+ }
193
+ .file-grid-item-name-ext {
194
+ display: block;
195
+ white-space: nowrap;
196
+ flex-shrink: 0;
197
+ text-align: center;
198
+ }
199
+ .file-grid-item-name--selected {
200
+ cursor: text;
201
+ }
202
+ .file-grid-item-rename-input {
203
+ width: 100%;
204
+ font-size: 11px;
205
+ line-height: 1.3;
206
+ text-align: center;
207
+ padding: 2px 4px;
208
+ border: 1px solid #007aff;
209
+ border-radius: 3px;
210
+ outline: none;
211
+ box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.2);
212
+ background: white;
213
+ cursor: text;
214
+ }
215
+ @media (prefers-color-scheme: dark) {
216
+ .file-grid-item--normal:hover {
217
+ background: rgba(255, 255, 255, 0.06);
218
+ }
219
+ .file-grid-item--selected {
220
+ background: rgba(10, 132, 255, 0.25);
221
+ border-color: rgba(10, 132, 255, 0.3);
222
+ }
223
+ .file-grid-item--selected:hover {
224
+ background: rgba(10, 132, 255, 0.3);
225
+ }
226
+ .file-grid-item--drag-over {
227
+ background: rgba(10, 132, 255, 0.35);
228
+ border-color: rgba(10, 132, 255, 0.5);
229
+ }
230
+ .file-grid-item-thumbnail {
231
+ background: #2c2c2e;
232
+ box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2), 0 0 0 1px rgba(255, 255, 255, 0.05);
233
+ }
234
+ .file-grid-item-name {
235
+ color: #f5f5f7;
236
+ }
237
+ .file-grid-item-rename-input {
238
+ background: #1c1c1e;
239
+ border-color: #0a84ff;
240
+ color: #f5f5f7;
241
+ }
242
+ }
243
+
244
+ /* src/components/SortIndicator.css */
245
+ .sort-indicator {
246
+ margin-left: 4px;
247
+ display: inline-flex;
248
+ align-items: center;
249
+ color: rgb(59, 130, 246);
250
+ }
251
+
252
+ /* src/components/FileList.css */
253
+ .file-list {
254
+ width: 100%;
255
+ overflow-y: auto;
256
+ overflow-x: hidden;
257
+ }
258
+ .file-list-table {
259
+ width: 100%;
260
+ font-size: 13px;
261
+ text-align: left;
262
+ border-collapse: collapse;
263
+ }
264
+ .file-list-header {
265
+ font-size: 11px;
266
+ color: #86868b;
267
+ font-weight: 500;
268
+ text-transform: uppercase;
269
+ letter-spacing: 0.3px;
270
+ position: sticky;
271
+ top: 0;
272
+ background: rgba(255, 255, 255, 0.92);
273
+ backdrop-filter: blur(8px);
274
+ -webkit-backdrop-filter: blur(8px);
275
+ z-index: 10;
276
+ user-select: none;
277
+ }
278
+ .file-list-header-cell {
279
+ padding: 6px 12px;
280
+ border-bottom: 1px solid rgba(0, 0, 0, 0.08);
281
+ cursor: pointer;
282
+ text-align: left;
283
+ font-weight: 500;
284
+ transition: background-color 100ms;
285
+ }
286
+ .file-list-header-cell:hover {
287
+ background: rgba(0, 0, 0, 0.04);
288
+ }
289
+ .file-list-header-cell--name {
290
+ padding-left: 12px;
291
+ padding-right: 12px;
292
+ width: 45%;
293
+ }
294
+ .file-list-body {
295
+ }
296
+ .file-list-row {
297
+ cursor: pointer;
298
+ user-select: none;
299
+ transition: background-color 80ms ease;
300
+ border-bottom: 1px solid transparent;
301
+ }
302
+ .file-list-row[draggable=true] {
303
+ cursor: grab;
304
+ }
305
+ .file-list-row:active {
306
+ cursor: grabbing;
307
+ }
308
+ .file-list-row--even {
309
+ background: transparent;
310
+ }
311
+ .file-list-row--odd {
312
+ background: rgba(0, 0, 0, 0.015);
313
+ }
314
+ .file-list-row--even:hover,
315
+ .file-list-row--odd:hover {
316
+ background: rgba(0, 0, 0, 0.04);
317
+ }
318
+ .file-list-row--selected {
319
+ background: #007aff;
320
+ color: white;
321
+ }
322
+ .file-list-row--selected:hover {
323
+ background: #0066d6;
324
+ }
325
+ .file-list-row--drag-over {
326
+ background: rgba(0, 122, 255, 0.15);
327
+ border-bottom-color: rgba(0, 122, 255, 0.3);
328
+ }
329
+ .file-list-cell {
330
+ padding: 4px 12px;
331
+ white-space: nowrap;
332
+ color: #6e6e73;
333
+ vertical-align: middle;
334
+ height: 28px;
335
+ }
336
+ .file-list-cell--name {
337
+ padding-left: 12px;
338
+ padding-right: 12px;
339
+ display: flex;
340
+ align-items: center;
341
+ gap: 8px;
342
+ }
343
+ .file-list-cell--selected {
344
+ color: rgba(255, 255, 255, 0.75);
345
+ }
346
+ .file-list-cell--size {
347
+ font-family:
348
+ "SF Mono",
349
+ Monaco,
350
+ "Cascadia Code",
351
+ monospace;
352
+ font-size: 11px;
353
+ color: #8e8e93;
354
+ font-variant-numeric: tabular-nums;
355
+ }
356
+ .file-list-name {
357
+ overflow: hidden;
358
+ text-overflow: ellipsis;
359
+ flex: 1;
360
+ color: #1d1d1f;
361
+ cursor: default;
362
+ font-weight: 400;
363
+ }
364
+ .file-list-name--selected {
365
+ color: white;
366
+ font-weight: 500;
367
+ cursor: text;
368
+ }
369
+ .file-list-rename-input {
370
+ flex: 1;
371
+ font-size: 13px;
372
+ padding: 2px 6px;
373
+ border: 1px solid #007aff;
374
+ border-radius: 4px;
375
+ outline: none;
376
+ box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.2);
377
+ background: white;
378
+ cursor: text;
379
+ }
380
+ @media (prefers-color-scheme: dark) {
381
+ .file-list-header {
382
+ background: rgba(28, 28, 30, 0.92);
383
+ color: #98989d;
384
+ }
385
+ .file-list-header-cell {
386
+ border-bottom-color: rgba(255, 255, 255, 0.08);
387
+ }
388
+ .file-list-header-cell:hover {
389
+ background: rgba(255, 255, 255, 0.04);
390
+ }
391
+ .file-list-row--odd {
392
+ background: rgba(255, 255, 255, 0.02);
393
+ }
394
+ .file-list-row--even:hover,
395
+ .file-list-row--odd:hover {
396
+ background: rgba(255, 255, 255, 0.06);
397
+ }
398
+ .file-list-row--selected {
399
+ background: #0a84ff;
400
+ }
401
+ .file-list-row--selected:hover {
402
+ background: #0077ed;
403
+ }
404
+ .file-list-row--drag-over {
405
+ background: rgba(10, 132, 255, 0.2);
406
+ border-bottom-color: rgba(10, 132, 255, 0.4);
407
+ }
408
+ .file-list-cell {
409
+ color: #98989d;
410
+ }
411
+ .file-list-cell--size {
412
+ color: #6e6e73;
413
+ }
414
+ .file-list-name {
415
+ color: #f5f5f7;
416
+ }
417
+ .file-list-name--selected {
418
+ color: white;
419
+ }
420
+ .file-list-rename-input {
421
+ background: #1c1c1e;
422
+ border-color: #0a84ff;
423
+ color: #f5f5f7;
424
+ }
425
+ }
426
+
427
+ /* src/components/FileListView.css */
428
+ .file-list-view {
429
+ flex: 1;
430
+ overflow: auto;
431
+ padding: 12px;
432
+ user-select: none;
433
+ min-height: 0;
434
+ }
435
+ .file-list-view-loading,
436
+ .file-list-view-empty {
437
+ display: flex;
438
+ flex-direction: column;
439
+ align-items: center;
440
+ justify-content: center;
441
+ height: 100%;
442
+ color: rgb(156, 163, 175);
443
+ gap: 16px;
444
+ }
445
+ .file-list-view-spinner {
446
+ width: 32px;
447
+ height: 32px;
448
+ border: 3px solid rgba(156, 163, 175, 0.2);
449
+ border-top-color: rgb(59, 130, 246);
450
+ border-radius: 50%;
451
+ animation: spin 0.8s linear infinite;
452
+ }
453
+ @keyframes spin {
454
+ to {
455
+ transform: rotate(360deg);
456
+ }
457
+ }
458
+ .file-list-view-empty-icon {
459
+ opacity: 0.3;
460
+ }
461
+
462
+ /* src/components/FileSidebar.css */
463
+ .file-sidebar {
464
+ width: 12rem;
465
+ background: rgba(243, 244, 246, 0.5);
466
+ backdrop-filter: blur(24px);
467
+ border-right: 1px solid rgba(229, 231, 233, 0.5);
468
+ display: flex;
469
+ flex-direction: column;
470
+ padding-top: 2rem;
471
+ padding-bottom: 1rem;
472
+ height: 100%;
473
+ box-sizing: border-box;
474
+ overflow-y: auto;
475
+ overflow-x: hidden;
476
+ user-select: none;
477
+ -webkit-app-region: drag;
478
+ }
479
+ .file-sidebar::-webkit-scrollbar {
480
+ width: 6px;
481
+ }
482
+ .file-sidebar::-webkit-scrollbar-track {
483
+ background: transparent;
484
+ }
485
+ .file-sidebar::-webkit-scrollbar-thumb {
486
+ background: rgba(0, 0, 0, 0.2);
487
+ border-radius: 3px;
488
+ }
489
+ .file-sidebar::-webkit-scrollbar-thumb:hover {
490
+ background: rgba(0, 0, 0, 0.3);
491
+ }
492
+ .file-sidebar-section {
493
+ margin-bottom: 0;
494
+ -webkit-app-region: no-drag;
495
+ }
496
+ .file-sidebar-section-title {
497
+ padding: 0 1rem;
498
+ margin-bottom: 0.5rem;
499
+ font-size: 0.75rem;
500
+ font-weight: 600;
501
+ color: rgb(107, 114, 128);
502
+ text-transform: uppercase;
503
+ letter-spacing: 0.05em;
504
+ }
505
+ .file-sidebar-section + .file-sidebar-section .file-sidebar-section-title {
506
+ margin-top: 1.5rem;
507
+ }
508
+ .file-sidebar-list {
509
+ list-style: none;
510
+ display: flex;
511
+ flex-direction: column;
512
+ gap: 0.25rem;
513
+ padding: 0 0.5rem;
514
+ margin: 0;
515
+ }
516
+ .file-sidebar-item {
517
+ display: flex;
518
+ align-items: center;
519
+ gap: 0.75rem;
520
+ padding: 0.375rem 0.75rem;
521
+ border-radius: 0.375rem;
522
+ cursor: pointer;
523
+ font-size: 0.875rem;
524
+ font-weight: 500;
525
+ color: rgb(75, 85, 99);
526
+ transition: all 200ms;
527
+ }
528
+ .file-sidebar-item:hover {
529
+ background: rgba(229, 231, 233, 0.5);
530
+ color: black;
531
+ }
532
+ .file-sidebar-item--active {
533
+ background: rgba(209, 213, 219, 0.6);
534
+ color: black;
535
+ }
536
+ .file-sidebar-item-icon {
537
+ color: rgb(107, 114, 128);
538
+ }
539
+ .file-sidebar-item-icon--active {
540
+ color: rgb(37, 99, 235);
541
+ }
542
+
543
+ /* src/components/Breadcrumb.css */
544
+ .file-breadcrumb {
545
+ display: inline-flex;
546
+ align-items: center;
547
+ gap: 0.125rem;
548
+ overflow-x: auto;
549
+ padding: 0 0.25rem;
550
+ max-width: 100%;
551
+ scrollbar-width: none;
552
+ -ms-overflow-style: none;
553
+ -webkit-app-region: no-drag;
554
+ }
555
+ .file-breadcrumb::-webkit-scrollbar {
556
+ display: none;
557
+ }
558
+ .file-breadcrumb-item {
559
+ display: flex;
560
+ align-items: center;
561
+ flex-shrink: 0;
562
+ }
563
+ .file-breadcrumb-link {
564
+ display: flex;
565
+ align-items: center;
566
+ gap: 0.375rem;
567
+ padding: 0.25rem 0.5rem;
568
+ border-radius: 0.375rem;
569
+ font-size: 0.875rem;
570
+ transition: all 200ms;
571
+ border: none;
572
+ background: transparent;
573
+ cursor: pointer;
574
+ color: rgb(75, 85, 99);
575
+ overflow: hidden;
576
+ text-overflow: ellipsis;
577
+ white-space: nowrap;
578
+ }
579
+ .file-breadcrumb-link:hover {
580
+ background: rgba(229, 231, 233, 0.6);
581
+ color: rgb(17, 24, 39);
582
+ }
583
+ .file-breadcrumb-link--current {
584
+ font-weight: 600;
585
+ color: rgb(17, 24, 39);
586
+ background: rgba(229, 231, 233, 0.5);
587
+ cursor: default;
588
+ }
589
+ .file-breadcrumb-link--current:hover {
590
+ background: rgba(229, 231, 233, 0.5);
591
+ }
592
+ .file-breadcrumb-separator {
593
+ color: rgb(156, 163, 175);
594
+ margin: 0 0.25rem;
595
+ flex-shrink: 0;
596
+ }
597
+
598
+ /* src/components/Toolbar.css */
599
+ .file-toolbar {
600
+ height: 3rem;
601
+ background: rgba(249, 250, 251, 0.9);
602
+ backdrop-filter: blur(12px);
603
+ border-bottom: 1px solid rgb(229, 231, 233);
604
+ display: flex;
605
+ align-items: center;
606
+ padding: 0 1rem;
607
+ user-select: none;
608
+ flex-shrink: 0;
609
+ z-index: 30;
610
+ position: relative;
611
+ }
612
+ .file-toolbar--draggable {
613
+ -webkit-app-region: drag;
614
+ }
615
+ .file-toolbar-nav {
616
+ display: flex;
617
+ align-items: center;
618
+ color: rgb(75, 85, 99);
619
+ background: rgba(229, 231, 233, 0.5);
620
+ border-radius: 0.5rem;
621
+ padding: 0.125rem;
622
+ flex-shrink: 0;
623
+ -webkit-app-region: no-drag;
624
+ }
625
+ .file-toolbar-button {
626
+ padding: 0.25rem;
627
+ border-radius: 0.375rem;
628
+ transition: all 200ms;
629
+ border: none;
630
+ background: transparent;
631
+ cursor: pointer;
632
+ display: flex;
633
+ align-items: center;
634
+ justify-content: center;
635
+ color: rgb(31, 41, 55);
636
+ }
637
+ .file-toolbar-button:hover:not(:disabled) {
638
+ background: rgb(209, 213, 219);
639
+ }
640
+ .file-toolbar-button:disabled {
641
+ color: rgb(156, 163, 175);
642
+ cursor: default;
643
+ }
644
+ .file-toolbar-button--active {
645
+ background: white;
646
+ box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
647
+ color: rgb(31, 41, 55);
648
+ }
649
+ .file-toolbar-breadcrumb {
650
+ flex: 1;
651
+ min-width: 0;
652
+ overflow: hidden;
653
+ margin-left: 1rem;
654
+ }
655
+ .file-toolbar-custom {
656
+ display: flex;
657
+ align-items: center;
658
+ gap: 0.5rem;
659
+ -webkit-app-region: no-drag;
660
+ }
661
+ .file-toolbar-actions {
662
+ display: flex;
663
+ align-items: center;
664
+ gap: 0.75rem;
665
+ flex-shrink: 0;
666
+ margin-left: auto;
667
+ -webkit-app-region: no-drag;
668
+ }
669
+ .file-toolbar-search {
670
+ position: relative;
671
+ display: none;
672
+ }
673
+ @media (min-width: 768px) {
674
+ .file-toolbar-search {
675
+ display: block;
676
+ }
677
+ }
678
+ .file-toolbar-search-icon {
679
+ position: absolute;
680
+ left: 0.625rem;
681
+ top: 50%;
682
+ transform: translateY(-50%);
683
+ color: rgb(156, 163, 175);
684
+ transition: color 200ms;
685
+ }
686
+ .file-toolbar-search:focus-within .file-toolbar-search-icon {
687
+ color: rgb(59, 130, 246);
688
+ }
689
+ .file-toolbar-search-input {
690
+ background: rgb(243, 244, 246);
691
+ border: 1px solid transparent;
692
+ border-radius: 0.375rem;
693
+ padding-left: 2rem;
694
+ padding-right: 0.75rem;
695
+ padding-top: 0.25rem;
696
+ padding-bottom: 0.25rem;
697
+ font-size: 0.875rem;
698
+ outline: none;
699
+ transition: all 200ms;
700
+ width: 8rem;
701
+ color: rgb(55, 65, 81);
702
+ }
703
+ .file-toolbar-search-input::placeholder {
704
+ color: rgb(156, 163, 175);
705
+ }
706
+ .file-toolbar-search-input:focus {
707
+ background: white;
708
+ border-color: rgb(96, 165, 250);
709
+ box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.1);
710
+ width: 12rem;
711
+ }
712
+ .file-toolbar-view-toggle {
713
+ display: flex;
714
+ align-items: center;
715
+ background: rgba(229, 231, 233, 0.5);
716
+ border-radius: 0.5rem;
717
+ padding: 0.125rem;
718
+ color: rgb(75, 85, 99);
719
+ }
720
+ .file-toolbar-view-toggle .file-toolbar-button--active {
721
+ background: white;
722
+ box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
723
+ color: rgb(31, 41, 55);
724
+ }
725
+ .file-toolbar-view-toggle .file-toolbar-button:not(.file-toolbar-button--active):hover {
726
+ background: rgba(209, 213, 219, 0.5);
727
+ }
728
+
729
+ /* src/components/StatusBar.css */
730
+ .file-status-bar {
731
+ height: 1.5rem;
732
+ background-color: rgb(249, 250, 251);
733
+ border-top: 1px solid rgb(229, 231, 233);
734
+ display: flex;
735
+ align-items: center;
736
+ justify-content: center;
737
+ padding: 0 8px;
738
+ font-size: 10px;
739
+ color: rgb(107, 114, 128);
740
+ user-select: none;
741
+ flex-shrink: 0;
742
+ z-index: 20;
743
+ gap: 4px;
744
+ }
745
+ .file-status-bar > * {
746
+ flex-shrink: 0;
747
+ }
748
+
749
+ /* src/components/ContextMenu.css */
750
+ .context-menu-container {
751
+ position: fixed;
752
+ inset: 0;
753
+ z-index: 9999;
754
+ pointer-events: none;
755
+ }
756
+ .context-menu {
757
+ position: fixed;
758
+ z-index: 10000;
759
+ width: 220px;
760
+ background: rgba(255, 255, 255, 0.95);
761
+ backdrop-filter: blur(24px);
762
+ border: 1px solid rgba(229, 231, 233, 0.5);
763
+ border-radius: 0.5rem;
764
+ box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.15), 0 4px 6px -2px rgba(0, 0, 0, 0.1);
765
+ padding: 0.25rem 0;
766
+ font-size: 0.875rem;
767
+ user-select: none;
768
+ animation: fade-in 100ms ease-out, zoom-in 100ms ease-out;
769
+ pointer-events: auto;
770
+ }
771
+ @keyframes fade-in {
772
+ from {
773
+ opacity: 0;
774
+ }
775
+ to {
776
+ opacity: 1;
777
+ }
778
+ }
779
+ @keyframes zoom-in {
780
+ from {
781
+ transform: scale(0.95);
782
+ }
783
+ to {
784
+ transform: scale(1);
785
+ }
786
+ }
787
+ .context-menu-item {
788
+ width: 100%;
789
+ text-align: left;
790
+ display: flex;
791
+ align-items: center;
792
+ gap: 0.5rem;
793
+ padding: 0.375rem 1rem;
794
+ color: rgb(55, 65, 81);
795
+ transition: all 200ms;
796
+ border: none;
797
+ background: transparent;
798
+ cursor: pointer;
799
+ }
800
+ .context-menu-item:hover {
801
+ background: rgb(59, 130, 246);
802
+ color: white;
803
+ }
804
+ .context-menu-item:hover .context-menu-item-icon {
805
+ color: white;
806
+ }
807
+ .context-menu-item:hover .context-menu-item-shortcut {
808
+ color: rgba(255, 255, 255, 0.7);
809
+ }
810
+ .context-menu-item--disabled {
811
+ opacity: 0.5;
812
+ cursor: not-allowed;
813
+ }
814
+ .context-menu-item--disabled:hover {
815
+ background: transparent;
816
+ color: rgb(55, 65, 81);
817
+ }
818
+ .context-menu-item--disabled:hover .context-menu-item-icon {
819
+ color: rgb(107, 114, 128);
820
+ }
821
+ .context-menu-item--danger {
822
+ color: rgb(220, 38, 38);
823
+ }
824
+ .context-menu-item--danger:hover {
825
+ background: rgb(220, 38, 38);
826
+ color: white;
827
+ }
828
+ .context-menu-item--danger .context-menu-item-icon {
829
+ color: rgb(220, 38, 38);
830
+ }
831
+ .context-menu-item--danger:hover .context-menu-item-icon {
832
+ color: white;
833
+ }
834
+ .context-menu-item-icon {
835
+ color: rgb(107, 114, 128);
836
+ flex-shrink: 0;
837
+ }
838
+ .context-menu-item-label {
839
+ flex: 1;
840
+ }
841
+ .context-menu-item-shortcut {
842
+ color: rgb(156, 163, 175);
843
+ font-size: 0.6875rem;
844
+ }
845
+ .context-menu-separator {
846
+ height: 1px;
847
+ background: rgb(229, 231, 233);
848
+ margin: 0.25rem 0.5rem;
849
+ }
850
+ .context-menu-item--has-children {
851
+ position: relative;
852
+ }
853
+ .context-menu-item--active {
854
+ background: rgb(59, 130, 246);
855
+ color: white;
856
+ }
857
+ .context-menu-item--active .context-menu-item-icon {
858
+ color: white;
859
+ }
860
+ .context-menu-item--active .context-menu-item-shortcut {
861
+ color: rgba(255, 255, 255, 0.7);
862
+ }
863
+ .context-menu-item-check {
864
+ color: rgb(107, 114, 128);
865
+ flex-shrink: 0;
866
+ margin-left: auto;
867
+ }
868
+ .context-menu-item:hover .context-menu-item-check,
869
+ .context-menu-item--active .context-menu-item-check {
870
+ color: white;
871
+ }
872
+ .context-menu-item-arrow {
873
+ color: rgb(156, 163, 175);
874
+ flex-shrink: 0;
875
+ margin-left: auto;
876
+ }
877
+ .context-menu-item:hover .context-menu-item-arrow,
878
+ .context-menu-item--active .context-menu-item-arrow {
879
+ color: white;
880
+ }
881
+ .context-menu-submenu {
882
+ z-index: 10001;
883
+ }
884
+
885
+ /* src/components/Window.css */
886
+ .window-overlay {
887
+ position: fixed;
888
+ inset: 0;
889
+ z-index: 100;
890
+ background: rgba(0, 0, 0, 0.3);
891
+ animation: fade-in 200ms ease-out;
892
+ display: flex;
893
+ align-items: center;
894
+ justify-content: center;
895
+ }
896
+ .window-container {
897
+ position: absolute;
898
+ display: flex;
899
+ flex-direction: column;
900
+ background: rgba(255, 255, 255, 0.95);
901
+ backdrop-filter: blur(24px);
902
+ border: 1px solid rgb(229, 231, 233);
903
+ box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
904
+ border-radius: 0.5rem;
905
+ overflow: hidden;
906
+ animation: window-fade-in 200ms ease-out;
907
+ }
908
+ .window-title-bar {
909
+ height: 2.5rem;
910
+ display: flex;
911
+ align-items: center;
912
+ justify-content: space-between;
913
+ padding: 0 0.75rem;
914
+ border-bottom: 1px solid rgb(229, 231, 233);
915
+ flex-shrink: 0;
916
+ user-select: none;
917
+ background: rgba(249, 250, 251, 0.8);
918
+ z-index: 20;
919
+ cursor: grab;
920
+ }
921
+ .window-title-bar:active {
922
+ cursor: grabbing;
923
+ }
924
+ .window-controls {
925
+ display: flex;
926
+ align-items: center;
927
+ gap: 0.5rem;
928
+ }
929
+ .window-control-button {
930
+ width: 0.75rem;
931
+ height: 0.75rem;
932
+ border-radius: 50%;
933
+ display: flex;
934
+ align-items: center;
935
+ justify-content: center;
936
+ border: 1px solid;
937
+ box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
938
+ outline: none;
939
+ cursor: pointer;
940
+ padding: 0;
941
+ background: transparent;
942
+ flex-shrink: 0;
943
+ position: relative;
944
+ }
945
+ .window-control-button svg {
946
+ width: 7px !important;
947
+ height: 7px !important;
948
+ display: block;
949
+ flex-shrink: 0;
950
+ }
951
+ .window-control-button .window-control-icon {
952
+ width: 7px !important;
953
+ height: 7px !important;
954
+ min-width: 7px;
955
+ min-height: 7px;
956
+ }
957
+ .window-control-button--close {
958
+ background-color: rgb(255, 95, 87);
959
+ border-color: rgb(224, 68, 62);
960
+ }
961
+ .window-control-button--minimize {
962
+ background-color: rgb(254, 188, 46);
963
+ border-color: rgb(216, 158, 36);
964
+ }
965
+ .window-control-button--maximize {
966
+ background-color: rgb(40, 200, 64);
967
+ border-color: rgb(26, 171, 41);
968
+ }
969
+ .window-control-icon {
970
+ color: rgba(0, 0, 0, 0.5);
971
+ opacity: 0;
972
+ transition: opacity 200ms;
973
+ width: 7px;
974
+ height: 7px;
975
+ flex-shrink: 0;
976
+ }
977
+ .window-controls:hover .window-control-icon {
978
+ opacity: 1;
979
+ }
980
+ .window-control-button--close:hover {
981
+ background-color: rgba(255, 95, 87, 0.8);
982
+ }
983
+ .window-control-button--minimize:hover {
984
+ background-color: rgba(254, 188, 46, 0.8);
985
+ }
986
+ .window-control-button--maximize:hover {
987
+ background-color: rgba(40, 200, 64, 0.8);
988
+ }
989
+ .window-title-info {
990
+ display: flex;
991
+ flex-direction: column;
992
+ align-items: center;
993
+ justify-content: center;
994
+ flex: 1;
995
+ margin: 0 1rem;
996
+ overflow: hidden;
997
+ pointer-events: none;
998
+ }
999
+ .window-title-text {
1000
+ font-weight: 500;
1001
+ font-size: 0.75rem;
1002
+ color: rgb(75, 85, 99);
1003
+ overflow: hidden;
1004
+ text-overflow: ellipsis;
1005
+ white-space: nowrap;
1006
+ width: 100%;
1007
+ text-align: center;
1008
+ }
1009
+ .window-title-actions {
1010
+ display: flex;
1011
+ align-items: center;
1012
+ justify-content: flex-end;
1013
+ min-width: 4rem;
1014
+ flex-shrink: 0;
1015
+ }
1016
+ .window-content {
1017
+ flex: 1;
1018
+ display: flex;
1019
+ flex-direction: column;
1020
+ overflow: hidden;
1021
+ position: relative;
1022
+ width: 100%;
1023
+ height: 100%;
1024
+ }
1025
+ .window-resize-handle {
1026
+ position: absolute;
1027
+ background: transparent;
1028
+ z-index: 30;
1029
+ }
1030
+ .window-resize-handle--n {
1031
+ top: 0;
1032
+ left: 0;
1033
+ right: 0;
1034
+ height: 4px;
1035
+ cursor: n-resize;
1036
+ }
1037
+ .window-resize-handle--s {
1038
+ bottom: 0;
1039
+ left: 0;
1040
+ right: 0;
1041
+ height: 4px;
1042
+ cursor: s-resize;
1043
+ }
1044
+ .window-resize-handle--e {
1045
+ top: 0;
1046
+ right: 0;
1047
+ bottom: 0;
1048
+ width: 4px;
1049
+ cursor: e-resize;
1050
+ }
1051
+ .window-resize-handle--w {
1052
+ top: 0;
1053
+ left: 0;
1054
+ bottom: 0;
1055
+ width: 4px;
1056
+ cursor: w-resize;
1057
+ }
1058
+ .window-resize-handle--ne {
1059
+ top: 0;
1060
+ right: 0;
1061
+ width: 8px;
1062
+ height: 8px;
1063
+ cursor: ne-resize;
1064
+ }
1065
+ .window-resize-handle--nw {
1066
+ top: 0;
1067
+ left: 0;
1068
+ width: 8px;
1069
+ height: 8px;
1070
+ cursor: nw-resize;
1071
+ }
1072
+ .window-resize-handle--se {
1073
+ bottom: 0;
1074
+ right: 0;
1075
+ width: 8px;
1076
+ height: 8px;
1077
+ cursor: se-resize;
1078
+ }
1079
+ .window-resize-handle--sw {
1080
+ bottom: 0;
1081
+ left: 0;
1082
+ width: 8px;
1083
+ height: 8px;
1084
+ cursor: sw-resize;
1085
+ }
1086
+ @keyframes fade-in {
1087
+ from {
1088
+ opacity: 0;
1089
+ }
1090
+ to {
1091
+ opacity: 1;
1092
+ }
1093
+ }
1094
+ @keyframes window-fade-in {
1095
+ from {
1096
+ opacity: 0;
1097
+ transform: translate(-50%, -50%) scale(0.95);
1098
+ }
1099
+ to {
1100
+ opacity: 1;
1101
+ transform: translate(-50%, -50%) scale(1);
1102
+ }
1103
+ }
1104
+
1105
+ /* src/components/CompressDialog.css */
1106
+ .compress-dialog-overlay {
1107
+ position: fixed;
1108
+ inset: 0;
1109
+ background: rgba(0, 0, 0, 0.5);
1110
+ display: flex;
1111
+ align-items: center;
1112
+ justify-content: center;
1113
+ z-index: 10000;
1114
+ }
1115
+ .compress-dialog {
1116
+ background: white;
1117
+ border-radius: 12px;
1118
+ box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
1119
+ width: 420px;
1120
+ max-width: 90vw;
1121
+ max-height: 90vh;
1122
+ overflow: hidden;
1123
+ display: flex;
1124
+ flex-direction: column;
1125
+ }
1126
+ .compress-dialog-header {
1127
+ display: flex;
1128
+ align-items: center;
1129
+ justify-content: space-between;
1130
+ padding: 16px 20px;
1131
+ border-bottom: 1px solid rgb(229, 231, 233);
1132
+ }
1133
+ .compress-dialog-title {
1134
+ display: flex;
1135
+ align-items: center;
1136
+ gap: 8px;
1137
+ font-weight: 600;
1138
+ font-size: 16px;
1139
+ color: rgb(17, 24, 39);
1140
+ }
1141
+ .compress-dialog-close {
1142
+ background: none;
1143
+ border: none;
1144
+ padding: 4px;
1145
+ cursor: pointer;
1146
+ color: rgb(107, 114, 128);
1147
+ border-radius: 4px;
1148
+ display: flex;
1149
+ align-items: center;
1150
+ justify-content: center;
1151
+ }
1152
+ .compress-dialog-close:hover {
1153
+ background: rgb(243, 244, 246);
1154
+ color: rgb(55, 65, 81);
1155
+ }
1156
+ .compress-dialog-content {
1157
+ padding: 20px;
1158
+ overflow-y: auto;
1159
+ display: flex;
1160
+ flex-direction: column;
1161
+ gap: 16px;
1162
+ }
1163
+ .compress-dialog-info {
1164
+ display: flex;
1165
+ align-items: center;
1166
+ gap: 8px;
1167
+ padding: 12px;
1168
+ background: rgb(249, 250, 251);
1169
+ border-radius: 8px;
1170
+ color: rgb(55, 65, 81);
1171
+ font-size: 14px;
1172
+ }
1173
+ .compress-dialog-field {
1174
+ display: flex;
1175
+ flex-direction: column;
1176
+ gap: 6px;
1177
+ }
1178
+ .compress-dialog-field > label {
1179
+ font-size: 13px;
1180
+ font-weight: 500;
1181
+ color: rgb(55, 65, 81);
1182
+ }
1183
+ .compress-dialog-input-group {
1184
+ display: flex;
1185
+ align-items: stretch;
1186
+ }
1187
+ .compress-dialog-input-group input {
1188
+ flex: 1;
1189
+ padding: 8px 12px;
1190
+ border: 1px solid rgb(209, 213, 219);
1191
+ border-radius: 6px 0 0 6px;
1192
+ font-size: 14px;
1193
+ outline: none;
1194
+ transition: border-color 0.2s;
1195
+ }
1196
+ .compress-dialog-input-group input:focus {
1197
+ border-color: rgb(59, 130, 246);
1198
+ }
1199
+ .compress-dialog-ext {
1200
+ padding: 8px 12px;
1201
+ background: rgb(243, 244, 246);
1202
+ border: 1px solid rgb(209, 213, 219);
1203
+ border-left: none;
1204
+ border-radius: 0 6px 6px 0;
1205
+ font-size: 14px;
1206
+ color: rgb(107, 114, 128);
1207
+ }
1208
+ .compress-dialog-toggle-password {
1209
+ padding: 8px 12px;
1210
+ background: rgb(243, 244, 246);
1211
+ border: 1px solid rgb(209, 213, 219);
1212
+ border-left: none;
1213
+ border-radius: 0 6px 6px 0;
1214
+ font-size: 12px;
1215
+ color: rgb(59, 130, 246);
1216
+ cursor: pointer;
1217
+ }
1218
+ .compress-dialog-toggle-password:hover {
1219
+ background: rgb(229, 231, 235);
1220
+ }
1221
+ .compress-dialog-field select {
1222
+ padding: 8px 12px;
1223
+ border: 1px solid rgb(209, 213, 219);
1224
+ border-radius: 6px;
1225
+ font-size: 14px;
1226
+ outline: none;
1227
+ background: white;
1228
+ cursor: pointer;
1229
+ }
1230
+ .compress-dialog-field select:focus {
1231
+ border-color: rgb(59, 130, 246);
1232
+ }
1233
+ .compress-dialog-levels {
1234
+ display: flex;
1235
+ flex-direction: column;
1236
+ gap: 8px;
1237
+ }
1238
+ .compress-dialog-level {
1239
+ display: flex;
1240
+ align-items: center;
1241
+ gap: 8px;
1242
+ padding: 8px 12px;
1243
+ border: 1px solid rgb(229, 231, 233);
1244
+ border-radius: 6px;
1245
+ cursor: pointer;
1246
+ transition: all 0.2s;
1247
+ }
1248
+ .compress-dialog-level:hover {
1249
+ background: rgb(249, 250, 251);
1250
+ }
1251
+ .compress-dialog-level:has(input:checked) {
1252
+ border-color: rgb(59, 130, 246);
1253
+ background: rgb(239, 246, 255);
1254
+ }
1255
+ .compress-dialog-level input {
1256
+ margin: 0;
1257
+ }
1258
+ .compress-dialog-level-label {
1259
+ font-size: 14px;
1260
+ font-weight: 500;
1261
+ color: rgb(17, 24, 39);
1262
+ }
1263
+ .compress-dialog-level-desc {
1264
+ font-size: 12px;
1265
+ color: rgb(107, 114, 128);
1266
+ margin-left: auto;
1267
+ }
1268
+ .compress-dialog-checkbox label {
1269
+ display: flex;
1270
+ align-items: center;
1271
+ gap: 8px;
1272
+ cursor: pointer;
1273
+ font-size: 14px;
1274
+ color: rgb(55, 65, 81);
1275
+ }
1276
+ .compress-dialog-checkbox input {
1277
+ margin: 0;
1278
+ width: 16px;
1279
+ height: 16px;
1280
+ }
1281
+ .compress-dialog-preview {
1282
+ padding: 10px 12px;
1283
+ background: rgb(249, 250, 251);
1284
+ border-radius: 6px;
1285
+ font-size: 12px;
1286
+ display: flex;
1287
+ flex-direction: column;
1288
+ gap: 4px;
1289
+ }
1290
+ .compress-dialog-preview-label {
1291
+ color: rgb(107, 114, 128);
1292
+ }
1293
+ .compress-dialog-preview-path {
1294
+ color: rgb(55, 65, 81);
1295
+ word-break: break-all;
1296
+ }
1297
+ .compress-dialog-footer {
1298
+ display: flex;
1299
+ justify-content: flex-end;
1300
+ gap: 12px;
1301
+ padding: 16px 20px;
1302
+ border-top: 1px solid rgb(229, 231, 233);
1303
+ }
1304
+ .compress-dialog-btn {
1305
+ padding: 8px 20px;
1306
+ border-radius: 6px;
1307
+ font-size: 14px;
1308
+ font-weight: 500;
1309
+ cursor: pointer;
1310
+ transition: all 0.2s;
1311
+ }
1312
+ .compress-dialog-btn-cancel {
1313
+ background: white;
1314
+ border: 1px solid rgb(209, 213, 219);
1315
+ color: rgb(55, 65, 81);
1316
+ }
1317
+ .compress-dialog-btn-cancel:hover {
1318
+ background: rgb(249, 250, 251);
1319
+ }
1320
+ .compress-dialog-btn-confirm {
1321
+ background: rgb(59, 130, 246);
1322
+ border: 1px solid rgb(59, 130, 246);
1323
+ color: white;
1324
+ }
1325
+ .compress-dialog-btn-confirm:hover {
1326
+ background: rgb(37, 99, 235);
1327
+ }
1328
+ .compress-dialog-btn-confirm:disabled {
1329
+ background: rgb(156, 163, 175);
1330
+ border-color: rgb(156, 163, 175);
1331
+ cursor: not-allowed;
1332
+ }
1333
+
1334
+ /* src/components/ProgressDialog.css */
1335
+ .progress-dialog-overlay {
1336
+ position: fixed;
1337
+ inset: 0;
1338
+ background: rgba(0, 0, 0, 0.5);
1339
+ display: flex;
1340
+ align-items: center;
1341
+ justify-content: center;
1342
+ z-index: 10001;
1343
+ }
1344
+ .progress-dialog {
1345
+ background: white;
1346
+ border-radius: 12px;
1347
+ box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
1348
+ width: 380px;
1349
+ max-width: 90vw;
1350
+ overflow: hidden;
1351
+ display: flex;
1352
+ flex-direction: column;
1353
+ }
1354
+ .progress-dialog-header {
1355
+ display: flex;
1356
+ align-items: center;
1357
+ justify-content: space-between;
1358
+ padding: 16px 20px;
1359
+ border-bottom: 1px solid rgb(229, 231, 233);
1360
+ }
1361
+ .progress-dialog-title {
1362
+ display: flex;
1363
+ align-items: center;
1364
+ gap: 10px;
1365
+ font-weight: 600;
1366
+ font-size: 16px;
1367
+ color: rgb(17, 24, 39);
1368
+ }
1369
+ .progress-dialog-close {
1370
+ background: none;
1371
+ border: none;
1372
+ padding: 4px;
1373
+ cursor: pointer;
1374
+ color: rgb(107, 114, 128);
1375
+ border-radius: 4px;
1376
+ display: flex;
1377
+ align-items: center;
1378
+ justify-content: center;
1379
+ }
1380
+ .progress-dialog-close:hover {
1381
+ background: rgb(243, 244, 246);
1382
+ color: rgb(55, 65, 81);
1383
+ }
1384
+ .progress-dialog-content {
1385
+ padding: 24px 20px;
1386
+ display: flex;
1387
+ flex-direction: column;
1388
+ gap: 16px;
1389
+ }
1390
+ .progress-dialog-status {
1391
+ font-size: 14px;
1392
+ color: rgb(55, 65, 81);
1393
+ text-align: center;
1394
+ }
1395
+ .progress-dialog-bar-container {
1396
+ display: flex;
1397
+ align-items: center;
1398
+ gap: 12px;
1399
+ }
1400
+ .progress-dialog-bar {
1401
+ flex: 1;
1402
+ height: 8px;
1403
+ background: rgb(229, 231, 233);
1404
+ border-radius: 4px;
1405
+ overflow: hidden;
1406
+ }
1407
+ .progress-dialog-bar-fill {
1408
+ height: 100%;
1409
+ background: rgb(59, 130, 246);
1410
+ border-radius: 4px;
1411
+ transition: width 0.3s ease;
1412
+ }
1413
+ .progress-dialog-percent {
1414
+ font-size: 13px;
1415
+ font-weight: 500;
1416
+ color: rgb(55, 65, 81);
1417
+ min-width: 40px;
1418
+ text-align: right;
1419
+ }
1420
+ .progress-dialog-current-file {
1421
+ font-size: 12px;
1422
+ color: rgb(107, 114, 128);
1423
+ text-align: center;
1424
+ white-space: nowrap;
1425
+ overflow: hidden;
1426
+ text-overflow: ellipsis;
1427
+ }
1428
+ .progress-dialog-count {
1429
+ font-size: 12px;
1430
+ color: rgb(107, 114, 128);
1431
+ text-align: center;
1432
+ }
1433
+ .progress-dialog-error {
1434
+ padding: 12px;
1435
+ background: rgb(254, 242, 242);
1436
+ border: 1px solid rgb(254, 202, 202);
1437
+ border-radius: 6px;
1438
+ color: rgb(185, 28, 28);
1439
+ font-size: 13px;
1440
+ }
1441
+ .progress-dialog-output {
1442
+ padding: 12px;
1443
+ background: rgb(240, 253, 244);
1444
+ border: 1px solid rgb(187, 247, 208);
1445
+ border-radius: 6px;
1446
+ font-size: 12px;
1447
+ display: flex;
1448
+ flex-direction: column;
1449
+ gap: 4px;
1450
+ }
1451
+ .progress-dialog-output-label {
1452
+ color: rgb(22, 101, 52);
1453
+ font-weight: 500;
1454
+ }
1455
+ .progress-dialog-output-path {
1456
+ color: rgb(21, 128, 61);
1457
+ word-break: break-all;
1458
+ }
1459
+ .progress-dialog-footer {
1460
+ display: flex;
1461
+ justify-content: flex-end;
1462
+ gap: 12px;
1463
+ padding: 16px 20px;
1464
+ border-top: 1px solid rgb(229, 231, 233);
1465
+ }
1466
+ .progress-dialog-btn {
1467
+ padding: 8px 16px;
1468
+ border-radius: 6px;
1469
+ font-size: 14px;
1470
+ font-weight: 500;
1471
+ cursor: pointer;
1472
+ transition: all 0.2s;
1473
+ display: flex;
1474
+ align-items: center;
1475
+ gap: 6px;
1476
+ }
1477
+ .progress-dialog-btn-cancel {
1478
+ background: white;
1479
+ border: 1px solid rgb(209, 213, 219);
1480
+ color: rgb(55, 65, 81);
1481
+ }
1482
+ .progress-dialog-btn-cancel:hover {
1483
+ background: rgb(249, 250, 251);
1484
+ }
1485
+ .progress-dialog-btn-folder {
1486
+ background: rgb(240, 253, 244);
1487
+ border: 1px solid rgb(187, 247, 208);
1488
+ color: rgb(22, 101, 52);
1489
+ }
1490
+ .progress-dialog-btn-folder:hover {
1491
+ background: rgb(220, 252, 231);
1492
+ }
1493
+ .progress-dialog-btn-close {
1494
+ background: rgb(59, 130, 246);
1495
+ border: 1px solid rgb(59, 130, 246);
1496
+ color: white;
1497
+ }
1498
+ .progress-dialog-btn-close:hover {
1499
+ background: rgb(37, 99, 235);
1500
+ }
1501
+ .progress-dialog-icon-spin {
1502
+ animation: spin 1s linear infinite;
1503
+ color: rgb(59, 130, 246);
1504
+ }
1505
+ @keyframes spin {
1506
+ from {
1507
+ transform: rotate(0deg);
1508
+ }
1509
+ to {
1510
+ transform: rotate(360deg);
1511
+ }
1512
+ }
1513
+ .progress-dialog-icon-success {
1514
+ color: rgb(34, 197, 94);
1515
+ }
1516
+ .progress-dialog-icon-error {
1517
+ color: rgb(239, 68, 68);
1518
+ }
1519
+
1520
+ /* src/components/FileInfoDialog.css */
1521
+ .file-info-dialog-overlay {
1522
+ position: fixed;
1523
+ inset: 0;
1524
+ background: rgba(0, 0, 0, 0.4);
1525
+ display: flex;
1526
+ align-items: center;
1527
+ justify-content: center;
1528
+ z-index: 10000;
1529
+ animation: file-info-fadeIn 0.15s ease-out;
1530
+ }
1531
+ @keyframes file-info-fadeIn {
1532
+ from {
1533
+ opacity: 0;
1534
+ }
1535
+ to {
1536
+ opacity: 1;
1537
+ }
1538
+ }
1539
+ .file-info-dialog {
1540
+ background: #ffffff;
1541
+ border: 1px solid #e0e0e0;
1542
+ border-radius: 12px;
1543
+ width: 420px;
1544
+ max-width: 90vw;
1545
+ max-height: 80vh;
1546
+ display: flex;
1547
+ flex-direction: column;
1548
+ box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15), 0 2px 8px rgba(0, 0, 0, 0.1);
1549
+ animation: file-info-slideIn 0.2s ease-out;
1550
+ }
1551
+ @keyframes file-info-slideIn {
1552
+ from {
1553
+ opacity: 0;
1554
+ transform: scale(0.95) translateY(-10px);
1555
+ }
1556
+ to {
1557
+ opacity: 1;
1558
+ transform: scale(1) translateY(0);
1559
+ }
1560
+ }
1561
+ @media (prefers-color-scheme: dark) {
1562
+ .file-info-dialog {
1563
+ background: #2d2d2d;
1564
+ border-color: #404040;
1565
+ box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
1566
+ }
1567
+ }
1568
+ .file-info-dialog-header {
1569
+ display: flex;
1570
+ align-items: center;
1571
+ justify-content: space-between;
1572
+ padding: 16px 20px;
1573
+ border-bottom: 1px solid #e0e0e0;
1574
+ gap: 12px;
1575
+ }
1576
+ @media (prefers-color-scheme: dark) {
1577
+ .file-info-dialog-header {
1578
+ border-bottom-color: #404040;
1579
+ }
1580
+ }
1581
+ .file-info-dialog-title {
1582
+ display: flex;
1583
+ align-items: center;
1584
+ gap: 10px;
1585
+ min-width: 0;
1586
+ flex: 1;
1587
+ }
1588
+ .file-info-dialog-name {
1589
+ font-size: 16px;
1590
+ font-weight: 600;
1591
+ color: #1a1a1a;
1592
+ white-space: nowrap;
1593
+ overflow: hidden;
1594
+ text-overflow: ellipsis;
1595
+ }
1596
+ @media (prefers-color-scheme: dark) {
1597
+ .file-info-dialog-name {
1598
+ color: #e0e0e0;
1599
+ }
1600
+ }
1601
+ .file-info-dialog-close {
1602
+ display: flex;
1603
+ align-items: center;
1604
+ justify-content: center;
1605
+ width: 28px;
1606
+ height: 28px;
1607
+ border: none;
1608
+ background: transparent;
1609
+ color: #666;
1610
+ border-radius: 6px;
1611
+ cursor: pointer;
1612
+ flex-shrink: 0;
1613
+ transition: all 0.15s ease;
1614
+ }
1615
+ .file-info-dialog-close:hover {
1616
+ background: #f0f0f0;
1617
+ color: #333;
1618
+ }
1619
+ @media (prefers-color-scheme: dark) {
1620
+ .file-info-dialog-close {
1621
+ color: #888;
1622
+ }
1623
+ .file-info-dialog-close:hover {
1624
+ background: #404040;
1625
+ color: #e0e0e0;
1626
+ }
1627
+ }
1628
+ .file-info-dialog-content {
1629
+ padding: 16px 20px;
1630
+ display: flex;
1631
+ flex-direction: column;
1632
+ gap: 12px;
1633
+ overflow-y: auto;
1634
+ }
1635
+ .file-info-row {
1636
+ display: flex;
1637
+ align-items: flex-start;
1638
+ gap: 16px;
1639
+ }
1640
+ .file-info-label {
1641
+ display: flex;
1642
+ align-items: center;
1643
+ gap: 6px;
1644
+ width: 90px;
1645
+ flex-shrink: 0;
1646
+ color: #666;
1647
+ font-size: 13px;
1648
+ }
1649
+ @media (prefers-color-scheme: dark) {
1650
+ .file-info-label {
1651
+ color: #888;
1652
+ }
1653
+ }
1654
+ .file-info-label svg {
1655
+ flex-shrink: 0;
1656
+ }
1657
+ .file-info-value {
1658
+ flex: 1;
1659
+ color: #1a1a1a;
1660
+ font-size: 13px;
1661
+ word-break: break-all;
1662
+ line-height: 1.4;
1663
+ }
1664
+ @media (prefers-color-scheme: dark) {
1665
+ .file-info-value {
1666
+ color: #e0e0e0;
1667
+ }
1668
+ }
1669
+ .file-info-value--path {
1670
+ font-family:
1671
+ "SF Mono",
1672
+ Monaco,
1673
+ "Cascadia Code",
1674
+ "Roboto Mono",
1675
+ monospace;
1676
+ font-size: 12px;
1677
+ background: #f5f5f5;
1678
+ padding: 4px 8px;
1679
+ border-radius: 4px;
1680
+ user-select: all;
1681
+ }
1682
+ @media (prefers-color-scheme: dark) {
1683
+ .file-info-value--path {
1684
+ background: #383838;
1685
+ }
1686
+ }
1687
+ .file-info-icon {
1688
+ width: 32px;
1689
+ height: 32px;
1690
+ flex-shrink: 0;
1691
+ }
1692
+ .file-info-icon--folder {
1693
+ color: #dcb67a;
1694
+ }
1695
+ .file-info-icon--image {
1696
+ color: #7ec699;
1697
+ }
1698
+ .file-info-icon--video {
1699
+ color: #c678dd;
1700
+ }
1701
+ .file-info-icon--music {
1702
+ color: #e06c75;
1703
+ }
1704
+ .file-info-icon--document {
1705
+ color: #61afef;
1706
+ }
1707
+ .file-info-icon--code {
1708
+ color: #98c379;
1709
+ }
1710
+ .file-info-icon--archive {
1711
+ color: #d19a66;
1712
+ }
1713
+ .file-info-icon--file {
1714
+ color: #abb2bf;
1715
+ }
1716
+ .file-info-dialog-footer {
1717
+ display: flex;
1718
+ justify-content: flex-end;
1719
+ padding: 12px 20px;
1720
+ border-top: 1px solid #e0e0e0;
1721
+ }
1722
+ @media (prefers-color-scheme: dark) {
1723
+ .file-info-dialog-footer {
1724
+ border-top-color: #404040;
1725
+ }
1726
+ }
1727
+ .file-info-dialog-btn {
1728
+ padding: 6px 16px;
1729
+ border: none;
1730
+ border-radius: 6px;
1731
+ font-size: 13px;
1732
+ cursor: pointer;
1733
+ transition: all 0.15s ease;
1734
+ background: #007aff;
1735
+ color: white;
1736
+ }
1737
+ .file-info-dialog-btn:hover {
1738
+ background: #0066d6;
1739
+ }
1740
+ /*# sourceMappingURL=index.css.map */