bmp-layout 0.0.1
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/403-6Mu2ARIM.mjs +19 -0
- package/404-DmgxIkgQ.mjs +18 -0
- package/500-BPZns4ny.mjs +19 -0
- package/Redirect-CRTyBnlH.mjs +31 -0
- package/bmp-layout.es.js +14 -0
- package/bmp-layout.umd.js +56 -0
- package/en-BZsoY3yy.mjs +471 -0
- package/index-BigmvEkk.mjs +39314 -0
- package/index-ByEuRprV.mjs +10 -0
- package/locales/en.js +478 -0
- package/locales/zh-CN.js +473 -0
- package/logo.svg +26 -0
- package/package.json +54 -0
- package/style.css +1 -0
- package/zh-CN-DzBYGIAl.mjs +476 -0
package/403-6Mu2ARIM.mjs
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { _ as _sfc_main$1 } from "./index-BigmvEkk.mjs";
|
|
2
|
+
import { openBlock, createBlock, unref } from "vue";
|
|
3
|
+
import { useRouter } from "vue-router";
|
|
4
|
+
const _sfc_main = /* @__PURE__ */ Object.assign({ name: "Error403" }, {
|
|
5
|
+
__name: "403",
|
|
6
|
+
setup(__props) {
|
|
7
|
+
const { push } = useRouter();
|
|
8
|
+
return (_ctx, _cache) => {
|
|
9
|
+
const _component_Error = _sfc_main$1;
|
|
10
|
+
return openBlock(), createBlock(_component_Error, {
|
|
11
|
+
type: "403",
|
|
12
|
+
onErrorClick: _cache[0] || (_cache[0] = ($event) => unref(push)("/"))
|
|
13
|
+
});
|
|
14
|
+
};
|
|
15
|
+
}
|
|
16
|
+
});
|
|
17
|
+
export {
|
|
18
|
+
_sfc_main as default
|
|
19
|
+
};
|
package/404-DmgxIkgQ.mjs
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { _ as _sfc_main$1 } from "./index-BigmvEkk.mjs";
|
|
2
|
+
import { openBlock, createBlock, unref } from "vue";
|
|
3
|
+
import { useRouter } from "vue-router";
|
|
4
|
+
const _sfc_main = /* @__PURE__ */ Object.assign({ name: "Error404" }, {
|
|
5
|
+
__name: "404",
|
|
6
|
+
setup(__props) {
|
|
7
|
+
const { push } = useRouter();
|
|
8
|
+
return (_ctx, _cache) => {
|
|
9
|
+
const _component_Error = _sfc_main$1;
|
|
10
|
+
return openBlock(), createBlock(_component_Error, {
|
|
11
|
+
onErrorClick: _cache[0] || (_cache[0] = ($event) => unref(push)("/"))
|
|
12
|
+
});
|
|
13
|
+
};
|
|
14
|
+
}
|
|
15
|
+
});
|
|
16
|
+
export {
|
|
17
|
+
_sfc_main as default
|
|
18
|
+
};
|
package/500-BPZns4ny.mjs
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { _ as _sfc_main$1 } from "./index-BigmvEkk.mjs";
|
|
2
|
+
import { openBlock, createBlock, unref } from "vue";
|
|
3
|
+
import { useRouter } from "vue-router";
|
|
4
|
+
const _sfc_main = /* @__PURE__ */ Object.assign({ name: "Error500" }, {
|
|
5
|
+
__name: "500",
|
|
6
|
+
setup(__props) {
|
|
7
|
+
const { push } = useRouter();
|
|
8
|
+
return (_ctx, _cache) => {
|
|
9
|
+
const _component_Error = _sfc_main$1;
|
|
10
|
+
return openBlock(), createBlock(_component_Error, {
|
|
11
|
+
type: "500",
|
|
12
|
+
onErrorClick: _cache[0] || (_cache[0] = ($event) => unref(push)("/"))
|
|
13
|
+
});
|
|
14
|
+
};
|
|
15
|
+
}
|
|
16
|
+
});
|
|
17
|
+
export {
|
|
18
|
+
_sfc_main as default
|
|
19
|
+
};
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { unref, openBlock, createElementBlock } from "vue";
|
|
2
|
+
import { useRouter } from "vue-router";
|
|
3
|
+
const _sfc_main = /* @__PURE__ */ Object.assign({ name: "Redirect" }, {
|
|
4
|
+
__name: "Redirect",
|
|
5
|
+
setup(__props) {
|
|
6
|
+
const { currentRoute, replace } = useRouter();
|
|
7
|
+
const { params, query } = unref(currentRoute);
|
|
8
|
+
const { path, _redirect_type = "path" } = params;
|
|
9
|
+
Reflect.deleteProperty(params, "_redirect_type");
|
|
10
|
+
Reflect.deleteProperty(params, "path");
|
|
11
|
+
const _path = Array.isArray(path) ? path.join("/") : path;
|
|
12
|
+
if (_redirect_type === "name") {
|
|
13
|
+
replace({
|
|
14
|
+
name: _path,
|
|
15
|
+
query,
|
|
16
|
+
params
|
|
17
|
+
});
|
|
18
|
+
} else {
|
|
19
|
+
replace({
|
|
20
|
+
path: _path.startsWith("/") ? _path : "/" + _path,
|
|
21
|
+
query
|
|
22
|
+
});
|
|
23
|
+
}
|
|
24
|
+
return (_ctx, _cache) => {
|
|
25
|
+
return openBlock(), createElementBlock("div");
|
|
26
|
+
};
|
|
27
|
+
}
|
|
28
|
+
});
|
|
29
|
+
export {
|
|
30
|
+
_sfc_main as default
|
|
31
|
+
};
|
package/bmp-layout.es.js
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { c, _, L, b, L as L2, s, u, d, g, e, f } from "./index-BigmvEkk.mjs";
|
|
2
|
+
export {
|
|
3
|
+
c as ConfigGlobal,
|
|
4
|
+
_ as Error,
|
|
5
|
+
L as Layout,
|
|
6
|
+
b as Login,
|
|
7
|
+
L2 as default,
|
|
8
|
+
s as setI18n,
|
|
9
|
+
u as useAppStore,
|
|
10
|
+
d as useAppStoreWithOut,
|
|
11
|
+
g as useLayout,
|
|
12
|
+
e as useUserStore,
|
|
13
|
+
f as useUserStoreWithOut
|
|
14
|
+
};
|