@widgetic/file-browser 0.5.18 → 0.5.19

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 (30) hide show
  1. package/dist/components/core/FileBrowser.svelte +149 -1331
  2. package/dist/components/core/FileUploader.svelte +4 -4
  3. package/dist/components/core/Header.svelte +3 -3
  4. package/dist/components/core/RecentFiles.svelte +7 -43
  5. package/dist/components/items/FileItem.svelte +10 -43
  6. package/dist/components/items/FileItem.svelte.d.ts +1 -0
  7. package/dist/components/items/FolderItem.svelte +4 -12
  8. package/dist/components/items/FolderItem.svelte.d.ts +1 -0
  9. package/dist/components/modals/MoveDialog.svelte +17 -17
  10. package/dist/components/modals/SearchModal.svelte +30 -41
  11. package/dist/components/modals/SelectedFilesModal.svelte +2 -2
  12. package/dist/components/previews/AudioPlayer.svelte +1 -1
  13. package/dist/components/previews/FilePreview.svelte +7 -7
  14. package/dist/components/previews/ImagePreview.svelte +13 -13
  15. package/dist/components/previews/VideoPlayer.svelte +1 -1
  16. package/dist/components/ui/DragSelect.svelte +73 -52
  17. package/dist/components/ui/DropdownMenu.svelte +1 -1
  18. package/dist/components/ui/VirtualList.svelte +20 -10
  19. package/dist/data/demoContent.json +1171 -0
  20. package/dist/stores/fileStore.js +1 -1
  21. package/dist/stores/persistentSelectStore.d.ts +1 -0
  22. package/dist/stores/persistentSelectStore.js +23 -0
  23. package/dist/stores/viewportStore.d.ts +5 -0
  24. package/dist/stores/viewportStore.js +19 -0
  25. package/dist/utils/fileOperations.js +17 -14
  26. package/dist/utils/resolveFileUrl.js +6 -2
  27. package/dist/utils/userUploadsStorage.d.ts +5 -0
  28. package/dist/utils/userUploadsStorage.js +15 -6
  29. package/dist/utils/widgeticUpload.d.ts +1 -0
  30. package/package.json +8 -8
@@ -51,6 +51,7 @@
51
51
  import {
52
52
  loadUserUploads,
53
53
  saveUserUpload,
54
+ saveUserUploadsBatch,
54
55
  saveLibraryTreeChildren,
55
56
  createUserUploadsFileSystemRoot,
56
57
  } from '../../utils/userUploadsStorage';
@@ -58,6 +59,7 @@
58
59
  import { get } from 'svelte/store';
59
60
  import { resolveFileItemUrl } from '../../utils/resolveFileUrl';
60
61
  import { dev } from '$app/environment';
62
+ import demoContentData from '../../data/demoContent.json';
61
63
  // import { showToast } from '../../utils/toastUtils';
62
64
  import { showToast } from '@widgetic/design-system/components';
63
65
 
@@ -213,1177 +215,7 @@
213
215
  // demo content settings
214
216
  let demoContentKey = 'file-browser-demo-data';
215
217
  const GRID_ITEM_HEIGHT = 96;
216
- let demoContent = {
217
- "basePath": "/files/",
218
- "root": {
219
- "id": "root_xyz789",
220
- "name": "Root",
221
- "type": "folder",
222
- "children": [
223
- {
224
- "id": "folder_abc123",
225
- "name": "Docs",
226
- "type": "folder",
227
- "children": []
228
- },
229
- {
230
- "id": "folder_pqr678x",
231
- "name": "Design Process",
232
- "type": "folder",
233
- "children": [
234
- {
235
- "id": "file_mno8d25",
236
- "name": "image 40.jpg",
237
- "type": "file",
238
- "size": 2800000,
239
- "width": 1024,
240
- "height": 904,
241
- "modified": "2023-09-22T11:00:00Z",
242
- "url": "image/image 40.jpg",
243
- "thumbnail": "thumbnail/image 40.jpg",
244
- "hash": "A1 08 12 16 82 40 57 88 7C 77 87 78 78 78 87 87 78 87 08 81 87 00 98"
245
- }
246
- ]
247
- },
248
- {
249
- "id": "folder_abs123x",
250
- "name": "Research",
251
- "type": "folder",
252
- "children": [
253
- {
254
- "id": "file_mno345x",
255
- "name": "astronaut.svg",
256
- "type": "file",
257
- "size": 1500000,
258
- "modified": "2024-09-28T11:00:00Z",
259
- "url": "svg/astronaut.svg",
260
- "thumbnail": "svg/astronaut.svg"
261
- },
262
- {
263
- "id": "file_pqr678y",
264
- "name": "cook.svg",
265
- "type": "file",
266
- "size": 1500000,
267
- "modified": "2024-03-27T10:01:00Z",
268
- "url": "svg/cook.svg",
269
- "thumbnail": "svg/cook.svg"
270
- },
271
- {
272
- "id": "file_stud964",
273
- "name": "image 28.jpg",
274
- "type": "file",
275
- "size": 3150000,
276
- "width": 1024,
277
- "height": 683,
278
- "modified": "2024-09-27T11:45:00Z",
279
- "url": "image/image 28.jpg",
280
- "thumbnail": "thumbnail/image 28.jpg",
281
- "hash": "55 38 06 15 86 72 96 58 9F 56 A5 49 B7 C6 46 94 FA 9B BC AF C9"
282
- }
283
- ]
284
- },
285
- {
286
- "id": "file_def456",
287
- "name": "Recipe.mp3",
288
- "type": "file",
289
- "size": 5000000,
290
- "modified": "2024-09-28T10:00:00Z",
291
- "url": "audio/audio-file.mp3"
292
- },
293
- {
294
- "id": "file_ghi789",
295
- "name": "Doc.txt",
296
- "type": "file",
297
- "size": 5000000,
298
- "modified": "2024-09-28T09:00:00Z",
299
- "url": "document/specs.txt"
300
- },
301
- {
302
- "id": "file_pdf_world_before_calculus",
303
- "name": "The World Before Calculus.pdf",
304
- "type": "file",
305
- "size": 5000000,
306
- "modified": "2025-02-21T09:00:00Z",
307
- "url": "document/The World Before Calculus.pdf"
308
- },
309
- {
310
- "id": "file_pdf_rfp_nec_website_development",
311
- "name": "RFP-NEC_Website-Development_2021-August.pdf",
312
- "type": "file",
313
- "size": 5000000,
314
- "modified": "2025-03-21T09:00:00Z",
315
- "url": "document/RFP-NEC_Website-Development_2021-August.pdf"
316
- },
317
- {
318
- "id": "file_pdf_helios_design_website_project_brief",
319
- "name": "HeliosDesign Website Project Brief Sample.pdf",
320
- "type": "file",
321
- "size": 5000000,
322
- "modified": "2025-03-21T09:00:00Z",
323
- "url": "document/HeliosDesign Website Project Brief Sample.pdf"
324
- },
325
- {
326
- "id": "file_pqr8544",
327
- "name": "celebration.mp4",
328
- "type": "file",
329
- "size": 150000000,
330
- "modified": "2024-09-28T08:00:00Z",
331
- "url": "video/video-file.mp4",
332
- "thumbnail": "video/video-file.png",
333
- "hash": "AE F7 09 06 80 A6 F9 6B 8B 88 76 AE 77 72 76 98 76 99 AE 8D D0 A9 08"
334
- },
335
- {
336
- "id": "folder_jkl012",
337
- "name": "Onboarding Content",
338
- "type": "folder",
339
- "children": [
340
- {
341
- "id": "file_mno345",
342
- "name": "astronaut.svg",
343
- "type": "file",
344
- "size": 1500000,
345
- "modified": "2024-03-27T10:00:00Z",
346
- "url": "svg/astronaut.svg",
347
- "thumbnail": "svg/astronaut.svg"
348
- },
349
- {
350
- "id": "file_pqr678",
351
- "name": "cook.svg",
352
- "type": "file",
353
- "size": 1500000,
354
- "modified": "2024-03-27T10:01:00Z",
355
- "url": "svg/cook.svg",
356
- "thumbnail": "svg/cook.svg"
357
- },
358
- {
359
- "id": "file_stu910",
360
- "name": "dj.svg",
361
- "type": "file",
362
- "size": 1500000,
363
- "modified": "2024-03-27T10:02:00Z",
364
- "url": "svg/dj.svg",
365
- "thumbnail": "svg/dj.svg"
366
- },
367
- {
368
- "id": "file_uvw123",
369
- "name": "doctor.svg",
370
- "type": "file",
371
- "size": 1500000,
372
- "modified": "2024-03-27T10:03:00Z",
373
- "url": "svg/doctor.svg",
374
- "thumbnail": "svg/doctor.svg"
375
- },
376
- {
377
- "id": "file_xyz456",
378
- "name": "farmer.svg",
379
- "type": "file",
380
- "size": 1500000,
381
- "modified": "2024-03-27T10:04:00Z",
382
- "url": "svg/farmer.svg",
383
- "thumbnail": "svg/farmer.svg"
384
- },
385
- {
386
- "id": "file_abc789",
387
- "name": "fire fighter.svg",
388
- "type": "file",
389
- "size": 1500000,
390
- "modified": "2024-03-27T10:05:00Z",
391
- "url": "svg/fire fighter.svg",
392
- "thumbnail": "svg/fire fighter.svg"
393
- },
394
- {
395
- "id": "file_def123",
396
- "name": "plumber.svg",
397
- "type": "file",
398
- "size": 1500000,
399
- "modified": "2024-03-27T10:06:00Z",
400
- "url": "svg/plumber.svg",
401
- "thumbnail": "svg/plumber.svg"
402
- },
403
- {
404
- "id": "file_ghi456",
405
- "name": "santa.svg",
406
- "type": "file",
407
- "size": 1500000,
408
- "modified": "2024-03-27T10:07:00Z",
409
- "url": "svg/santa.svg",
410
- "thumbnail": "svg/santa.svg"
411
- },
412
- {
413
- "id": "file_ghid789",
414
- "name": "scientist.svg",
415
- "type": "file",
416
- "size": 1500000,
417
- "modified": "2024-03-27T10:08:00Z",
418
- "url": "svg/scientist.svg",
419
- "thumbnail": "svg/scientist.svg"
420
- },
421
- {
422
- "id": "file_jkl123",
423
- "name": "student.svg",
424
- "type": "file",
425
- "size": 1500000,
426
- "modified": "2024-03-27T10:09:00Z",
427
- "url": "svg/student.svg",
428
- "thumbnail": "svg/student.svg"
429
- },
430
- {
431
- "id": "file_jkl823",
432
- "name": "image 39.jpg",
433
- "type": "file",
434
- "size": 2500000,
435
- "width": 1024,
436
- "height": 1536,
437
- "modified": "2023-09-20T14:30:00Z",
438
- "url": "image/image 39.jpg",
439
- "thumbnail": "thumbnail/image 39.jpg",
440
- "hash": "6C 08 0A 15 02 96 97 72 77 F8 65 67 87 96 B7 97 79 7A 90 B7 07"
441
- },
442
- {
443
- "id": "file_jkl824",
444
- "name": "image 38.jpg",
445
- "type": "file",
446
- "size": 3000000,
447
- "width": 1024,
448
- "height": 1536,
449
- "modified": "2023-09-21T09:15:00Z",
450
- "url": "image/image 38.jpg",
451
- "thumbnail": "thumbnail/image 38.jpg",
452
- "hash": "A9 18 0A 15 02 07 66 AB 97 67 88 88 77 76 7A A7 9F 5A F5 9A 76"
453
- },
454
- {
455
- "id": "folder_mno345",
456
- "name": "Assets",
457
- "type": "folder",
458
- "children": [
459
- {
460
- "id": "folder_test1",
461
- "name": "Design Resources",
462
- "type": "folder",
463
- "children": [
464
- {
465
- "id": "folder_test2",
466
- "name": "Project Files",
467
- "type": "folder",
468
- "children": [
469
- {
470
- "id": "folder_test3",
471
- "name": "Work in Progress",
472
- "type": "folder",
473
- "children": [
474
- {
475
- "id": "folder_test4",
476
- "name": "Latest Updates",
477
- "type": "folder",
478
- "children": [
479
- {
480
- "id": "file_test4_1",
481
- "name": "astronaut.svg",
482
- "type": "file",
483
- "size": 1500000,
484
- "modified": "2024-03-27T10:00:00Z",
485
- "url": "svg/astronaut.svg",
486
- "thumbnail": "svg/astronaut.svg"
487
- },
488
- {
489
- "id": "file_test4_2",
490
- "name": "cook.svg",
491
- "type": "file",
492
- "size": 1500000,
493
- "modified": "2024-03-27T10:01:00Z",
494
- "url": "svg/cook.svg",
495
- "thumbnail": "svg/cook.svg"
496
- }
497
- ]
498
- }
499
- ]
500
- }
501
- ]
502
- }
503
- ]
504
- },
505
- {
506
- "id": "file_mno825",
507
- "name": "image 40.jpg",
508
- "type": "file",
509
- "size": 2800000,
510
- "width": 1024,
511
- "height": 904,
512
- "modified": "2023-09-22T11:00:00Z",
513
- "url": "image/image 40.jpg",
514
- "thumbnail": "thumbnail/image 40.jpg",
515
- "hash": "A1 08 12 16 82 40 57 88 7C 77 87 78 78 78 87 87 78 87 08 81 87 00 98"
516
- },
517
- {
518
- "id": "file_mno826",
519
- "name": "CooperHewitt-Bold.otf",
520
- "type": "file",
521
- "size": 150000,
522
- "modified": "2024-09-28T12:00:00Z",
523
- "url": "font/CooperHewitt/CooperHewitt-Bold.otf",
524
- "thumbnail": "aA",
525
- "previewText": "The quick brown fox jumps over the lazy dog"
526
- },
527
- {
528
- "id": "file_mno827",
529
- "name": "CooperHewitt-BoldItalic.otf",
530
- "type": "file",
531
- "size": 150000,
532
- "modified": "2024-03-27T10:01:00Z",
533
- "url": "font/CooperHewitt/CooperHewitt-BoldItalic.otf",
534
- "thumbnail": "aA",
535
- "previewText": "The quick brown fox jumps over the lazy dog"
536
- },
537
- {
538
- "id": "file_mno828",
539
- "name": "CooperHewitt-Book.otf",
540
- "type": "file",
541
- "size": 150000,
542
- "modified": "2024-03-27T10:02:00Z",
543
- "url": "font/CooperHewitt/CooperHewitt-Book.otf",
544
- "thumbnail": "aA",
545
- "previewText": "The quick brown fox jumps over the lazy dog"
546
- },
547
- {
548
- "id": "file_mno829",
549
- "name": "CooperHewitt-BookItalic.otf",
550
- "type": "file",
551
- "size": 150000,
552
- "modified": "2024-03-27T10:03:00Z",
553
- "url": "font/CooperHewitt/CooperHewitt-BookItalic.otf",
554
- "thumbnail": "aA",
555
- "previewText": "The quick brown fox jumps over the lazy dog"
556
- },
557
- {
558
- "id": "file_mno830",
559
- "name": "CooperHewitt-Heavy.otf",
560
- "type": "file",
561
- "size": 150000,
562
- "modified": "2024-03-27T10:04:00Z",
563
- "url": "font/CooperHewitt/CooperHewitt-Heavy.otf",
564
- "thumbnail": "aA",
565
- "previewText": "The quick brown fox jumps over the lazy dog"
566
- },
567
- {
568
- "id": "file_mno831",
569
- "name": "CooperHewitt-HeavyItalic.otf",
570
- "type": "file",
571
- "size": 150000,
572
- "modified": "2024-03-27T10:05:00Z",
573
- "url": "font/CooperHewitt/CooperHewitt-HeavyItalic.otf",
574
- "thumbnail": "aA",
575
- "previewText": "The quick brown fox jumps over the lazy dog"
576
- },
577
- {
578
- "id": "file_mno832",
579
- "name": "CooperHewitt-Light.otf",
580
- "type": "file",
581
- "size": 150000,
582
- "modified": "2024-03-27T10:06:00Z",
583
- "url": "font/CooperHewitt/CooperHewitt-Light.otf",
584
- "thumbnail": "aA",
585
- "previewText": "The quick brown fox jumps over the lazy dog"
586
- },
587
- {
588
- "id": "file_mno833",
589
- "name": "CooperHewitt-LightItalic.otf",
590
- "type": "file",
591
- "size": 150000,
592
- "modified": "2024-03-27T10:07:00Z",
593
- "url": "font/CooperHewitt/CooperHewitt-LightItalic.otf",
594
- "thumbnail": "aA",
595
- "previewText": "The quick brown fox jumps over the lazy dog"
596
- },
597
- {
598
- "id": "file_mno834",
599
- "name": "CooperHewitt-Medium.otf",
600
- "type": "file",
601
- "size": 150000,
602
- "modified": "2024-03-27T10:08:00Z",
603
- "url": "font/CooperHewitt/CooperHewitt-Medium.otf",
604
- "thumbnail": "aA",
605
- "previewText": "The quick brown fox jumps over the lazy dog"
606
- },
607
- {
608
- "id": "file_mno835",
609
- "name": "CooperHewitt-MediumItalic.otf",
610
- "type": "file",
611
- "size": 150000,
612
- "modified": "2024-03-27T10:09:00Z",
613
- "url": "font/CooperHewitt/CooperHewitt-MediumItalic.otf",
614
- "thumbnail": "aA",
615
- "previewText": "The quick brown fox jumps over the lazy dog"
616
- },
617
- {
618
- "id": "file_mno836",
619
- "name": "CooperHewitt-Semibold.otf",
620
- "type": "file",
621
- "size": 150000,
622
- "modified": "2024-03-27T10:10:00Z",
623
- "url": "font/CooperHewitt/CooperHewitt-Semibold.otf",
624
- "thumbnail": "aA",
625
- "previewText": "The quick brown fox jumps over the lazy dog"
626
- },
627
- {
628
- "id": "file_mno837",
629
- "name": "CooperHewitt-SemiboldItalic.otf",
630
- "type": "file",
631
- "size": 150000,
632
- "modified": "2024-03-27T10:11:00Z",
633
- "url": "font/CooperHewitt/CooperHewitt-SemiboldItalic.otf",
634
- "thumbnail": "aA",
635
- "previewText": "The quick brown fox jumps over the lazy dog"
636
- },
637
- {
638
- "id": "file_mno838",
639
- "name": "CooperHewitt-Thin.otf",
640
- "type": "file",
641
- "size": 150000,
642
- "modified": "2024-03-27T10:12:00Z",
643
- "url": "font/CooperHewitt/CooperHewitt-Thin.otf",
644
- "thumbnail": "aA",
645
- "previewText": "The quick brown fox jumps over the lazy dog"
646
- },
647
- {
648
- "id": "file_mno839",
649
- "name": "CooperHewitt-ThinItalic.otf",
650
- "type": "file",
651
- "size": 150000,
652
- "modified": "2024-03-27T10:13:00Z",
653
- "url": "font/CooperHewitt/CooperHewitt-ThinItalic.otf",
654
- "thumbnail": "aA",
655
- "previewText": "The quick brown fox jumps over the lazy dog"
656
- },
657
- {
658
- "id": "file_mno840",
659
- "name": "Kimpo-Bold.otf",
660
- "type": "file",
661
- "size": 150000,
662
- "modified": "2024-03-27T10:14:00Z",
663
- "url": "font/Kimpo/Kimpo-Bold.otf",
664
- "thumbnail": "aA",
665
- "previewText": "The quick brown fox jumps over the lazy dog"
666
- },
667
- {
668
- "id": "file_mno841",
669
- "name": "Kimpo-Regular.otf",
670
- "type": "file",
671
- "size": 150000,
672
- "modified": "2024-03-27T10:15:00Z",
673
- "url": "font/Kimpo/Kimpo-Regular.otf",
674
- "thumbnail": "aA",
675
- "previewText": "The quick brown fox jumps over the lazy dog"
676
- }
677
- ]
678
- }
679
- ]
680
- },
681
- {
682
- "id": "file_mno842",
683
- "name": "image 41.jpg",
684
- "type": "file",
685
- "size": 3200000,
686
- "width": 1024,
687
- "height": 1536,
688
- "modified": "2024-09-23T16:45:00Z",
689
- "url": "image/image 41.jpg",
690
- "thumbnail": "thumbnail/image 41.jpg",
691
- "hash": "93 18 0A 15 02 5F 87 AE 78 38 86 58 65 62 69 87 08 59 66 70 64"
692
- },
693
- {
694
- "id": "file_pqr844",
695
- "name": "celebration.mp4",
696
- "type": "file",
697
- "size": 150000000,
698
- "modified": "2023-09-24T16:30:00Z",
699
- "url": "video/video-file.mp4",
700
- "thumbnail": "video/video-file.png",
701
- "hash": "AE F7 09 06 80 A6 F9 6B 8B 88 76 AE 77 72 76 98 76 99 AE 8D D0 A9 08"
702
- },
703
- {
704
- "id": "folder_stu910",
705
- "name": "Photo Collection",
706
- "type": "folder",
707
- "children": [
708
- {
709
- "id": "file_stu911",
710
- "name": "image 1.jpg",
711
- "type": "file",
712
- "size": 2100000,
713
- "width": 731,
714
- "height": 1024,
715
- "modified": "2023-10-01T10:30:00Z",
716
- "url": "image/image 1.jpg",
717
- "thumbnail": "thumbnail/image 1.jpg",
718
- "hash": "21 F8 0D 1D 04 76 78 7F 77 98 77 97 89 87 68 77 99 85 A0 48 08"
719
- },
720
- {
721
- "id": "file_stu912",
722
- "name": "image 2.jpg",
723
- "type": "file",
724
- "size": 2300000,
725
- "width": 683,
726
- "height": 1024,
727
- "modified": "2023-10-01T11:45:00Z",
728
- "url": "image/image 2.jpg",
729
- "thumbnail": "thumbnail/image 2.jpg",
730
- "hash": "5E 29 02 0D 00 B6 C8 8C 88 F7 39 97 67 89 77 37 69 80 95 05 38"
731
- },
732
- {
733
- "id": "file_stu913",
734
- "name": "image 3.jpg",
735
- "type": "file",
736
- "size": 2500000,
737
- "width": 682,
738
- "height": 1024,
739
- "modified": "2023-10-01T13:15:00Z",
740
- "url": "image/image 3.jpg",
741
- "thumbnail": "thumbnail/image 3.jpg",
742
- "hash": "CA F7 05 0D 02 23 69 88 67 09 88 69 88 89 98 68 8F 97 AC F9 85"
743
- },
744
- {
745
- "id": "file_stu914",
746
- "name": "image 4.jpg",
747
- "type": "file",
748
- "size": 2200000,
749
- "width": 683,
750
- "height": 1024,
751
- "modified": "2023-10-02T09:30:00Z",
752
- "url": "image/image 4.jpg",
753
- "thumbnail": "thumbnail/image 4.jpg",
754
- "hash": "74 08 06 1D 02 A4 88 9F 76 67 87 67 77 99 78 87 49 60 A8 06 B6"
755
- },
756
- {
757
- "id": "file_stu915",
758
- "name": "image 5.jpg",
759
- "type": "file",
760
- "size": 2400000,
761
- "width": 716,
762
- "height": 1024,
763
- "modified": "2023-10-02T10:45:00Z",
764
- "url": "image/image 5.jpg",
765
- "thumbnail": "thumbnail/image 5.jpg",
766
- "hash": "AF 28 06 15 06 D6 59 7E 66 98 67 08 98 7B 68 87 38 80 77 03 68"
767
- },
768
- {
769
- "id": "file_stu916",
770
- "name": "image 6.jpg",
771
- "type": "file",
772
- "size": 2600000,
773
- "width": 819,
774
- "height": 1024,
775
- "modified": "2023-10-02T14:00:00Z",
776
- "url": "image/image 6.jpg",
777
- "thumbnail": "thumbnail/image 6.jpg",
778
- "hash": "5E 29 06 0E 04 48 76 C6 64 96 05 59 AA A5 79 85 A6 B8 06 22 56 05 63"
779
- },
780
- {
781
- "id": "file_stu917",
782
- "name": "image 7.jpg",
783
- "type": "file",
784
- "size": 2350000,
785
- "width": 819,
786
- "height": 1024,
787
- "modified": "2023-10-03T11:30:00Z",
788
- "url": "image/image 7.jpg",
789
- "thumbnail": "thumbnail/image 7.jpg",
790
- "hash": "23 29 0A 0E 02 57 BB 08 8A 77 97 8A 55 54 98 76 88 89 9C 70 A5 09 48"
791
- },
792
- {
793
- "id": "file_stu918",
794
- "name": "image 8.jpg",
795
- "type": "file",
796
- "size": 2450000,
797
- "width": 1024,
798
- "height": 1010,
799
- "modified": "2023-10-03T13:45:00Z",
800
- "url": "image/image 8.jpg",
801
- "thumbnail": "thumbnail/image 8.jpg",
802
- "hash": "95 E7 01 0F 80 68 54 7A 0D 77 78 4E B3 79 97 19 B8 86 5D F7 84 38 7F 03"
803
- },
804
- {
805
- "id": "file_stu919",
806
- "name": "image 9.jpg",
807
- "type": "file",
808
- "size": 2550000,
809
- "width": 768,
810
- "height": 1024,
811
- "modified": "2023-10-03T15:15:00Z",
812
- "url": "image/image 9.jpg",
813
- "thumbnail": "thumbnail/image 9.jpg",
814
- "hash": "31 08 0A 05 00 65 77 70 88 88 99 87 77 68 88 78 4B AF B9 30 09"
815
- },
816
- {
817
- "id": "file_stu920",
818
- "name": "image 10.jpg",
819
- "type": "file",
820
- "size": 2150000,
821
- "width": 768,
822
- "height": 1024,
823
- "modified": "2023-10-04T09:00:00Z",
824
- "url": "image/image 10.jpg",
825
- "thumbnail": "thumbnail/image 10.jpg",
826
- "hash": "57 39 06 15 0A 62 B6 F1 99 E5 64 37 99 6A 87 89 78 8F 69 F7 B9"
827
- },
828
- {
829
- "id": "file_stu921",
830
- "name": "image 11.jpg",
831
- "type": "file",
832
- "size": 2250000,
833
- "width": 683,
834
- "height": 1024,
835
- "modified": "2023-10-04T10:30:00Z",
836
- "url": "image/image 11.jpg",
837
- "thumbnail": "thumbnail/image 11.jpg",
838
- "hash": "E4 29 0A 25 06 69 87 5F 77 A8 66 78 79 66 69 88 76 70 45 08 78"
839
- },
840
- {
841
- "id": "file_stu922",
842
- "name": "image 12.jpg",
843
- "type": "file",
844
- "size": 2350000,
845
- "width": 731,
846
- "height": 1024,
847
- "modified": "2023-10-04T12:00:00Z",
848
- "url": "image/image 12.jpg",
849
- "thumbnail": "thumbnail/image 12.jpg",
850
- "hash": "98 28 0A 0D 04 C8 97 7F 87 A8 6A A7 89 77 97 77 ED 20 E9 0E 82"
851
- },
852
- {
853
- "id": "file_stu923",
854
- "name": "image 13.jpg",
855
- "type": "file",
856
- "size": 2400000,
857
- "width": 683,
858
- "height": 1024,
859
- "modified": "2023-10-05T11:15:00Z",
860
- "url": "image/image 13.jpg",
861
- "thumbnail": "thumbnail/image 13.jpg",
862
- "hash": "5A E7 0D 25 04 97 79 85 77 08 88 C8 77 86 97 57 5B 90 DA 04 AA"
863
- },
864
- {
865
- "id": "file_stu924",
866
- "name": "image 14.jpg",
867
- "type": "file",
868
- "size": 2500000,
869
- "width": 1024,
870
- "height": 683,
871
- "modified": "2023-10-05T13:30:00Z",
872
- "url": "image/image 14.jpg",
873
- "thumbnail": "thumbnail/image 14.jpg",
874
- "hash": "9F 28 0E 1D 86 C7 B7 47 62 87 88 58 84 07 88 90 86 6F 67 F8 76"
875
- },
876
- {
877
- "id": "file_stu925",
878
- "name": "image 15.jpg",
879
- "type": "file",
880
- "size": 2600000,
881
- "width": 1024,
882
- "height": 694,
883
- "modified": "2023-10-05T15:45:00Z",
884
- "url": "image/image 15.jpg",
885
- "thumbnail": "thumbnail/image 15.jpg",
886
- "hash": "A2 18 12 15 82 67 88 87 7F 77 88 89 88 98 87 79 47 7F 7A F4 87"
887
- },
888
- {
889
- "id": "file_stu926",
890
- "name": "image 16.jpg",
891
- "type": "file",
892
- "size": 2300000,
893
- "width": 1024,
894
- "height": 683,
895
- "modified": "2023-10-06T10:00:00Z",
896
- "url": "image/image 16.jpg",
897
- "thumbnail": "thumbnail/image 16.jpg",
898
- "hash": "AD E7 05 0D 82 55 78 78 77 77 87 AF 88 57 88 65 66 76 6F 45 F7"
899
- },
900
- {
901
- "id": "file_stu927",
902
- "name": "image 17.jpg",
903
- "type": "file",
904
- "size": 2400000,
905
- "width": 1024,
906
- "height": 767,
907
- "modified": "2023-10-06T11:30:00Z",
908
- "url": "image/image 17.jpg",
909
- "thumbnail": "thumbnail/image 17.jpg",
910
- "hash": "17 E8 0D 35 8E 09 68 A7 88 88 77 87 77 89 88 87 07 88 67 80 88"
911
- },
912
- {
913
- "id": "file_stu928",
914
- "name": "image 18.jpg",
915
- "type": "file",
916
- "size": 2500000,
917
- "width": 683,
918
- "height": 1024,
919
- "modified": "2023-10-06T13:00:00Z",
920
- "url": "image/image 18.jpg",
921
- "thumbnail": "thumbnail/image 18.jpg",
922
- "hash": "0F 39 06 15 04 04 85 58 5D 68 A5 B9 A7 55 5B 75 08 A9 70 92 0A"
923
- },
924
- {
925
- "id": "file_stu929",
926
- "name": "image 19.jpg",
927
- "type": "file",
928
- "size": 2350000,
929
- "width": 1024,
930
- "height": 683,
931
- "modified": "2023-10-07T09:45:00Z",
932
- "url": "image/image 19.jpg",
933
- "thumbnail": "thumbnail/image 19.jpg",
934
- "hash": "54 08 0E 0D 04 73 63 8F 66 46 79 68 97 96 77 88 40 AE 22 F1 49"
935
- },
936
- {
937
- "id": "file_stu930",
938
- "name": "image 20.jpg",
939
- "type": "file",
940
- "size": 2450000,
941
- "width": 678,
942
- "height": 1024,
943
- "modified": "2023-10-07T11:15:00Z",
944
- "url": "image/image 20.jpg",
945
- "thumbnail": "thumbnail/image 20.jpg",
946
- "hash": "A9 18 0A 15 04 87 77 8F 87 58 77 68 88 88 77 87 68 80 8D 06 C7"
947
- },
948
- {
949
- "id": "file_stu931",
950
- "name": "image 43.jpg",
951
- "type": "file",
952
- "size": 2750000,
953
- "width": 819,
954
- "height": 1024,
955
- "modified": "2024-09-20T09:15:00Z",
956
- "url": "image/image 43.jpg",
957
- "thumbnail": "thumbnail/image 43.jpg",
958
- "hash": "ED F8 05 06 00 70 77 27 76 87 78 87 78 75 78 88 67 87 4D BE 50 06 AA"
959
- },
960
- {
961
- "id": "file_stu932",
962
- "name": "image 44.jpg",
963
- "type": "file",
964
- "size": 2800000,
965
- "width": 1024,
966
- "height": 681,
967
- "modified": "2024-09-20T11:30:00Z",
968
- "url": "image/image 44.jpg",
969
- "thumbnail": "thumbnail/image 44.jpg",
970
- "hash": "60 F8 0D 0D 80 9C 57 87 7F 98 78 85 76 C8 87 6A 02 07 E5 52 B0"
971
- },
972
- {
973
- "id": "file_stu933",
974
- "name": "image 45.jpg",
975
- "type": "file",
976
- "size": 2650000,
977
- "width": 683,
978
- "height": 1024,
979
- "modified": "2024-09-20T14:45:00Z",
980
- "url": "image/image 45.jpg",
981
- "thumbnail": "thumbnail/image 45.jpg",
982
- "hash": "97 49 0A 1D 04 1D 98 90 78 F9 75 57 89 64 79 79 8F A3 FC 37 AA"
983
- },
984
- {
985
- "id": "file_stu934",
986
- "name": "image 46.jpg",
987
- "type": "file",
988
- "size": 2900000,
989
- "width": 683,
990
- "height": 1024,
991
- "modified": "2024-09-21T08:00:00Z",
992
- "url": "image/image 46.jpg",
993
- "thumbnail": "thumbnail/image 46.jpg",
994
- "hash": "22 18 12 05 02 78 78 7F 77 87 88 98 88 75 88 78 0A 7E 8D D1 07"
995
- },
996
- {
997
- "id": "file_stu935",
998
- "name": "image 47.jpg",
999
- "type": "file",
1000
- "size": 2700000,
1001
- "width": 1024,
1002
- "height": 679,
1003
- "modified": "2024-09-21T10:15:00Z",
1004
- "url": "image/image 47.jpg",
1005
- "thumbnail": "thumbnail/image 47.jpg",
1006
- "hash": "F2 E7 05 0D 82 88 07 C6 7F 84 7A 8D 79 CA C7 84 08 76 86 80 77"
1007
- },
1008
- {
1009
- "id": "file_stu936",
1010
- "name": "image 48.jpg",
1011
- "type": "file",
1012
- "size": 2850000,
1013
- "width": 731,
1014
- "height": 1024,
1015
- "modified": "2024-09-21T13:30:00Z",
1016
- "url": "image/image 48.jpg",
1017
- "thumbnail": "thumbnail/image 48.jpg",
1018
- "hash": "93 08 0A 0D 00 6C 85 60 AC 27 17 66 A8 4A B8 58 C5 8F 3C FF D9"
1019
- },
1020
- {
1021
- "id": "file_stu937",
1022
- "name": "image 49.jpg",
1023
- "type": "file",
1024
- "size": 2950000,
1025
- "width": 1024,
1026
- "height": 683,
1027
- "modified": "2024-09-22T09:45:00Z",
1028
- "url": "image/image 49.jpg",
1029
- "thumbnail": "thumbnail/image 49.jpg",
1030
- "hash": "16 39 0E 0D 82 F6 76 98 79 88 87 94 87 8A 69 77 CF 7A CF 8A F7"
1031
- },
1032
- {
1033
- "id": "file_stu938",
1034
- "name": "image 50.jpg",
1035
- "type": "file",
1036
- "size": 2600000,
1037
- "width": 1024,
1038
- "height": 682,
1039
- "modified": "2024-09-22T12:00:00Z",
1040
- "url": "image/image 50.jpg",
1041
- "thumbnail": "thumbnail/image 50.jpg",
1042
- "hash": "DC 28 0A 0D 82 F5 A9 67 7B 79 85 B5 75 69 88 86 28 2F 97 F0 71"
1043
- },
1044
- {
1045
- "id": "file_stu939",
1046
- "name": "image 51.jpg",
1047
- "type": "file",
1048
- "size": 2750000,
1049
- "width": 683,
1050
- "height": 1024,
1051
- "modified": "2024-09-22T15:15:00Z",
1052
- "url": "image/image 51.jpg",
1053
- "thumbnail": "thumbnail/image 51.jpg",
1054
- "hash": "63 08 0A 0D 02 7C 84 7E 67 76 67 37 85 50 B6 59 78 6F B8 F5 64"
1055
- },
1056
- {
1057
- "id": "file_stu940",
1058
- "name": "image 52.jpg",
1059
- "type": "file",
1060
- "size": 2800000,
1061
- "width": 680,
1062
- "height": 1024,
1063
- "modified": "2024-09-23T08:30:00Z",
1064
- "url": "image/image 52.jpg",
1065
- "thumbnail": "thumbnail/image 52.jpg",
1066
- "hash": "13 49 0E 0D 02 07 97 8B 76 89 78 88 88 88 77 87 90 C7 03 8A 4D"
1067
- },
1068
- {
1069
- "id": "file_stu941",
1070
- "name": "image 53.jpg",
1071
- "type": "file",
1072
- "size": 2900000,
1073
- "width": 800,
1074
- "height": 1024,
1075
- "modified": "2024-09-23T11:45:00Z",
1076
- "url": "image/image 53.jpg",
1077
- "thumbnail": "thumbnail/image 53.jpg",
1078
- "hash": "B2 E7 09 05 00 87 89 8F 77 C8 88 37 86 85 97 89 6F 68 F1 16 15"
1079
- },
1080
- {
1081
- "id": "file_stu942",
1082
- "name": "image 54.jpg",
1083
- "type": "file",
1084
- "size": 2650000,
1085
- "width": 683,
1086
- "height": 1024,
1087
- "modified": "2024-09-23T14:00:00Z",
1088
- "url": "image/image 54.jpg",
1089
- "thumbnail": "thumbnail/image 54.jpg",
1090
- "hash": "A3 86 05 2D 0A 0C 99 BD 7B D7 86 88 78 7A 76 97 08 97 89 90 89"
1091
- },
1092
- {
1093
- "id": "file_stu943",
1094
- "name": "image 55.jpg",
1095
- "type": "file",
1096
- "size": 2700000,
1097
- "width": 819,
1098
- "height": 1024,
1099
- "modified": "2024-09-24T09:15:00Z",
1100
- "url": "image/image 55.jpg",
1101
- "thumbnail": "thumbnail/image 55.jpg",
1102
- "hash": "20 B9 05 0E 00 7F 86 C8 95 87 E7 74 79 B4 86 77 89 77 6F 5B 5F 49 F7"
1103
- },
1104
- {
1105
- "id": "file_stu944",
1106
- "name": "image 56.jpg",
1107
- "type": "file",
1108
- "size": 2850000,
1109
- "width": 819,
1110
- "height": 1024,
1111
- "modified": "2024-09-24T12:30:00Z",
1112
- "url": "image/image 56.jpg",
1113
- "thumbnail": "thumbnail/image 56.jpg",
1114
- "hash": "15 08 1A 0E 00 A0 69 98 76 78 87 77 87 79 78 96 87 77 80 87 16 30 48"
1115
- },
1116
- {
1117
- "id": "file_stu945",
1118
- "name": "image 57.jpg",
1119
- "type": "file",
1120
- "size": 2950000,
1121
- "width": 1024,
1122
- "height": 768,
1123
- "modified": "2024-09-24T15:45:00Z",
1124
- "url": "image/image 57.jpg",
1125
- "thumbnail": "thumbnail/image 57.jpg",
1126
- "hash": "95 18 06 0D 82 45 A5 96 4C 96 98 90 89 87 87 87 81 36 00 66 02"
1127
- },
1128
- {
1129
- "id": "file_stu946",
1130
- "name": "image 58.jpg",
1131
- "type": "file",
1132
- "size": 2600000,
1133
- "width": 683,
1134
- "height": 1024,
1135
- "modified": "2024-09-25T08:00:00Z",
1136
- "url": "image/image 58.jpg",
1137
- "thumbnail": "thumbnail/image 58.jpg",
1138
- "hash": "1A F8 0D 0D 00 2A 65 8F 75 98 76 88 77 77 87 67 B4 6F 97 F0 9A"
1139
- },
1140
- {
1141
- "id": "file_stu947",
1142
- "name": "image 59.jpg",
1143
- "type": "file",
1144
- "size": 2750000,
1145
- "width": 1024,
1146
- "height": 683,
1147
- "modified": "2024-09-25T11:15:00Z",
1148
- "url": "image/image 59.jpg",
1149
- "thumbnail": "thumbnail/image 59.jpg",
1150
- "hash": "1A 18 0E 15 82 7A 78 78 AF 78 87 8B 88 87 67 76 48 90 63 03 4A"
1151
- },
1152
- {
1153
- "id": "file_stu948",
1154
- "name": "image 60.jpg",
1155
- "type": "file",
1156
- "size": 2800000,
1157
- "width": 683,
1158
- "height": 1024,
1159
- "modified": "2024-09-25T14:30:00Z",
1160
- "url": "image/image 60.jpg",
1161
- "thumbnail": "thumbnail/image 60.jpg",
1162
- "hash": "4F 08 06 0D 00 80 77 95 85 38 86 88 7A 68 47 98 80 99 10 88 0A"
1163
- },
1164
- {
1165
- "id": "file_stu949",
1166
- "name": "image 61.jpg",
1167
- "type": "file",
1168
- "size": 2900000,
1169
- "width": 1024,
1170
- "height": 683,
1171
- "modified": "2024-09-26T09:45:00Z",
1172
- "url": "image/image 61.jpg",
1173
- "thumbnail": "thumbnail/image 61.jpg",
1174
- "hash": "33 08 0A 05 80 F6 29 A6 8C 77 88 78 74 9B 88 77 DA 65 9F 8F E6"
1175
- },
1176
- {
1177
- "id": "file_stu950",
1178
- "name": "image 62.jpg",
1179
- "type": "file",
1180
- "size": 2650000,
1181
- "width": 679,
1182
- "height": 1024,
1183
- "modified": "2024-09-26T12:00:00Z",
1184
- "url": "image/image 62.jpg",
1185
- "thumbnail": "thumbnail/image 62.jpg",
1186
- "hash": "96 08 12 15 02 66 69 7F 77 78 77 A7 76 89 77 78 67 8E 50 C3 08"
1187
- },
1188
- {
1189
- "id": "file_stu951",
1190
- "name": "image 63.jpg",
1191
- "type": "file",
1192
- "size": 2700000,
1193
- "width": 910,
1194
- "height": 1024,
1195
- "modified": "2024-09-26T15:15:00Z",
1196
- "url": "image/image 63.jpg",
1197
- "thumbnail": "thumbnail/image 63.jpg",
1198
- "hash": "48 49 06 16 02 31 6A 47 66 79 88 87 78 A0 78 94 69 49 20 63 06 01 56"
1199
- },
1200
- {
1201
- "id": "file_stu952",
1202
- "name": "image 64.jpg",
1203
- "type": "file",
1204
- "size": 2850000,
1205
- "width": 766,
1206
- "height": 1024,
1207
- "modified": "2024-09-26T17:30:00Z",
1208
- "url": "image/image 64.jpg",
1209
- "thumbnail": "thumbnail/image 64.jpg",
1210
- "hash": "26 08 1A 1D 08 78 78 8F 78 68 77 68 87 88 87 78 66 90 78 06 88"
1211
- },
1212
- {
1213
- "id": "file_stu953",
1214
- "name": "image 65.jpg",
1215
- "type": "file",
1216
- "size": 2950000,
1217
- "width": 768,
1218
- "height": 1024,
1219
- "modified": "2024-09-26T19:45:00Z",
1220
- "url": "image/image 65.jpg",
1221
- "thumbnail": "thumbnail/image 65.jpg",
1222
- "hash": "53 49 0A 1D 06 49 74 70 78 08 86 68 87 89 C9 79 85 80 58 08 88"
1223
- },
1224
- {
1225
- "id": "file_stu954",
1226
- "name": "image 66.jpg",
1227
- "type": "file",
1228
- "size": 2600000,
1229
- "width": 683,
1230
- "height": 1024,
1231
- "modified": "2024-09-26T21:00:00Z",
1232
- "url": "image/image 66.jpg",
1233
- "thumbnail": "thumbnail/image 66.jpg",
1234
- "hash": "68 08 16 0D 02 76 77 8F 78 88 77 58 88 87 A8 77 98 70 65 08 78"
1235
- },
1236
- {
1237
- "id": "file_stu955",
1238
- "name": "image 67.jpg",
1239
- "type": "file",
1240
- "size": 2750000,
1241
- "width": 1024,
1242
- "height": 778,
1243
- "modified": "2024-09-26T22:15:00Z",
1244
- "url": "image/image 67.jpg",
1245
- "thumbnail": "thumbnail/image 67.jpg",
1246
- "hash": "E2 28 06 0D 80 0A 94 76 7D A8 97 63 8B A5 56 C2 62 0A 4E B2 D0"
1247
- },
1248
- {
1249
- "id": "file_stu956",
1250
- "name": "image 68.jpg",
1251
- "type": "file",
1252
- "size": 2800000,
1253
- "width": 683,
1254
- "height": 1024,
1255
- "modified": "2024-09-26T23:30:00Z",
1256
- "url": "image/image 68.jpg",
1257
- "thumbnail": "thumbnail/image 68.jpg",
1258
- "hash": "A3 18 0E 0D 02 7F 57 AD 85 98 77 89 88 87 78 68 4A 98 90 83 08"
1259
- }
1260
- ]
1261
- },
1262
- {
1263
- "id": "file_stu95d7",
1264
- "name": "Project Assets",
1265
- "type": "folder",
1266
- "children": [
1267
- {
1268
- "id": "file_stu957",
1269
- "name": "image 21.jpg",
1270
- "type": "file",
1271
- "size": 3500000,
1272
- "width": 683,
1273
- "height": 1024,
1274
- "modified": "2023-10-08T09:45:00Z",
1275
- "url": "image/image 21.jpg",
1276
- "thumbnail": "thumbnail/image 21.jpg",
1277
- "hash": "5C D7 11 2D 08 86 77 7F 88 77 77 58 77 87 98 67 76 70 65 06 57"
1278
- },
1279
- {
1280
- "id": "file_stu958",
1281
- "name": "image 22.jpg",
1282
- "type": "file",
1283
- "size": 2900000,
1284
- "width": 683,
1285
- "height": 1024,
1286
- "modified": "2023-10-08T10:15:00Z",
1287
- "url": "image/image 22.jpg",
1288
- "thumbnail": "thumbnail/image 22.jpg",
1289
- "hash": "1C F8 0D 15 02 88 77 6F 78 E8 77 48 87 86 58 78 88 60 85 06 46"
1290
- },
1291
- {
1292
- "id": "file_stu959",
1293
- "name": "image 23.jpg",
1294
- "type": "file",
1295
- "size": 3100000,
1296
- "width": 683,
1297
- "height": 1024,
1298
- "modified": "2023-10-08T11:00:00Z",
1299
- "url": "image/image 23.jpg",
1300
- "thumbnail": "thumbnail/image 23.jpg",
1301
- "hash": "D1 E7 09 15 02 47 77 80 78 48 97 B8 88 75 88 88 65 80 65 06 98"
1302
- }
1303
- ]
1304
- },
1305
- {
1306
- "id": "file_stu95e",
1307
- "name": "Archived Content",
1308
- "type": "folder",
1309
- "children": [
1310
- {
1311
- "id": "file_stu960",
1312
- "name": "image 24.jpg",
1313
- "type": "file",
1314
- "size": 2800000,
1315
- "width": 819,
1316
- "height": 1024,
1317
- "modified": "2023-10-09T14:30:00Z",
1318
- "url": "image/image 24.jpg",
1319
- "thumbnail": "thumbnail/image 24.jpg",
1320
- "hash": "10 08 0E 0E 02 89 67 09 85 97 B7 88 78 76 77 78 77 88 09 84 86 20 77"
1321
- },
1322
- {
1323
- "id": "file_stu961",
1324
- "name": "image 25.jpg",
1325
- "type": "file",
1326
- "size": 3300000,
1327
- "width": 1024,
1328
- "height": 683,
1329
- "modified": "2023-10-09T15:45:00Z",
1330
- "url": "image/image 25.jpg",
1331
- "thumbnail": "thumbnail/image 25.jpg",
1332
- "hash": "DB B6 19 1D 86 86 78 77 7F 87 77 8A 77 87 87 77 8F 3C FA D8 C4"
1333
- }
1334
- ]
1335
- },
1336
- {
1337
- "id": "file_stu962",
1338
- "name": "image 26.jpg",
1339
- "type": "file",
1340
- "size": 3400000,
1341
- "width": 768,
1342
- "height": 1024,
1343
- "modified": "2023-10-10T09:00:00Z",
1344
- "url": "image/image 26.jpg",
1345
- "thumbnail": "thumbnail/image 26.jpg",
1346
- "hash": "AA 18 06 0D 02 F3 B9 AC 74 D7 67 88 86 4B 57 76 07 77 82 90 16"
1347
- },
1348
- {
1349
- "id": "file_stu963",
1350
- "name": "image 27.jpg",
1351
- "type": "file",
1352
- "size": 2950000,
1353
- "width": 1024,
1354
- "height": 683,
1355
- "modified": "2023-10-10T10:30:00Z",
1356
- "url": "image/image 27.jpg",
1357
- "thumbnail": "thumbnail/image 27.jpg",
1358
- "hash": "F4 F7 05 05 80 F5 1A C7 7E 76 89 83 83 8C A6 86 05 71 7A 12 F7"
1359
- },
1360
- {
1361
- "id": "file_stu964",
1362
- "name": "image 28.jpg",
1363
- "type": "file",
1364
- "size": 3150000,
1365
- "width": 1024,
1366
- "height": 683,
1367
- "modified": "2024-09-27T11:45:00Z",
1368
- "url": "image/image 28.jpg",
1369
- "thumbnail": "thumbnail/image 28.jpg",
1370
- "hash": "55 38 06 15 86 72 96 58 9F 56 A5 49 B7 C6 46 94 FA 9B BC AF C9"
1371
- },
1372
- {
1373
- "id": "file_stu364",
1374
- "name": "image 28.jpg",
1375
- "type": "file",
1376
- "size": 3150000,
1377
- "width": 1024,
1378
- "height": 683,
1379
- "modified": "2024-09-27T11:45:00Z",
1380
- "url": "image/image 28.jpg",
1381
- "thumbnail": "thumbnail/image 28.jpg",
1382
- "hash": "55 38 06 15 86 72 96 58 9F 56 A5 49 B7 C6 46 94 FA 9B BC AF C9"
1383
- }
1384
- ]
1385
- }
1386
- };
218
+ let demoContent = demoContentData;
1387
219
 
1388
220
  // Initialize instance-specific navigation store
1389
221
  const navigationStore = getNavigationStore(instanceId);
@@ -1564,11 +396,11 @@
1564
396
  const byId = new Map(files.map((file) => [file.id, file]));
1565
397
  for (const remoteFile of remoteFiles) {
1566
398
  byId.set(remoteFile.id, remoteFile);
1567
- saveUserUpload(remoteFile);
1568
399
  }
400
+ saveUserUploadsBatch(remoteFiles);
1569
401
  files = Array.from(byId.values());
1570
402
  if (showLogs) {
1571
- console.log('[FileBrowser] Hydrated uploads from API:', remoteFiles.length);
403
+ // console.log('[FileBrowser] Hydrated uploads from API:', remoteFiles.length);
1572
404
  }
1573
405
  } catch (hydrateError) {
1574
406
  console.warn('[FileBrowser] Upload hydration failed, using local cache:', hydrateError);
@@ -1577,7 +409,7 @@
1577
409
  data = await createUserUploadsFileSystemRoot(files);
1578
410
  basePath = '';
1579
411
  if (showLogs) {
1580
- console.log('[FileBrowser] Widgetic library mode — user uploads only');
412
+ // console.log('[FileBrowser] Widgetic library mode — user uploads only');
1581
413
  }
1582
414
  } else if (useDemoContent) {
1583
415
  data = demoContent;
@@ -1735,28 +567,6 @@
1735
567
  }
1736
568
  }
1737
569
 
1738
- $: {
1739
- if (currentFolderContent?.children) {
1740
- const filterStart = performance.now();
1741
- filteredFiles = currentFolderContent.children?.filter((item: FileSystemItem) => {
1742
- if (item.type === 'folder') {
1743
- return true;
1744
- }
1745
- return fileMatchesFilter(item);
1746
- }) ?? [];
1747
- // if(showLogs) console.log('File filtering time:', performance.now() - filterStart, 'ms');
1748
-
1749
- const sortStart = performance.now();
1750
- sortedFilteredFiles = sortFiles(filteredFiles);
1751
- // if(showLogs) console.log('File sorting time:', performance.now() - sortStart, 'ms');
1752
- }
1753
- }
1754
-
1755
- // Reactive statement to re-sort when sort criteria or direction changes
1756
- $: if (filteredFiles.length > 0 && ($sortCriteria || $sortDirection)) {
1757
- sortedFilteredFiles = sortFiles(filteredFiles);
1758
- }
1759
-
1760
570
  /**
1761
571
  * Search and Navigation Functions
1762
572
  * These functions handle user interactions with search and folder navigation
@@ -1992,10 +802,12 @@
1992
802
  }
1993
803
 
1994
804
  /**
1995
- * Filters current folder contents based on active filter
1996
- * Folders are always included regardless of filter
805
+ * Filters and sorts current folder contents based on active filter and sort criteria.
806
+ * Folders are always included regardless of filter.
1997
807
  */
1998
808
  $: {
809
+ void $sortCriteria;
810
+ void $sortDirection;
1999
811
  if (filter && currentFolderContent?.children) {
2000
812
  filteredFiles = currentFolderContent.children.filter((item: FileSystemItem) => {
2001
813
  if (item.type === 'folder') {
@@ -2003,14 +815,10 @@
2003
815
  }
2004
816
  return fileMatchesFilter(item);
2005
817
  });
818
+ } else {
819
+ filteredFiles = [];
2006
820
  }
2007
- }
2008
821
 
2009
- /**
2010
- * Updates final file list and empty state
2011
- * Triggers recent files update when content changes
2012
- */
2013
- $: {
2014
822
  sortedFilteredFiles = sortFiles(filteredFiles);
2015
823
  isEmpty = !isLoading && sortedFilteredFiles.length === 0;
2016
824
  // Footer FileUploader requires this flag; empty folders never mount VirtualList.
@@ -2193,13 +1001,13 @@
2193
1001
  * @param event CustomEvent containing action and item details
2194
1002
  */
2195
1003
  function handleItemAction(event: CustomEvent) {
2196
- console.log('handleItemAction', event);
1004
+ // console.log('handleItemAction', event);
2197
1005
  const { action, item } = event.detail;
2198
1006
 
2199
1007
  if (isFileSystemItem(item)) {
2200
1008
  // Use allSelectedFiles instead of validSelectedFiles to get ALL selected files across ALL folders
2201
1009
  const validSelectedFiles = allSelectedFiles;
2202
- console.log('Current valid selections across all folders:', validSelectedFiles);
1010
+ // console.log('Current valid selections across all folders:', validSelectedFiles);
2203
1011
 
2204
1012
  switch (action) {
2205
1013
  case 'rename':
@@ -2207,12 +1015,12 @@
2207
1015
  showRenameDialog = true;
2208
1016
  break;
2209
1017
  case 'move':
2210
- console.log('Move action triggered:', {
2211
- item,
2212
- currentSelections,
2213
- allSelectedFiles,
2214
- validSelectedFiles: validSelectedFiles
2215
- });
1018
+ // console.log('Move action triggered:', {
1019
+ // item,
1020
+ // currentSelections,
1021
+ // allSelectedFiles,
1022
+ // validSelectedFiles: validSelectedFiles
1023
+ // });
2216
1024
 
2217
1025
  // Reset state before starting new move operation
2218
1026
  sourceItems = [];
@@ -2220,7 +1028,7 @@
2220
1028
  itemToMove = null;
2221
1029
 
2222
1030
  if (item.type === 'folder') {
2223
- console.log('Moving folder:', item.name);
1031
+ // console.log('Moving folder:', item.name);
2224
1032
  selectedItem = item;
2225
1033
  // Clear all selections when moving a folder
2226
1034
  persistentSelectStore.clearSelections(filter);
@@ -2228,33 +1036,33 @@
2228
1036
  itemToMove = item;
2229
1037
  sourceItems = [item];
2230
1038
  showMoveDialog = true;
2231
- console.log('Set source items for folder:', sourceItems);
1039
+ // console.log('Set source items for folder:', sourceItems);
2232
1040
  } else {
2233
- console.log('Moving file(s)');
1041
+ // console.log('Moving file(s)');
2234
1042
  // Filter out any folders from valid selections
2235
1043
  const validFiles = validSelectedFiles.filter(f => f.type === 'file');
2236
- console.log('Valid selected files across all folders:', validFiles);
1044
+ // console.log('Valid selected files across all folders:', validFiles);
2237
1045
  selectedItem = null;
2238
1046
 
2239
1047
  // If no files are selected or the clicked file isn't in the selection
2240
1048
  if (validFiles.length === 0 || !validFiles.some(f => f.id === item.id)) {
2241
- console.log('No files selected or clicked file not in selection, selecting current file:', item.name);
1049
+ // console.log('No files selected or clicked file not in selection, selecting current file:', item.name);
2242
1050
  persistentSelectStore.toggleSelection(item, filter);
2243
1051
  sourceItems = [item];
2244
1052
  } else {
2245
- console.log('Using existing selected files:', validFiles);
1053
+ // console.log('Using existing selected files:', validFiles);
2246
1054
  sourceItems = [...validFiles];
2247
1055
  }
2248
1056
  itemToMove = item;
2249
1057
 
2250
1058
  // Ensure sourceItems is set before opening dialog
2251
1059
  if (sourceItems.length === 0) {
2252
- console.log('No source items set, using current selections');
1060
+ // console.log('No source items set, using current selections');
2253
1061
  sourceItems = [...validFiles];
2254
1062
  }
2255
1063
 
2256
1064
  showMoveDialog = true;
2257
- console.log('Final source items:', sourceItems);
1065
+ // console.log('Final source items:', sourceItems);
2258
1066
  }
2259
1067
 
2260
1068
  break;
@@ -2286,7 +1094,7 @@
2286
1094
  function handleRename(event: CustomEvent) {
2287
1095
  const { newName } = event.detail;
2288
1096
  if (selectedItem && isFileSystemItem(selectedItem)) {
2289
- console.log(`Renaming ${selectedItem.name} to ${newName}`);
1097
+ // console.log(`Renaming ${selectedItem.name} to ${newName}`);
2290
1098
 
2291
1099
  // Store the item's ID before resetting selection
2292
1100
  const itemId = selectedItem.id;
@@ -2336,15 +1144,15 @@
2336
1144
  // Check if we received multiple items in the event
2337
1145
  const eventItems = event.detail.items || (event.detail.item ? [event.detail.item] : []);
2338
1146
 
2339
- const itemsToDelete = selectedItem?.type === 'folder'
1147
+ const itemsToDelete = selectedItem
2340
1148
  ? [selectedItem]
2341
- : $selectedFiles.length > 0
2342
- ? $selectedFiles
1149
+ : allSelectedFiles.length > 0
1150
+ ? allSelectedFiles
2343
1151
  : eventItems;
2344
1152
 
2345
1153
  // Clear items from persistent selection store
2346
1154
  itemsToDelete.forEach(item => {
2347
- persistentSelectStore.toggleSelection(item, filter);
1155
+ persistentSelectStore.removeSelection(item.id, filter);
2348
1156
  });
2349
1157
 
2350
1158
  // Clear selected files and selectedItem immediately to allow UI to continue
@@ -2378,7 +1186,7 @@
2378
1186
 
2379
1187
  // If we deleted a folder, clean up navigation history
2380
1188
  if (item.type === 'folder') {
2381
- console.log(`Starting folder deletion navigation cleanup for "${item.name}"...`);
1189
+ // console.log(`Starting folder deletion navigation cleanup for "${item.name}"...`);
2382
1190
  navigationStore.cleanupPaths(item.id);
2383
1191
 
2384
1192
  // Update current location to root (last path)
@@ -2866,7 +1674,7 @@
2866
1674
 
2867
1675
  requestAnimationFrame(() => {
2868
1676
  const itemElement = document.querySelector(`[data-item-id="${itemId}"]`) as HTMLElement;
2869
- const scrollableArea = document.querySelector('.overflow-y-auto') as HTMLElement;
1677
+ const scrollableArea = scrollContainer || (document.querySelector('.scroll-area-container') as HTMLElement);
2870
1678
 
2871
1679
  if (itemElement && scrollableArea) {
2872
1680
  // Handle animation first if it's a goodbye animation
@@ -3038,15 +1846,6 @@
3038
1846
 
3039
1847
  // Only add the source path to history if it's not root
3040
1848
  if (currentPath.length > 0) {
3041
- // Check if we're already in this path
3042
- const isSamePath = currentPath.length === currentPath.length &&
3043
- currentPath.every((id, index) => id === currentPath[index]);
3044
-
3045
- if (isSamePath) {
3046
- if(showLogs) console.log('Already in current path, skipping addition to history');
3047
- return;
3048
- }
3049
-
3050
1849
  // Add the current path as the first entry in navigation history
3051
1850
  // This will make it the "back" destination after moving
3052
1851
  navigationStore.navigateToFolder(currentPath);
@@ -3109,7 +1908,7 @@
3109
1908
 
3110
1909
  // Handle CMD/CTRL + A for selecting all files
3111
1910
  if ((event.metaKey || event.ctrlKey) && event.key === 'a') {
3112
- console.log('FileBrowser Handle CMD/CTRL + A:', event, $isModalOpen);
1911
+ // console.log('FileBrowser Handle CMD/CTRL + A:', event, $isModalOpen);
3113
1912
 
3114
1913
  event.preventDefault();
3115
1914
  event.stopPropagation();
@@ -3799,7 +2598,7 @@ mainGridClass="app-main-grid"
3799
2598
 
3800
2599
  <!-- MODALS -->
3801
2600
 
3802
- {#if allowSelecting}
2601
+ {#if allowSelecting && showModal}
3803
2602
  <SelectedFilesModal
3804
2603
  bind:open={showModal}
3805
2604
  currentFilter={filter}
@@ -3813,14 +2612,16 @@ mainGridClass="app-main-grid"
3813
2612
  />
3814
2613
  {/if}
3815
2614
 
3816
- <SearchModal
3817
- bind:open={showSearchModal}
3818
- target={rootContainerClass}
3819
- currentFilter={filter}
3820
- on:close={handleSearchModalClose}
3821
- on:navigate={handleSearchNavigate}
3822
- on:preview={(event : any) => handleFileClick(event.detail)}
3823
- />
2615
+ {#if showSearchModal}
2616
+ <SearchModal
2617
+ bind:open={showSearchModal}
2618
+ target={rootContainerClass}
2619
+ currentFilter={filter}
2620
+ on:close={handleSearchModalClose}
2621
+ on:navigate={handleSearchNavigate}
2622
+ on:preview={(event : any) => handleFileClick(event.detail)}
2623
+ />
2624
+ {/if}
3824
2625
 
3825
2626
  {#if previewFile}
3826
2627
  <FilePreview
@@ -3835,96 +2636,113 @@ mainGridClass="app-main-grid"
3835
2636
  />
3836
2637
  {/if}
3837
2638
 
3838
- <RenameDialog
3839
- isOpen={showRenameDialog}
3840
- itemName={selectedItem?.name ?? ''}
3841
- itemType={selectedItem?.type === 'folder' ? 'folder' : 'file'}
3842
- itemId={selectedItem?.id ?? ''}
3843
- confirmLabel="Rename"
3844
- cancelLabel="Cancel"
3845
- target={rootContainerClass}
3846
- shouldUseCustomRenameFunction={true}
3847
- on:rename={handleRename}
3848
- on:cancel={() => { showRenameDialog = false; selectedItem = null; }}
3849
- />
3850
-
3851
- <MoveDialog
3852
- bind:isOpen={showMoveDialog}
3853
- itemName={itemToMove?.name || ''}
3854
- {folderStructure}
3855
- currentFilter={filter}
3856
- {sourceItems}
3857
- currentPath={currentPath}
3858
- target={rootContainerClass}
3859
- on:resetNavigation={handleResetNavigation}
3860
- on:navigate={({ detail }: CustomEvent<NavigateEventDetail>) => {
3861
- const newPath = Array.isArray(detail.targetFolderId)
3862
- ? detail.targetFolderId
3863
- : [detail.targetFolderId];
3864
-
3865
- // Check if we're already in this path
3866
- const isSamePath = newPath.length === currentPath.length &&
3867
- newPath.every((id: string, index: number) => id === currentPath[index]);
3868
-
3869
- if (isSamePath) {
3870
- if(showLogs) console.log('Already in target path, skipping navigation');
3871
- return;
3872
- }
2639
+ {#if showRenameDialog}
2640
+ <RenameDialog
2641
+ isOpen={showRenameDialog}
2642
+ itemName={selectedItem?.name ?? ''}
2643
+ itemType={selectedItem?.type === 'folder' ? 'folder' : 'file'}
2644
+ itemId={selectedItem?.id ?? ''}
2645
+ confirmLabel="Rename"
2646
+ cancelLabel="Cancel"
2647
+ target={rootContainerClass}
2648
+ shouldUseCustomRenameFunction={true}
2649
+ on:rename={handleRename}
2650
+ on:cancel={() => { showRenameDialog = false; selectedItem = null; }}
2651
+ />
2652
+ {/if}
3873
2653
 
3874
- navigationStore.navigateToFolder(newPath, true);
3875
- currentFolder.set(newPath);
3876
- currentPath = newPath;
3877
-
3878
- if(showLogs) console.log('Navigating to folder:', newPath);
2654
+ {#if showMoveDialog}
2655
+ <MoveDialog
2656
+ bind:isOpen={showMoveDialog}
2657
+ itemName={itemToMove?.name || ''}
2658
+ {folderStructure}
2659
+ currentFilter={filter}
2660
+ {sourceItems}
2661
+ currentPath={currentPath}
2662
+ target={rootContainerClass}
2663
+ on:resetNavigation={handleResetNavigation}
2664
+ on:navigate={({ detail }: CustomEvent<NavigateEventDetail>) => {
2665
+ const newPath = Array.isArray(detail.targetFolderId)
2666
+ ? detail.targetFolderId
2667
+ : [detail.targetFolderId];
2668
+
2669
+ // Check if we're already in this path
2670
+ const isSamePath = newPath.length === currentPath.length &&
2671
+ newPath.every((id: string, index: number) => id === currentPath[index]);
2672
+
2673
+ if (isSamePath) {
2674
+ if(showLogs) console.log('Already in target path, skipping navigation');
2675
+ return;
2676
+ }
3879
2677
 
3880
- // Wait for the navigation and DOM update
3881
- setTimeout(() => {
3882
- if (detail.movedItems) {
3883
- // Scroll the first moved item into view with instant scrolling
3884
- const firstMovedItem = detail.movedItems[0];
3885
- if (firstMovedItem) {
3886
- scrollItemIntoView(firstMovedItem.id, undefined, false);
3887
-
3888
- // Add wave animation to all moved items
3889
- detail.movedItems.forEach((item: { id: string }) => {
3890
- const itemElement = document.querySelector(`[data-item-id="${item.id}"]`);
3891
- if (itemElement) {
3892
- itemElement.classList.add('wave-goodbye');
3893
- setTimeout(() => {
3894
- itemElement.classList.remove('wave-goodbye');
3895
- }, 600);
3896
- }
3897
- });
2678
+ navigationStore.navigateToFolder(newPath, true);
2679
+ currentFolder.set(newPath);
2680
+ currentPath = newPath;
2681
+
2682
+ if(showLogs) console.log('Navigating to folder:', newPath);
2683
+
2684
+ // Wait for the navigation and DOM update
2685
+ setTimeout(() => {
2686
+ if (detail.movedItems) {
2687
+ // Scroll the first moved item into view with instant scrolling
2688
+ const firstMovedItem = detail.movedItems[0];
2689
+ if (firstMovedItem) {
2690
+ scrollItemIntoView(firstMovedItem.id, undefined, false);
2691
+
2692
+ // Add wave animation to all moved items
2693
+ detail.movedItems.forEach((item: { id: string }) => {
2694
+ const itemElement = document.querySelector(`[data-item-id="${item.id}"]`);
2695
+ if (itemElement) {
2696
+ itemElement.classList.add('wave-goodbye');
2697
+ setTimeout(() => {
2698
+ itemElement.classList.remove('wave-goodbye');
2699
+ }, 600);
2700
+ }
2701
+ });
2702
+ }
3898
2703
  }
3899
- }
3900
- }, 100);
3901
- }}
3902
- />
2704
+ }, 100);
2705
+ }}
2706
+ />
2707
+ {/if}
3903
2708
 
3904
- <ActionModal
3905
- bind:isOpen={showDeleteConfirmation}
3906
- title={selectedItem?.type === 'folder' ? 'Delete folder' : (allSelectedFiles.length > 1 ? 'Delete items' : 'Delete file')}
3907
- message={selectedItem?.type === 'folder'
3908
- ? `Delete '${selectedItem?.name}' and all content inside?`
3909
- : (allSelectedFiles.length > 1
3910
- ? `Are you sure you want to delete ${allSelectedFiles.length} items?`
3911
- : `Delete '${allSelectedFiles[0]?.name}'?`)}
3912
- items={selectedItem?.type === 'folder' ? [selectedItem] : allSelectedFiles}
3913
- target={rootContainerClass}
3914
- on:confirm={handleDelete}
3915
- on:cancel={() => {
3916
- showDeleteConfirmation = false;
3917
- }}
3918
- actionType="delete"
3919
- confirmVariant="attention"
3920
- modalType="delete"
3921
- />
2709
+ {#if showDeleteConfirmation}
2710
+ <ActionModal
2711
+ bind:isOpen={showDeleteConfirmation}
2712
+ title={selectedItem?.type === 'folder' ? 'Delete folder' : (allSelectedFiles.length > 1 ? 'Delete items' : 'Delete file')}
2713
+ message={selectedItem?.type === 'folder'
2714
+ ? `Delete '${selectedItem?.name}' and all content inside?`
2715
+ : (allSelectedFiles.length > 1
2716
+ ? `Are you sure you want to delete ${allSelectedFiles.length} items?`
2717
+ : `Delete '${allSelectedFiles[0]?.name}'?`)}
2718
+ items={selectedItem?.type === 'folder' ? [selectedItem] : allSelectedFiles}
2719
+ target={rootContainerClass}
2720
+ on:confirm={handleDelete}
2721
+ on:cancel={() => {
2722
+ showDeleteConfirmation = false;
2723
+ }}
2724
+ actionType="delete"
2725
+ confirmVariant="attention"
2726
+ modalType="delete"
2727
+ />
2728
+ {/if}
3922
2729
 
3923
- <NewItemDialog
3924
- bind:isOpen={showNewFolderDialog}
3925
- itemType="folder"
3926
- modalType="newFolder"
3927
- placeholder="folder name..."
2730
+ {#if showNewFolderDialog}
2731
+ <NewItemDialog
2732
+ bind:isOpen={showNewFolderDialog}
2733
+ itemType="folder"
2734
+ modalType="newFolder"
2735
+ placeholder="folder name..."
2736
+ target={rootContainerClass}
2737
+ {currentPath}
2738
+ {currentPathNames}
2739
+ showTitle={false}
2740
+ confirmLabel="Create"
2741
+ cancelLabel="Cancel"
2742
+ on:create={handleNewFolder}
2743
+ on:cancel={() => { showNewFolderDialog = false; }}
2744
+ />
2745
+ {/if}
3928
2746
  target={rootContainerClass}
3929
2747
  {currentPath}
3930
2748
  {currentPathNames}