@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.
- package/dist/{AppSetting-CVExa3_K.js → AppSetting-DhcdApoo.js} +17 -17
- 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
- package/dist/HDivider.vue_vue_type_script_setup_true_lang-DIHR-9Yv.js +20 -0
- package/dist/HToggle-Di3WNnzE.js +34 -0
- package/dist/{PreferencesContent-p9KS2Pve.js → PreferencesContent-BdSTTSM-.js} +6 -6
- package/dist/{SettingBreadcrumb-DwvQtev2.js → SettingBreadcrumb-ChQx96br.js} +8 -8
- package/dist/{SettingCopyright-Wb3hkKZZ.js → SettingCopyright-CkMab5VK.js} +8 -8
- package/dist/{SettingEnableTransition-DT23T8dO.js → SettingEnableTransition-BSXU87vT.js} +15 -15
- package/dist/{SettingHome-C0K6wkyt.js → SettingHome-DwioPezC.js} +13 -13
- package/dist/{SettingMenu-CCKj46sg.js → SettingMenu-yvKu7Yoq.js} +25 -25
- package/dist/{SettingMode-pwpzZcxj.js → SettingMode-C99ADNad.js} +6 -6
- package/dist/{SettingNavSearch-zoiP1hL2.js → SettingNavSearch-mURLLetZ.js} +8 -8
- package/dist/{SettingOther-OIZZcjfo.js → SettingOther-BGoSdp7a.js} +9 -9
- package/dist/{SettingPage-CyljqOiV.js → SettingPage-Wwy5PtzC.js} +7 -7
- package/dist/{SettingTabbar-DCQai4_R.js → SettingTabbar-C2ya4r4U.js} +9 -9
- package/dist/{SettingThemes-DJIaIqy1.js → SettingThemes-7oYUooGR.js} +27 -27
- package/dist/{SettingToolbar-Dvv11piV.js → SettingToolbar-A6OiGfAD.js} +5 -5
- package/dist/{SettingTopbar-CMpP98WU.js → SettingTopbar-GDEPltxm.js} +9 -9
- package/dist/{SettingWidthMode-DVPAA6Xs.js → SettingWidthMode-qwkmTFIK.js} +15 -15
- package/dist/{TopThinMode-D8rMfa-C.js → TopThinMode-BkmPN66X.js} +1 -1
- package/dist/{_...all_-6l5FWUkL.js → _...all_-CdjdWhUr.js} +5 -5
- package/dist/assets/styles/index.d.ts +3 -3
- package/dist/{colors-DiWJrScm.js → colors-7rGvqeKK.js} +1 -1
- package/dist/{index-CfasTv4x.js → index-BC-gcL8e.js} +4 -4
- package/dist/{index-Md7zV10q.js → index-C-6XxK2D.js} +5 -5
- package/dist/{index-bsi-FZDt.js → index-CgLD0zqO.js} +169 -169
- package/dist/{index-BmMbAV1Y.js → index-CtyzB2cq.js} +13 -13
- package/dist/{index-Ckgil96Y.js → index-Cw1uN5m-.js} +2 -2
- package/dist/{index-Be7jJtXg.js → index-DVUDANdM.js} +5 -5
- package/dist/{index-lv9zqWqR.js → index-Dpq4uqWd.js} +22 -22
- package/dist/{index-CyyndQxa.js → index-DuoLZ3r3.js} +4394 -4294
- package/dist/{index-De_ME_Ws.js → index-sYaQXYQC.js} +2 -2
- package/dist/index.js +4 -4
- 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
- package/dist/interface.d.ts +12 -0
- package/dist/layout/ui-kit/HDialog.vue.d.ts +1 -1
- package/dist/layout/ui-kit/HSlideover.vue.d.ts +1 -1
- package/dist/layout/ui-kit/HTooltip.vue.d.ts +1 -1
- package/dist/{menu-CC5544p-.js → menu-BL6hH6OM.js} +1862 -1856
- package/dist/{pick-CJo2YiT-.js → pick-CAmKymZJ.js} +1 -1
- package/dist/request.js +34 -32
- package/dist/stores/plugin/persist.d.ts +2 -2
- package/dist/style.css +3 -3
- package/package.json +25 -26
- package/src/assets/styles/globals.css +188 -0
- package/src/assets/styles/index.ts +3 -3
- package/src/assets/styles/nprogress.css +68 -0
- package/src/assets/styles/rbac.css +51 -0
- package/src/assets/styles/resources/utils.css +53 -0
- package/src/assets/styles/resources/variables.css +5 -0
- package/src/components/NotAllowed/index.vue +4 -6
- package/src/components/PassStrengthValidator/index.vue +33 -48
- package/src/components/PassStrengthValidator/rule.vue +13 -25
- package/src/components/PubinfoIcon/index.vue +4 -8
- package/src/composables/watchDiff.ts +1 -1
- package/src/create.ts +10 -3
- package/src/interface.ts +19 -0
- package/src/layout/Layout.vue +113 -161
- package/src/layout/components/Content/IframeView.vue +1 -2
- package/src/layout/components/Content/LinkView.vue +2 -2
- package/src/layout/components/Content/index.vue +1 -2
- package/src/layout/components/Copyright/index.vue +7 -8
- package/src/layout/components/Header/TopMode/More.vue +24 -32
- package/src/layout/components/Header/TopMode/NotCursor.vue +20 -29
- package/src/layout/components/Header/TopMode/index.vue +1 -1
- package/src/layout/components/Header/index.vue +118 -206
- package/src/layout/components/Logo/index.vue +4 -19
- package/src/layout/components/Menu/item.vue +16 -25
- package/src/layout/components/SettingBar/AppSetting.vue +11 -11
- package/src/layout/components/SettingBar/components/DayNightToggle.vue +26 -120
- package/src/layout/components/SettingBar/components/SettingEnableTransition.vue +111 -136
- package/src/layout/components/SettingBar/components/SettingMode.vue +78 -88
- package/src/layout/components/SettingBar/components/SettingThemes.vue +48 -85
- package/src/layout/components/SettingBar/components/SettingWidthMode.vue +63 -71
- package/src/layout/components/SettingBar/index.vue +29 -62
- package/src/layout/components/Sidebar/MainSidebar.vue +81 -126
- package/src/layout/components/Sidebar/SubSidebar.vue +50 -59
- package/src/layout/components/Tools/Breadcrumb/index.vue +6 -12
- package/src/layout/components/Tools/DayNightSwitch.vue +40 -63
- package/src/layout/components/Tools/Preferences/PreferencesContent.vue +210 -277
- package/src/layout/components/Tools/Search.vue +5 -5
- package/src/layout/components/Tools/index.vue +1 -1
- package/src/layout/components/Topbar/Tabbar/MoreAction.vue +98 -145
- package/src/layout/components/Topbar/Tabbar/index.vue +259 -395
- package/src/layout/components/Topbar/Toolbar/Favorites.vue +4 -4
- package/src/layout/components/Topbar/Toolbar/index.vue +39 -56
- package/src/layout/components/Topbar/index.vue +16 -19
- package/src/layout/composables/useContext.ts +1 -1
- package/src/layout/composables/useMenu.ts +1 -1
- package/src/layout/composables/useTabbar.ts +1 -1
- package/src/layout/composables/useTitle.ts +1 -1
- package/src/layout/provider.ts +1 -1
- package/src/layout/ui-kit/HDialog.vue +1 -1
- package/src/layout/ui-kit/HDivider.vue +6 -35
- package/src/layout/ui-kit/HSlideover.vue +1 -1
- package/src/layout/ui-kit/HToggle.vue +49 -93
- package/src/layout/ui-kit/HTooltip.vue +1 -1
- package/src/locales/index.ts +1 -1
- package/src/pages/personal/profile/index.vue +1 -1
- package/src/pages/system/[...all].vue +4 -6
- package/src/pages/system/change-organization/index.vue +23 -37
- package/src/pages/system/change-password/components/ChangePasswordForm/index.vue +1 -1
- package/src/pages/system/change-password/index.vue +16 -29
- package/src/pages/system/not-permission/index.vue +4 -6
- package/src/route/guard/basic.ts +1 -1
- package/src/route/routes.ts +1 -1
- package/src/stores/modules/favorites.ts +1 -1
- package/src/stores/modules/menu.ts +1 -1
- package/src/stores/modules/route.ts +2 -2
- package/src/stores/modules/settings.ts +7 -7
- package/src/stores/modules/user.ts +2 -2
- package/src/stores/plugin/persist.ts +3 -3
- package/src/stores/plugin/sideEffect/tabbarStorage.ts +1 -1
- package/src/utils/crypto.ts +1 -1
- package/types/auto-imports.d.ts +1 -1
- package/types/components.d.ts +1 -0
- package/types/vue-router.d.ts +8 -8
- package/dist/HDivider-DgXBhPr0.js +0 -21
- package/dist/HToggle-Cd71WKvG.js +0 -34
- package/src/assets/styles/globals.scss +0 -189
- package/src/assets/styles/nprogress.scss +0 -63
- package/src/assets/styles/rbac.scss +0 -61
- package/src/assets/styles/resources/utils.scss +0 -53
- package/src/assets/styles/resources/variables.scss +0 -6
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
<script setup lang="ts">
|
|
2
2
|
import type { Tabbar } from '#/tabbar';
|
|
3
|
-
import { PubinfoIcon } from '@/components';
|
|
4
3
|
import { OverlayScrollbarsComponent } from 'overlayscrollbars-vue';
|
|
5
4
|
import Sortable from 'sortablejs';
|
|
6
5
|
import { useI18n } from 'vue-i18n';
|
|
@@ -11,6 +10,7 @@ import PhArrowLineRight from '~icons/ph/arrow-line-right';
|
|
|
11
10
|
import RiArrowDownSFill from '~icons/ri/arrow-down-s-fill';
|
|
12
11
|
import RiCloseFill from '~icons/ri/close-fill';
|
|
13
12
|
import RiPushpin2Fill from '~icons/ri/pushpin-2-fill';
|
|
13
|
+
import { PubinfoIcon } from '@/components';
|
|
14
14
|
import { useContext } from '../../../composables/useContext';
|
|
15
15
|
import useTabbar from '../../../composables/useTabbar';
|
|
16
16
|
import Search from '../../Tools/Search.vue';
|
|
@@ -146,159 +146,112 @@ function iconName(isActive: boolean, icon: Tabbar.recordRaw['icon'], activeIcon:
|
|
|
146
146
|
</div>
|
|
147
147
|
</template>
|
|
148
148
|
|
|
149
|
-
<style
|
|
150
|
-
.tabbar-dropdown {
|
|
151
|
-
.
|
|
152
|
-
|
|
153
|
-
align-items: center;
|
|
154
|
-
justify-content: space-between;
|
|
155
|
-
padding: 15px 15px 10px;
|
|
156
|
-
|
|
157
|
-
.button {
|
|
158
|
-
--at-apply: transition-colors;
|
|
159
|
-
|
|
160
|
-
display: flex;
|
|
161
|
-
align-items: center;
|
|
162
|
-
justify-content: center;
|
|
163
|
-
width: 32px;
|
|
164
|
-
height: 32px;
|
|
165
|
-
cursor: pointer;
|
|
166
|
-
background-color: var(--g-bg);
|
|
167
|
-
border: none;
|
|
168
|
-
border-radius: 5px;
|
|
169
|
-
outline: none;
|
|
170
|
-
|
|
171
|
-
&:hover:not(:disabled) {
|
|
172
|
-
--at-apply: text-ui-primary;
|
|
173
|
-
}
|
|
174
|
-
|
|
175
|
-
&:disabled {
|
|
176
|
-
cursor: not-allowed;
|
|
177
|
-
}
|
|
178
|
-
|
|
179
|
-
i {
|
|
180
|
-
font-size: 16px !important;
|
|
181
|
-
}
|
|
182
|
-
}
|
|
183
|
-
}
|
|
149
|
+
<style>
|
|
150
|
+
.tabbar-dropdown .quick-button {
|
|
151
|
+
--at-apply: flex items-center justify-between pt-[15px] pb-2.5 px-[15px];
|
|
152
|
+
}
|
|
184
153
|
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
154
|
+
.tabbar-dropdown .quick-button .button {
|
|
155
|
+
--at-apply: flex items-center justify-center w-8 h-8 cursor-pointer bg-[--g-bg]
|
|
156
|
+
transition-[colors] duration-[0.3s] rounded-[5px] border-[none] [outline:none];
|
|
157
|
+
}
|
|
188
158
|
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
background-color: var(--g-bg);
|
|
193
|
-
}
|
|
159
|
+
.tabbar-dropdown .quick-button .button:hover:not(:disabled) {
|
|
160
|
+
--at-apply: text-ui-primary;
|
|
161
|
+
}
|
|
194
162
|
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
}
|
|
199
|
-
}
|
|
200
|
-
|
|
201
|
-
.tab {
|
|
202
|
-
position: relative;
|
|
203
|
-
width: calc(100% - 30px);
|
|
204
|
-
height: 30px;
|
|
205
|
-
padding: 0 5px;
|
|
206
|
-
margin: 0 15px;
|
|
207
|
-
background-color: var(--g-container-bg);
|
|
208
|
-
border-radius: 5px;
|
|
209
|
-
transition: background-color 0.3s;
|
|
210
|
-
|
|
211
|
-
&.actived {
|
|
212
|
-
background-color: var(--g-bg);
|
|
213
|
-
}
|
|
214
|
-
|
|
215
|
-
&.ghost {
|
|
216
|
-
opacity: 0;
|
|
217
|
-
}
|
|
218
|
-
|
|
219
|
-
&:hover {
|
|
220
|
-
.title {
|
|
221
|
-
--at-apply: opacity-100;
|
|
222
|
-
|
|
223
|
-
margin-inline-end: 20px;
|
|
224
|
-
mask-image: linear-gradient(to right, #000 calc(100% - 44px), transparent);
|
|
225
|
-
}
|
|
226
|
-
}
|
|
227
|
-
|
|
228
|
-
* {
|
|
229
|
-
user-select: none;
|
|
230
|
-
}
|
|
231
|
-
|
|
232
|
-
.title {
|
|
233
|
-
--at-apply: opacity-70 transition;
|
|
234
|
-
|
|
235
|
-
position: relative;
|
|
236
|
-
display: flex;
|
|
237
|
-
gap: 5px;
|
|
238
|
-
align-items: center;
|
|
239
|
-
height: 100%;
|
|
240
|
-
overflow: hidden;
|
|
241
|
-
font-size: 14px;
|
|
242
|
-
white-space: nowrap;
|
|
243
|
-
cursor: pointer;
|
|
244
|
-
mask-image: linear-gradient(to right, #000 calc(100% - 24px), transparent);
|
|
245
|
-
|
|
246
|
-
[dir="rtl"] & {
|
|
247
|
-
mask-image: linear-gradient(to left, #000 calc(100% - 24px), transparent);
|
|
248
|
-
}
|
|
163
|
+
.tabbar-dropdown .quick-button .button:disabled {
|
|
164
|
+
--at-apply: cursor-not-allowed;
|
|
165
|
+
}
|
|
249
166
|
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
167
|
+
.tabbar-dropdown .quick-button .button i {
|
|
168
|
+
font-size: 16px !important;
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
.tabbar-dropdown .tabs {
|
|
172
|
+
--at-apply: w-200px pt-0 pb-2.5 px-0;
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
.tabbar-dropdown .tabs:not(.dragging) .tab:hover:not(.actived) {
|
|
176
|
+
background-color: var(--g-bg);
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
.tabbar-dropdown .tabs:not(.dragging) .tab:hover .action-icon {
|
|
180
|
+
--at-apply: op-100;
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
.tabbar-dropdown .tabs .tab {
|
|
184
|
+
--at-apply: relative h-[30px] bg-[--g-container-bg] mx-[15px] my-0 px-[5px] py-0 rounded-[5px];
|
|
185
|
+
width: calc(100% - 30px);
|
|
186
|
+
transition: background-color 0.3s;
|
|
187
|
+
}
|
|
188
|
+
|
|
189
|
+
.tabbar-dropdown .tabs .tab.actived {
|
|
190
|
+
background-color: var(--g-bg);
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
.tabbar-dropdown .tabs .tab.ghost {
|
|
194
|
+
--at-apply: op-0;
|
|
195
|
+
}
|
|
196
|
+
|
|
197
|
+
.tabbar-dropdown .tabs .tab:hover .title {
|
|
198
|
+
opacity: 1;
|
|
199
|
+
margin-inline-end: 20px;
|
|
200
|
+
mask-image: linear-gradient(to right, #000 calc(100% - 44px), transparent);
|
|
201
|
+
transition: all 0.3s;
|
|
202
|
+
}
|
|
203
|
+
|
|
204
|
+
.tabbar-dropdown .tabs .tab * {
|
|
205
|
+
user-select: none;
|
|
206
|
+
}
|
|
207
|
+
|
|
208
|
+
.tabbar-dropdown .tabs .tab .title {
|
|
209
|
+
--at-apply: relative flex gap-[5px] items-center
|
|
210
|
+
h-full overflow-hidden text-sm whitespace-nowrap cursor-pointer opacity-70;
|
|
211
|
+
|
|
212
|
+
mask-image: linear-gradient(to right, #000 calc(100% - 24px), transparent);
|
|
213
|
+
transition: all 0.3s;
|
|
214
|
+
}
|
|
215
|
+
|
|
216
|
+
[dir="rtl"] .tabbar-dropdown .tabs .tab .title {
|
|
217
|
+
mask-image: linear-gradient(to left, #000 calc(100% - 24px), transparent);
|
|
218
|
+
}
|
|
219
|
+
|
|
220
|
+
.tabbar-dropdown .tabs .tab .title i {
|
|
221
|
+
flex-shrink: 0;
|
|
222
|
+
font-size: 16px;
|
|
223
|
+
}
|
|
224
|
+
|
|
225
|
+
.tabbar-dropdown .tabs .tab .action-icon {
|
|
226
|
+
--at-apply: absolute z-10 w-[1.5em] h-[1.5em] text-[8px] text-[--g-tabbar-tab-color]
|
|
227
|
+
opacity-0 transition-all duration-[0.3s] -mt-1.5 rounded-[50%] top-2/4;
|
|
228
|
+
inset-inline-end: 6px;
|
|
229
|
+
pointer-events: all;
|
|
230
|
+
}
|
|
231
|
+
|
|
232
|
+
.tabbar-dropdown .tabs .tab .action-icon:hover {
|
|
233
|
+
background-color: var(--g-bg);
|
|
234
|
+
box-shadow: 0 0 0 1px var(--g-border-color);
|
|
280
235
|
}
|
|
281
236
|
</style>
|
|
282
237
|
|
|
283
|
-
<style
|
|
284
|
-
.
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
}
|
|
238
|
+
<style scoped>
|
|
239
|
+
.dropdown-tab-enter-from,
|
|
240
|
+
.dropdown-tab-leave-to {
|
|
241
|
+
opacity: 0;
|
|
242
|
+
transform: translateX(-100%);
|
|
243
|
+
}
|
|
290
244
|
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
245
|
+
.dropdown-tab-enter-active {
|
|
246
|
+
transition: all 0.3s;
|
|
247
|
+
}
|
|
294
248
|
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
249
|
+
.dropdown-tab-leave-active {
|
|
250
|
+
position: absolute !important;
|
|
251
|
+
transition: all 0.3s;
|
|
252
|
+
}
|
|
299
253
|
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
}
|
|
254
|
+
.dropdown-tab-move {
|
|
255
|
+
transition: transform 0.3s;
|
|
303
256
|
}
|
|
304
257
|
</style>
|