@pubinfo/core 2.0.0-beta.30 → 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-CVExa3_K.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-p9KS2Pve.js → PreferencesContent-BdSTTSM-.js} +6 -6
  6. package/dist/{SettingBreadcrumb-DwvQtev2.js → SettingBreadcrumb-ChQx96br.js} +8 -8
  7. package/dist/{SettingCopyright-Wb3hkKZZ.js → SettingCopyright-CkMab5VK.js} +8 -8
  8. package/dist/{SettingEnableTransition-DT23T8dO.js → SettingEnableTransition-BSXU87vT.js} +15 -15
  9. package/dist/{SettingHome-C0K6wkyt.js → SettingHome-DwioPezC.js} +13 -13
  10. package/dist/{SettingMenu-CCKj46sg.js → SettingMenu-yvKu7Yoq.js} +25 -25
  11. package/dist/{SettingMode-pwpzZcxj.js → SettingMode-C99ADNad.js} +6 -6
  12. package/dist/{SettingNavSearch-zoiP1hL2.js → SettingNavSearch-mURLLetZ.js} +8 -8
  13. package/dist/{SettingOther-OIZZcjfo.js → SettingOther-BGoSdp7a.js} +9 -9
  14. package/dist/{SettingPage-CyljqOiV.js → SettingPage-Wwy5PtzC.js} +7 -7
  15. package/dist/{SettingTabbar-DCQai4_R.js → SettingTabbar-C2ya4r4U.js} +9 -9
  16. package/dist/{SettingThemes-DJIaIqy1.js → SettingThemes-7oYUooGR.js} +27 -27
  17. package/dist/{SettingToolbar-Dvv11piV.js → SettingToolbar-A6OiGfAD.js} +5 -5
  18. package/dist/{SettingTopbar-CMpP98WU.js → SettingTopbar-GDEPltxm.js} +9 -9
  19. package/dist/{SettingWidthMode-DVPAA6Xs.js → SettingWidthMode-qwkmTFIK.js} +15 -15
  20. package/dist/{TopThinMode-D8rMfa-C.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-lv9zqWqR.js → index-Dpq4uqWd.js} +22 -22
  31. package/dist/{index-CyyndQxa.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
@@ -87,79 +87,70 @@ const enableSidebar = computed(() => {
87
87
  </div>
88
88
  </template>
89
89
 
90
- <style lang="scss" scoped>
90
+ <style lang="css" scoped>
91
91
  .sub-sidebar-container {
92
- position: absolute;
93
- top: 0;
94
- bottom: 0;
95
- left: 0;
96
- display: flex;
97
- flex-direction: column;
98
- width: var(--g-sub-sidebar-width);
99
- background-color: var(--g-sub-sidebar-bg);
92
+ --at-apply: absolute flex flex-col left-0 inset-y-0
93
+ w-[--g-sub-sidebar-width] bg-[--g-sub-sidebar-bg];
100
94
  transition: background-color 0.3s, left 0.3s, width 0.3s;
95
+ }
96
+
97
+ .sub-sidebar-container.is-collapse {
98
+ width: var(--g-sub-sidebar-collapse-width);
99
+ }
100
+
101
+ .sub-sidebar-container.is-collapse .sidebar-logo:not(.sidebar-logo-bg) {
102
+ --at-apply: hidden;
103
+ }
104
+
105
+ .sub-sidebar-container.is-collapse .sidebar-logo :deep(span) {
106
+ --at-apply: hidden;
107
+ }
108
+
109
+ .sidebar-logo {
110
+ --at-apply: bg-[--g-sub-sidebar-bg];
111
+ transition: background-color 0.3s;
112
+ }
113
+
114
+ .sidebar-logo.sidebar-logo-bg {
115
+ background-color: var(--g-sub-sidebar-logo-bg);
116
+ }
117
+
118
+ .sidebar-logo.sidebar-logo-bg :deep(span) {
119
+ color: var(--g-sub-sidebar-logo-color);
120
+ }
121
+
122
+ .sub-sidebar {
123
+ --at-apply: flex-1;
124
+ overflow: hidden auto;
125
+ overscroll-behavior: contain;
126
+ scrollbar-width: none;
127
+ transition: box-shadow 0.3s;
128
+ }
129
+
130
+ .sub-sidebar::-webkit-scrollbar {
131
+ --at-apply: hidden;
132
+ }
133
+
134
+ .sub-sidebar.shadow {
135
+ box-shadow: inset 0 10px 10px -10px var(--g-box-shadow-color);
136
+ }
101
137
 
102
- &.is-collapse {
103
- width: var(--g-sub-sidebar-collapse-width);
104
-
105
- .sidebar-logo {
106
- &:not(.sidebar-logo-bg) {
107
- display: none;
108
- }
109
-
110
- :deep(span) {
111
- display: none;
112
- }
113
- }
114
- }
115
-
116
- .sidebar-logo {
117
- background-color: var(--g-sub-sidebar-bg);
118
- transition: background-color 0.3s;
119
-
120
- &.sidebar-logo-bg {
121
- background-color: var(--g-sub-sidebar-logo-bg);
122
-
123
- :deep(span) {
124
- color: var(--g-sub-sidebar-logo-color);
125
- }
126
- }
127
- }
128
-
129
- .sub-sidebar {
130
- overflow: hidden auto;
131
- overscroll-behavior: contain;
132
-
133
- // firefox隐藏滚动条
134
- scrollbar-width: none;
135
-
136
- // chrome隐藏滚动条
137
- &::-webkit-scrollbar {
138
- display: none;
139
- }
140
-
141
- &.shadow {
142
- box-shadow: inset 0 10px 10px -10px var(--g-box-shadow-color);
143
- }
144
- }
145
-
146
- .menu {
147
- width: 100%;
148
- }
138
+ .menu {
139
+ --at-apply: w-full;
149
140
  }
150
141
 
151
- // 次侧边栏动画
142
+ /* 次侧边栏动画 */
152
143
  .sub-sidebar-enter-active {
153
144
  transition: 0.2s;
154
145
  }
155
146
 
156
147
  .sub-sidebar-enter-from,
157
148
  .sub-sidebar-leave-active {
158
- opacity: 0;
149
+ --at-apply: op-0;
159
150
  transform: translateY(30px) skewY(10deg);
160
151
  }
161
152
 
162
153
  .sub-sidebar-leave-active {
163
- position: absolute;
154
+ --at-apply: absolute;
164
155
  }
165
156
  </style>
@@ -4,18 +4,12 @@
4
4
  </div>
5
5
  </template>
6
6
 
7
- <style lang="scss" scoped>
8
- :deep(.breadcrumb-item) {
9
- &:first-child {
10
- .separator {
11
- display: none;
12
- }
13
- }
7
+ <style scoped>
8
+ :deep(.breadcrumb-item):first-child .separator {
9
+ --at-apply: hidden;
10
+ }
14
11
 
15
- &:last-child {
16
- .text {
17
- opacity: 1;
18
- }
19
- }
12
+ :deep(.breadcrumb-item):last-child .text {
13
+ --at-apply: op-100;
20
14
  }
21
15
  </style>
@@ -19,75 +19,52 @@ const { settingsStore } = useContext();
19
19
  </label>
20
20
  </template>
21
21
 
22
- <style lang="scss" scoped>
23
- $night-btn: #fff;
24
- $day-btn: #ffce6e;
25
-
22
+ <style scoped>
26
23
  .day-night {
27
- width: 44px;
28
- height: 44px;
29
- cursor: pointer;
30
- transform: scale(0.45);
24
+ --at-apply: size-11 cursor-pointer scale-45;
25
+ }
31
26
 
32
- .animate-icon {
33
- position: relative;
34
- width: 38px;
35
- height: 38px;
36
- border-radius: 50%;
37
- box-shadow: inset 16px -16px 0 0 $night-btn;
38
- transition: box-shadow 0.5s ease 0s, transform 0.4s ease 0.1s;
39
- transform: scale(1) rotate(-2deg);
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
+ }
40
33
 
41
- &::before {
42
- position: absolute;
43
- top: 0;
44
- left: 0;
45
- width: inherit;
46
- height: inherit;
47
- content: "";
48
- border-radius: inherit;
49
- transition: background 0.3s ease;
50
- }
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
+ }
51
38
 
52
- &::after {
53
- position: absolute;
54
- top: 50%;
55
- left: 50%;
56
- width: 8px;
57
- height: 8px;
58
- margin: -4px 0 0 -4px;
59
- content: "";
60
- border-radius: 50%;
61
- box-shadow:
62
- 0 -23px 0 $day-btn,
63
- 0 23px 0 $day-btn,
64
- 23px 0 0 $day-btn,
65
- -23px 0 0 $day-btn,
66
- 15px 15px 0 $day-btn,
67
- -15px 15px 0 $day-btn,
68
- 15px -15px 0 $day-btn,
69
- -15px -15px 0 $day-btn;
70
- transition: all 0.3s ease;
71
- transform: scale(0);
72
- }
73
- }
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
+ }
74
53
 
75
- .animate-icon-day {
76
- width: 44px;
77
- height: 44px;
78
- box-shadow: inset 32px -32px 0 0 $night-btn;
79
- transition: transform 0.3s ease 0.1s, box-shadow 0.2s ease 0s;
80
- transform: scale(0.5) rotate(0deg);
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
+ }
81
60
 
82
- &::before {
83
- background: $day-btn;
84
- transition: background 0.3s ease 0.1s;
85
- }
61
+ .animate-icon-day::before {
62
+ background: #ffce6e;
63
+ transition: background 0.3s ease 0.1s;
64
+ }
86
65
 
87
- &::after {
88
- transition: transform 0.5s ease 0.15s;
89
- transform: scale(1.5);
90
- }
91
- }
66
+ .animate-icon-day::after {
67
+ transition: transform 0.5s ease 0.15s;
68
+ transform: scale(1.5);
92
69
  }
93
70
  </style>