@pubinfo/core 2.0.0-rc.1 → 2.0.0-rc.3

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 (101) hide show
  1. package/dist/{AppSetting-Bblni_W7.js → AppSetting-3wJKvibc.js} +19 -19
  2. package/dist/{HCheckList.vue_vue_type_script_setup_true_lang-A7PnhNKK.js → HCheckList.vue_vue_type_script_setup_true_lang-17EywJvs.js} +1 -1
  3. package/dist/{HToggle-xibvPpmf.js → HToggle-B-ZjSh6S.js} +1 -1
  4. package/dist/{PreferencesContent--JtPw_LT.js → PreferencesContent-xT4paU7N.js} +52 -52
  5. package/dist/{SettingBreadcrumb-BwhdAtkC.js → SettingBreadcrumb-CYnO51Ek.js} +5 -5
  6. package/dist/{SettingCopyright-DPsRDagL.js → SettingCopyright-FOW5ObHK.js} +2 -2
  7. package/dist/{SettingEnableTransition-mtHTUb08.js → SettingEnableTransition-Q5cvubmF.js} +12 -12
  8. package/dist/{SettingHome-agxHFIKq.js → SettingHome-Df7-AlWB.js} +8 -8
  9. package/dist/{SettingMenu-D6WwcOw-.js → SettingMenu-BNAJ3el9.js} +14 -14
  10. package/dist/{SettingMode-CkmhszlD.js → SettingMode-LzlRsBL9.js} +3 -3
  11. package/dist/{SettingNavSearch-CEB5DZGf.js → SettingNavSearch-BA08vYuw.js} +6 -6
  12. package/dist/{SettingOther-Dzs1uwnC.js → SettingOther-BE8dDCYD.js} +11 -11
  13. package/dist/{SettingPage-bOThkL2-.js → SettingPage-D061yXCv.js} +2 -2
  14. package/dist/{SettingTabbar-L6yQxAeE.js → SettingTabbar-COwdPPKy.js} +13 -13
  15. package/dist/{SettingThemes-Cxa5bR66.js → SettingThemes-BHaYERNp.js} +12 -12
  16. package/dist/{SettingToolbar-BZ2uHom2.js → SettingToolbar-fSuzu6ND.js} +10 -10
  17. package/dist/{SettingTopbar-hptxTh8m.js → SettingTopbar-D7GgP0KB.js} +6 -6
  18. package/dist/{SettingWidthMode-D2R2W4-n.js → SettingWidthMode-CNjzChe1.js} +11 -11
  19. package/dist/{TopThinMode-C26i10py.js → TopThinMode-B-28sBJD.js} +3 -3
  20. package/dist/built-in/layout-component/Layout.vue.d.ts +1 -0
  21. package/dist/built-in/layout-component/components/Tools/Fullscreen.vue.d.ts +2 -0
  22. package/dist/built-in/layout-component/components/Tools/PageReload.vue.d.ts +2 -0
  23. package/dist/built-in/layout-component/components/Tools/SearchBar.vue.d.ts +2 -0
  24. package/dist/built-in/layout-component/components/Tools/index.vue.d.ts +47 -207
  25. package/dist/built-in/layout-component/components/Tools/interface.d.ts +26 -0
  26. package/dist/built-in/layout-component/components/Topbar/Tabbar/MoreAction.vue.d.ts +0 -206
  27. package/dist/built-in/layout-component/components/ui/HDropdownMenu.vue.d.ts +2 -7
  28. package/dist/built-in/layout-component/composables/useGlobalSearch.d.ts +19 -0
  29. package/dist/built-in/layout-component/composables/useHotkey.d.ts +1 -5
  30. package/dist/built-in/layout-component/composables/useMainPage.d.ts +1 -1
  31. package/dist/built-in/layout-component/composables/useMenu.d.ts +1 -1
  32. package/dist/built-in/layout-component/composables/useTabbar.d.ts +1 -1
  33. package/dist/built-in/layout-component/composables/useTitle.d.ts +2 -1
  34. package/dist/built-in/layout-component/composables/useWatermark.d.ts +3 -1
  35. package/dist/built-in/layout-component/index.d.ts +9 -6
  36. package/dist/built-in/layout-component/utils/index.d.ts +0 -1
  37. package/dist/{colors-C8I6Fdyp.js → colors-BIQSd520.js} +1 -1
  38. package/dist/{index-RwbJwutI.js → index-Beb7_0-E.js} +14499 -14397
  39. package/dist/{index-D948mfZb.js → index-CPRiufg0.js} +1 -1
  40. package/dist/{index-DZ6SbWiv.js → index-DNdH93AP.js} +13 -13
  41. package/dist/index-DYMBkmAp.js +139 -0
  42. package/dist/{index-DdS6qgK_.js → index-Dlf6GQBd.js} +6418 -6439
  43. package/dist/{index-D3zjK9rd.js → index-IscoZG-Y.js} +2 -2
  44. package/dist/{index-DeWCd_-p.js → index-WubcSL0v.js} +1 -1
  45. package/dist/index-YSjb6X1D.js +232 -0
  46. package/dist/{index-EOTrQlGo.js → index-wxEEuQXu.js} +17 -17
  47. package/dist/index.d.ts +4 -2
  48. package/dist/index.js +53 -55
  49. package/dist/{pick-D6j4F3UM.js → pick-D_XPbQHB.js} +1 -1
  50. package/dist/style.css +1 -1
  51. package/package.json +10 -10
  52. package/src/built-in/authentication/pages/change-organization/assets/change-org.svg +1 -1
  53. package/src/built-in/authentication/pages/change-password/assets/mima.svg +1 -1
  54. package/src/built-in/authorization/pages/not-permission/403.svg +1 -1
  55. package/src/built-in/authorization/pages/not-permission/403_dark.svg +1 -1
  56. package/src/built-in/layout-component/Layout.vue +11 -22
  57. package/src/built-in/layout-component/assets/icons/favorites.svg +1 -1
  58. package/src/built-in/layout-component/assets/icons/toolbar-collapse.svg +1 -1
  59. package/src/built-in/layout-component/components/Header/TopMode/index.vue +1 -1
  60. package/src/built-in/layout-component/components/Sidebar/MainSidebar.vue +1 -1
  61. package/src/built-in/layout-component/components/Sidebar/index.vue +1 -1
  62. package/src/built-in/layout-component/components/Tools/DarkModeToggle.vue +108 -0
  63. package/src/built-in/layout-component/components/Tools/Fullscreen.vue +24 -0
  64. package/src/built-in/layout-component/components/Tools/PageReload.vue +22 -0
  65. package/src/built-in/layout-component/components/Tools/SearchBar.vue +44 -0
  66. package/src/built-in/layout-component/components/Tools/{Search.vue → SearchPanel.vue} +12 -6
  67. package/src/built-in/layout-component/components/Tools/index.vue +64 -130
  68. package/src/built-in/layout-component/components/Tools/interface.ts +27 -0
  69. package/src/built-in/layout-component/components/Topbar/Tabbar/MoreAction.vue +7 -6
  70. package/src/built-in/layout-component/components/Topbar/Tabbar/index.vue +2 -2
  71. package/src/built-in/layout-component/components/Topbar/Toolbar/index.vue +32 -10
  72. package/src/built-in/layout-component/components/ui/HDropdownMenu.vue +19 -26
  73. package/src/built-in/layout-component/composables/useGetComputedStyle.ts +2 -3
  74. package/src/built-in/layout-component/composables/useGlobalSearch.ts +48 -0
  75. package/src/built-in/layout-component/composables/useHotkey.ts +6 -10
  76. package/src/built-in/layout-component/composables/useMainPage.ts +5 -6
  77. package/src/built-in/layout-component/composables/useMenu.ts +3 -5
  78. package/src/built-in/layout-component/composables/useTabbar.ts +3 -5
  79. package/src/built-in/layout-component/composables/useTitle.ts +2 -3
  80. package/src/built-in/layout-component/composables/useWatermark.ts +25 -12
  81. package/src/built-in/layout-component/index.ts +21 -12
  82. package/src/built-in/layout-component/provider.ts +6 -2
  83. package/src/built-in/layout-component/utils/index.ts +0 -1
  84. package/src/built-in/settings/router.ts +5 -1
  85. package/src/features/assets/fonts/digital-7/digital-7-webfont.svg +131 -133
  86. package/src/features/assets/fonts/digital-7_mono/digital-7_mono-webfont.svg +130 -132
  87. package/src/features/assets/images/org.svg +2 -2
  88. package/src/features/components/NotAllowed/assets/403.svg +1 -1
  89. package/src/features/components/NotAllowed/assets/403_dark.svg +1 -1
  90. package/src/features/components/PubinfoIcon/index.vue +1 -1
  91. package/src/features/pages/not-found/assets/404.svg +1 -1
  92. package/src/features/pages/not-found/assets/404_dark.svg +1 -1
  93. package/src/features/stores/utils/routerHelper.ts +3 -0
  94. package/src/index.ts +7 -9
  95. package/dist/built-in/layout-component/utils/eventBus.d.ts +0 -5
  96. package/dist/index-CkyHqPON.js +0 -139
  97. package/dist/index-xzfvpJSq.js +0 -234
  98. package/src/built-in/layout-component/components/Tools/DayNightSwitch.vue +0 -70
  99. package/src/built-in/layout-component/utils/eventBus.ts +0 -8
  100. /package/dist/built-in/layout-component/components/Tools/{DayNightSwitch.vue.d.ts → DarkModeToggle.vue.d.ts} +0 -0
  101. /package/dist/built-in/layout-component/components/Tools/{Search.vue.d.ts → SearchPanel.vue.d.ts} +0 -0
@@ -1,70 +0,0 @@
1
- <script setup lang="ts">
2
- import { useContext } from '../../composables/useContext';
3
-
4
- defineOptions({
5
- name: 'DayNightSwitch',
6
- });
7
-
8
- const { settingsStore } = useContext();
9
- </script>
10
-
11
- <template>
12
- <label v-if="settingsStore.settings.toolbar.enableColorScheme" class="day-night">
13
- <div
14
- class="animate-icon"
15
- :class="{
16
- 'animate-icon-day': settingsStore.settings.app.colorScheme !== 'dark',
17
- }"
18
- />
19
- </label>
20
- </template>
21
-
22
- <style scoped>
23
- .day-night {
24
- --at-apply: size-11 cursor-pointer scale-45;
25
- }
26
-
27
- .animate-icon {
28
- --at-apply: relative size-38px rounded-1/2 ;
29
- box-shadow: inset 16px -16px 0 0 #fff;
30
- transition: box-shadow 0.5s ease 0s, transform 0.4s ease 0.1s;
31
- transform: scale(1) rotate(-2deg);
32
- }
33
-
34
- .animate-icon::before {
35
- --at-apply: absolute w-[inherit] h-[inherit] content-empty rounded-[inherit] left-0 top-0;
36
- transition: background 0.3s ease;
37
- }
38
-
39
- .animate-icon::after {
40
- --at-apply: absolute top-1/2 left-1/2 size-2 -ml-1 mr-0 -mt-1 mb-0 rounded-[50%] content-empty;
41
- box-shadow:
42
- 0 -23px 0 #ffce6e,
43
- 0 23px 0 #ffce6e,
44
- 23px 0 0 #ffce6e,
45
- -23px 0 0 #ffce6e,
46
- 15px 15px 0 #ffce6e,
47
- -15px 15px 0 #ffce6e,
48
- 15px -15px 0 #ffce6e,
49
- -15px -15px 0 #ffce6e;
50
- transition: all 0.3s ease;
51
- transform: scale(0);
52
- }
53
-
54
- .animate-icon-day {
55
- --at-apply: size-11;
56
- box-shadow: inset 32px -32px 0 0 #fff;
57
- transition: transform 0.3s ease 0.1s, box-shadow 0.2s ease 0s;
58
- transform: scale(0.5) rotate(0deg);
59
- }
60
-
61
- .animate-icon-day::before {
62
- background: #ffce6e;
63
- transition: background 0.3s ease 0.1s;
64
- }
65
-
66
- .animate-icon-day::after {
67
- transition: transform 0.5s ease 0.15s;
68
- transform: scale(1.5);
69
- }
70
- </style>
@@ -1,8 +0,0 @@
1
- // TODO 考虑优化掉
2
- import mitt from 'mitt';
3
-
4
- interface MittTypes {
5
- [key: PropertyKey]: any
6
- }
7
-
8
- export const eventBus = mitt<MittTypes>();