@ozdao/martyrs 0.2.584 → 0.2.585
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/builder.js +2 -0
- package/dist/{main-fmp55tJF.js → main-xL-jtBkT.js} +2 -1
- package/dist/martyrs/dist/{main-fmp55tJF.js → main-xL-jtBkT.js} +3 -2
- package/dist/martyrs/dist/{main-fmp55tJF.js.map → main-xL-jtBkT.js.map} +1 -1
- package/dist/martyrs/dist/{web-BDuQSQKS.js → web-BA6h6Z8P.js} +2 -2
- package/dist/martyrs/dist/{web-BDuQSQKS.js.map → web-BA6h6Z8P.js.map} +1 -1
- package/dist/martyrs/src/components/EditImages/{EditImages.vue2.js → EditImages.vue.js} +2 -2
- package/dist/martyrs/src/components/EditImages/EditImages.vue.js.map +1 -0
- package/dist/martyrs/src/components/Tab/{Tab.vue.js → Tab.vue2.js} +2 -2
- package/dist/martyrs/src/components/Tab/Tab.vue2.js.map +1 -0
- package/dist/martyrs/src/modules/auth/views/components/pages/EnterPassword.vue.js +1 -1
- package/dist/martyrs/src/modules/auth/views/components/pages/Invite.vue.js +1 -1
- package/dist/martyrs/src/modules/auth/views/components/pages/Profile.vue.js +59 -40
- package/dist/martyrs/src/modules/auth/views/components/pages/Profile.vue.js.map +1 -1
- package/dist/martyrs/src/modules/auth/views/components/pages/ProfileBlogposts.vue.js +1 -1
- package/dist/martyrs/src/modules/auth/views/components/pages/ResetPassword.vue.js +1 -1
- package/dist/martyrs/src/modules/auth/views/components/pages/SignIn.vue.js +1 -1
- package/dist/martyrs/src/modules/auth/views/components/pages/SignUp.vue.js +1 -1
- package/dist/martyrs/src/modules/backoffice/backoffice.client.js +3 -15
- package/dist/martyrs/src/modules/backoffice/backoffice.client.js.map +1 -1
- package/dist/martyrs/src/modules/backoffice/configs/navigation.backoffice.config.js +99 -0
- package/dist/martyrs/src/modules/backoffice/configs/navigation.backoffice.config.js.map +1 -0
- package/dist/martyrs/src/modules/backoffice/{backoffice.router.js → router/backoffice.router.js} +9 -7
- package/dist/martyrs/src/modules/backoffice/router/backoffice.router.js.map +1 -0
- package/dist/martyrs/src/modules/community/components/pages/BlogPost.vue.js +6 -0
- package/dist/martyrs/src/modules/community/components/pages/BlogPost.vue.js.map +1 -1
- package/dist/martyrs/src/modules/core/core.client.js.map +1 -1
- package/dist/martyrs/src/modules/core/views/classes/core.app.js +5 -1
- package/dist/martyrs/src/modules/core/views/classes/core.app.js.map +1 -1
- package/dist/martyrs/src/modules/core/views/components/layouts/Client.vue.js +20 -26
- package/dist/martyrs/src/modules/core/views/components/layouts/Client.vue.js.map +1 -1
- package/dist/martyrs/src/modules/core/views/components/pages/404.vue.js +76 -7
- package/dist/martyrs/src/modules/core/views/components/pages/404.vue.js.map +1 -1
- package/dist/martyrs/src/modules/core/views/components/sections/SectionPageTitle.vue.js +1 -1
- package/dist/martyrs/src/modules/core/views/store/core.store.js +1 -0
- package/dist/martyrs/src/modules/core/views/store/core.store.js.map +1 -1
- package/dist/martyrs/src/modules/core/views/utils/vue-app-renderer.js +2 -1
- package/dist/martyrs/src/modules/core/views/utils/vue-app-renderer.js.map +1 -1
- package/dist/martyrs/src/modules/events/components/pages/EditEvent.vue.js +1 -1
- package/dist/martyrs/src/modules/events/components/pages/Event.vue.js +1 -0
- package/dist/martyrs/src/modules/events/components/pages/Event.vue.js.map +1 -1
- package/dist/martyrs/src/modules/events/components/pages/EventsBackoffice.vue.js +1 -1
- package/dist/martyrs/src/modules/gallery/components/sections/BackofficeGallery.vue.js +1 -1
- package/dist/martyrs/src/modules/music/components/player/FullscreenPlayer.vue.js +1 -1
- package/dist/martyrs/src/modules/orders/components/pages/OrderCreateBackoffice.vue.js +1 -1
- package/dist/martyrs/src/modules/orders/components/pages/Orders.vue.js +1 -1
- package/dist/martyrs/src/modules/organizations/components/pages/OrganizationEdit.vue.js +2 -1
- package/dist/martyrs/src/modules/organizations/components/pages/OrganizationEdit.vue.js.map +1 -1
- package/dist/martyrs/src/modules/organizations/components/pages/Organizations.vue.js +1 -1
- package/dist/martyrs/src/modules/organizations/components/sections/Organizations.vue.js +1 -1
- package/dist/martyrs/src/modules/pages/pages.router.js +7 -5
- package/dist/martyrs/src/modules/pages/pages.router.js.map +1 -1
- package/dist/martyrs/src/modules/products/components/pages/Product.vue.js +1 -1
- package/dist/martyrs/src/modules/products/components/pages/ProductEdit.vue.js +2 -2
- package/dist/martyrs/src/modules/products/components/pages/Products.vue.js +1 -1
- package/dist/martyrs/src/modules/products/components/sections/EditVariants.vue.js +1 -1
- package/dist/martyrs/src/modules/products/components/sections/SectionProduct.vue.js +1 -1
- package/dist/martyrs/src/modules/rents/views/components/pages/Gant/GanttToolbar.vue.js +1 -1
- package/dist/martyrs/src/modules/rents/views/components/pages/Rents.vue.js +1 -1
- package/dist/martyrs/src/modules/spots/components/pages/SpotEdit.vue.js +1 -1
- package/dist/martyrs.es.js +1 -1
- package/dist/style.css +5 -0
- package/dist/{web-BDuQSQKS.js → web-BA6h6Z8P.js} +1 -1
- package/package.json +1 -1
- package/src/builder/modes/ssr.rspack.dev.js +2 -0
- package/src/modules/auth/views/components/pages/Profile.vue +33 -5
- package/src/modules/backoffice/backoffice.client.js +1 -25
- package/src/modules/backoffice/configs/navigation.backoffice.config.js +99 -0
- package/src/modules/backoffice/router/backoffice.router.js +8 -7
- package/src/modules/community/components/pages/BlogPost.vue +9 -1
- package/src/modules/core/core.client.js +1 -0
- package/src/modules/core/views/classes/core.app.js +8 -3
- package/src/modules/core/views/components/layouts/Client.vue +41 -42
- package/src/modules/core/views/components/pages/404.vue +55 -3
- package/src/modules/core/views/store/core.store.js +1 -0
- package/src/modules/core/views/utils/vue-app-renderer.js +9 -1
- package/src/modules/pages/pages.router.js +4 -2
- package/src/modules/pages/views/router/pages.backoffice.router.js +4 -3
- package/dist/martyrs/src/components/EditImages/EditImages.vue2.js.map +0 -1
- package/dist/martyrs/src/components/Tab/Tab.vue.js.map +0 -1
- package/dist/martyrs/src/modules/backoffice/backoffice.router.js.map +0 -1
- package/dist/martyrs/src/modules/backoffice/components/partials/Sidebar.vue.js +0 -150
- package/dist/martyrs/src/modules/backoffice/components/partials/Sidebar.vue.js.map +0 -1
- package/src/modules/backoffice/backoffice.router.js +0 -69
- package/src/modules/backoffice/components/partials/Sidebar.vue +0 -165
|
@@ -1,150 +0,0 @@
|
|
|
1
|
-
import { ref, onMounted, createElementBlock, openBlock, createElementVNode, Fragment, renderList, unref, createBlock, createCommentVNode, resolveDynamicComponent, toDisplayString } from "vue";
|
|
2
|
-
/* empty css */
|
|
3
|
-
import _sfc_main$3 from "../../../icons/entities/IconProducts.vue.js";
|
|
4
|
-
import _sfc_main$8 from "../../../icons/entities/IconPayments.vue.js";
|
|
5
|
-
import _sfc_main$7 from "../../../icons/entities/IconEvents.vue.js";
|
|
6
|
-
import _sfc_main$1 from "../../../icons/entities/IconGroups.vue.js";
|
|
7
|
-
import _sfc_main$2 from "../../../icons/entities/IconCommunity.vue.js";
|
|
8
|
-
import _sfc_main$6 from "../../../icons/entities/IconGallery.vue.js";
|
|
9
|
-
import _sfc_main$5 from "../../../icons/entities/IconOrders.vue.js";
|
|
10
|
-
import _sfc_main$4 from "../../../icons/entities/IconLeftovers.vue.js";
|
|
11
|
-
import { useRoute, useRouter } from "vue-router";
|
|
12
|
-
const _hoisted_1 = { class: "pos-relative o-y-scroll o-x-hidden h-100" };
|
|
13
|
-
const _hoisted_2 = { class: "pd-semi" };
|
|
14
|
-
const _hoisted_3 = ["onClick"];
|
|
15
|
-
const _hoisted_4 = { class: "fw-medium" };
|
|
16
|
-
const _hoisted_5 = ["onClick"];
|
|
17
|
-
const _hoisted_6 = { class: "fw-medium" };
|
|
18
|
-
const _sfc_main = {
|
|
19
|
-
__name: "Sidebar",
|
|
20
|
-
props: {
|
|
21
|
-
favorites: Array
|
|
22
|
-
},
|
|
23
|
-
setup(__props) {
|
|
24
|
-
useRoute();
|
|
25
|
-
const router = useRouter();
|
|
26
|
-
ref(null);
|
|
27
|
-
ref([]);
|
|
28
|
-
const menuItems = [
|
|
29
|
-
{
|
|
30
|
-
name: "organizations",
|
|
31
|
-
title: "Organizations",
|
|
32
|
-
to: "/backoffice/organizations",
|
|
33
|
-
icon: _sfc_main$1
|
|
34
|
-
},
|
|
35
|
-
{
|
|
36
|
-
name: "community",
|
|
37
|
-
title: "Community",
|
|
38
|
-
routeName: "Backoffice Community",
|
|
39
|
-
icon: _sfc_main$2
|
|
40
|
-
},
|
|
41
|
-
{
|
|
42
|
-
name: "products",
|
|
43
|
-
title: "Products",
|
|
44
|
-
routeName: "Products",
|
|
45
|
-
icon: _sfc_main$3
|
|
46
|
-
},
|
|
47
|
-
{
|
|
48
|
-
name: "inventory",
|
|
49
|
-
title: "Inventory",
|
|
50
|
-
routeName: "BackofficeInventoryList",
|
|
51
|
-
icon: _sfc_main$4
|
|
52
|
-
},
|
|
53
|
-
{
|
|
54
|
-
name: "orders",
|
|
55
|
-
title: "Orders",
|
|
56
|
-
routeName: "BackofficeOrdersList",
|
|
57
|
-
icon: _sfc_main$5
|
|
58
|
-
},
|
|
59
|
-
{
|
|
60
|
-
name: "gallery",
|
|
61
|
-
title: "Gallery",
|
|
62
|
-
routeName: "Backoffice Gallery",
|
|
63
|
-
icon: _sfc_main$6
|
|
64
|
-
},
|
|
65
|
-
{
|
|
66
|
-
name: "applications",
|
|
67
|
-
title: "Applications",
|
|
68
|
-
routeName: "BackofficeApplications",
|
|
69
|
-
icon: _sfc_main$7
|
|
70
|
-
},
|
|
71
|
-
{
|
|
72
|
-
name: "events",
|
|
73
|
-
title: "Events",
|
|
74
|
-
routeName: "BackofficeEvents Backoffice",
|
|
75
|
-
icon: _sfc_main$7
|
|
76
|
-
}
|
|
77
|
-
];
|
|
78
|
-
const generalItems = [
|
|
79
|
-
{
|
|
80
|
-
name: "payments",
|
|
81
|
-
title: "Payments",
|
|
82
|
-
routeName: "Payments",
|
|
83
|
-
icon: _sfc_main$8
|
|
84
|
-
},
|
|
85
|
-
{
|
|
86
|
-
name: "users",
|
|
87
|
-
title: "Users",
|
|
88
|
-
routeName: "Users",
|
|
89
|
-
icon: null
|
|
90
|
-
},
|
|
91
|
-
{
|
|
92
|
-
name: "pages",
|
|
93
|
-
title: "Pages",
|
|
94
|
-
routeName: "Backoffice Pages",
|
|
95
|
-
icon: null
|
|
96
|
-
},
|
|
97
|
-
{
|
|
98
|
-
name: "reports",
|
|
99
|
-
title: "Reports",
|
|
100
|
-
routeName: "Backoffice Reports",
|
|
101
|
-
icon: null
|
|
102
|
-
}
|
|
103
|
-
];
|
|
104
|
-
onMounted(async () => {
|
|
105
|
-
});
|
|
106
|
-
return (_ctx, _cache) => {
|
|
107
|
-
return openBlock(), createElementBlock("div", _hoisted_1, [
|
|
108
|
-
_cache[2] || (_cache[2] = createElementVNode("div", { class: "br-b-1px h3 h-4r pd-semi br-black-transp-10" }, "Backoffice", -1)),
|
|
109
|
-
createElementVNode("div", _hoisted_2, [
|
|
110
|
-
_cache[0] || (_cache[0] = createElementVNode("span", { class: "pd-thin uppercase fw-medium t-transp" }, "Menu", -1)),
|
|
111
|
-
(openBlock(), createElementBlock(Fragment, null, renderList(menuItems, (item) => {
|
|
112
|
-
return createElementVNode("div", {
|
|
113
|
-
key: item.name,
|
|
114
|
-
onClick: ($event) => unref(router).push(item.to || { name: item.routeName }),
|
|
115
|
-
class: "flex pd-thin flex-v-center cursor-pointer"
|
|
116
|
-
}, [
|
|
117
|
-
item.icon ? (openBlock(), createBlock(resolveDynamicComponent(item.icon), {
|
|
118
|
-
key: 0,
|
|
119
|
-
class: "i-medium mn-r-thin",
|
|
120
|
-
icon: true,
|
|
121
|
-
fill: "rgba(var(--black),0.25)"
|
|
122
|
-
})) : createCommentVNode("", true),
|
|
123
|
-
createElementVNode("span", _hoisted_4, toDisplayString(item.title), 1)
|
|
124
|
-
], 8, _hoisted_3);
|
|
125
|
-
}), 64)),
|
|
126
|
-
_cache[1] || (_cache[1] = createElementVNode("span", { class: "pd-thin d-block mn-t-medium uppercase fw-medium t-transp" }, "General", -1)),
|
|
127
|
-
(openBlock(), createElementBlock(Fragment, null, renderList(generalItems, (item) => {
|
|
128
|
-
return createElementVNode("div", {
|
|
129
|
-
key: item.name,
|
|
130
|
-
onClick: ($event) => unref(router).push(item.to || { name: item.routeName }),
|
|
131
|
-
class: "flex pd-thin flex-v-center cursor-pointer"
|
|
132
|
-
}, [
|
|
133
|
-
item.icon ? (openBlock(), createBlock(resolveDynamicComponent(item.icon), {
|
|
134
|
-
key: 0,
|
|
135
|
-
class: "i-medium mn-r-thin",
|
|
136
|
-
icon: true,
|
|
137
|
-
fill: "rgba(var(--black),0.25)"
|
|
138
|
-
})) : createCommentVNode("", true),
|
|
139
|
-
createElementVNode("span", _hoisted_6, toDisplayString(item.title), 1)
|
|
140
|
-
], 8, _hoisted_5);
|
|
141
|
-
}), 64))
|
|
142
|
-
])
|
|
143
|
-
]);
|
|
144
|
-
};
|
|
145
|
-
}
|
|
146
|
-
};
|
|
147
|
-
export {
|
|
148
|
-
_sfc_main as default
|
|
149
|
-
};
|
|
150
|
-
//# sourceMappingURL=Sidebar.vue.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Sidebar.vue.js","sources":["../../../../../../../src/modules/backoffice/components/partials/Sidebar.vue"],"sourcesContent":["<template>\n <div class=\"pos-relative o-y-scroll o-x-hidden h-100\">\n <div class=\"br-b-1px h3 h-4r pd-semi br-black-transp-10\">Backoffice</div>\n <div class=\"pd-semi\">\n <span class=\"pd-thin uppercase fw-medium t-transp\">Menu</span>\n <div\n v-for=\"item in menuItems\"\n :key=\"item.name\"\n @click=\"router.push(item.to || { name: item.routeName })\"\n class=\"flex pd-thin flex-v-center cursor-pointer\">\n <component \n v-if=\"item.icon\" \n :is=\"item.icon\" \n class=\"i-medium mn-r-thin\" \n :icon=\"true\" \n :fill=\"'rgba(var(--black),0.25)'\"\n /> \n <span class=\"fw-medium\">{{ item.title }}</span>\n </div>\n \n <span class=\"pd-thin d-block mn-t-medium uppercase fw-medium t-transp\">General</span>\n <div\n v-for=\"item in generalItems\"\n :key=\"item.name\"\n @click=\"router.push(item.to || { name: item.routeName })\"\n class=\"flex pd-thin flex-v-center cursor-pointer\">\n <component \n v-if=\"item.icon\" \n :is=\"item.icon\" \n class=\"i-medium mn-r-thin\" \n :icon=\"true\" \n :fill=\"'rgba(var(--black),0.25)'\"\n /> \n <span class=\"fw-medium\">{{ item.title }}</span>\n </div>\n </div>\n </div>\n</template>\n\n<script setup=\"props\">\n/////////////////////////////\n// COMPONENT DEPENDENCIES\n/////////////////////////////\nimport { ref, onMounted } from 'vue';\n\n// Mobile Module\nimport SelectMulti from '@martyrs/src/components/SelectMulti/SelectMulti.vue'\n\nimport IconProducts from '@martyrs/src/modules/icons/entities/IconProducts.vue'\nimport IconPayments from '@martyrs/src/modules/icons/entities/IconPayments.vue'\nimport IconEvents from '@martyrs/src/modules/icons/entities/IconEvents.vue'\nimport IconGroups from '@martyrs/src/modules/icons/entities/IconGroups.vue'\nimport IconCommunity from '@martyrs/src/modules/icons/entities/IconCommunity.vue'\nimport IconGallery from '@martyrs/src/modules/icons/entities/IconGallery.vue'\nimport IconOrders from '@martyrs/src/modules/icons/entities/IconOrders.vue'\nimport IconLeftovers from '@martyrs/src/modules/icons/entities/IconLeftovers.vue'\n/////////////////////////////\n// HELPERS\n/////////////////////////////\nimport { useRoute, useRouter } from 'vue-router'\n\nimport * as auth from '@martyrs/src/modules/auth/views/store/auth.js'\nimport * as organizations from '@martyrs/src/modules/organizations/store/organizations.js'\n\nconst route = useRoute()\nconst router = useRouter()\n/////////////////////////////\n// CREATED\n/////////////////////////////\nconst props = defineProps({\n favorites: Array,\n});\n\nconst selectedOrganization = ref(null);\nconst publics = ref([]);\n\n// Define menu items\nconst menuItems = [\n {\n name: 'organizations',\n title: 'Organizations',\n to: '/backoffice/organizations',\n icon: IconGroups\n },\n {\n name: 'community',\n title: 'Community',\n routeName: 'Backoffice Community',\n icon: IconCommunity\n },\n {\n name: 'products',\n title: 'Products',\n routeName: 'Products',\n icon: IconProducts\n },\n {\n name: 'inventory',\n title: 'Inventory',\n routeName: 'BackofficeInventoryList',\n icon: IconLeftovers\n },\n {\n name: 'orders',\n title: 'Orders',\n routeName: 'BackofficeOrdersList',\n icon: IconOrders\n },\n {\n name: 'gallery',\n title: 'Gallery',\n routeName: 'Backoffice Gallery',\n icon: IconGallery\n },\n {\n name: 'applications',\n title: 'Applications',\n routeName: 'BackofficeApplications',\n icon: IconEvents\n },\n {\n name: 'events',\n title: 'Events',\n routeName: 'BackofficeEvents Backoffice',\n icon: IconEvents\n }\n];\n\n// Define general items\nconst generalItems = [\n {\n name: 'payments',\n title: 'Payments',\n routeName: 'Payments',\n icon: IconPayments\n },\n {\n name: 'users',\n title: 'Users',\n routeName: 'Users',\n icon: null\n },\n {\n name: 'pages',\n title: 'Pages',\n routeName: 'Backoffice Pages',\n icon: null\n },\n {\n name: 'reports',\n title: 'Reports',\n routeName: 'Backoffice Reports',\n icon: null\n }\n];\n\n/////////////////////////////\n// MOUNTED\n/////////////////////////////\nonMounted(async () => {\n});\n</script>\n\n<style lang=\"scss\">\n</style>"],"names":["IconGroups","IconCommunity","IconProducts","IconLeftovers","IconOrders","IconGallery","IconEvents","IconPayments"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;AAgEc,aAAQ;AACtB,UAAM,SAAS,UAAS;AAQK,QAAI,IAAI;AACrB,QAAI,CAAA,CAAE;AAGtB,UAAM,YAAY;AAAA,MAChB;AAAA,QACE,MAAM;AAAA,QACN,OAAO;AAAA,QACP,IAAI;AAAA,QACJ,MAAMA;AAAAA,MACV;AAAA,MACE;AAAA,QACE,MAAM;AAAA,QACN,OAAO;AAAA,QACP,WAAW;AAAA,QACX,MAAMC;AAAAA,MACV;AAAA,MACE;AAAA,QACE,MAAM;AAAA,QACN,OAAO;AAAA,QACP,WAAW;AAAA,QACX,MAAMC;AAAAA,MACV;AAAA,MACE;AAAA,QACE,MAAM;AAAA,QACN,OAAO;AAAA,QACP,WAAW;AAAA,QACX,MAAMC;AAAAA,MACV;AAAA,MACE;AAAA,QACE,MAAM;AAAA,QACN,OAAO;AAAA,QACP,WAAW;AAAA,QACX,MAAMC;AAAAA,MACV;AAAA,MACE;AAAA,QACE,MAAM;AAAA,QACN,OAAO;AAAA,QACP,WAAW;AAAA,QACX,MAAMC;AAAAA,MACV;AAAA,MACE;AAAA,QACE,MAAM;AAAA,QACN,OAAO;AAAA,QACP,WAAW;AAAA,QACX,MAAMC;AAAAA,MACV;AAAA,MACE;AAAA,QACE,MAAM;AAAA,QACN,OAAO;AAAA,QACP,WAAW;AAAA,QACX,MAAMA;AAAAA,MACV;AAAA,IACA;AAGA,UAAM,eAAe;AAAA,MACnB;AAAA,QACE,MAAM;AAAA,QACN,OAAO;AAAA,QACP,WAAW;AAAA,QACX,MAAMC;AAAAA,MACV;AAAA,MACE;AAAA,QACE,MAAM;AAAA,QACN,OAAO;AAAA,QACP,WAAW;AAAA,QACX,MAAM;AAAA,MACV;AAAA,MACE;AAAA,QACE,MAAM;AAAA,QACN,OAAO;AAAA,QACP,WAAW;AAAA,QACX,MAAM;AAAA,MACV;AAAA,MACE;AAAA,QACE,MAAM;AAAA,QACN,OAAO;AAAA,QACP,WAAW;AAAA,QACX,MAAM;AAAA,MACV;AAAA,IACA;AAKA,cAAU,YAAY;AAAA,IACtB,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -1,69 +0,0 @@
|
|
|
1
|
-
// backoffice.meta.js
|
|
2
|
-
import Sidebar from './components/partials/Sidebar.vue';
|
|
3
|
-
|
|
4
|
-
export function getRoutes(options = {}) {
|
|
5
|
-
const route = options.route || 'Home';
|
|
6
|
-
const routes = [];
|
|
7
|
-
|
|
8
|
-
routes.push({
|
|
9
|
-
parentName: route,
|
|
10
|
-
config: {
|
|
11
|
-
basePath: 'backoffice',
|
|
12
|
-
routes: [
|
|
13
|
-
{
|
|
14
|
-
path: '',
|
|
15
|
-
name: 'Backoffice Root',
|
|
16
|
-
meta: {
|
|
17
|
-
sidebar_navigation: Sidebar,
|
|
18
|
-
sidebar_width_hidden: 'w-0',
|
|
19
|
-
},
|
|
20
|
-
props: {
|
|
21
|
-
newsletterPopup: 12344,
|
|
22
|
-
},
|
|
23
|
-
beforeEnter: [
|
|
24
|
-
() => import(/* webpackChunkName: "auth-validation" */ '@martyrs/src/modules/auth/views/middlewares/auth.validation.js').then(m => m.requiresAdmin),
|
|
25
|
-
],
|
|
26
|
-
children: [
|
|
27
|
-
{
|
|
28
|
-
path: '',
|
|
29
|
-
name: 'Backoffice Admin',
|
|
30
|
-
meta: {
|
|
31
|
-
title: {
|
|
32
|
-
en: 'Backoffice',
|
|
33
|
-
ru: 'Управление',
|
|
34
|
-
},
|
|
35
|
-
},
|
|
36
|
-
component: () => import(/* webpackChunkName: 'BackofficeGallery' */ './components/pages/Dashboard.vue'),
|
|
37
|
-
},
|
|
38
|
-
{
|
|
39
|
-
path: 'organizations',
|
|
40
|
-
name: 'Backoffice Organizations',
|
|
41
|
-
meta: {
|
|
42
|
-
title: {
|
|
43
|
-
en: 'Backoffice Organizations',
|
|
44
|
-
ru: 'Управление Организациями',
|
|
45
|
-
},
|
|
46
|
-
authorize: [],
|
|
47
|
-
},
|
|
48
|
-
component: () => import(/* webpackChunkName: 'BackofficeOrganizations' */ '@martyrs/src/modules/organizations/components/pages/Organizations.vue'),
|
|
49
|
-
},
|
|
50
|
-
{
|
|
51
|
-
path: 'community',
|
|
52
|
-
name: 'Backoffice Community',
|
|
53
|
-
meta: {
|
|
54
|
-
title: {
|
|
55
|
-
en: 'Backoffice Community',
|
|
56
|
-
ru: 'Управление Сообществом',
|
|
57
|
-
},
|
|
58
|
-
authorize: [],
|
|
59
|
-
},
|
|
60
|
-
component: () => import(/* webpackChunkName: 'BackofficeCommunity' */ '@martyrs/src/modules/community/components/pages/Blog.vue'),
|
|
61
|
-
},
|
|
62
|
-
],
|
|
63
|
-
}
|
|
64
|
-
],
|
|
65
|
-
}
|
|
66
|
-
});
|
|
67
|
-
|
|
68
|
-
return routes;
|
|
69
|
-
}
|
|
@@ -1,165 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div class="pos-relative o-y-scroll o-x-hidden h-100">
|
|
3
|
-
<div class="br-b-1px h3 h-4r pd-semi br-black-transp-10">Backoffice</div>
|
|
4
|
-
<div class="pd-semi">
|
|
5
|
-
<span class="pd-thin uppercase fw-medium t-transp">Menu</span>
|
|
6
|
-
<div
|
|
7
|
-
v-for="item in menuItems"
|
|
8
|
-
:key="item.name"
|
|
9
|
-
@click="router.push(item.to || { name: item.routeName })"
|
|
10
|
-
class="flex pd-thin flex-v-center cursor-pointer">
|
|
11
|
-
<component
|
|
12
|
-
v-if="item.icon"
|
|
13
|
-
:is="item.icon"
|
|
14
|
-
class="i-medium mn-r-thin"
|
|
15
|
-
:icon="true"
|
|
16
|
-
:fill="'rgba(var(--black),0.25)'"
|
|
17
|
-
/>
|
|
18
|
-
<span class="fw-medium">{{ item.title }}</span>
|
|
19
|
-
</div>
|
|
20
|
-
|
|
21
|
-
<span class="pd-thin d-block mn-t-medium uppercase fw-medium t-transp">General</span>
|
|
22
|
-
<div
|
|
23
|
-
v-for="item in generalItems"
|
|
24
|
-
:key="item.name"
|
|
25
|
-
@click="router.push(item.to || { name: item.routeName })"
|
|
26
|
-
class="flex pd-thin flex-v-center cursor-pointer">
|
|
27
|
-
<component
|
|
28
|
-
v-if="item.icon"
|
|
29
|
-
:is="item.icon"
|
|
30
|
-
class="i-medium mn-r-thin"
|
|
31
|
-
:icon="true"
|
|
32
|
-
:fill="'rgba(var(--black),0.25)'"
|
|
33
|
-
/>
|
|
34
|
-
<span class="fw-medium">{{ item.title }}</span>
|
|
35
|
-
</div>
|
|
36
|
-
</div>
|
|
37
|
-
</div>
|
|
38
|
-
</template>
|
|
39
|
-
|
|
40
|
-
<script setup="props">
|
|
41
|
-
/////////////////////////////
|
|
42
|
-
// COMPONENT DEPENDENCIES
|
|
43
|
-
/////////////////////////////
|
|
44
|
-
import { ref, onMounted } from 'vue';
|
|
45
|
-
|
|
46
|
-
// Mobile Module
|
|
47
|
-
import SelectMulti from '@martyrs/src/components/SelectMulti/SelectMulti.vue'
|
|
48
|
-
|
|
49
|
-
import IconProducts from '@martyrs/src/modules/icons/entities/IconProducts.vue'
|
|
50
|
-
import IconPayments from '@martyrs/src/modules/icons/entities/IconPayments.vue'
|
|
51
|
-
import IconEvents from '@martyrs/src/modules/icons/entities/IconEvents.vue'
|
|
52
|
-
import IconGroups from '@martyrs/src/modules/icons/entities/IconGroups.vue'
|
|
53
|
-
import IconCommunity from '@martyrs/src/modules/icons/entities/IconCommunity.vue'
|
|
54
|
-
import IconGallery from '@martyrs/src/modules/icons/entities/IconGallery.vue'
|
|
55
|
-
import IconOrders from '@martyrs/src/modules/icons/entities/IconOrders.vue'
|
|
56
|
-
import IconLeftovers from '@martyrs/src/modules/icons/entities/IconLeftovers.vue'
|
|
57
|
-
/////////////////////////////
|
|
58
|
-
// HELPERS
|
|
59
|
-
/////////////////////////////
|
|
60
|
-
import { useRoute, useRouter } from 'vue-router'
|
|
61
|
-
|
|
62
|
-
import * as auth from '@martyrs/src/modules/auth/views/store/auth.js'
|
|
63
|
-
import * as organizations from '@martyrs/src/modules/organizations/store/organizations.js'
|
|
64
|
-
|
|
65
|
-
const route = useRoute()
|
|
66
|
-
const router = useRouter()
|
|
67
|
-
/////////////////////////////
|
|
68
|
-
// CREATED
|
|
69
|
-
/////////////////////////////
|
|
70
|
-
const props = defineProps({
|
|
71
|
-
favorites: Array,
|
|
72
|
-
});
|
|
73
|
-
|
|
74
|
-
const selectedOrganization = ref(null);
|
|
75
|
-
const publics = ref([]);
|
|
76
|
-
|
|
77
|
-
// Define menu items
|
|
78
|
-
const menuItems = [
|
|
79
|
-
{
|
|
80
|
-
name: 'organizations',
|
|
81
|
-
title: 'Organizations',
|
|
82
|
-
to: '/backoffice/organizations',
|
|
83
|
-
icon: IconGroups
|
|
84
|
-
},
|
|
85
|
-
{
|
|
86
|
-
name: 'community',
|
|
87
|
-
title: 'Community',
|
|
88
|
-
routeName: 'Backoffice Community',
|
|
89
|
-
icon: IconCommunity
|
|
90
|
-
},
|
|
91
|
-
{
|
|
92
|
-
name: 'products',
|
|
93
|
-
title: 'Products',
|
|
94
|
-
routeName: 'Products',
|
|
95
|
-
icon: IconProducts
|
|
96
|
-
},
|
|
97
|
-
{
|
|
98
|
-
name: 'inventory',
|
|
99
|
-
title: 'Inventory',
|
|
100
|
-
routeName: 'BackofficeInventoryList',
|
|
101
|
-
icon: IconLeftovers
|
|
102
|
-
},
|
|
103
|
-
{
|
|
104
|
-
name: 'orders',
|
|
105
|
-
title: 'Orders',
|
|
106
|
-
routeName: 'BackofficeOrdersList',
|
|
107
|
-
icon: IconOrders
|
|
108
|
-
},
|
|
109
|
-
{
|
|
110
|
-
name: 'gallery',
|
|
111
|
-
title: 'Gallery',
|
|
112
|
-
routeName: 'Backoffice Gallery',
|
|
113
|
-
icon: IconGallery
|
|
114
|
-
},
|
|
115
|
-
{
|
|
116
|
-
name: 'applications',
|
|
117
|
-
title: 'Applications',
|
|
118
|
-
routeName: 'BackofficeApplications',
|
|
119
|
-
icon: IconEvents
|
|
120
|
-
},
|
|
121
|
-
{
|
|
122
|
-
name: 'events',
|
|
123
|
-
title: 'Events',
|
|
124
|
-
routeName: 'BackofficeEvents Backoffice',
|
|
125
|
-
icon: IconEvents
|
|
126
|
-
}
|
|
127
|
-
];
|
|
128
|
-
|
|
129
|
-
// Define general items
|
|
130
|
-
const generalItems = [
|
|
131
|
-
{
|
|
132
|
-
name: 'payments',
|
|
133
|
-
title: 'Payments',
|
|
134
|
-
routeName: 'Payments',
|
|
135
|
-
icon: IconPayments
|
|
136
|
-
},
|
|
137
|
-
{
|
|
138
|
-
name: 'users',
|
|
139
|
-
title: 'Users',
|
|
140
|
-
routeName: 'Users',
|
|
141
|
-
icon: null
|
|
142
|
-
},
|
|
143
|
-
{
|
|
144
|
-
name: 'pages',
|
|
145
|
-
title: 'Pages',
|
|
146
|
-
routeName: 'Backoffice Pages',
|
|
147
|
-
icon: null
|
|
148
|
-
},
|
|
149
|
-
{
|
|
150
|
-
name: 'reports',
|
|
151
|
-
title: 'Reports',
|
|
152
|
-
routeName: 'Backoffice Reports',
|
|
153
|
-
icon: null
|
|
154
|
-
}
|
|
155
|
-
];
|
|
156
|
-
|
|
157
|
-
/////////////////////////////
|
|
158
|
-
// MOUNTED
|
|
159
|
-
/////////////////////////////
|
|
160
|
-
onMounted(async () => {
|
|
161
|
-
});
|
|
162
|
-
</script>
|
|
163
|
-
|
|
164
|
-
<style lang="scss">
|
|
165
|
-
</style>
|