@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.
- package/dist/{AppSetting-Bblni_W7.js → AppSetting-3wJKvibc.js} +19 -19
- package/dist/{HCheckList.vue_vue_type_script_setup_true_lang-A7PnhNKK.js → HCheckList.vue_vue_type_script_setup_true_lang-17EywJvs.js} +1 -1
- package/dist/{HToggle-xibvPpmf.js → HToggle-B-ZjSh6S.js} +1 -1
- package/dist/{PreferencesContent--JtPw_LT.js → PreferencesContent-xT4paU7N.js} +52 -52
- package/dist/{SettingBreadcrumb-BwhdAtkC.js → SettingBreadcrumb-CYnO51Ek.js} +5 -5
- package/dist/{SettingCopyright-DPsRDagL.js → SettingCopyright-FOW5ObHK.js} +2 -2
- package/dist/{SettingEnableTransition-mtHTUb08.js → SettingEnableTransition-Q5cvubmF.js} +12 -12
- package/dist/{SettingHome-agxHFIKq.js → SettingHome-Df7-AlWB.js} +8 -8
- package/dist/{SettingMenu-D6WwcOw-.js → SettingMenu-BNAJ3el9.js} +14 -14
- package/dist/{SettingMode-CkmhszlD.js → SettingMode-LzlRsBL9.js} +3 -3
- package/dist/{SettingNavSearch-CEB5DZGf.js → SettingNavSearch-BA08vYuw.js} +6 -6
- package/dist/{SettingOther-Dzs1uwnC.js → SettingOther-BE8dDCYD.js} +11 -11
- package/dist/{SettingPage-bOThkL2-.js → SettingPage-D061yXCv.js} +2 -2
- package/dist/{SettingTabbar-L6yQxAeE.js → SettingTabbar-COwdPPKy.js} +13 -13
- package/dist/{SettingThemes-Cxa5bR66.js → SettingThemes-BHaYERNp.js} +12 -12
- package/dist/{SettingToolbar-BZ2uHom2.js → SettingToolbar-fSuzu6ND.js} +10 -10
- package/dist/{SettingTopbar-hptxTh8m.js → SettingTopbar-D7GgP0KB.js} +6 -6
- package/dist/{SettingWidthMode-D2R2W4-n.js → SettingWidthMode-CNjzChe1.js} +11 -11
- package/dist/{TopThinMode-C26i10py.js → TopThinMode-B-28sBJD.js} +3 -3
- package/dist/built-in/layout-component/Layout.vue.d.ts +1 -0
- package/dist/built-in/layout-component/components/Tools/Fullscreen.vue.d.ts +2 -0
- package/dist/built-in/layout-component/components/Tools/PageReload.vue.d.ts +2 -0
- package/dist/built-in/layout-component/components/Tools/SearchBar.vue.d.ts +2 -0
- package/dist/built-in/layout-component/components/Tools/index.vue.d.ts +47 -207
- package/dist/built-in/layout-component/components/Tools/interface.d.ts +26 -0
- package/dist/built-in/layout-component/components/Topbar/Tabbar/MoreAction.vue.d.ts +0 -206
- package/dist/built-in/layout-component/components/ui/HDropdownMenu.vue.d.ts +2 -7
- package/dist/built-in/layout-component/composables/useGlobalSearch.d.ts +19 -0
- package/dist/built-in/layout-component/composables/useHotkey.d.ts +1 -5
- package/dist/built-in/layout-component/composables/useMainPage.d.ts +1 -1
- package/dist/built-in/layout-component/composables/useMenu.d.ts +1 -1
- package/dist/built-in/layout-component/composables/useTabbar.d.ts +1 -1
- package/dist/built-in/layout-component/composables/useTitle.d.ts +2 -1
- package/dist/built-in/layout-component/composables/useWatermark.d.ts +3 -1
- package/dist/built-in/layout-component/index.d.ts +9 -6
- package/dist/built-in/layout-component/utils/index.d.ts +0 -1
- package/dist/{colors-C8I6Fdyp.js → colors-BIQSd520.js} +1 -1
- package/dist/{index-RwbJwutI.js → index-Beb7_0-E.js} +14499 -14397
- package/dist/{index-D948mfZb.js → index-CPRiufg0.js} +1 -1
- package/dist/{index-DZ6SbWiv.js → index-DNdH93AP.js} +13 -13
- package/dist/index-DYMBkmAp.js +139 -0
- package/dist/{index-DdS6qgK_.js → index-Dlf6GQBd.js} +6418 -6439
- package/dist/{index-D3zjK9rd.js → index-IscoZG-Y.js} +2 -2
- package/dist/{index-DeWCd_-p.js → index-WubcSL0v.js} +1 -1
- package/dist/index-YSjb6X1D.js +232 -0
- package/dist/{index-EOTrQlGo.js → index-wxEEuQXu.js} +17 -17
- package/dist/index.d.ts +4 -2
- package/dist/index.js +53 -55
- package/dist/{pick-D6j4F3UM.js → pick-D_XPbQHB.js} +1 -1
- package/dist/style.css +1 -1
- package/package.json +10 -10
- package/src/built-in/authentication/pages/change-organization/assets/change-org.svg +1 -1
- package/src/built-in/authentication/pages/change-password/assets/mima.svg +1 -1
- package/src/built-in/authorization/pages/not-permission/403.svg +1 -1
- package/src/built-in/authorization/pages/not-permission/403_dark.svg +1 -1
- package/src/built-in/layout-component/Layout.vue +11 -22
- package/src/built-in/layout-component/assets/icons/favorites.svg +1 -1
- package/src/built-in/layout-component/assets/icons/toolbar-collapse.svg +1 -1
- package/src/built-in/layout-component/components/Header/TopMode/index.vue +1 -1
- package/src/built-in/layout-component/components/Sidebar/MainSidebar.vue +1 -1
- package/src/built-in/layout-component/components/Sidebar/index.vue +1 -1
- package/src/built-in/layout-component/components/Tools/DarkModeToggle.vue +108 -0
- package/src/built-in/layout-component/components/Tools/Fullscreen.vue +24 -0
- package/src/built-in/layout-component/components/Tools/PageReload.vue +22 -0
- package/src/built-in/layout-component/components/Tools/SearchBar.vue +44 -0
- package/src/built-in/layout-component/components/Tools/{Search.vue → SearchPanel.vue} +12 -6
- package/src/built-in/layout-component/components/Tools/index.vue +64 -130
- package/src/built-in/layout-component/components/Tools/interface.ts +27 -0
- package/src/built-in/layout-component/components/Topbar/Tabbar/MoreAction.vue +7 -6
- package/src/built-in/layout-component/components/Topbar/Tabbar/index.vue +2 -2
- package/src/built-in/layout-component/components/Topbar/Toolbar/index.vue +32 -10
- package/src/built-in/layout-component/components/ui/HDropdownMenu.vue +19 -26
- package/src/built-in/layout-component/composables/useGetComputedStyle.ts +2 -3
- package/src/built-in/layout-component/composables/useGlobalSearch.ts +48 -0
- package/src/built-in/layout-component/composables/useHotkey.ts +6 -10
- package/src/built-in/layout-component/composables/useMainPage.ts +5 -6
- package/src/built-in/layout-component/composables/useMenu.ts +3 -5
- package/src/built-in/layout-component/composables/useTabbar.ts +3 -5
- package/src/built-in/layout-component/composables/useTitle.ts +2 -3
- package/src/built-in/layout-component/composables/useWatermark.ts +25 -12
- package/src/built-in/layout-component/index.ts +21 -12
- package/src/built-in/layout-component/provider.ts +6 -2
- package/src/built-in/layout-component/utils/index.ts +0 -1
- package/src/built-in/settings/router.ts +5 -1
- package/src/features/assets/fonts/digital-7/digital-7-webfont.svg +131 -133
- package/src/features/assets/fonts/digital-7_mono/digital-7_mono-webfont.svg +130 -132
- package/src/features/assets/images/org.svg +2 -2
- package/src/features/components/NotAllowed/assets/403.svg +1 -1
- package/src/features/components/NotAllowed/assets/403_dark.svg +1 -1
- package/src/features/components/PubinfoIcon/index.vue +1 -1
- package/src/features/pages/not-found/assets/404.svg +1 -1
- package/src/features/pages/not-found/assets/404_dark.svg +1 -1
- package/src/features/stores/utils/routerHelper.ts +3 -0
- package/src/index.ts +7 -9
- package/dist/built-in/layout-component/utils/eventBus.d.ts +0 -5
- package/dist/index-CkyHqPON.js +0 -139
- package/dist/index-xzfvpJSq.js +0 -234
- package/src/built-in/layout-component/components/Tools/DayNightSwitch.vue +0 -70
- package/src/built-in/layout-component/utils/eventBus.ts +0 -8
- /package/dist/built-in/layout-component/components/Tools/{DayNightSwitch.vue.d.ts → DarkModeToggle.vue.d.ts} +0 -0
- /package/dist/built-in/layout-component/components/Tools/{Search.vue.d.ts → SearchPanel.vue.d.ts} +0 -0
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { markRaw as J, createElementBlock as f, openBlock as r, createElementVNode as o, defineComponent as D, resolveComponent as h, renderSlot as Y, createBlock as g, withCtx as d, toDisplayString as G, mergeProps as U, Fragment as v, renderList as P, normalizeClass as
|
|
2
|
-
import { b as y, bE as I,
|
|
1
|
+
import { markRaw as J, createElementBlock as f, openBlock as r, createElementVNode as o, defineComponent as D, resolveComponent as h, renderSlot as Y, createBlock as g, withCtx as d, toDisplayString as G, mergeProps as U, Fragment as v, renderList as P, normalizeClass as H, createCommentVNode as C, unref as t, ref as b, computed as k, onMounted as T, watch as O, createVNode as Q, createTextVNode as Z } from "vue";
|
|
2
|
+
import { b as y, bE as I, bL as K, bR as V, bS as L } from "./index-Beb7_0-E.js";
|
|
3
3
|
import "vue-router";
|
|
4
4
|
const X = {
|
|
5
5
|
viewBox: "0 0 24 24",
|
|
@@ -113,11 +113,11 @@ const q = J({ name: "solar-widget-5-bold-duotone", render: W }), _ = "data:image
|
|
|
113
113
|
"rounded-8px": "",
|
|
114
114
|
"text-sm": "",
|
|
115
115
|
"mb-10px": "",
|
|
116
|
-
class:
|
|
116
|
+
class: H({
|
|
117
117
|
"bg-[#fff] dark:bg-[var(--g-header-menu-active-bg)]!": u === a.activeIndex,
|
|
118
118
|
"is-dev": l.meta?.isDev
|
|
119
119
|
}),
|
|
120
|
-
onClick: (
|
|
120
|
+
onClick: (S) => p(u, l)
|
|
121
121
|
}, [
|
|
122
122
|
l.meta?.icon ? (r(), g(t(I), {
|
|
123
123
|
key: 0,
|
|
@@ -155,25 +155,25 @@ const q = J({ name: "solar-widget-5-bold-duotone", render: W }), _ = "data:image
|
|
|
155
155
|
let s;
|
|
156
156
|
return !m && i || m && !e ? s = i : m && e && (s = e), s;
|
|
157
157
|
}
|
|
158
|
-
const x = b(), { width: l } = L(x), u = b(0),
|
|
158
|
+
const x = b(), { width: l } = L(x), u = b(0), S = k(() => u.value === c.allMenus.length - 1);
|
|
159
159
|
function z(m, i) {
|
|
160
160
|
const e = m + u.value + 1;
|
|
161
161
|
a(e, i);
|
|
162
162
|
}
|
|
163
163
|
function E() {
|
|
164
|
-
const m = x.value, i = Array.from(m.children).at(0), e = i.clientWidth, s = Array.from(i.children),
|
|
165
|
-
let w = 0,
|
|
166
|
-
if (
|
|
167
|
-
|
|
164
|
+
const m = x.value, i = Array.from(m.children).at(0), e = i.clientWidth, s = Array.from(i.children), N = s.reduce((A, B) => A + B.clientWidth, 0);
|
|
165
|
+
let w = 0, F = 0;
|
|
166
|
+
if (N <= e)
|
|
167
|
+
F = s.length - 1;
|
|
168
168
|
else
|
|
169
169
|
for (const [A, B] of s.entries())
|
|
170
170
|
if (w += B.clientWidth, w >= e) {
|
|
171
|
-
|
|
171
|
+
F = A - 1;
|
|
172
172
|
break;
|
|
173
173
|
}
|
|
174
174
|
return s.forEach((A, B) => {
|
|
175
|
-
B >
|
|
176
|
-
}),
|
|
175
|
+
B > F ? A.style.visibility = "hidden" : A.style.visibility = "visible";
|
|
176
|
+
}), F;
|
|
177
177
|
}
|
|
178
178
|
return T(() => {
|
|
179
179
|
O(
|
|
@@ -191,13 +191,13 @@ const q = J({ name: "solar-widget-5-bold-duotone", render: W }), _ = "data:image
|
|
|
191
191
|
class: "menu-container nothin"
|
|
192
192
|
}, [
|
|
193
193
|
o("div", {
|
|
194
|
-
class:
|
|
194
|
+
class: H(["menu flex of-hidden transition-all", {
|
|
195
195
|
[`menu-active-${t(n).settings.menu.menuActiveStyle}`]: t(n).settings.menu.menuActiveStyle !== ""
|
|
196
196
|
}])
|
|
197
197
|
}, [
|
|
198
198
|
(r(!0), f(v, null, P(t(c).allMenus, (e, s) => (r(), f("div", {
|
|
199
199
|
key: e?.meta?.title || s,
|
|
200
|
-
class:
|
|
200
|
+
class: H(["menu-item relative transition-all", {
|
|
201
201
|
active: s === t(c).actived,
|
|
202
202
|
"px-1 py-2": t(n).settings.menu.isRounded,
|
|
203
203
|
"is-dev": e.meta?.isDev
|
|
@@ -211,12 +211,12 @@ const q = J({ name: "solar-widget-5-bold-duotone", render: W }), _ = "data:image
|
|
|
211
211
|
default: d(() => [
|
|
212
212
|
e.children && e.children.length !== 0 || e?.meta?.isDev ? (r(), f("div", {
|
|
213
213
|
key: 0,
|
|
214
|
-
class:
|
|
214
|
+
class: H(["group menu-item-container h-full w-full flex cursor-pointer items-center justify-between gap-1 px-5 py-4 text-[var(--g-header-menu-color)] transition-all hover:(bg-[var(--g-header-menu-hover-bg)] text-[var(--g-header-menu-hover-color)])", {
|
|
215
215
|
"text-[var(--g-header-menu-active-color)]! bg-[var(--g-header-menu-active-bg)]!": s === t(c).actived,
|
|
216
216
|
"rounded-2": t(n).settings.menu.isRounded
|
|
217
217
|
}]),
|
|
218
218
|
title: t(p)(e.meta?.i18n, e.meta?.title),
|
|
219
|
-
onClick: (
|
|
219
|
+
onClick: (N) => t(a)(s, e)
|
|
220
220
|
}, [
|
|
221
221
|
o("div", ie, [
|
|
222
222
|
M(s === t(c).actived, e.meta?.icon, e.meta?.activeIcon) ? (r(), g(t(I), {
|
|
@@ -233,7 +233,7 @@ const q = J({ name: "solar-widget-5-bold-duotone", render: W }), _ = "data:image
|
|
|
233
233
|
}, 1032, ["is-cursor", "dev-text"])
|
|
234
234
|
], 2))), 128))
|
|
235
235
|
], 2),
|
|
236
|
-
t(
|
|
236
|
+
t(S) ? C("", !0) : (r(), g(oe, {
|
|
237
237
|
key: 0,
|
|
238
238
|
items: t(c).allMenus.slice(t(u) + 1),
|
|
239
239
|
"active-index": t(c).actived - t(u) - 1,
|
package/dist/index.d.ts
CHANGED
|
@@ -15,8 +15,10 @@ export interface PubinfoOptions extends Options {
|
|
|
15
15
|
pure?: boolean;
|
|
16
16
|
}
|
|
17
17
|
export declare function createPubinfo(options: PubinfoOptions): () => Promise<import('./core').Context>;
|
|
18
|
-
export {
|
|
19
|
-
export {
|
|
18
|
+
export { RESPONSE_CODE } from './built-in/authentication';
|
|
19
|
+
export { Copyright, Layout, LayoutContent, LayoutHeader, LayoutProvider, LayoutSidebar, LayoutTopbar, Logo, Tool, Tools, } from './built-in/layout-component';
|
|
20
|
+
export type { DropdownMenu, DropdownMenuRender } from './built-in/layout-component';
|
|
21
|
+
export { updateWatermark } from './built-in/layout-component/composables/useWatermark';
|
|
20
22
|
export { createRequest, defineIconModule, defineRouteModule, getAllIconModules, getAllRouteModules, readProjectModules, } from './core';
|
|
21
23
|
export * from './core/interface';
|
|
22
24
|
export * from './features';
|
package/dist/index.js
CHANGED
|
@@ -1,62 +1,60 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { bZ as a, b_ as c, b$ as o, c0 as t, c1 as u, c2 as r, c3 as n, c4 as i, cj as b, ck as d, cl as S, bb as l, cm as f, bE as g, cn as P, cx as y, bY as p, c5 as R, c6 as A, ce as E, cf as M, cg as h, bX as m, co as I, c8 as L, cy as v, c9 as C, ca as T, cC as x, cA as j, cb as w, cc as O, cz as W, cD as D, cB as H, cp as U, cd as _, ch as k, c7 as q, cq as B, cw as F, cr as K, cE as N, cF as Y, cu as z, cG as G, cH as V, cI as X, u as Z, cv as $, cs as J, a as Q, bW as ee, b9 as se, ct as ae, bM as ce, ci as oe } from "./index-Beb7_0-E.js";
|
|
2
2
|
export {
|
|
3
|
-
a as
|
|
4
|
-
c as
|
|
5
|
-
t as Layout,
|
|
3
|
+
a as Copyright,
|
|
4
|
+
c as Layout,
|
|
6
5
|
o as LayoutContent,
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
6
|
+
t as LayoutHeader,
|
|
7
|
+
u as LayoutProvider,
|
|
8
|
+
r as LayoutSidebar,
|
|
9
|
+
n as LayoutTopbar,
|
|
10
|
+
i as Logo,
|
|
11
11
|
b as NotAllowed,
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
12
|
+
d as PageHeader,
|
|
13
|
+
S as PageMain,
|
|
14
|
+
l as PassStrengthValidator,
|
|
15
|
+
f as PubinfoApp,
|
|
16
16
|
g as PubinfoIcon,
|
|
17
17
|
P as PubinfoProvider,
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
R as
|
|
21
|
-
A as
|
|
22
|
-
E as
|
|
23
|
-
M as
|
|
24
|
-
h as
|
|
25
|
-
v as cleanupWithoutUser,
|
|
26
|
-
I as createContext,
|
|
18
|
+
y as RESOURCE_TYPE,
|
|
19
|
+
p as RESPONSE_CODE,
|
|
20
|
+
R as Tool,
|
|
21
|
+
A as Tools,
|
|
22
|
+
E as cleanup,
|
|
23
|
+
M as cleanupWithoutUser,
|
|
24
|
+
h as createContext,
|
|
27
25
|
m as createPubinfo,
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
26
|
+
I as createPubinfoProvider,
|
|
27
|
+
L as createRequest,
|
|
28
|
+
v as defineAsyncRoutes,
|
|
29
|
+
C as defineIconModule,
|
|
30
|
+
T as defineRouteModule,
|
|
31
|
+
x as defineSettings,
|
|
32
|
+
j as defineSystemRoutes,
|
|
33
|
+
w as getAllIconModules,
|
|
34
|
+
O as getAllRouteModules,
|
|
35
|
+
W as getAsyncRoutes,
|
|
36
|
+
D as getSettings,
|
|
37
|
+
H as getSystemRoutes,
|
|
38
|
+
U as pubinfoInjectionKey,
|
|
39
|
+
_ as readProjectModules,
|
|
40
|
+
k as storage,
|
|
41
|
+
q as updateWatermark,
|
|
42
|
+
B as useAuth,
|
|
43
|
+
F as useBox,
|
|
44
|
+
K as useError,
|
|
45
|
+
N as useFavoritesStore,
|
|
46
|
+
Y as useIframeStore,
|
|
47
|
+
z as useInfo,
|
|
48
|
+
G as useKeepAliveStore,
|
|
49
|
+
V as useMenuStore,
|
|
50
|
+
X as useRouteStore,
|
|
51
|
+
Z as useSettingsStore,
|
|
52
|
+
$ as useStart,
|
|
53
|
+
J as useSuccess,
|
|
54
|
+
Q as useTabbarStore,
|
|
55
|
+
ee as useTheme,
|
|
56
|
+
se as useUserStore,
|
|
57
|
+
ae as useWarn,
|
|
58
|
+
ce as watchDiffObject,
|
|
59
|
+
oe as wrapProxy
|
|
62
60
|
};
|