@ozdao/martyrs 0.2.511 → 0.2.513
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/{main-B1XN9Zjg.cjs → main-CVOBCkmD.cjs} +5 -5
- package/dist/{main-u7zgfMGL.js → main-CVRRj-vK.js} +259 -262
- package/dist/martyrs/src/components/Button/Button.vue2.cjs.map +1 -1
- package/dist/martyrs/src/components/Button/Button.vue2.js.map +1 -1
- package/dist/martyrs/src/components/Menu/{Menu.vue.cjs → Menu.vue2.cjs} +2 -2
- package/dist/martyrs/src/components/Menu/Menu.vue2.cjs.map +1 -0
- package/dist/martyrs/src/components/Menu/{Menu.vue.js → Menu.vue2.js} +2 -2
- package/dist/martyrs/src/components/Menu/Menu.vue2.js.map +1 -0
- package/dist/martyrs/src/components/Menu/MenuItem.vue.cjs +2 -2
- package/dist/martyrs/src/components/Menu/MenuItem.vue.cjs.map +1 -1
- package/dist/martyrs/src/components/Menu/MenuItem.vue.js +2 -2
- package/dist/martyrs/src/components/Menu/MenuItem.vue.js.map +1 -1
- package/dist/martyrs/src/modules/auth/views/components/pages/Profile.vue.cjs +2 -2
- package/dist/martyrs/src/modules/auth/views/components/pages/Profile.vue.cjs.map +1 -1
- package/dist/martyrs/src/modules/auth/views/components/pages/Profile.vue.js +2 -2
- package/dist/martyrs/src/modules/auth/views/components/pages/Profile.vue.js.map +1 -1
- package/dist/martyrs/src/modules/chats/components/sections/ChatWindow.vue.cjs +0 -2
- package/dist/martyrs/src/modules/chats/components/sections/ChatWindow.vue.cjs.map +1 -1
- package/dist/martyrs/src/modules/chats/components/sections/ChatWindow.vue.js +0 -2
- package/dist/martyrs/src/modules/chats/components/sections/ChatWindow.vue.js.map +1 -1
- package/dist/martyrs/src/modules/events/components/pages/EventsBackoffice.vue.cjs +3 -5
- package/dist/martyrs/src/modules/events/components/pages/EventsBackoffice.vue.cjs.map +1 -1
- package/dist/martyrs/src/modules/events/components/pages/EventsBackoffice.vue.js +3 -5
- package/dist/martyrs/src/modules/events/components/pages/EventsBackoffice.vue.js.map +1 -1
- package/dist/martyrs/src/modules/globals/globals.client.cjs +10 -1
- package/dist/martyrs/src/modules/globals/globals.client.cjs.map +1 -1
- package/dist/martyrs/src/modules/globals/globals.client.js +31 -22
- package/dist/martyrs/src/modules/globals/globals.client.js.map +1 -1
- package/dist/martyrs/src/modules/globals/views/components/layouts/Client.vue.cjs.map +1 -1
- package/dist/martyrs/src/modules/globals/views/components/layouts/Client.vue.js.map +1 -1
- package/dist/martyrs/src/modules/globals/views/components/sections/Filters.vue2.cjs +42 -46
- package/dist/martyrs/src/modules/globals/views/components/sections/Filters.vue2.cjs.map +1 -1
- package/dist/martyrs/src/modules/globals/views/components/sections/Filters.vue2.js +45 -49
- package/dist/martyrs/src/modules/globals/views/components/sections/Filters.vue2.js.map +1 -1
- package/dist/martyrs/src/modules/globals/views/components/sections/Walkthrough.vue.cjs +308 -0
- package/dist/martyrs/src/modules/globals/views/components/sections/Walkthrough.vue.cjs.map +1 -0
- package/dist/martyrs/src/modules/globals/views/components/sections/Walkthrough.vue.js +308 -0
- package/dist/martyrs/src/modules/globals/views/components/sections/Walkthrough.vue.js.map +1 -0
- package/dist/martyrs/src/modules/inventory/components/pages/Inventory.vue.cjs +14 -16
- package/dist/martyrs/src/modules/inventory/components/pages/Inventory.vue.cjs.map +1 -1
- package/dist/martyrs/src/modules/inventory/components/pages/Inventory.vue.js +13 -15
- package/dist/martyrs/src/modules/inventory/components/pages/Inventory.vue.js.map +1 -1
- package/dist/martyrs/src/modules/notifications/notifications.client.cjs +101 -32
- package/dist/martyrs/src/modules/notifications/notifications.client.cjs.map +1 -1
- package/dist/martyrs/src/modules/notifications/notifications.client.js +101 -32
- package/dist/martyrs/src/modules/notifications/notifications.client.js.map +1 -1
- package/dist/martyrs/src/modules/notifications/store/notifications.store.cjs +45 -12
- package/dist/martyrs/src/modules/notifications/store/notifications.store.cjs.map +1 -1
- package/dist/martyrs/src/modules/notifications/store/notifications.store.js +38 -5
- package/dist/martyrs/src/modules/notifications/store/notifications.store.js.map +1 -1
- package/dist/martyrs/src/modules/orders/components/blocks/CardOrderItem.vue.cjs +19 -18
- package/dist/martyrs/src/modules/orders/components/blocks/CardOrderItem.vue.cjs.map +1 -1
- package/dist/martyrs/src/modules/orders/components/blocks/CardOrderItem.vue.js +19 -18
- package/dist/martyrs/src/modules/orders/components/blocks/CardOrderItem.vue.js.map +1 -1
- package/dist/martyrs/src/modules/orders/components/forms/FormCustomerDetails.vue.cjs +82 -61
- package/dist/martyrs/src/modules/orders/components/forms/FormCustomerDetails.vue.cjs.map +1 -1
- package/dist/martyrs/src/modules/orders/components/forms/FormCustomerDetails.vue.js +83 -62
- package/dist/martyrs/src/modules/orders/components/forms/FormCustomerDetails.vue.js.map +1 -1
- package/dist/martyrs/src/modules/orders/components/pages/OrderBackoffice.vue.cjs +3 -3
- package/dist/martyrs/src/modules/orders/components/pages/OrderBackoffice.vue.cjs.map +1 -1
- package/dist/martyrs/src/modules/orders/components/pages/OrderBackoffice.vue.js +3 -3
- package/dist/martyrs/src/modules/orders/components/pages/OrderBackoffice.vue.js.map +1 -1
- package/dist/martyrs/src/modules/orders/components/pages/OrderCreate.vue.cjs +4 -2
- package/dist/martyrs/src/modules/orders/components/pages/OrderCreate.vue.cjs.map +1 -1
- package/dist/martyrs/src/modules/orders/components/pages/OrderCreate.vue.js +4 -2
- package/dist/martyrs/src/modules/orders/components/pages/OrderCreate.vue.js.map +1 -1
- package/dist/martyrs/src/modules/orders/components/sections/FormDelivery.vue.cjs +2 -2
- package/dist/martyrs/src/modules/orders/components/sections/FormDelivery.vue.cjs.map +1 -1
- package/dist/martyrs/src/modules/orders/components/sections/FormDelivery.vue.js +2 -2
- package/dist/martyrs/src/modules/orders/components/sections/FormDelivery.vue.js.map +1 -1
- package/dist/martyrs/src/modules/orders/orders.client.cjs +1 -0
- package/dist/martyrs/src/modules/orders/orders.client.cjs.map +1 -1
- package/dist/martyrs/src/modules/orders/orders.client.js +2 -0
- package/dist/martyrs/src/modules/orders/orders.client.js.map +1 -1
- package/dist/martyrs/src/modules/orders/store/shopcart.cjs +33 -23
- package/dist/martyrs/src/modules/orders/store/shopcart.cjs.map +1 -1
- package/dist/martyrs/src/modules/orders/store/shopcart.js +31 -21
- package/dist/martyrs/src/modules/orders/store/shopcart.js.map +1 -1
- package/dist/martyrs/src/modules/organizations/components/pages/Members.vue.cjs +1 -1
- package/dist/martyrs/src/modules/organizations/components/pages/Members.vue.js +1 -1
- package/dist/martyrs/src/modules/organizations/components/pages/Organization.vue.cjs +3 -18
- package/dist/martyrs/src/modules/organizations/components/pages/Organization.vue.cjs.map +1 -1
- package/dist/martyrs/src/modules/organizations/components/pages/Organization.vue.js +4 -19
- package/dist/martyrs/src/modules/organizations/components/pages/Organization.vue.js.map +1 -1
- package/dist/martyrs/src/modules/organizations/components/pages/OrganizationBackoffice.vue.cjs +1 -1
- package/dist/martyrs/src/modules/organizations/components/pages/OrganizationBackoffice.vue.js +1 -1
- package/dist/martyrs/src/modules/organizations/configs/navigation.organization.config.cjs +37 -43
- package/dist/martyrs/src/modules/organizations/configs/navigation.organization.config.cjs.map +1 -1
- package/dist/martyrs/src/modules/organizations/configs/navigation.organization.config.js +48 -54
- package/dist/martyrs/src/modules/organizations/configs/navigation.organization.config.js.map +1 -1
- package/dist/martyrs/src/modules/organizations/router/organizations.cjs +1 -1
- package/dist/martyrs/src/modules/organizations/router/organizations.js +1 -1
- package/dist/martyrs/src/modules/products/components/pages/Products.vue.cjs +11 -8
- package/dist/martyrs/src/modules/products/components/pages/Products.vue.cjs.map +1 -1
- package/dist/martyrs/src/modules/products/components/pages/Products.vue.js +11 -8
- package/dist/martyrs/src/modules/products/components/pages/Products.vue.js.map +1 -1
- package/dist/martyrs.cjs.js +1 -1
- package/dist/martyrs.css +1 -1
- package/dist/martyrs.es.js +1 -1
- package/dist/node_modules/.pnpm/capacitor-plugin-app-tracking-transparency@2.0.5_@capacitor_core@7.2.0/node_modules/capacitor-plugin-app-tracking-transparency/dist/esm/index.cjs +8 -0
- package/dist/node_modules/.pnpm/capacitor-plugin-app-tracking-transparency@2.0.5_@capacitor_core@7.2.0/node_modules/capacitor-plugin-app-tracking-transparency/dist/esm/index.cjs.map +1 -0
- package/dist/node_modules/.pnpm/capacitor-plugin-app-tracking-transparency@2.0.5_@capacitor_core@7.2.0/node_modules/capacitor-plugin-app-tracking-transparency/dist/esm/index.js +8 -0
- package/dist/node_modules/.pnpm/capacitor-plugin-app-tracking-transparency@2.0.5_@capacitor_core@7.2.0/node_modules/capacitor-plugin-app-tracking-transparency/dist/esm/index.js.map +1 -0
- package/dist/node_modules/.pnpm/capacitor-plugin-app-tracking-transparency@2.0.5_@capacitor_core@7.2.0/node_modules/capacitor-plugin-app-tracking-transparency/dist/esm/web.cjs +13 -0
- package/dist/node_modules/.pnpm/capacitor-plugin-app-tracking-transparency@2.0.5_@capacitor_core@7.2.0/node_modules/capacitor-plugin-app-tracking-transparency/dist/esm/web.cjs.map +1 -0
- package/dist/node_modules/.pnpm/capacitor-plugin-app-tracking-transparency@2.0.5_@capacitor_core@7.2.0/node_modules/capacitor-plugin-app-tracking-transparency/dist/esm/web.js +13 -0
- package/dist/node_modules/.pnpm/capacitor-plugin-app-tracking-transparency@2.0.5_@capacitor_core@7.2.0/node_modules/capacitor-plugin-app-tracking-transparency/dist/esm/web.js.map +1 -0
- package/dist/node_modules/.pnpm/embla-carousel-reactive-utils@8.6.0_embla-carousel@8.6.0/node_modules/embla-carousel-reactive-utils/esm/embla-carousel-reactive-utils.esm.cjs +43 -0
- package/dist/node_modules/.pnpm/embla-carousel-reactive-utils@8.6.0_embla-carousel@8.6.0/node_modules/embla-carousel-reactive-utils/esm/embla-carousel-reactive-utils.esm.cjs.map +1 -0
- package/dist/node_modules/.pnpm/embla-carousel-reactive-utils@8.6.0_embla-carousel@8.6.0/node_modules/embla-carousel-reactive-utils/esm/embla-carousel-reactive-utils.esm.js +43 -0
- package/dist/node_modules/.pnpm/embla-carousel-reactive-utils@8.6.0_embla-carousel@8.6.0/node_modules/embla-carousel-reactive-utils/esm/embla-carousel-reactive-utils.esm.js.map +1 -0
- package/dist/node_modules/.pnpm/embla-carousel-vue@8.6.0_vue@3.5.13_typescript@5.8.3_/node_modules/embla-carousel-vue/esm/embla-carousel-vue.esm.cjs +43 -0
- package/dist/node_modules/.pnpm/embla-carousel-vue@8.6.0_vue@3.5.13_typescript@5.8.3_/node_modules/embla-carousel-vue/esm/embla-carousel-vue.esm.cjs.map +1 -0
- package/dist/node_modules/.pnpm/embla-carousel-vue@8.6.0_vue@3.5.13_typescript@5.8.3_/node_modules/embla-carousel-vue/esm/embla-carousel-vue.esm.js +43 -0
- package/dist/node_modules/.pnpm/embla-carousel-vue@8.6.0_vue@3.5.13_typescript@5.8.3_/node_modules/embla-carousel-vue/esm/embla-carousel-vue.esm.js.map +1 -0
- package/dist/node_modules/.pnpm/embla-carousel@8.6.0/node_modules/embla-carousel/esm/embla-carousel.esm.cjs +1630 -0
- package/dist/node_modules/.pnpm/embla-carousel@8.6.0/node_modules/embla-carousel/esm/embla-carousel.esm.cjs.map +1 -0
- package/dist/node_modules/.pnpm/embla-carousel@8.6.0/node_modules/embla-carousel/esm/embla-carousel.esm.js +1630 -0
- package/dist/node_modules/.pnpm/embla-carousel@8.6.0/node_modules/embla-carousel/esm/embla-carousel.esm.js.map +1 -0
- package/dist/notifications.server.cjs +205 -11
- package/dist/notifications.server.js +205 -11
- package/dist/style.css +258 -242
- package/dist/{web--8-wgr6b.js → web-BW449LVt.js} +1 -1
- package/dist/{web-BS6utuAZ.cjs → web-CO3tWG6J.cjs} +1 -1
- package/package.json +1 -1
- package/src/components/Button/Button.vue +2 -2
- package/src/components/Menu/MenuItem.vue +11 -6
- package/src/modules/auth/views/components/pages/Profile.vue +1 -1
- package/src/modules/chats/components/sections/ChatWindow.vue +1 -1
- package/src/modules/events/components/pages/EventsBackoffice.vue +0 -1
- package/src/modules/globals/globals.client.js +17 -0
- package/src/modules/globals/views/components/layouts/Client.vue +1 -0
- package/src/modules/globals/views/components/sections/Filters.vue +2 -4
- package/src/modules/globals/views/components/sections/Walkthrough.vue +245 -57
- package/src/modules/inventory/components/pages/Inventory.vue +0 -1
- package/src/modules/notifications/FIXES.md +1 -0
- package/src/modules/notifications/controllers/notifications.controller.js +147 -7
- package/src/modules/notifications/models/user-device.model.js +10 -2
- package/src/modules/notifications/notifications.client.js +127 -41
- package/src/modules/notifications/routes/notifications.routes.js +4 -0
- package/src/modules/notifications/services/notification.service.js +93 -0
- package/src/modules/notifications/store/notifications.store.js +47 -7
- package/src/modules/orders/components/blocks/CardOrderItem.vue +1 -1
- package/src/modules/orders/components/forms/FormCustomerDetails.vue +52 -35
- package/src/modules/orders/components/pages/OrderBackoffice.vue +2 -2
- package/src/modules/orders/components/pages/OrderCreate.vue +3 -1
- package/src/modules/orders/components/sections/FormDelivery.vue +2 -2
- package/src/modules/orders/orders.client.js +2 -0
- package/src/modules/orders/store/shopcart.js +34 -23
- package/src/modules/organizations/components/pages/Organization.vue +6 -2
- package/src/modules/organizations/configs/navigation.organization.config.js +36 -36
- package/src/modules/products/components/pages/Products.vue +11 -9
- package/src/modules/products/migrations/categories-to-materialized-path.js +0 -3
- package/src/styles/base/backgrounds.scss +1 -0
- package/dist/martyrs/src/components/Menu/Menu.vue.cjs.map +0 -1
- package/dist/martyrs/src/components/Menu/Menu.vue.js.map +0 -1
|
@@ -5,6 +5,8 @@ import { computed, reactive, watch } from 'vue';
|
|
|
5
5
|
// Dependencies
|
|
6
6
|
// Globals
|
|
7
7
|
import { setError, setSnack } from '@martyrs/src/modules/globals/views/store/globals.js';
|
|
8
|
+
// Capacitor Preferences
|
|
9
|
+
import { Preferences } from '@capacitor/preferences';
|
|
8
10
|
|
|
9
11
|
/////////////////////////////
|
|
10
12
|
// State
|
|
@@ -19,14 +21,18 @@ const state = reactive({
|
|
|
19
21
|
// Helpers
|
|
20
22
|
/////////////////////////////
|
|
21
23
|
const helpers = {
|
|
22
|
-
saveToStorage() {
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
24
|
+
async saveToStorage() {
|
|
25
|
+
try {
|
|
26
|
+
await Preferences.set({
|
|
27
|
+
key: CART_STORAGE_KEY,
|
|
28
|
+
value: JSON.stringify({
|
|
29
|
+
positions: state.positions,
|
|
30
|
+
organization: state.organization,
|
|
31
|
+
})
|
|
32
|
+
});
|
|
33
|
+
} catch (error) {
|
|
34
|
+
console.warn('Could not save cart to preferences:', error);
|
|
35
|
+
}
|
|
30
36
|
},
|
|
31
37
|
|
|
32
38
|
async validateProduct(product) {
|
|
@@ -75,7 +81,7 @@ async function syncWithServer() {
|
|
|
75
81
|
|
|
76
82
|
if (invalidProducts.length > 0) {
|
|
77
83
|
state.positions = state.positions.filter(product => !invalidProducts.includes(product._id));
|
|
78
|
-
helpers.saveToStorage();
|
|
84
|
+
await helpers.saveToStorage();
|
|
79
85
|
setError('Some products were removed from cart due to changes on server');
|
|
80
86
|
}
|
|
81
87
|
} catch (error) {
|
|
@@ -105,9 +111,10 @@ const actions = {
|
|
|
105
111
|
state.currentState = state.currentState ? false : true;
|
|
106
112
|
},
|
|
107
113
|
|
|
108
|
-
setShopcart() {
|
|
114
|
+
async setShopcart() {
|
|
109
115
|
try {
|
|
110
|
-
const
|
|
116
|
+
const result = await Preferences.get({ key: 'shopcart' });
|
|
117
|
+
const storedShopcart = result.value;
|
|
111
118
|
|
|
112
119
|
if (storedShopcart) {
|
|
113
120
|
const shopcartData = JSON.parse(storedShopcart);
|
|
@@ -120,7 +127,7 @@ const actions = {
|
|
|
120
127
|
}
|
|
121
128
|
},
|
|
122
129
|
|
|
123
|
-
addProductToCart(product, variant, organization, date, quantity = 1) {
|
|
130
|
+
async addProductToCart(product, variant, organization, date, quantity = 1) {
|
|
124
131
|
console.log('Adding product with variant to cart', { product: product._id, variant: variant._id, quantity });
|
|
125
132
|
|
|
126
133
|
// Убедимся, что организация установлена
|
|
@@ -148,8 +155,8 @@ const actions = {
|
|
|
148
155
|
});
|
|
149
156
|
}
|
|
150
157
|
|
|
151
|
-
// Сохраняем в
|
|
152
|
-
helpers.saveToStorage();
|
|
158
|
+
// Сохраняем в Preferences
|
|
159
|
+
await helpers.saveToStorage();
|
|
153
160
|
|
|
154
161
|
// Отправляем уведомление
|
|
155
162
|
setSnack('Product added to cart');
|
|
@@ -157,7 +164,7 @@ const actions = {
|
|
|
157
164
|
|
|
158
165
|
|
|
159
166
|
|
|
160
|
-
removeProduct(productId, variantId = null) {
|
|
167
|
+
async removeProduct(productId, variantId = null) {
|
|
161
168
|
const cartItemIndex = state.positions.findIndex(item => {
|
|
162
169
|
if (variantId) {
|
|
163
170
|
return item._id === productId && item.variant === variantId;
|
|
@@ -167,11 +174,11 @@ const actions = {
|
|
|
167
174
|
|
|
168
175
|
if (cartItemIndex > -1) {
|
|
169
176
|
state.positions.splice(cartItemIndex, 1);
|
|
170
|
-
helpers.saveToStorage();
|
|
177
|
+
await helpers.saveToStorage();
|
|
171
178
|
}
|
|
172
179
|
},
|
|
173
180
|
|
|
174
|
-
decrementItemQuantity(productId, variantId = null) {
|
|
181
|
+
async decrementItemQuantity(productId, variantId = null) {
|
|
175
182
|
const cartItem = state.positions.find(item => {
|
|
176
183
|
if (variantId) {
|
|
177
184
|
return item._id === productId && item.variant === variantId;
|
|
@@ -187,11 +194,11 @@ const actions = {
|
|
|
187
194
|
state.positions.splice(index, 1);
|
|
188
195
|
}
|
|
189
196
|
|
|
190
|
-
helpers.saveToStorage();
|
|
197
|
+
await helpers.saveToStorage();
|
|
191
198
|
}
|
|
192
199
|
},
|
|
193
200
|
|
|
194
|
-
incrementItemQuantity(productId, variantId = null) {
|
|
201
|
+
async incrementItemQuantity(productId, variantId = null) {
|
|
195
202
|
const cartItem = state.positions.find(item => {
|
|
196
203
|
if (variantId) {
|
|
197
204
|
return item._id === productId && item.variant === variantId;
|
|
@@ -201,11 +208,11 @@ const actions = {
|
|
|
201
208
|
|
|
202
209
|
if (cartItem) {
|
|
203
210
|
cartItem.quantity++;
|
|
204
|
-
helpers.saveToStorage();
|
|
211
|
+
await helpers.saveToStorage();
|
|
205
212
|
}
|
|
206
213
|
},
|
|
207
214
|
|
|
208
|
-
updateRentDates({ productId, variantId, dates }) {
|
|
215
|
+
async updateRentDates({ productId, variantId, dates }) {
|
|
209
216
|
const product = state.positions.find(p => p._id === productId && p.variant === variantId);
|
|
210
217
|
|
|
211
218
|
if (product) {
|
|
@@ -215,10 +222,14 @@ const actions = {
|
|
|
215
222
|
helpers.saveToStorage();
|
|
216
223
|
},
|
|
217
224
|
|
|
218
|
-
resetShopcart() {
|
|
225
|
+
async resetShopcart() {
|
|
219
226
|
state.positions = [];
|
|
220
227
|
|
|
221
|
-
|
|
228
|
+
try {
|
|
229
|
+
await Preferences.remove({ key: 'shopcart' });
|
|
230
|
+
} catch (error) {
|
|
231
|
+
console.warn('Could not remove cart from preferences:', error);
|
|
232
|
+
}
|
|
222
233
|
},
|
|
223
234
|
};
|
|
224
235
|
|
|
@@ -133,7 +133,7 @@
|
|
|
133
133
|
</section>
|
|
134
134
|
|
|
135
135
|
<!-- Organization Info Section -->
|
|
136
|
-
<div class="pos-relative">
|
|
136
|
+
<!-- <div class="pos-relative">
|
|
137
137
|
<div class="bg-light radius-medium pd-medium">
|
|
138
138
|
<h3 class="mn-b-small">About {{ organization.state.current?.profile?.name }}</h3>
|
|
139
139
|
<p v-if="organization.state.current?.profile?.description" class="t-medium">
|
|
@@ -143,7 +143,9 @@
|
|
|
143
143
|
No description available.
|
|
144
144
|
</p>
|
|
145
145
|
</div>
|
|
146
|
-
</div>
|
|
146
|
+
</div> -->
|
|
147
|
+
|
|
148
|
+
<Products/>
|
|
147
149
|
</div>
|
|
148
150
|
</template>
|
|
149
151
|
|
|
@@ -173,6 +175,8 @@
|
|
|
173
175
|
import User from '@martyrs/src/modules/auth/views/components/blocks/CardUser.vue';
|
|
174
176
|
// Report Module
|
|
175
177
|
import FormReport from '@martyrs/src/modules/reports/components/sections/FormReport.vue'
|
|
178
|
+
// Products modu;e
|
|
179
|
+
import Products from '@martyrs/src//modules/products/components/pages/Products.vue'
|
|
176
180
|
// Import state
|
|
177
181
|
import * as auth from '@martyrs/src/modules/auth/views/store/auth.js';
|
|
178
182
|
import * as organization from '@martyrs/src/modules/organizations/store/organizations.js';
|
|
@@ -70,42 +70,42 @@ export const navigationItems = [
|
|
|
70
70
|
}),
|
|
71
71
|
visible: () => true // Public access
|
|
72
72
|
},
|
|
73
|
-
{
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
},
|
|
82
|
-
{
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
},
|
|
91
|
-
{
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
},
|
|
100
|
-
{
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
},
|
|
73
|
+
// {
|
|
74
|
+
// title: 'Events',
|
|
75
|
+
// iconComponent: IconEvents,
|
|
76
|
+
// route: (auth, route) => ({
|
|
77
|
+
// name: 'Organization_Events',
|
|
78
|
+
// params: { _id: route.params._id }
|
|
79
|
+
// }),
|
|
80
|
+
// visible: () => true // Public access
|
|
81
|
+
// },
|
|
82
|
+
// {
|
|
83
|
+
// title: 'Posts',
|
|
84
|
+
// iconComponent: IconCommunity,
|
|
85
|
+
// route: (auth, route) => ({
|
|
86
|
+
// name: 'Organization_Posts',
|
|
87
|
+
// params: { _id: route.params._id }
|
|
88
|
+
// }),
|
|
89
|
+
// visible: () => true // Public access
|
|
90
|
+
// },
|
|
91
|
+
// {
|
|
92
|
+
// title: 'Spots',
|
|
93
|
+
// iconComponent: IconAddress,
|
|
94
|
+
// route: (auth, route) => ({
|
|
95
|
+
// name: 'Organization_Spots',
|
|
96
|
+
// params: { _id: route.params._id }
|
|
97
|
+
// }),
|
|
98
|
+
// visible: () => true // Public access
|
|
99
|
+
// },
|
|
100
|
+
// {
|
|
101
|
+
// title: 'Gallery',
|
|
102
|
+
// iconComponent: IconGallery,
|
|
103
|
+
// route: (auth, route) => ({
|
|
104
|
+
// name: 'Backoffice Gallery',
|
|
105
|
+
// params: { _id: route.params._id }
|
|
106
|
+
// }),
|
|
107
|
+
// visible: () => true // Public access
|
|
108
|
+
// },
|
|
109
109
|
]
|
|
110
110
|
},
|
|
111
111
|
{
|
|
@@ -447,18 +447,20 @@
|
|
|
447
447
|
});
|
|
448
448
|
};
|
|
449
449
|
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
450
|
+
if (route.params?._id) {
|
|
451
|
+
globals.state.navigation_bar.actions = [{
|
|
452
|
+
component: IconPlus,
|
|
453
|
+
props: {
|
|
454
|
+
fill: "rgb(var(--main))"
|
|
455
|
+
},
|
|
456
|
+
condition: () => auth.state.user && auth.state.user._id,
|
|
457
|
+
action: () => route.params._id ? router.push({ name: 'Organization_ProductAdd', params: { _id: route.params._id} }) : router.push({ name: 'ProductAdd' })
|
|
458
|
+
}];
|
|
459
|
+
}
|
|
458
460
|
|
|
459
461
|
onMounted(async () => {
|
|
460
462
|
await loadCategoryData();
|
|
461
|
-
})
|
|
463
|
+
});
|
|
462
464
|
|
|
463
465
|
onUnmounted(() => {
|
|
464
466
|
globals.state.navigation_bar.actions = [];
|
|
@@ -23,6 +23,7 @@ body {
|
|
|
23
23
|
.bg-blur-small { backdrop-filter: blur(var(--small)) }
|
|
24
24
|
.bg-blur-thin { backdrop-filter: blur(var(--thin)) }
|
|
25
25
|
// Other
|
|
26
|
+
.bg-black-grad { background: linear-gradient(180deg,rgba(255, 255, 255, 0) 0%, rgba(0, 0, 0, 1) 100%); }
|
|
26
27
|
.bg-grad-main { background: radial-gradient(84.52% 84.52% at 50% 50%, rgb(var(--main)) 23.39%, #E7FFF4 100%), #E8FFF3;}
|
|
27
28
|
// Transpatrens
|
|
28
29
|
.bg-t-white { background: rgba(var(--white),0.1); }
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Menu.vue.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Menu.vue.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;"}
|