@ozdao/prometheus-framework 0.1.18 → 0.1.19
Sign up to get free protection for your applications and to get access to all the features.
@@ -1,4 +1,4 @@
|
|
1
|
-
import { reactive as d, toRefs as _, resolveComponent as f, openBlock as o, createElementBlock as
|
1
|
+
import { reactive as d, toRefs as _, resolveComponent as f, openBlock as o, createElementBlock as a, createElementVNode as c, normalizeClass as s, createCommentVNode as r, createVNode as u, withCtx as i, Transition as v, createBlock as h, resolveDynamicComponent as k } from "vue";
|
2
2
|
import { useRoute as y, useRouter as b } from "vue-router";
|
3
3
|
const C = {
|
4
4
|
id: "account",
|
@@ -10,28 +10,28 @@ const C = {
|
|
10
10
|
let l = d({ currentTab: "user" });
|
11
11
|
return _(l), (e, t) => {
|
12
12
|
const m = f("router-view");
|
13
|
-
return o(),
|
14
|
-
|
15
|
-
e.store.auth.state.access.roles.includes("ROLE_ADMIN") ? (o(),
|
13
|
+
return o(), a("section", C, [
|
14
|
+
c("div", g, [
|
15
|
+
e.store.auth.state.access.roles.includes("ROLE_ADMIN") ? (o(), a("button", {
|
16
16
|
key: 0,
|
17
|
-
onClick: t[0] || (t[0] = (
|
17
|
+
onClick: t[0] || (t[0] = (n) => e.$router.push("/account/community")),
|
18
18
|
class: s([{ "product-tab-active": e.$route.path === "/account/community" }, "mn-small product-tab"])
|
19
19
|
}, " Blog ", 2)) : r("", !0),
|
20
|
-
e.store.auth.state.access.roles.includes("ROLE_ADMIN") ? (o(),
|
20
|
+
e.store.auth.state.access.roles.includes("ROLE_ADMIN") ? (o(), a("button", {
|
21
21
|
key: 1,
|
22
|
-
onClick: t[1] || (t[1] = (
|
22
|
+
onClick: t[1] || (t[1] = (n) => e.$router.push("/account/gallery")),
|
23
23
|
class: s([{ "product-tab-active": e.$route.path === "/account/gallery" }, "product-tab"])
|
24
24
|
}, " Gallery ", 2)) : r("", !0)
|
25
25
|
]),
|
26
|
-
|
26
|
+
c("div", B, [
|
27
27
|
u(m, null, {
|
28
|
-
default: i(({ Component:
|
28
|
+
default: i(({ Component: n, route: p }) => [
|
29
29
|
u(v, {
|
30
30
|
name: "scaleIn",
|
31
31
|
mode: "out-in"
|
32
32
|
}, {
|
33
33
|
default: i(() => [
|
34
|
-
(o(), h(k(
|
34
|
+
(o(), h(k(n), {
|
35
35
|
ref: "page",
|
36
36
|
key: p.path
|
37
37
|
}))
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
import layoutAccount from '../components/layouts/Account.vue'
|
2
2
|
|
3
|
-
const
|
3
|
+
const backofficeRoutes = [{
|
4
4
|
path: 'backoffice',
|
5
5
|
component: layoutAccount,
|
6
6
|
children: [{
|
@@ -17,4 +17,4 @@ const account = [{
|
|
17
17
|
}]
|
18
18
|
}];
|
19
19
|
|
20
|
-
export default
|
20
|
+
export default backofficeRoutes;
|