@pubinfo/core 2.0.0-beta.31 → 2.0.0-beta.32

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 (124) hide show
  1. package/dist/{AppSetting-C1dyZ-8E.js → AppSetting-DhcdApoo.js} +17 -17
  2. package/dist/{HCheckList.vue_vue_type_script_setup_true_lang-B3wESRn7.js → HCheckList.vue_vue_type_script_setup_true_lang-Bi9jyf-Y.js} +2 -2
  3. package/dist/HDivider.vue_vue_type_script_setup_true_lang-DIHR-9Yv.js +20 -0
  4. package/dist/HToggle-Di3WNnzE.js +34 -0
  5. package/dist/{PreferencesContent-DgycKl9e.js → PreferencesContent-BdSTTSM-.js} +6 -6
  6. package/dist/{SettingBreadcrumb-BlgX0ZNE.js → SettingBreadcrumb-ChQx96br.js} +8 -8
  7. package/dist/{SettingCopyright-FmqadL1w.js → SettingCopyright-CkMab5VK.js} +8 -8
  8. package/dist/{SettingEnableTransition-dzMgw8cN.js → SettingEnableTransition-BSXU87vT.js} +15 -15
  9. package/dist/{SettingHome-BwlXsTTt.js → SettingHome-DwioPezC.js} +13 -13
  10. package/dist/{SettingMenu-B5tHMS24.js → SettingMenu-yvKu7Yoq.js} +25 -25
  11. package/dist/{SettingMode-Bh0mvh66.js → SettingMode-C99ADNad.js} +6 -6
  12. package/dist/{SettingNavSearch-D4g24uwl.js → SettingNavSearch-mURLLetZ.js} +8 -8
  13. package/dist/{SettingOther-DwTtu6As.js → SettingOther-BGoSdp7a.js} +9 -9
  14. package/dist/{SettingPage-cDQXtwcG.js → SettingPage-Wwy5PtzC.js} +7 -7
  15. package/dist/{SettingTabbar-m8X7jEJH.js → SettingTabbar-C2ya4r4U.js} +9 -9
  16. package/dist/{SettingThemes-CX9ISeD_.js → SettingThemes-7oYUooGR.js} +27 -27
  17. package/dist/{SettingToolbar-ByLjBezg.js → SettingToolbar-A6OiGfAD.js} +5 -5
  18. package/dist/{SettingTopbar-o8wBZolp.js → SettingTopbar-GDEPltxm.js} +9 -9
  19. package/dist/{SettingWidthMode-Ux60mKiv.js → SettingWidthMode-qwkmTFIK.js} +15 -15
  20. package/dist/{TopThinMode-17GrCZdo.js → TopThinMode-BkmPN66X.js} +1 -1
  21. package/dist/{_...all_-6l5FWUkL.js → _...all_-CdjdWhUr.js} +5 -5
  22. package/dist/assets/styles/index.d.ts +3 -3
  23. package/dist/{colors-DiWJrScm.js → colors-7rGvqeKK.js} +1 -1
  24. package/dist/{index-CfasTv4x.js → index-BC-gcL8e.js} +4 -4
  25. package/dist/{index-Md7zV10q.js → index-C-6XxK2D.js} +5 -5
  26. package/dist/{index-bsi-FZDt.js → index-CgLD0zqO.js} +169 -169
  27. package/dist/{index-BmMbAV1Y.js → index-CtyzB2cq.js} +13 -13
  28. package/dist/{index-Ckgil96Y.js → index-Cw1uN5m-.js} +2 -2
  29. package/dist/{index-Be7jJtXg.js → index-DVUDANdM.js} +5 -5
  30. package/dist/{index-Dzwhw1L9.js → index-Dpq4uqWd.js} +22 -22
  31. package/dist/{index-DgpcBgWl.js → index-DuoLZ3r3.js} +4394 -4294
  32. package/dist/{index-De_ME_Ws.js → index-sYaQXYQC.js} +2 -2
  33. package/dist/index.js +4 -4
  34. package/dist/{index.vue_vue_type_style_index_0_scoped_fa1c6ee4_lang-B3Eieo0k.js → index.vue_vue_type_style_index_0_scoped_051f4e99_lang-CuU-JtjC.js} +870 -856
  35. package/dist/interface.d.ts +12 -0
  36. package/dist/layout/ui-kit/HDialog.vue.d.ts +1 -1
  37. package/dist/layout/ui-kit/HSlideover.vue.d.ts +1 -1
  38. package/dist/layout/ui-kit/HTooltip.vue.d.ts +1 -1
  39. package/dist/{menu-CC5544p-.js → menu-BL6hH6OM.js} +1862 -1856
  40. package/dist/{pick-CJo2YiT-.js → pick-CAmKymZJ.js} +1 -1
  41. package/dist/request.js +34 -32
  42. package/dist/stores/plugin/persist.d.ts +2 -2
  43. package/dist/style.css +3 -3
  44. package/package.json +25 -26
  45. package/src/assets/styles/globals.css +188 -0
  46. package/src/assets/styles/index.ts +3 -3
  47. package/src/assets/styles/nprogress.css +68 -0
  48. package/src/assets/styles/rbac.css +51 -0
  49. package/src/assets/styles/resources/utils.css +53 -0
  50. package/src/assets/styles/resources/variables.css +5 -0
  51. package/src/components/NotAllowed/index.vue +4 -6
  52. package/src/components/PassStrengthValidator/index.vue +33 -48
  53. package/src/components/PassStrengthValidator/rule.vue +13 -25
  54. package/src/components/PubinfoIcon/index.vue +4 -8
  55. package/src/composables/watchDiff.ts +1 -1
  56. package/src/create.ts +10 -3
  57. package/src/interface.ts +19 -0
  58. package/src/layout/Layout.vue +113 -161
  59. package/src/layout/components/Content/IframeView.vue +1 -2
  60. package/src/layout/components/Content/LinkView.vue +2 -2
  61. package/src/layout/components/Content/index.vue +1 -2
  62. package/src/layout/components/Copyright/index.vue +7 -8
  63. package/src/layout/components/Header/TopMode/More.vue +24 -32
  64. package/src/layout/components/Header/TopMode/NotCursor.vue +20 -29
  65. package/src/layout/components/Header/TopMode/index.vue +1 -1
  66. package/src/layout/components/Header/index.vue +118 -206
  67. package/src/layout/components/Logo/index.vue +4 -19
  68. package/src/layout/components/Menu/item.vue +16 -25
  69. package/src/layout/components/SettingBar/AppSetting.vue +11 -11
  70. package/src/layout/components/SettingBar/components/DayNightToggle.vue +26 -120
  71. package/src/layout/components/SettingBar/components/SettingEnableTransition.vue +111 -136
  72. package/src/layout/components/SettingBar/components/SettingMode.vue +78 -88
  73. package/src/layout/components/SettingBar/components/SettingThemes.vue +48 -85
  74. package/src/layout/components/SettingBar/components/SettingWidthMode.vue +63 -71
  75. package/src/layout/components/SettingBar/index.vue +29 -62
  76. package/src/layout/components/Sidebar/MainSidebar.vue +81 -126
  77. package/src/layout/components/Sidebar/SubSidebar.vue +50 -59
  78. package/src/layout/components/Tools/Breadcrumb/index.vue +6 -12
  79. package/src/layout/components/Tools/DayNightSwitch.vue +40 -63
  80. package/src/layout/components/Tools/Preferences/PreferencesContent.vue +210 -277
  81. package/src/layout/components/Tools/Search.vue +5 -5
  82. package/src/layout/components/Tools/index.vue +1 -1
  83. package/src/layout/components/Topbar/Tabbar/MoreAction.vue +98 -145
  84. package/src/layout/components/Topbar/Tabbar/index.vue +259 -395
  85. package/src/layout/components/Topbar/Toolbar/Favorites.vue +4 -4
  86. package/src/layout/components/Topbar/Toolbar/index.vue +39 -56
  87. package/src/layout/components/Topbar/index.vue +16 -19
  88. package/src/layout/composables/useContext.ts +1 -1
  89. package/src/layout/composables/useMenu.ts +1 -1
  90. package/src/layout/composables/useTabbar.ts +1 -1
  91. package/src/layout/composables/useTitle.ts +1 -1
  92. package/src/layout/provider.ts +1 -1
  93. package/src/layout/ui-kit/HDialog.vue +1 -1
  94. package/src/layout/ui-kit/HDivider.vue +6 -35
  95. package/src/layout/ui-kit/HSlideover.vue +1 -1
  96. package/src/layout/ui-kit/HToggle.vue +49 -93
  97. package/src/layout/ui-kit/HTooltip.vue +1 -1
  98. package/src/locales/index.ts +1 -1
  99. package/src/pages/personal/profile/index.vue +1 -1
  100. package/src/pages/system/[...all].vue +4 -6
  101. package/src/pages/system/change-organization/index.vue +23 -37
  102. package/src/pages/system/change-password/components/ChangePasswordForm/index.vue +1 -1
  103. package/src/pages/system/change-password/index.vue +16 -29
  104. package/src/pages/system/not-permission/index.vue +4 -6
  105. package/src/route/guard/basic.ts +1 -1
  106. package/src/route/routes.ts +1 -1
  107. package/src/stores/modules/favorites.ts +1 -1
  108. package/src/stores/modules/menu.ts +1 -1
  109. package/src/stores/modules/route.ts +2 -2
  110. package/src/stores/modules/settings.ts +7 -7
  111. package/src/stores/modules/user.ts +2 -2
  112. package/src/stores/plugin/persist.ts +3 -3
  113. package/src/stores/plugin/sideEffect/tabbarStorage.ts +1 -1
  114. package/src/utils/crypto.ts +1 -1
  115. package/types/auto-imports.d.ts +1 -1
  116. package/types/components.d.ts +1 -0
  117. package/types/vue-router.d.ts +8 -8
  118. package/dist/HDivider-DgXBhPr0.js +0 -21
  119. package/dist/HToggle-Cd71WKvG.js +0 -34
  120. package/src/assets/styles/globals.scss +0 -189
  121. package/src/assets/styles/nprogress.scss +0 -63
  122. package/src/assets/styles/rbac.scss +0 -61
  123. package/src/assets/styles/resources/utils.scss +0 -53
  124. package/src/assets/styles/resources/variables.scss +0 -6
@@ -371,353 +371,286 @@ async function resetSetting() {
371
371
  </div>
372
372
  </template>
373
373
 
374
- <style lang="scss" scoped>
374
+ <style lang="css" scoped>
375
375
  .divider {
376
376
  --at-apply: flex items-center justify-between gap-4 my-4 whitespace-nowrap text-sm font-500;
377
+ }
377
378
 
378
- &::before,
379
- &::after {
380
- --at-apply: content-empty w-full h-1px bg-stone-2 dark:bg-stone-6;
381
- }
379
+ .divider::before,
380
+ .divider::after {
381
+ --at-apply: content-empty w-full h-1px bg-stone-2 dark:bg-stone-6;
382
382
  }
383
383
 
384
384
  .themes {
385
385
  --at-apply: flex flex-wrap items-center justify-center gap-4 pb-4;
386
+ }
386
387
 
387
- .theme {
388
- --at-apply: flex items-center justify-center w-12 h-12 rounded-2 ring-1 ring-stone-2 dark:ring-stone-7 cursor-pointer transition;
388
+ .theme {
389
+ --at-apply: flex items-center justify-center w-12 h-12 rounded-2 ring-1 ring-stone-2 dark:ring-stone-7 cursor-pointer transition;
390
+ }
389
391
 
390
- &.active {
391
- --at-apply: ring-ui-primary ring-2;
392
+ .theme.active {
393
+ --at-apply: ring-ui-primary ring-2;
394
+ }
392
395
 
393
- .content {
394
- --at-apply: rotate-0;
395
- }
396
- }
396
+ .theme.active .content {
397
+ --at-apply: rotate-0;
398
+ }
397
399
 
398
- .content {
399
- --at-apply: w-6 h-4 rounded-50% -rotate-45 transition;
400
- }
401
- }
400
+ .theme .content {
401
+ --at-apply: w-6 h-4 rounded-50% -rotate-45 transition;
402
402
  }
403
403
 
404
404
  .menu-mode {
405
405
  --at-apply: flex items-center justify-center gap-4 pb-4;
406
+ }
406
407
 
407
- .mode {
408
- --at-apply: relative w-16 h-12 rounded-2 ring-1 ring-stone-2 dark:ring-stone-7 cursor-pointer transition;
408
+ .mode {
409
+ --at-apply: relative w-16 h-12 rounded-2 ring-1 ring-stone-2 dark:ring-stone-7 cursor-pointer transition;
410
+ }
409
411
 
410
- &.active {
411
- --at-apply: ring-ui-primary ring-2;
412
- }
412
+ .mode.active {
413
+ --at-apply: ring-ui-primary ring-2;
414
+ }
413
415
 
414
- &::before,
415
- &::after,
416
- .mode-container {
417
- --at-apply: absolute pointer-events-none;
418
- }
416
+ .mode::before,
417
+ .mode::after,
418
+ .mode .mode-container {
419
+ --at-apply: absolute pointer-events-none;
420
+ }
419
421
 
420
- &::before {
421
- --at-apply: content-empty bg-ui-primary;
422
- }
422
+ .mode::before {
423
+ --at-apply: content-empty bg-ui-primary;
424
+ }
423
425
 
424
- &::after {
425
- --at-apply: content-empty bg-ui-primary/60;
426
- }
426
+ .mode::after {
427
+ --at-apply: content-empty bg-ui-primary/60;
428
+ }
427
429
 
428
- .mode-container {
429
- --at-apply: bg-ui-primary/20 border-dashed border-ui-primary;
430
+ .mode .mode-container {
431
+ --at-apply: bg-ui-primary/20 border-dashed border-ui-primary;
432
+ }
430
433
 
431
- &::before {
432
- --at-apply: content-empty absolute w-full h-full;
433
- }
434
- }
434
+ .mode .mode-container::before {
435
+ --at-apply: content-empty absolute w-full h-full;
436
+ }
435
437
 
436
- &-side {
437
- &::before {
438
- --at-apply: top-2 bottom-2 left-2 w-2 rounded-tl-1 rounded-bl-1;
439
- }
438
+ .mode-side::before {
439
+ --at-apply: top-2 bottom-2 left-2 w-2 rounded-tl-1 rounded-bl-1;
440
+ }
440
441
 
441
- &::after {
442
- --at-apply: top-2 bottom-2 left-4.5 w-3;
443
- }
442
+ .mode-side::after {
443
+ --at-apply: top-2 bottom-2 left-4.5 w-3;
444
+ }
444
445
 
445
- .mode-container {
446
- --at-apply: inset-t-2 inset-r-2 inset-b-2 inset-l-8 rounded-tr-1 rounded-br-1;
447
- }
448
- }
446
+ .mode-side .mode-container {
447
+ --at-apply: inset-t-2 inset-r-2 inset-b-2 inset-l-8 rounded-tr-1 rounded-br-1;
448
+ }
449
449
 
450
- &-head {
451
- &::before {
452
- --at-apply: top-2 left-2 right-2 h-2 rounded-tl-1 rounded-tr-1;
453
- }
450
+ .mode-head::before {
451
+ --at-apply: top-2 left-2 right-2 h-2 rounded-tl-1 rounded-tr-1;
452
+ }
454
453
 
455
- &::after {
456
- --at-apply: top-4.5 left-2 bottom-2 w-3 rounded-bl-1;
457
- }
454
+ .mode-head::after {
455
+ --at-apply: top-4.5 left-2 bottom-2 w-3 rounded-bl-1;
456
+ }
458
457
 
459
- .mode-container {
460
- --at-apply: inset-t-4.5 inset-r-2 inset-b-2 inset-l-5.5 rounded-br-1;
461
- }
462
- }
458
+ .mode-head .mode-container {
459
+ --at-apply: inset-t-4.5 inset-r-2 inset-b-2 inset-l-5.5 rounded-br-1;
460
+ }
463
461
 
464
- &-single {
465
- &::after {
466
- --at-apply: top-2 left-2 bottom-2 w-3 rounded-tl-1 rounded-bl-1;
467
- }
462
+ .mode-single::after {
463
+ --at-apply: top-2 left-2 bottom-2 w-3 rounded-tl-1 rounded-bl-1;
464
+ }
468
465
 
469
- .mode-container {
470
- --at-apply: inset-t-2 inset-r-2 inset-b-2 inset-l-5.5 rounded-tr-1 rounded-br-1;
471
- }
472
- }
466
+ .mode-single .mode-container {
467
+ --at-apply: inset-t-2 inset-r-2 inset-b-2 inset-l-5.5 rounded-tr-1 rounded-br-1;
468
+ }
473
469
 
474
- &-only-side {
475
- &::before {
476
- --at-apply: top-2 bottom-2 left-2 w-2 rounded-tl-1 rounded-bl-1;
477
- }
470
+ .mode-only-side::before {
471
+ --at-apply: top-2 bottom-2 left-2 w-2 rounded-tl-1 rounded-bl-1;
478
472
 
479
- .mode-container {
480
- --at-apply: inset-t-2 inset-r-2 inset-b-2 inset-l-4.5 rounded-tr-1 rounded-br-1;
481
- }
482
- }
473
+ }
483
474
 
484
- &-only-head {
485
- &::before {
486
- --at-apply: top-2 left-2 right-2 h-2 rounded-tl-1 rounded-tr-1;
487
- }
475
+ .mode-only-side .mode-container {
476
+ --at-apply: inset-t-2 inset-r-2 inset-b-2 inset-l-4.5 rounded-tr-1 rounded-br-1;
477
+ }
488
478
 
489
- .mode-container {
490
- --at-apply: inset-t-4.5 inset-r-2 inset-b-2 inset-l-2 rounded-bl-1 rounded-br-1;
491
- }
492
- }
493
- }
479
+ .mode-only-head::before {
480
+ --at-apply: top-2 left-2 right-2 h-2 rounded-tl-1 rounded-tr-1;
481
+ }
482
+
483
+ .mode-only-head .mode-container {
484
+ --at-apply: inset-t-4.5 inset-r-2 inset-b-2 inset-l-2 rounded-bl-1 rounded-br-1;
494
485
  }
495
486
 
496
487
  .app-width-mode {
497
488
  --at-apply: flex items-center justify-center gap-4 pb-4;
489
+ }
498
490
 
499
- .mode {
500
- --at-apply: relative w-16 h-12 rounded-2 ring-1 ring-stone-2 dark:ring-stone-7 cursor-pointer transition of-hidden;
491
+ .app-width-mode .mode {
492
+ --at-apply: relative w-16 h-12 rounded-2 ring-1 ring-stone-2 dark:ring-stone-7 cursor-pointer transition of-hidden;
493
+ }
501
494
 
502
- &.active {
503
- --at-apply: ring-ui-primary ring-2;
504
- }
495
+ .app-width-mode .mode.active {
496
+ --at-apply: ring-ui-primary ring-2;
497
+ }
505
498
 
506
- &-adaption {
507
- &::before {
508
- --at-apply: content-empty absolute w-full h-full bg-stone-1 dark:bg-stone-9;
509
- }
499
+ .mode-adaption::before {
500
+ --at-apply: content-empty absolute w-full h-full bg-stone-1 dark:bg-stone-9;
501
+ }
510
502
 
511
- .left,
512
- .right {
513
- --at-apply: absolute top-1/2 -translate-y-1/2;
514
- }
503
+ @media (prefers-color-scheme: dark) {
504
+ .mode-adaption::before {
505
+ background-color: rgba(255, 255, 255, 0.05);
506
+ }
507
+ }
515
508
 
516
- .left {
517
- --at-apply: left-1;
518
- }
509
+ .mode-adaption .left,
510
+ .mode-adaption .right {
511
+ --at-apply: absolute top-1/2 -translate-y-1/2;
512
+ }
519
513
 
520
- .right {
521
- --at-apply: right-1;
522
- }
523
- }
514
+ .mode-adaption .left {
515
+ --at-apply: left-1;
516
+ }
524
517
 
525
- &-adaption-min-width {
526
- &::before {
527
- --at-apply: content-empty absolute w-1/2 h-full left-1/2 -translate-x-1/2 bg-stone-1 dark:bg-stone-9;
528
- }
518
+ .mode-adaption .right {
519
+ --at-apply: right-1;
520
+ }
529
521
 
530
- .left,
531
- .right {
532
- --at-apply: absolute top-1/2 -translate-y-1/2;
533
- }
522
+ .mode-adaption-min-width::before {
523
+ --at-apply: content-empty absolute w-1/2 h-full left-1/2 -translate-x-1/2 bg-stone-1 dark:bg-stone-9;
524
+ }
534
525
 
535
- .left {
536
- --at-apply: left-0.5;
537
- }
526
+ .mode-adaption-min-width .left,
527
+ .mode-adaption-min-width .right {
528
+ --at-apply: absolute top-1/2 -translate-y-1/2;
529
+ }
538
530
 
539
- .right {
540
- --at-apply: right-0.5;
541
- }
542
- }
531
+ .mode-adaption-min-width .left {
532
+ --at-apply: left-0.5;
533
+ }
543
534
 
544
- &-center {
545
- &::before {
546
- --at-apply: content-empty absolute w-3/5 h-full left-1/2 -translate-x-1/2 bg-stone-1 dark:bg-stone-9;
547
- }
548
- }
535
+ .mode-adaption-min-width .right {
536
+ --at-apply: right-0.5;
537
+ }
549
538
 
550
- &-center-max-width {
551
- &::before {
552
- --at-apply: content-empty absolute w-3/5 h-full left-1/2 -translate-x-1/2 bg-stone-1 dark:bg-stone-9;
553
- }
539
+ .mode-center::before {
540
+ --at-apply: content-empty absolute w-3/5 h-full left-1/2 -translate-x-1/2 bg-stone-1 dark:bg-stone-9;
541
+ }
554
542
 
555
- .left,
556
- .right {
557
- --at-apply: absolute top-1/2 -translate-y-1/2;
558
- }
543
+ .mode-center-max-width::before {
544
+ --at-apply: content-empty absolute w-3/5 h-full left-1/2 -translate-x-1/2 bg-stone-1 dark:bg-stone-9;
545
+ }
559
546
 
560
- .left {
561
- --at-apply: left-2.5;
562
- }
547
+ .mode-center-max-width .left,
548
+ .mode-center-max-width .right {
549
+ --at-apply: absolute top-1/2 -translate-y-1/2;
550
+ }
563
551
 
564
- .right {
565
- --at-apply: right-2.5;
566
- }
567
- }
568
- }
552
+ .mode-center-max-width .left {
553
+ --at-apply: left-2.5;
554
+ }
555
+
556
+ .mode-center-max-width .right {
557
+ --at-apply: right-2.5;
569
558
  }
570
559
 
571
560
  .transition-mode {
572
561
  --at-apply: flex items-center justify-center gap-4 pb-4;
562
+ }
573
563
 
574
- .mode {
575
- --at-apply: relative flex items-center justify-center w-14 h-10 rounded-2 ring-1 ring-stone-2 dark:ring-stone-7 cursor-pointer;
576
-
577
- &.active {
578
- --at-apply: ring-ui-primary ring-2;
579
- }
564
+ .transition-mode .mode {
565
+ --at-apply: relative flex items-center justify-center w-14 h-10 rounded-2 ring-1 ring-stone-2 dark:ring-stone-7 cursor-pointer;
566
+ }
580
567
 
581
- &::after {
582
- --at-apply: content-empty absolute w-3/5 h-3/5 top-1/5 left-1/5 rounded-2 bg-stone-2 dark:bg-stone-9 transition;
583
- }
568
+ .transition-mode .mode.active {
569
+ --at-apply: ring-ui-primary ring-2;
570
+ }
584
571
 
585
- &.mode-fade {
586
- &::after {
587
- animation: transition-mode-fade-after 1.5s infinite;
588
- }
589
-
590
- @keyframes transition-mode-fade-after {
591
- 0% {
592
- opacity: 1;
593
- }
594
-
595
- 30%,
596
- 35% {
597
- opacity: 0;
598
- }
599
-
600
- 65% {
601
- opacity: 1;
602
- }
603
- }
604
- }
572
+ .transition-mode .mode::after {
573
+ --at-apply: content-empty absolute w-3/5 h-3/5 top-1/5 left-1/5 rounded-2 bg-stone-2 dark:bg-stone-9 transition;
574
+ }
605
575
 
606
- &.mode-slide-left {
607
- &::after {
608
- animation: transition-mode-slide-left 1.5s infinite;
609
- }
610
-
611
- @keyframes transition-mode-slide-left {
612
- 0% {
613
- opacity: 1;
614
- }
615
-
616
- 30% {
617
- opacity: 0;
618
- transform: translate(-30%, 0);
619
- }
620
-
621
- 35% {
622
- opacity: 0;
623
- transform: translate(30%, 0);
624
- }
625
-
626
- 65% {
627
- opacity: 1;
628
- }
629
- }
630
- }
576
+ .mode-fade::after {
577
+ animation: transition-mode-fade-after 1.5s infinite;
578
+ }
631
579
 
632
- &.mode-slide-right {
633
- &::after {
634
- animation: transition-mode-slide-right 1.5s infinite;
635
- }
636
-
637
- @keyframes transition-mode-slide-right {
638
- 0% {
639
- opacity: 1;
640
- }
641
-
642
- 30% {
643
- opacity: 0;
644
- transform: translate(30%, 0);
645
- }
646
-
647
- 35% {
648
- opacity: 0;
649
- transform: translate(-30%, 0);
650
- }
651
-
652
- 100% {
653
- opacity: 1;
654
- }
655
- }
656
- }
580
+ @keyframes transition-mode-fade-after {
581
+ 0% {
582
+ opacity: 1;
583
+ }
584
+ 30%,
585
+ 35% {
586
+ opacity: 0;
587
+ }
588
+ 65% {
589
+ opacity: 1;
590
+ }
591
+ }
657
592
 
658
- &.mode-slide-top {
659
- &::after {
660
- animation: transition-mode-slide-top 1.5s infinite;
661
- }
662
-
663
- @keyframes transition-mode-slide-top {
664
- 0% {
665
- opacity: 1;
666
- }
667
-
668
- 30% {
669
- opacity: 0;
670
- transform: translate(0, -30%);
671
- }
672
-
673
- 35% {
674
- opacity: 0;
675
- transform: translate(0, 30%);
676
- }
677
-
678
- 100% {
679
- opacity: 1;
680
- }
681
- }
682
- }
593
+ .mode-slide-left::after {
594
+ animation: transition-mode-slide-left 1.5s infinite;
595
+ }
683
596
 
684
- &.mode-slide-bottom {
685
- &::after {
686
- animation: transition-mode-slide-bottom 1.5s infinite;
687
- }
688
-
689
- @keyframes transition-mode-slide-bottom {
690
- 0% {
691
- opacity: 1;
692
- }
693
-
694
- 30% {
695
- opacity: 0;
696
- transform: translate(0, 30%);
697
- }
698
-
699
- 35% {
700
- opacity: 0;
701
- transform: translate(0, -30%);
702
- }
703
-
704
- 100% {
705
- opacity: 1;
706
- }
707
- }
708
- }
597
+ @keyframes transition-mode-slide-left {
598
+ 0% {
599
+ opacity: 1;
600
+ }
601
+ 30% {
602
+ opacity: 0; transform: translate(-30%, 0);
709
603
  }
604
+ 35% {
605
+ opacity: 0; transform: translate(30%, 0);
606
+ }
607
+ 65% {
608
+ opacity: 1;
609
+ }
610
+ }
611
+
612
+ .mode-slide-right::after {
613
+ animation: transition-mode-slide-right 1.5s infinite;
614
+ }
615
+
616
+ @keyframes transition-mode-slide-right {
617
+ 0% { opacity: 1; }
618
+ 30% { opacity: 0; transform: translate(30%, 0); }
619
+ 35% { opacity: 0; transform: translate(-30%, 0); }
620
+ 100% { opacity: 1; }
621
+ }
622
+
623
+ .mode-slide-top::after {
624
+ animation: transition-mode-slide-top 1.5s infinite;
625
+ }
626
+
627
+ @keyframes transition-mode-slide-top {
628
+ 0% { opacity: 1; }
629
+ 30% { opacity: 0; transform: translate(0, -30%); }
630
+ 35% { opacity: 0; transform: translate(0, 30%); }
631
+ 100% { opacity: 1; }
632
+ }
633
+
634
+ .mode-slide-bottom::after {
635
+ animation: transition-mode-slide-bottom 1.5s infinite;
636
+ }
637
+
638
+ @keyframes transition-mode-slide-bottom {
639
+ 0% { opacity: 1; }
640
+ 30% { opacity: 0; transform: translate(0, 30%); }
641
+ 35% { opacity: 0; transform: translate(0, -30%); }
642
+ 100% { opacity: 1; }
710
643
  }
711
644
 
712
645
  .setting-item {
713
646
  --at-apply: flex items-center justify-between gap-4 px-4 py-2 rounded-2 transition hover:bg-stone-1 dark:hover:bg-stone-9;
647
+ }
714
648
 
715
- .label {
716
- --at-apply: flex items-center flex-shrink-0 gap-2 text-sm;
649
+ .setting-item .label {
650
+ --at-apply: flex items-center flex-shrink-0 gap-2 text-sm;
651
+ }
717
652
 
718
- i {
719
- --at-apply: text-xl text-orange cursor-help;
720
- }
721
- }
653
+ .setting-item .label i {
654
+ --at-apply: text-xl text-orange cursor-help;
722
655
  }
723
656
  </style>
@@ -2,26 +2,26 @@
2
2
  import type { Tabbar } from '#/tabbar';
3
3
  import type { OverlayScrollbarsComponentRef } from 'overlayscrollbars-vue';
4
4
  import type { RouteRecordRaw } from 'vue-router';
5
- import { PubinfoIcon } from '@/components';
6
- import { resolveRoutePath } from '@/utils';
7
5
  import { Dialog, DialogDescription, DialogPanel, TransitionChild, TransitionRoot } from '@headlessui/vue';
8
6
  import hotkeys from 'hotkeys-js';
9
7
  import { cloneDeep } from 'lodash-es';
10
8
  import { OverlayScrollbarsComponent } from 'overlayscrollbars-vue';
11
9
  import { useI18n } from 'vue-i18n';
12
-
13
10
  import AntDesignCaretDownFilled from '~icons/ant-design/caret-down-filled';
14
-
15
11
  import AntDesignCaretUpFilled from '~icons/ant-design/caret-up-filled';
12
+
16
13
  import EpSearch from '~icons/ep/search';
14
+
17
15
  import IonMdReturnLeft from '~icons/ion/md-return-left';
18
16
  import TablerMoodEmpty from '~icons/tabler/mood-empty';
17
+ import { PubinfoIcon } from '@/components';
18
+ import { resolveRoutePath } from '@/utils';
19
19
  import { useContext } from '../../composables/useContext';
20
20
  import Breadcrumb from './Breadcrumb/index.vue';
21
21
  import BreadcrumbItem from './Breadcrumb/item.vue';
22
22
 
23
23
  defineOptions({
24
- name: 'Search',
24
+ name: 'ToolsSearch',
25
25
  });
26
26
 
27
27
  const overlayTransitionClass = ref({
@@ -211,7 +211,7 @@ const searchComponentsClass = computed(() => {
211
211
  </div>
212
212
  </template>
213
213
 
214
- <style lang="scss" scoped>
214
+ <style scoped>
215
215
  .item {
216
216
  --at-apply: flex px-2 py-1 cursor-pointer;
217
217
  }