@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.
- package/dist/{AppSetting-C1dyZ-8E.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-DgycKl9e.js → PreferencesContent-BdSTTSM-.js} +6 -6
- package/dist/{SettingBreadcrumb-BlgX0ZNE.js → SettingBreadcrumb-ChQx96br.js} +8 -8
- package/dist/{SettingCopyright-FmqadL1w.js → SettingCopyright-CkMab5VK.js} +8 -8
- package/dist/{SettingEnableTransition-dzMgw8cN.js → SettingEnableTransition-BSXU87vT.js} +15 -15
- package/dist/{SettingHome-BwlXsTTt.js → SettingHome-DwioPezC.js} +13 -13
- package/dist/{SettingMenu-B5tHMS24.js → SettingMenu-yvKu7Yoq.js} +25 -25
- package/dist/{SettingMode-Bh0mvh66.js → SettingMode-C99ADNad.js} +6 -6
- package/dist/{SettingNavSearch-D4g24uwl.js → SettingNavSearch-mURLLetZ.js} +8 -8
- package/dist/{SettingOther-DwTtu6As.js → SettingOther-BGoSdp7a.js} +9 -9
- package/dist/{SettingPage-cDQXtwcG.js → SettingPage-Wwy5PtzC.js} +7 -7
- package/dist/{SettingTabbar-m8X7jEJH.js → SettingTabbar-C2ya4r4U.js} +9 -9
- package/dist/{SettingThemes-CX9ISeD_.js → SettingThemes-7oYUooGR.js} +27 -27
- package/dist/{SettingToolbar-ByLjBezg.js → SettingToolbar-A6OiGfAD.js} +5 -5
- package/dist/{SettingTopbar-o8wBZolp.js → SettingTopbar-GDEPltxm.js} +9 -9
- package/dist/{SettingWidthMode-Ux60mKiv.js → SettingWidthMode-qwkmTFIK.js} +15 -15
- package/dist/{TopThinMode-17GrCZdo.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-Dzwhw1L9.js → index-Dpq4uqWd.js} +22 -22
- package/dist/{index-DgpcBgWl.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
|
@@ -87,79 +87,70 @@ const enableSidebar = computed(() => {
|
|
|
87
87
|
</div>
|
|
88
88
|
</template>
|
|
89
89
|
|
|
90
|
-
<style lang="
|
|
90
|
+
<style lang="css" scoped>
|
|
91
91
|
.sub-sidebar-container {
|
|
92
|
-
|
|
93
|
-
|
|
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
|
-
|
|
103
|
-
|
|
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
|
-
|
|
149
|
+
--at-apply: op-0;
|
|
159
150
|
transform: translateY(30px) skewY(10deg);
|
|
160
151
|
}
|
|
161
152
|
|
|
162
153
|
.sub-sidebar-leave-active {
|
|
163
|
-
|
|
154
|
+
--at-apply: absolute;
|
|
164
155
|
}
|
|
165
156
|
</style>
|
|
@@ -4,18 +4,12 @@
|
|
|
4
4
|
</div>
|
|
5
5
|
</template>
|
|
6
6
|
|
|
7
|
-
<style
|
|
8
|
-
:deep(.breadcrumb-item) {
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
display: none;
|
|
12
|
-
}
|
|
13
|
-
}
|
|
7
|
+
<style scoped>
|
|
8
|
+
:deep(.breadcrumb-item):first-child .separator {
|
|
9
|
+
--at-apply: hidden;
|
|
10
|
+
}
|
|
14
11
|
|
|
15
|
-
|
|
16
|
-
|
|
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
|
|
23
|
-
$night-btn: #fff;
|
|
24
|
-
$day-btn: #ffce6e;
|
|
25
|
-
|
|
22
|
+
<style scoped>
|
|
26
23
|
.day-night {
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
cursor: pointer;
|
|
30
|
-
transform: scale(0.45);
|
|
24
|
+
--at-apply: size-11 cursor-pointer scale-45;
|
|
25
|
+
}
|
|
31
26
|
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
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
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
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
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
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
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
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
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
61
|
+
.animate-icon-day::before {
|
|
62
|
+
background: #ffce6e;
|
|
63
|
+
transition: background 0.3s ease 0.1s;
|
|
64
|
+
}
|
|
86
65
|
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
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>
|