@ozdao/prometheus-framework 0.1.19 → 0.1.21
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/BackofficeGallery-3bb55ea2.mjs +357 -0
- package/dist/BackofficeGallery-7ae8fbba.mjs +307 -0
- package/dist/BackofficeGallery-e54a33a3.js +1 -0
- package/dist/BackofficeGallery-fe39cff3.js +1 -0
- package/dist/Breadcrumbs.vue_vue_type_style_index_0_lang-8660f9cb.js +1 -0
- package/dist/Breadcrumbs.vue_vue_type_style_index_0_lang-bd3889ee.mjs +1945 -0
- package/dist/ButtonFollow-81508d85.mjs +132 -0
- package/dist/ButtonFollow-df6317f0.js +1 -0
- package/dist/CardOrganization-d8f209ee.js +1 -0
- package/dist/CardOrganization-de8ec36e.mjs +230 -0
- package/dist/Feed-a75d053e.js +1 -0
- package/dist/Feed-c4084664.mjs +368 -0
- package/dist/Feed-fea84ce7.mjs +439 -0
- package/dist/Feed-ff3b96b2.js +1 -0
- package/dist/Image-1281bc48.mjs +477 -0
- package/dist/Image-8e67dd2d.js +9 -0
- package/dist/Popup-b7609baa.js +1 -0
- package/dist/Popup-d5c4cb46.mjs +76 -0
- package/dist/Product-3c7b2921.mjs +841 -0
- package/dist/Product-6df77924.js +7 -0
- package/dist/ProductEdit-737e2a5a.mjs +302 -0
- package/dist/ProductEdit-c99ab559.js +1 -0
- package/dist/ProfileBlogposts-4293a1e3.js +1 -0
- package/dist/ProfileBlogposts-4c326fed.mjs +65 -0
- package/dist/ProfileComments-03f88b54.mjs +44 -0
- package/dist/ProfileComments-761ce00e.js +1 -0
- package/dist/ProfileEvents-0bdd36e4.mjs +57 -0
- package/dist/ProfileEvents-a9b96fec.js +1 -0
- package/dist/ProfileLikes-3edf6fb8.mjs +44 -0
- package/dist/ProfileLikes-51729962.js +1 -0
- package/dist/ProfileOrganizations-8961aaee.mjs +213 -0
- package/dist/ProfileOrganizations-f52e62e1.js +1 -0
- package/dist/Publics-70a0ca9c.mjs +45 -0
- package/dist/Publics-bbab7a79.js +1 -0
- package/dist/Select-90d4b7c8.mjs +81 -0
- package/dist/Select-b9299fb6.js +1 -0
- package/dist/Select.vue_vue_type_style_index_0_scoped_a78dbba1_lang-0ea8fbf8.js +1 -0
- package/dist/Select.vue_vue_type_style_index_0_scoped_a78dbba1_lang-4ed993c7.mjs +1 -0
- package/dist/UploadImage-c9711af2.js +1 -0
- package/dist/UploadImage-ec3714e8.mjs +83 -0
- package/dist/UploadImageMultiple-b4c8d627.js +1 -0
- package/dist/UploadImageMultiple-ebcc51e6.mjs +58 -0
- package/dist/auth-78d9392a.mjs +612 -0
- package/dist/auth-96449d96.js +7 -0
- package/dist/auth.client.cjs +8 -8
- package/dist/auth.client.js +8 -8
- package/dist/auth.validation-9e493d2f.mjs +20 -0
- package/dist/auth.validation-d4795c25.js +1 -0
- package/dist/backoffice.client.cjs +1 -1
- package/dist/backoffice.client.js +44 -49
- package/dist/community.client.cjs +1 -1
- package/dist/community.client.js +44 -42
- package/dist/events.client.cjs +2 -2
- package/dist/events.client.js +25 -24
- package/dist/index-2a0269fc.js +2 -0
- package/dist/index-9128ade5.mjs +1228 -0
- package/dist/landing.client.cjs +1 -1
- package/dist/modules/backoffice/components/layouts/Backoffice.vue.d.ts +2 -0
- package/dist/modules/gallery/components/sections/BackofficeGallery.vue.d.ts +2 -0
- package/dist/organizations-0fb56927.mjs +122 -0
- package/dist/organizations-195ec134.js +1 -0
- package/dist/organizations.client-b39db194.js +3 -0
- package/dist/organizations.client-df5e8a6f.mjs +3020 -0
- package/dist/organizations.client.cjs +1 -1
- package/dist/organizations.client.js +46 -44
- package/dist/style.css +1 -1
- package/dist/users.client.cjs +1 -1
- package/dist/users.client.js +23 -23
- package/package.json +1 -1
- package/src/modules/backoffice/components/layouts/{Account.vue → Backoffice.vue} +0 -11
- package/src/modules/backoffice/router/account.js +64 -43
- package/src/modules/backoffice/router/admin.js +105 -84
- package/src/modules/backoffice/router/backoffice.js +3 -3
- package/src/modules/gallery/components/sections/{Gallery.vue → BackofficeGallery.vue} +3 -1
package/dist/users.client.js
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
import { openBlock as d, createElementBlock as _, renderSlot as R, createElementVNode as n, defineComponent as B, h as x, ref as U, resolveComponent as z, toDisplayString as $, createBlock as w, withCtx as C, createTextVNode as S, createCommentVNode as y, reactive as A, onMounted as F, unref as c, Fragment as T, renderList as j, normalizeClass as D, createVNode as l, withAsyncContext as G } from "vue";
|
2
|
-
import {
|
2
|
+
import { a as Y, F as b, _ as Z } from "./index-9128ade5.mjs";
|
3
3
|
import { _ as H } from "./_plugin-vue_export-helper-dad06003.mjs";
|
4
|
-
import { B as
|
5
|
-
import { _ as
|
6
|
-
import { I as
|
7
|
-
import { useRoute as
|
8
|
-
import { a as
|
4
|
+
import { B as q, m as J } from "./ButtonFollow-81508d85.mjs";
|
5
|
+
import { _ as K } from "./Socials-8193477c.mjs";
|
6
|
+
import { I as Q, P as W } from "./IconEdit-eacf3856.mjs";
|
7
|
+
import { useRoute as L, useRouter as N } from "vue-router";
|
8
|
+
import { s as p, a as I } from "./auth-78d9392a.mjs";
|
9
9
|
import "./inputs.validation-14e8e01f.mjs";
|
10
|
-
import { _ as X } from "./UploadImage-
|
11
|
-
import "./auth.validation-
|
10
|
+
import { _ as X } from "./UploadImage-ec3714e8.mjs";
|
11
|
+
import "./auth.validation-9e493d2f.mjs";
|
12
12
|
import "./globals-96ba60e4.mjs";
|
13
13
|
import "vue-i18n";
|
14
14
|
const ee = { class: "mobile-menu-section mn-semi pd-r-zero pd-t-thin pd-b-thin pd-medium radius-medium" }, E = {
|
@@ -190,7 +190,7 @@ const ge = /* @__PURE__ */ H(pe, [["render", Ce]]), ve = {}, be = {
|
|
190
190
|
function Pe(s, e) {
|
191
191
|
return d(), _("svg", be, xe);
|
192
192
|
}
|
193
|
-
const Me = /* @__PURE__ */ H(ve, [["render", Pe]]), V =
|
193
|
+
const Me = /* @__PURE__ */ H(ve, [["render", Pe]]), V = Y.create({ baseURL: process.env.API_URL, withCredentials: !0 }), r = A({
|
194
194
|
all: [],
|
195
195
|
current: {
|
196
196
|
_id: "",
|
@@ -282,15 +282,15 @@ const Ve = { class: "for-transition w-100" }, Ue = {
|
|
282
282
|
}, Be = /* @__PURE__ */ n("span", null, " Backoffice ", -1), ze = /* @__PURE__ */ n("span", null, "Events", -1), Ae = /* @__PURE__ */ n("span", null, "Groups", -1), Fe = /* @__PURE__ */ n("span", null, "Posts", -1), Te = /* @__PURE__ */ n("span", null, " Settings ", -1), je = /* @__PURE__ */ n("span", { class: "t-red" }, " Logout ", -1), De = {
|
283
283
|
__name: "Profile",
|
284
284
|
setup(s) {
|
285
|
-
const e =
|
285
|
+
const e = L(), m = N(), f = U(!1);
|
286
286
|
F(async () => {
|
287
287
|
await M.read({ _id: e.params._id, user: p.user._id }), f.value = !0;
|
288
288
|
});
|
289
289
|
const g = ({ membership: v, isMember: o, targetId: u }) => {
|
290
|
-
|
290
|
+
J.handleMembershipUpdate(r.current, v, o, u);
|
291
291
|
};
|
292
292
|
function t() {
|
293
|
-
|
293
|
+
I.logout(), m.push({ name: "Sign In" });
|
294
294
|
}
|
295
295
|
return (v, o) => (d(), _("div", Ve, [
|
296
296
|
r.current.status === "removed" ? (d(), _("div", Ue, " Sorry, user has been removed. ")) : (d(), _("div", He, [
|
@@ -301,7 +301,7 @@ const Ve = { class: "for-transition w-100" }, Ue = {
|
|
301
301
|
cta: !0
|
302
302
|
}, null, 8, ["user", "target"])) : y("", !0),
|
303
303
|
n("section", Ee, [
|
304
|
-
c(e).params._id === p.user._id ? (d(), w(
|
304
|
+
c(e).params._id === p.user._id ? (d(), w(Q, {
|
305
305
|
key: 0,
|
306
306
|
onClick: o[0] || (o[0] = (u) => v.$router.push({
|
307
307
|
name: "User Edit Profile",
|
@@ -315,7 +315,7 @@ const Ve = { class: "for-transition w-100" }, Ue = {
|
|
315
315
|
key: 1,
|
316
316
|
src: (v.FILE_SERVER_URL || "") + r.current.profile.photo,
|
317
317
|
class: "radius-extra bg-white mn-small object-fit-cover i-extra"
|
318
|
-
}, null, 8, Se)) : (d(), w(
|
318
|
+
}, null, 8, Se)) : (d(), w(W, {
|
319
319
|
key: 2,
|
320
320
|
class: "radius-medium mn-small i-extra"
|
321
321
|
})),
|
@@ -328,7 +328,7 @@ const Ve = { class: "for-transition w-100" }, Ue = {
|
|
328
328
|
}, $(u.icon) + " " + $(u.name), 3))), 256))
|
329
329
|
]),
|
330
330
|
n("p", Oe, " 👨👨👧👧 " + $(r.current.numberOfMemberships) + " followers ", 1),
|
331
|
-
p.user._id && c(e).params._id && c(e).params._id !== p.user._id ? (d(), w(
|
331
|
+
p.user._id && c(e).params._id && c(e).params._id !== p.user._id ? (d(), w(q, {
|
332
332
|
key: 3,
|
333
333
|
type: "user",
|
334
334
|
isMember: r.current.isMember,
|
@@ -338,7 +338,7 @@ const Ve = { class: "for-transition w-100" }, Ue = {
|
|
338
338
|
onUpdateMembership: g
|
339
339
|
}, null, 8, ["isMember", "targetId", "userId"])) : y("", !0),
|
340
340
|
Object.values(r.current.socials).some((u) => u) ? (d(), _("h4", Re, " Find Me in Socials ")) : y("", !0),
|
341
|
-
l(
|
341
|
+
l(K, {
|
342
342
|
telegram: r.current.socials.telegram,
|
343
343
|
facebook: r.current.socials.facebook,
|
344
344
|
instagram: r.current.socials.instagram,
|
@@ -456,14 +456,14 @@ const Ye = { class: "pd-medium for-transition w-100" }, qe = /* @__PURE__ */ n("
|
|
456
456
|
async setup(s) {
|
457
457
|
let e, m;
|
458
458
|
U(null);
|
459
|
-
const f =
|
459
|
+
const f = L(), g = N();
|
460
460
|
[e, m] = G(() => M.read({ _id: p.user._id })), await e, m();
|
461
461
|
const t = U(r.current);
|
462
462
|
async function v() {
|
463
463
|
await M.update(r.current);
|
464
464
|
}
|
465
465
|
async function o() {
|
466
|
-
window.confirm("Are you sure you want to delete your account? Restoration will be possible only with the help of an administrator.") && (r.current.status = "removed", await M.update(r.current),
|
466
|
+
window.confirm("Are you sure you want to delete your account? Restoration will be possible only with the help of an administrator.") && (r.current.status = "removed", await M.update(r.current), I.logout());
|
467
467
|
}
|
468
468
|
function u() {
|
469
469
|
g.replace({ name: "User Profile", params: { _id: r.current._id } });
|
@@ -610,7 +610,7 @@ const Ye = { class: "pd-medium for-transition w-100" }, qe = /* @__PURE__ */ n("
|
|
610
610
|
},
|
611
611
|
component: () => import(
|
612
612
|
/* webpackChunkName: "profile" */
|
613
|
-
"./ProfileBlogposts-
|
613
|
+
"./ProfileBlogposts-4c326fed.mjs"
|
614
614
|
)
|
615
615
|
}, {
|
616
616
|
path: "profile/:_id/comments",
|
@@ -623,7 +623,7 @@ const Ye = { class: "pd-medium for-transition w-100" }, qe = /* @__PURE__ */ n("
|
|
623
623
|
},
|
624
624
|
component: () => import(
|
625
625
|
/* webpackChunkName: "profile" */
|
626
|
-
"./ProfileComments-
|
626
|
+
"./ProfileComments-03f88b54.mjs"
|
627
627
|
)
|
628
628
|
}, {
|
629
629
|
path: "profile/:_id/edit",
|
@@ -646,7 +646,7 @@ const Ye = { class: "pd-medium for-transition w-100" }, qe = /* @__PURE__ */ n("
|
|
646
646
|
},
|
647
647
|
component: () => import(
|
648
648
|
/* webpackChunkName: "profile" */
|
649
|
-
"./ProfileEvents-
|
649
|
+
"./ProfileEvents-0bdd36e4.mjs"
|
650
650
|
)
|
651
651
|
}, {
|
652
652
|
path: "profile/:_id/likes",
|
@@ -659,7 +659,7 @@ const Ye = { class: "pd-medium for-transition w-100" }, qe = /* @__PURE__ */ n("
|
|
659
659
|
},
|
660
660
|
component: () => import(
|
661
661
|
/* webpackChunkName: "profile" */
|
662
|
-
"./ProfileLikes-
|
662
|
+
"./ProfileLikes-3edf6fb8.mjs"
|
663
663
|
)
|
664
664
|
}, {
|
665
665
|
path: "profile/:_id/organizations",
|
@@ -672,7 +672,7 @@ const Ye = { class: "pd-medium for-transition w-100" }, qe = /* @__PURE__ */ n("
|
|
672
672
|
},
|
673
673
|
component: () => import(
|
674
674
|
/* webpackChunkName: "profile" */
|
675
|
-
"./ProfileOrganizations-
|
675
|
+
"./ProfileOrganizations-8961aaee.mjs"
|
676
676
|
)
|
677
677
|
}];
|
678
678
|
export {
|
package/package.json
CHANGED
@@ -35,17 +35,6 @@
|
|
35
35
|
|
36
36
|
|
37
37
|
<script setup>
|
38
|
-
import { computed, onMounted,reactive,toRefs } from 'vue'
|
39
|
-
|
40
|
-
import { useRoute,useRouter } from 'vue-router'
|
41
|
-
|
42
|
-
const route = useRoute()
|
43
|
-
const router = useRouter()
|
44
|
-
|
45
|
-
let data = reactive({currentTab: 'user'})
|
46
|
-
let reactiveData = toRefs(data)
|
47
|
-
function changeTab (tab) {data.currentTab = tab; console.log(data.currentTab) }
|
48
|
-
|
49
38
|
|
50
39
|
|
51
40
|
|
@@ -1,53 +1,74 @@
|
|
1
|
-
import layoutAccount from '@/modules/account/layouts/Account.vue'
|
1
|
+
// import layoutAccount from '@/modules/account/layouts/Account.vue'
|
2
2
|
|
3
|
-
const account = [{
|
4
|
-
|
5
|
-
|
3
|
+
// const account = [{
|
4
|
+
// path: 'app',
|
5
|
+
// component: layoutAccount,
|
6
|
+
// children: [{
|
7
|
+
// path: 'wallet',
|
8
|
+
// name: 'Wallet',
|
9
|
+
// meta: {
|
10
|
+
// title: {
|
11
|
+
// en: 'Wallet',
|
12
|
+
// ru: 'Кошелек'
|
13
|
+
// },
|
14
|
+
// authorize: []
|
15
|
+
// },
|
16
|
+
// component: () => import(/* webpackChunkName: 'Account' */ '@/modules/account/pages/Wallet.vue'),
|
17
|
+
// },{
|
18
|
+
// path: 'organizations',
|
19
|
+
// name: 'Organizations',
|
20
|
+
// meta: {
|
21
|
+
// title: {
|
22
|
+
// en: 'Organizations',
|
23
|
+
// ru: 'Организации'
|
24
|
+
// },
|
25
|
+
// authorize: []
|
26
|
+
// },
|
27
|
+
// component: () => import(/* webpackChunkName: 'Account' */ '@pf/src/modules/organizations/components/pages/OrganizationsAccount.vue'),
|
28
|
+
// },{
|
29
|
+
// path: 'community',
|
30
|
+
// name: 'Community Account',
|
31
|
+
// meta: {
|
32
|
+
// title: {
|
33
|
+
// en: 'Community',
|
34
|
+
// ru: 'Сообщество'
|
35
|
+
// },
|
36
|
+
// authorize: []
|
37
|
+
// },
|
38
|
+
// component: () => import(/* webpackChunkName: 'Account' */ '@pf/src/modules/community/components/pages/Community.vue'),
|
39
|
+
// },{
|
40
|
+
// path: 'history',
|
41
|
+
// name: 'Order History',
|
42
|
+
// meta: {
|
43
|
+
// title: {
|
44
|
+
// en: 'Order History',
|
45
|
+
// ru: 'История заказов'
|
46
|
+
// },
|
47
|
+
// authorize: []
|
48
|
+
// },
|
49
|
+
// component: () => import(/* webpackChunkName: 'Account' */ '@/modules/account/pages/History.vue'),
|
50
|
+
// }]
|
51
|
+
// }];
|
52
|
+
|
53
|
+
// export default account;
|
54
|
+
|
55
|
+
import layoutBackoffice from '../components/layouts/Backoffice.vue'
|
56
|
+
|
57
|
+
const backofficeRoutes = [{
|
58
|
+
path: 'backoffice',
|
59
|
+
component: layoutBackoffice,
|
6
60
|
children: [{
|
7
|
-
path: '
|
8
|
-
name: '
|
9
|
-
meta: {
|
10
|
-
title: {
|
11
|
-
en: 'Wallet',
|
12
|
-
ru: 'Кошелек'
|
13
|
-
},
|
14
|
-
authorize: []
|
15
|
-
},
|
16
|
-
component: () => import(/* webpackChunkName: 'Account' */ '@/modules/account/pages/Wallet.vue'),
|
17
|
-
},{
|
18
|
-
path: 'organizations',
|
19
|
-
name: 'Organizations',
|
20
|
-
meta: {
|
21
|
-
title: {
|
22
|
-
en: 'Organizations',
|
23
|
-
ru: 'Организации'
|
24
|
-
},
|
25
|
-
authorize: []
|
26
|
-
},
|
27
|
-
component: () => import(/* webpackChunkName: 'Account' */ '@pf/src/modules/organizations/components/pages/OrganizationsAccount.vue'),
|
28
|
-
},{
|
29
|
-
path: 'community',
|
30
|
-
name: 'Community Account',
|
31
|
-
meta: {
|
32
|
-
title: {
|
33
|
-
en: 'Community',
|
34
|
-
ru: 'Сообщество'
|
35
|
-
},
|
36
|
-
authorize: []
|
37
|
-
},
|
38
|
-
component: () => import(/* webpackChunkName: 'Account' */ '@pf/src/modules/community/components/pages/Community.vue'),
|
39
|
-
},{
|
40
|
-
path: 'history',
|
41
|
-
name: 'Order History',
|
61
|
+
path: ':_id',
|
62
|
+
name: 'Backoffice',
|
42
63
|
meta: {
|
43
64
|
title: {
|
44
|
-
en: '
|
45
|
-
ru: '
|
65
|
+
en: 'Backoffice',
|
66
|
+
ru: 'Управление'
|
46
67
|
},
|
47
68
|
authorize: []
|
48
69
|
},
|
49
|
-
component: () => import(/* webpackChunkName: '
|
70
|
+
component: () => import(/* webpackChunkName: 'BackofficeGallery' */ '@pf/src/modules/gallery/components/sections/BackofficeGallery.vue'),
|
50
71
|
}]
|
51
72
|
}];
|
52
73
|
|
53
|
-
export default
|
74
|
+
export default backofficeRoutes;
|
@@ -1,87 +1,108 @@
|
|
1
|
-
import layoutAdmin from '/src/components/layout/admin.vue'
|
1
|
+
// import layoutAdmin from '/src/components/layout/admin.vue'
|
2
2
|
|
3
|
-
const admin = [
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
3
|
+
// const admin = [
|
4
|
+
// {
|
5
|
+
// path: 'admin',
|
6
|
+
// component: layoutAdmin,
|
7
|
+
// meta: { authorize: ["ROLE_MODERATOR"] },
|
8
|
+
// children: [{
|
9
|
+
// path: 'categories',
|
10
|
+
// name: 'Categories',
|
11
|
+
// component: () => import(/* webpackChunkName: 'Categories' */ '@/components/pages/admin/Categories.vue')
|
12
|
+
// },
|
13
|
+
// {
|
14
|
+
// path: 'categories/add',
|
15
|
+
// name: 'AddCategory',
|
16
|
+
// component: () => import(/* webpackChunkName: 'AddCategory' */ '@/components/pages/admin/CategoryEdit.vue')
|
17
|
+
// },
|
18
|
+
// {
|
19
|
+
// path: 'categories/:url/edit',
|
20
|
+
// name: 'EditCategory',
|
21
|
+
// component: () => import(/* webpackChunkName: 'EditCategory' */ '@/components/pages/admin/CategoryEdit.vue')
|
22
|
+
// },{
|
23
|
+
// path: 'products',
|
24
|
+
// name: 'Products',
|
25
|
+
// component: () => import(/* webpackChunkName: 'Products' */ '@/components/pages/admin/Products.vue')
|
26
|
+
// },{
|
27
|
+
// path: 'backcalls',
|
28
|
+
// name: 'Backcalls',
|
29
|
+
// // meta: { authorize: ["ROLE_MODERATOR"] },
|
30
|
+
// component: () => import(/* webpackChunkName: 'Backcalls' */ '@/components/pages/admin/Backcalls.vue')
|
31
|
+
// },{
|
32
|
+
// path: 'fastorder',
|
33
|
+
// name: 'FastOrders',
|
34
|
+
// // meta: { authorize: ["ROLE_MODERATOR"] },
|
35
|
+
// component: () => import(/* webpackChunkName: 'FastOrders' */ '@/components/pages/admin/FastOrders.vue')
|
36
|
+
// },{
|
37
|
+
// path: 'orders',
|
38
|
+
// name: 'Orders',
|
39
|
+
// // meta: { authorize: ["ROLE_MODERATOR"] },
|
40
|
+
// component: () => import(/* webpackChunkName: 'Orders' */ '@/components/pages/admin/Orders.vue')
|
41
|
+
// },{
|
42
|
+
// path: 'orders/:_id',
|
43
|
+
// name: 'AdminOrder',
|
44
|
+
// component: () => import(/* webpackChunkName: 'AdminOrders' */ '@/components/pages/admin/Order.vue')
|
45
|
+
// },{
|
46
|
+
// path: 'leftovers',
|
47
|
+
// name: 'Leftovers',
|
48
|
+
// // meta: { authorize: ["ROLE_MODERATOR"] },
|
49
|
+
// component: () => import(/* webpackChunkName: 'Leftovers' */ '@/components/pages/admin/Leftovers.vue')
|
50
|
+
// },{
|
51
|
+
// path: 'leftovers/add',
|
52
|
+
// name: 'LeftoverAdd',
|
53
|
+
// // meta: { authorize: ["ROLE_MODERATOR"] },
|
54
|
+
// component: () => import(/* webpackChunkName: 'LeftoverEdit' */ '@/components/pages/admin/LeftoverAdd.vue')
|
55
|
+
// },{
|
56
|
+
// path: 'leftovers/:_id',
|
57
|
+
// name: 'LeftoverEdit',
|
58
|
+
// // meta: { authorize: ["ROLE_MODERATOR"] },
|
59
|
+
// component: () => import(/* webpackChunkName: 'LeftoverEdit' */ '@/components/pages/admin/LeftoverAdd.vue')
|
60
|
+
// },{
|
61
|
+
// path: 'pages',
|
62
|
+
// name: 'Pages',
|
63
|
+
// // meta: { authorize: ["ROLE_MODERATOR"] },
|
64
|
+
// component: () => import(/* webpackChunkName: 'Pages' */ '@/components/pages/admin/Pages.vue')
|
65
|
+
// },{
|
66
|
+
// path: 'pages/add',
|
67
|
+
// name: 'PageAdd',
|
68
|
+
// // meta: { authorize: ["ROLE_MODERATOR"] },
|
69
|
+
// component: () => import(/* webpackChunkName: 'PageAdd' */ '@/components/pages/admin/PageEdit.vue')
|
70
|
+
// },{
|
71
|
+
// path: 'pages/:url',
|
72
|
+
// name: 'PageEdit',
|
73
|
+
// // meta: { authorize: ["ROLE_MODERATOR"] },
|
74
|
+
// component: () => import(/* webpackChunkName: 'PAgeEdit' */ '@/components/pages/admin/PageEdit.vue')
|
75
|
+
// },{
|
76
|
+
// path: 'users',
|
77
|
+
// name: 'Users',
|
78
|
+
// component: () => import(/* webpackChunkName: 'Users' */ '@/components/pages/admin/Users.vue')
|
79
|
+
// },{
|
80
|
+
// path: 'users/:phone',
|
81
|
+
// name: 'User',
|
82
|
+
// component: () => import(/* webpackChunkName: 'User' */ '@/components/pages/admin/User.vue')
|
83
|
+
// }]
|
84
|
+
// }
|
85
|
+
// ];
|
86
|
+
|
87
|
+
// export default admin;
|
88
|
+
|
89
|
+
import layoutBackoffice from '../components/layouts/Backoffice.vue'
|
90
|
+
|
91
|
+
const backofficeRoutes = [{
|
92
|
+
path: 'backoffice',
|
93
|
+
component: layoutBackoffice,
|
94
|
+
children: [{
|
95
|
+
path: ':_id',
|
96
|
+
name: 'Backoffice',
|
97
|
+
meta: {
|
98
|
+
title: {
|
99
|
+
en: 'Backoffice',
|
100
|
+
ru: 'Управление'
|
101
|
+
},
|
102
|
+
authorize: []
|
17
103
|
},
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
component: () => import(/* webpackChunkName: 'EditCategory' */ '@/components/pages/admin/CategoryEdit.vue')
|
22
|
-
},{
|
23
|
-
path: 'products',
|
24
|
-
name: 'Products',
|
25
|
-
component: () => import(/* webpackChunkName: 'Products' */ '@/components/pages/admin/Products.vue')
|
26
|
-
},{
|
27
|
-
path: 'backcalls',
|
28
|
-
name: 'Backcalls',
|
29
|
-
// meta: { authorize: ["ROLE_MODERATOR"] },
|
30
|
-
component: () => import(/* webpackChunkName: 'Backcalls' */ '@/components/pages/admin/Backcalls.vue')
|
31
|
-
},{
|
32
|
-
path: 'fastorder',
|
33
|
-
name: 'FastOrders',
|
34
|
-
// meta: { authorize: ["ROLE_MODERATOR"] },
|
35
|
-
component: () => import(/* webpackChunkName: 'FastOrders' */ '@/components/pages/admin/FastOrders.vue')
|
36
|
-
},{
|
37
|
-
path: 'orders',
|
38
|
-
name: 'Orders',
|
39
|
-
// meta: { authorize: ["ROLE_MODERATOR"] },
|
40
|
-
component: () => import(/* webpackChunkName: 'Orders' */ '@/components/pages/admin/Orders.vue')
|
41
|
-
},{
|
42
|
-
path: 'orders/:_id',
|
43
|
-
name: 'AdminOrder',
|
44
|
-
component: () => import(/* webpackChunkName: 'AdminOrders' */ '@/components/pages/admin/Order.vue')
|
45
|
-
},{
|
46
|
-
path: 'leftovers',
|
47
|
-
name: 'Leftovers',
|
48
|
-
// meta: { authorize: ["ROLE_MODERATOR"] },
|
49
|
-
component: () => import(/* webpackChunkName: 'Leftovers' */ '@/components/pages/admin/Leftovers.vue')
|
50
|
-
},{
|
51
|
-
path: 'leftovers/add',
|
52
|
-
name: 'LeftoverAdd',
|
53
|
-
// meta: { authorize: ["ROLE_MODERATOR"] },
|
54
|
-
component: () => import(/* webpackChunkName: 'LeftoverEdit' */ '@/components/pages/admin/LeftoverAdd.vue')
|
55
|
-
},{
|
56
|
-
path: 'leftovers/:_id',
|
57
|
-
name: 'LeftoverEdit',
|
58
|
-
// meta: { authorize: ["ROLE_MODERATOR"] },
|
59
|
-
component: () => import(/* webpackChunkName: 'LeftoverEdit' */ '@/components/pages/admin/LeftoverAdd.vue')
|
60
|
-
},{
|
61
|
-
path: 'pages',
|
62
|
-
name: 'Pages',
|
63
|
-
// meta: { authorize: ["ROLE_MODERATOR"] },
|
64
|
-
component: () => import(/* webpackChunkName: 'Pages' */ '@/components/pages/admin/Pages.vue')
|
65
|
-
},{
|
66
|
-
path: 'pages/add',
|
67
|
-
name: 'PageAdd',
|
68
|
-
// meta: { authorize: ["ROLE_MODERATOR"] },
|
69
|
-
component: () => import(/* webpackChunkName: 'PageAdd' */ '@/components/pages/admin/PageEdit.vue')
|
70
|
-
},{
|
71
|
-
path: 'pages/:url',
|
72
|
-
name: 'PageEdit',
|
73
|
-
// meta: { authorize: ["ROLE_MODERATOR"] },
|
74
|
-
component: () => import(/* webpackChunkName: 'PAgeEdit' */ '@/components/pages/admin/PageEdit.vue')
|
75
|
-
},{
|
76
|
-
path: 'users',
|
77
|
-
name: 'Users',
|
78
|
-
component: () => import(/* webpackChunkName: 'Users' */ '@/components/pages/admin/Users.vue')
|
79
|
-
},{
|
80
|
-
path: 'users/:phone',
|
81
|
-
name: 'User',
|
82
|
-
component: () => import(/* webpackChunkName: 'User' */ '@/components/pages/admin/User.vue')
|
83
|
-
}]
|
84
|
-
}
|
85
|
-
];
|
104
|
+
component: () => import(/* webpackChunkName: 'BackofficeGallery' */ '@pf/src/modules/gallery/components/sections/BackofficeGallery.vue'),
|
105
|
+
}]
|
106
|
+
}];
|
86
107
|
|
87
|
-
export default
|
108
|
+
export default backofficeRoutes;
|
@@ -1,8 +1,8 @@
|
|
1
|
-
import
|
1
|
+
import layoutBackoffice from '../components/layouts/Backoffice.vue'
|
2
2
|
|
3
3
|
const backofficeRoutes = [{
|
4
4
|
path: 'backoffice',
|
5
|
-
component:
|
5
|
+
component: layoutBackoffice,
|
6
6
|
children: [{
|
7
7
|
path: ':_id',
|
8
8
|
name: 'Backoffice',
|
@@ -13,7 +13,7 @@ const backofficeRoutes = [{
|
|
13
13
|
},
|
14
14
|
authorize: []
|
15
15
|
},
|
16
|
-
component: () => import(/* webpackChunkName: '
|
16
|
+
component: () => import(/* webpackChunkName: 'BackofficeGallery' */ '@pf/src/modules/gallery/components/sections/BackofficeGallery.vue'),
|
17
17
|
}]
|
18
18
|
}];
|
19
19
|
|
@@ -126,7 +126,9 @@
|
|
126
126
|
|
127
127
|
<script setup>
|
128
128
|
import { ref, onMounted, reactive, computed } from 'vue'
|
129
|
-
import
|
129
|
+
import Field from '@pf/src/components/Field/Field.vue'
|
130
|
+
import Button from '@pf/src/components/Button/Button.vue'
|
131
|
+
import Select from '@pf/src/components/Select/Select.vue'
|
130
132
|
import { state, actions } from '@pf/src/modules/gallery/store/gallery';
|
131
133
|
|
132
134
|
import EditImages from '@pf/src/components/EditImages/EditImages.vue';
|