@ozdao/prometheus-framework 0.2.92 → 0.2.93
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/events.server.js +14 -6
- package/dist/events.server.mjs +14 -6
- package/dist/main-CX2ISR43.mjs +13629 -0
- package/dist/main-cffh4bbv.js +92 -0
- package/dist/main.css +1 -1
- package/dist/orders.server.js +32 -18
- package/dist/orders.server.mjs +32 -18
- package/dist/organizations.server.js +2 -1
- package/dist/organizations.server.mjs +2 -1
- package/dist/prometheus-framework/src/components/Address/Address.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/components/Address/Address.vue2.js +46 -48
- package/dist/prometheus-framework/src/components/Block/Block.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/Block/Block.vue.js +1 -1
- package/dist/prometheus-framework/src/components/Button/Button.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/Button/Button.vue.js +94 -1
- package/dist/prometheus-framework/src/components/Button/Button.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/components/Button/Button.vue2.js +1 -94
- package/dist/prometheus-framework/src/components/Field/Field.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/Field/Field.vue.js +84 -1
- package/dist/prometheus-framework/src/components/Field/Field.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/components/Field/Field.vue2.js +1 -84
- package/dist/prometheus-framework/src/components/FieldBig/FieldBig.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/FieldBig/FieldBig.vue.js +1 -1
- package/dist/prometheus-framework/src/components/LocationMarker/LocationMarker.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/components/LocationMarker/LocationMarker.vue2.js +25 -20
- package/dist/prometheus-framework/src/components/Map/Map.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/Map/Map.vue.js +36 -26
- package/dist/prometheus-framework/src/components/Select/Select.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/Select/Select.vue.js +103 -1
- package/dist/prometheus-framework/src/components/Select/Select.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/components/Select/Select.vue2.js +1 -103
- package/dist/prometheus-framework/src/components/Tooltip/Tooltip.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/Tooltip/Tooltip.vue.js +45 -1
- package/dist/prometheus-framework/src/components/Tooltip/Tooltip.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/components/Tooltip/Tooltip.vue2.js +1 -45
- package/dist/prometheus-framework/src/modules/auth/components/layouts/Auth.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/auth/components/layouts/Auth.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/auth/components/pages/EnterCode.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/auth/components/pages/EnterCode.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/auth/components/pages/EnterPassword.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/auth/components/pages/EnterPassword.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/auth/components/pages/Invite.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/auth/components/pages/Invite.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/auth/components/pages/ResetPassword.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/auth/components/pages/ResetPassword.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/auth/components/pages/SignIn.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/auth/components/pages/SignIn.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/auth/components/pages/SignUp.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/auth/components/pages/SignUp.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/community/components/layouts/Community.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/community/components/layouts/Community.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/community/components/pages/Community.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/community/components/pages/Community.vue.js +3 -3
- package/dist/prometheus-framework/src/modules/community/components/pages/CreateBlogPost.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/community/components/pages/CreateBlogPost.vue.js +3 -3
- package/dist/prometheus-framework/src/modules/community/components/sections/HotPosts.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/community/components/sections/HotPosts.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/constructor/components/elements/Embed.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/constructor/components/elements/Embed.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/constructor/components/elements/Textarea.vue.cjs +5 -1
- package/dist/prometheus-framework/src/modules/constructor/components/elements/Textarea.vue.js +66 -0
- package/dist/prometheus-framework/src/modules/constructor/components/elements/Textarea.vue2.cjs +1 -5
- package/dist/prometheus-framework/src/modules/constructor/components/elements/Textarea.vue2.js +0 -66
- package/dist/prometheus-framework/src/modules/constructor/components/elements/VideoPlayer.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/constructor/components/elements/VideoPlayer.vue.js +11 -11
- package/dist/prometheus-framework/src/modules/constructor/components/sections/Constructor.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/constructor/components/sections/Constructor.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/events/components/elements/ButtonCheck.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/events/components/elements/ButtonCheck.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/events/components/elements/ButtonJoin.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/events/components/elements/ButtonJoin.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/events/components/pages/EditEvent.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/events/components/pages/EditEvent.vue.js +3 -3
- package/dist/prometheus-framework/src/modules/events/components/pages/EditEventTickets.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/events/components/pages/EditEventTickets.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/gallery/components/sections/BackofficeGallery.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/gallery/components/sections/BackofficeGallery.vue.js +3 -3
- package/dist/prometheus-framework/src/modules/gallery/components/sections/GalleryWithCategories.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/gallery/components/sections/GalleryWithCategories.vue.js +3 -3
- package/dist/prometheus-framework/src/modules/globals/components/blocks/BlockSearch.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/globals/components/blocks/BlockSearch.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/globals/components/blocks/CardHeader.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/globals/components/blocks/CardHeader.vue.js +46 -46
- package/dist/prometheus-framework/src/modules/legal/components/pages/Legal.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/legal/components/pages/Legal.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/orders/components/blocks/StatusHistory.vue.cjs +2 -2
- package/dist/prometheus-framework/src/modules/orders/components/blocks/StatusHistory.vue.js +39 -65
- package/dist/prometheus-framework/src/modules/orders/components/pages/Order.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/orders/components/pages/Order.vue.js +31 -31
- package/dist/prometheus-framework/src/modules/orders/components/pages/OrderBackoffice.vue.cjs +1 -0
- package/dist/prometheus-framework/src/modules/orders/components/pages/OrderBackoffice.vue.js +242 -0
- package/dist/prometheus-framework/src/modules/orders/components/pages/OrderBackoffice.vue2.cjs +1 -0
- package/dist/prometheus-framework/src/modules/orders/components/pages/OrderBackoffice.vue2.js +1 -0
- package/dist/prometheus-framework/src/modules/orders/components/pages/OrderCreate.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/orders/components/pages/OrderCreate.vue.js +62 -62
- package/dist/prometheus-framework/src/modules/orders/components/pages/OrderCreateBackoffice.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/orders/components/pages/OrderCreateBackoffice.vue.js +30 -30
- package/dist/prometheus-framework/src/modules/orders/components/pages/Orders.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/orders/components/pages/Orders.vue.js +99 -70
- package/dist/prometheus-framework/src/modules/orders/components/sections/FormAddCustomer.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/orders/components/sections/FormAddCustomer.vue.js +3 -3
- package/dist/prometheus-framework/src/modules/orders/components/sections/FormCustomerDetails.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/orders/components/sections/FormCustomerDetails.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/orders/components/sections/FormDelivery.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/orders/components/sections/FormDelivery.vue.js +10 -10
- package/dist/prometheus-framework/src/modules/orders/components/sections/FormPayment.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/orders/components/sections/FormPayment.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/orders/router/orders.backoffice.router.cjs +1 -1
- package/dist/prometheus-framework/src/modules/orders/router/orders.backoffice.router.js +1 -1
- package/dist/prometheus-framework/src/modules/orders/router/orders.router.cjs +1 -1
- package/dist/prometheus-framework/src/modules/orders/router/orders.router.js +2 -2
- package/dist/prometheus-framework/src/modules/orders/store/orders.cjs +1 -1
- package/dist/prometheus-framework/src/modules/orders/store/orders.js +33 -34
- package/dist/prometheus-framework/src/modules/orders/store/shopcart.cjs +1 -1
- package/dist/prometheus-framework/src/modules/orders/store/shopcart.js +42 -42
- package/dist/prometheus-framework/src/modules/organizations/components/blocks/CardDepartment.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/blocks/CardDepartment.vue.js +27 -25
- package/dist/prometheus-framework/src/modules/organizations/components/blocks/DepartmentMemberModify.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/blocks/DepartmentMemberModify.vue.js +11 -11
- package/dist/prometheus-framework/src/modules/organizations/components/elements/ButtonToggleMembership.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/elements/ButtonToggleMembership.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/pages/Department.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/pages/Department.vue.js +46 -43
- package/dist/prometheus-framework/src/modules/organizations/components/pages/DepartmentEdit.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/pages/DepartmentEdit.vue.js +162 -168
- package/dist/prometheus-framework/src/modules/organizations/components/pages/Members.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/pages/Members.vue.js +27 -26
- package/dist/prometheus-framework/src/modules/organizations/components/pages/Organization.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/pages/Organization.vue.js +7 -7
- package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationEdit.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationEdit.vue.js +3 -3
- package/dist/prometheus-framework/src/modules/organizations/components/sections/Documents.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/sections/Documents.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/organizations/components/sections/MembersAdd.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/sections/MembersAdd.vue.js +3 -3
- package/dist/prometheus-framework/src/modules/organizations/components/sections/Organizations.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/sections/Organizations.vue.js +3 -3
- package/dist/prometheus-framework/src/modules/organizations/store/memberships.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/store/memberships.js +1 -1
- package/dist/prometheus-framework/src/modules/products/components/blocks/CardPosition.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/blocks/CardPosition.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/products/components/blocks/CardProduct.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/blocks/CardProduct.vue.js +13 -13
- package/dist/prometheus-framework/src/modules/products/components/blocks/LeftoverPositions.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/blocks/LeftoverPositions.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/products/components/blocks/ListPositions.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/blocks/ListPositions.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/products/components/pages/Categories.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/pages/Categories.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/products/components/pages/CategoryEdit.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/pages/CategoryEdit.vue.js +3 -3
- package/dist/prometheus-framework/src/modules/products/components/pages/EditLeftover.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/pages/EditLeftover.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/products/components/pages/ProductEdit.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/pages/ProductEdit.vue.js +16 -17
- package/dist/prometheus-framework/src/modules/products/components/pages/Products.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/pages/Products.vue.js +22 -20
- package/dist/prometheus-framework/src/modules/products/components/sections/EditModifications.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/sections/EditModifications.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/products/components/sections/EditProductInfo.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/sections/EditProductInfo.vue.js +3 -3
- package/dist/prometheus-framework/src/modules/products/components/sections/SectionProduct.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/sections/SectionProduct.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/products/store/products.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/store/products.js +59 -38
- package/dist/prometheus-framework/src/modules/reports/components/sections/FormReport.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/reports/components/sections/FormReport.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/spots/components/blocks/CardSpot.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/spots/components/blocks/CardSpot.vue.js +23 -22
- package/dist/prometheus-framework/src/modules/users/components/blocks/CardUser.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/users/components/blocks/CardUser.vue.js +17 -14
- package/dist/prometheus-framework/src/modules/users/components/pages/Profile.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/users/components/pages/Profile.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/users/components/pages/ProfileEdit.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/users/components/pages/ProfileEdit.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/wallet/views/components/pages/Wallet.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/wallet/views/components/pages/Wallet.vue.js +3 -3
- package/dist/prometheus-framework.cjs.js +1 -1
- package/dist/prometheus-framework.es.js +1 -1
- package/dist/style.css +1 -1
- package/dist/web-CQQEUA9l.js +1 -0
- package/dist/web-D2Em-p-C.mjs +54 -0
- package/package.json +1 -1
- package/src/components/Address/Address.vue +23 -34
- package/src/components/LocationMarker/LocationMarker.vue +6 -1
- package/src/components/LocationSelection/LocationSelection.vue +4 -0
- package/src/components/Map/Map.vue +29 -15
- package/src/modules/constructor/components/elements/VideoPlayer.vue +2 -2
- package/src/modules/events/controllers/events.controller.js +4 -4
- package/src/modules/globals/components/blocks/CardHeader.vue +2 -2
- package/src/modules/integrations/stripe/controllers/services/stripe.service.js +17 -6
- package/src/modules/landing/components/pages/Farming.vue +226 -0
- package/src/modules/landing/components/pages/Governance.vue +3 -5
- package/src/modules/landing/components/pages/Home.vue +0 -3
- package/src/modules/landing/components/pages/Hotel.vue +1 -3
- package/src/modules/landing/components/pages/Page.vue +0 -3
- package/src/modules/landing/components/sections/Examples.vue +4 -56
- package/src/modules/landing/components/sections/SectionFeature.vue +41 -0
- package/src/modules/landing/components/sections/SectionFeaturesImages.vue +122 -0
- package/src/modules/landing/components/sections/SectionFocus.vue +59 -0
- package/src/modules/landing/components/sections/SectionHeroVideo.vue +164 -0
- package/src/modules/landing/router/landing.js +11 -0
- package/src/modules/marketplace/components/sections/Filters.vue +26 -23
- package/src/modules/orders/components/blocks/CardOrderItem.vue +8 -0
- package/src/modules/orders/components/blocks/StatusHistory.vue +25 -53
- package/src/modules/orders/components/pages/Order.vue +2 -6
- package/src/modules/orders/components/pages/OrderBackoffice.vue +393 -0
- package/src/modules/orders/components/pages/OrderCreate.vue +5 -4
- package/src/modules/orders/components/pages/OrderCreateBackoffice.vue +2 -3
- package/src/modules/orders/components/pages/Orders.vue +60 -11
- package/src/modules/orders/components/sections/FormDelivery.vue +2 -2
- package/src/modules/orders/controllers/orders.controller.js +29 -18
- package/src/modules/orders/models/order.model.js +8 -2
- package/src/modules/orders/router/orders.backoffice.router.js +1 -1
- package/src/modules/orders/router/orders.router.js +2 -2
- package/src/modules/orders/store/orders.js +3 -7
- package/src/modules/orders/store/shopcart.js +1 -1
- package/src/modules/organizations/components/blocks/CardDepartment.vue +2 -0
- package/src/modules/organizations/components/pages/Department.vue +5 -1
- package/src/modules/organizations/components/pages/DepartmentEdit.vue +65 -27
- package/src/modules/organizations/components/pages/Members.vue +2 -1
- package/src/modules/organizations/components/pages/Organization.vue +1 -1
- package/src/modules/organizations/controllers/memberships.controller.js +3 -1
- package/src/modules/organizations/store/memberships.js +1 -1
- package/src/modules/products/components/blocks/CardProduct.vue +2 -3
- package/src/modules/products/components/pages/ProductEdit.vue +10 -13
- package/src/modules/products/components/pages/Products.vue +2 -0
- package/src/modules/products/store/products.js +25 -2
- package/src/modules/spots/components/blocks/CardSpot.vue +2 -2
- package/src/modules/users/components/blocks/CardUser.vue +1 -0
- package/src/modules/landing/components/sections/AboutSection.vue +0 -69
@@ -23,6 +23,10 @@ module.exports = (db) => {
|
|
23
23
|
status: {
|
24
24
|
type: String
|
25
25
|
},
|
26
|
+
deadline: {
|
27
|
+
type: Date,
|
28
|
+
default: () => new Date(Date.now() + 30 * 60000) // Добавляет 30 минут к текущему времени
|
29
|
+
},
|
26
30
|
status_history: [{
|
27
31
|
status: {
|
28
32
|
type: String,
|
@@ -49,11 +53,13 @@ module.exports = (db) => {
|
|
49
53
|
payment: {
|
50
54
|
type: {
|
51
55
|
type: String,
|
52
|
-
trim: true
|
56
|
+
trim: true,
|
57
|
+
default: 'cash'
|
53
58
|
},
|
54
59
|
status: {
|
55
60
|
type: String,
|
56
|
-
trim: true
|
61
|
+
trim: true,
|
62
|
+
default: 'unpaid'
|
57
63
|
}
|
58
64
|
},
|
59
65
|
delivery: {
|
@@ -27,7 +27,7 @@ const orders = [
|
|
27
27
|
},{
|
28
28
|
path: ':order',
|
29
29
|
name: 'AdminOrderEdit',
|
30
|
-
component: () => import(/* webpackChunkName: 'BackofficeOrders' */ '@pf/src/modules/orders/components/pages/
|
30
|
+
component: () => import(/* webpackChunkName: 'BackofficeOrders' */ '@pf/src/modules/orders/components/pages/OrderBackoffice.vue')
|
31
31
|
}]
|
32
32
|
}
|
33
33
|
];
|
@@ -28,7 +28,7 @@ const orders = {
|
|
28
28
|
ru: 'Заказ'
|
29
29
|
}
|
30
30
|
},
|
31
|
-
component: () => import(/* webpackChunkName: 'Order' */ '@pf/src/modules/orders/components/pages/
|
31
|
+
component: () => import(/* webpackChunkName: 'Order' */ '@pf/src/modules/orders/components/pages/OrderBackoffice.vue')
|
32
32
|
},
|
33
33
|
{
|
34
34
|
path: ':order/edit',
|
@@ -39,7 +39,7 @@ const orders = {
|
|
39
39
|
ru: 'Заказ'
|
40
40
|
}
|
41
41
|
},
|
42
|
-
component: () => import(/* webpackChunkName: 'Order' */ '@pf/src/modules/orders/components/pages/
|
42
|
+
component: () => import(/* webpackChunkName: 'Order' */ '@pf/src/modules/orders/components/pages/OrderBackoffice.vue')
|
43
43
|
}]
|
44
44
|
};
|
45
45
|
|
@@ -12,7 +12,7 @@ import customerInitState from "@pf/src/modules/orders/store/models/customer"
|
|
12
12
|
const state = reactive({
|
13
13
|
all: [],
|
14
14
|
current: {
|
15
|
-
_id:
|
15
|
+
_id: undefined,
|
16
16
|
positions: [],
|
17
17
|
status: null,
|
18
18
|
comment: '',
|
@@ -58,11 +58,7 @@ const actions = {
|
|
58
58
|
async read( options = {}) {
|
59
59
|
try {
|
60
60
|
|
61
|
-
|
62
|
-
options.params = { _id: options._id };
|
63
|
-
}
|
64
|
-
|
65
|
-
const response = await $axios.get('/api/orders/read', { params: options.params });
|
61
|
+
const response = await $axios.get('/api/orders/read', { params: options });
|
66
62
|
|
67
63
|
if (options._id) {
|
68
64
|
set(response.data[0], 'current')
|
@@ -79,7 +75,7 @@ const actions = {
|
|
79
75
|
|
80
76
|
async update(order) {
|
81
77
|
try {
|
82
|
-
const response = await $axios.post(`/api/orders
|
78
|
+
const response = await $axios.post(`/api/orders/update`, order);
|
83
79
|
|
84
80
|
const index = state.all.findIndex(o => o._id === order._id);
|
85
81
|
|
@@ -36,6 +36,8 @@
|
|
36
36
|
v-for="(member, index) in department.members"
|
37
37
|
:key="index"
|
38
38
|
:user="member.user"
|
39
|
+
:photo="member.user.profile.photo"
|
40
|
+
:name="member.user.profile.name || member.user.phone || member.user.email || member.user._id"
|
39
41
|
:position="member.position"
|
40
42
|
@click="$router.push(`/app/profile/${member.user._id}`)"
|
41
43
|
/>
|
@@ -39,7 +39,9 @@
|
|
39
39
|
class="br-b br-solid br-grey"
|
40
40
|
v-for="(member, index) in departments.state.department.members"
|
41
41
|
:key="index"
|
42
|
-
:user="member"
|
42
|
+
:user="member.user"
|
43
|
+
:photo="member.user.profile.photo"
|
44
|
+
:name="member.user.profile.name || member.user.phone || member.user.email || member.user._id"
|
43
45
|
:position="member.position"
|
44
46
|
@click="$router.push(`/app/profile/${member.user._id}`)"
|
45
47
|
/>
|
@@ -65,6 +67,8 @@ import DepartmentSub from '@pf/src/modules/organizations/components/blocks/Depar
|
|
65
67
|
import User from '@pf/src/modules/users/components/blocks/CardUser.vue';
|
66
68
|
import * as departments from '@pf/src/modules/organizations/store/departments';
|
67
69
|
|
70
|
+
import IconEdit from '@pf/src/modules/icons/navigation/IconEdit.vue'
|
71
|
+
|
68
72
|
const router = useRouter();
|
69
73
|
const route = useRoute();
|
70
74
|
|
@@ -5,8 +5,9 @@
|
|
5
5
|
<h1 v-if="route.params.department" class="mn-r-auto">Edit Department</h1>
|
6
6
|
<h1 v-else class="mn-r-auto">Create Department</h1>
|
7
7
|
|
8
|
-
<section class="flex-nowrap flex pd-thin">
|
9
|
-
<Button :submit="
|
8
|
+
<section class="flex-nowrap flex gap-thin pd-thin">
|
9
|
+
<Button v-if="route.params.department" :submit="onDelete" :callback="redirectToDash" class="bg-red">Delete</Button>
|
10
|
+
<Button :submit="onSubmit" :callback="redirectTo" class="bg-main">Save</Button>
|
10
11
|
</section>
|
11
12
|
|
12
13
|
</header>
|
@@ -52,16 +53,18 @@
|
|
52
53
|
}]"
|
53
54
|
class="cols-1 gap-thin mn-b-thin"
|
54
55
|
>
|
55
|
-
|
56
|
-
|
57
|
-
class="bg-grey o-hidden radius-small mn-b-thin"
|
56
|
+
<CardUser
|
57
|
+
class="bg-white pd-thin radius-medium w-100"
|
58
58
|
v-for="(member, index) in departments.state.department.members"
|
59
59
|
:key="index"
|
60
60
|
:user="member.user"
|
61
61
|
:photo="member.user.profile.photo"
|
62
62
|
:name="member.user.profile.name || member.user.phone || member.user.email || member.user._id"
|
63
63
|
:position="member.position"
|
64
|
-
|
64
|
+
:action="{
|
65
|
+
label: 'x',
|
66
|
+
method: () => removeMember(member)
|
67
|
+
}"
|
65
68
|
/>
|
66
69
|
</Block>
|
67
70
|
|
@@ -71,12 +74,42 @@
|
|
71
74
|
:isPopupOpen="isOpenAddMemberPopup"
|
72
75
|
class="bg-white w-max-30r radius-big pd-big"
|
73
76
|
>
|
74
|
-
<
|
75
|
-
:
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
77
|
+
<Feed
|
78
|
+
:search="{
|
79
|
+
placeholder: 'Search customer...',
|
80
|
+
class: 'bg-grey mn-b-thin'
|
81
|
+
}"
|
82
|
+
:states="{
|
83
|
+
empty: {
|
84
|
+
title: 'No Products Found',
|
85
|
+
description: 'Currently, there are no such products available.'
|
86
|
+
}
|
87
|
+
}"
|
88
|
+
:store="{
|
89
|
+
read: (options) => memberships.actions.read(options),
|
90
|
+
state: null
|
91
|
+
}"
|
92
|
+
:options="{
|
93
|
+
target: route.params._id
|
94
|
+
}"
|
95
|
+
v-slot="{
|
96
|
+
items
|
97
|
+
}"
|
98
|
+
class="bg-grey pd-medium w-min-20r w-max-40r radius-big h-max-20r o-scroll"
|
99
|
+
>
|
100
|
+
<CardUser
|
101
|
+
v-for="(user, index) in items"
|
102
|
+
:key="user._id"
|
103
|
+
:user="user.user"
|
104
|
+
:photo="user.user.profile?.photo"
|
105
|
+
:name="user.user.profile?.name || user.user.phone || user.user.email"
|
106
|
+
@click="() => {
|
107
|
+
globals.actions.add(departments.state.department.members, { _id: user.user._id, user: user.user, position: 'Member'})
|
108
|
+
closeMemberPopup();
|
109
|
+
}"
|
110
|
+
class="bg-white pd-thin radius-medium w-100 mn-b-thin"
|
111
|
+
/>
|
112
|
+
</Feed>
|
80
113
|
</Popup>
|
81
114
|
|
82
115
|
|
@@ -178,13 +211,11 @@
|
|
178
211
|
|
179
212
|
</div>
|
180
213
|
|
181
|
-
|
182
|
-
<Button :submit="onDelete" :callback="redirectToDash" class="bg-grey">Delete Department</Button>
|
183
|
-
</section>
|
214
|
+
|
184
215
|
|
185
216
|
|
186
217
|
|
187
|
-
|
218
|
+
<!-- <div id="dash" class="pd-medium bg-white">
|
188
219
|
|
189
220
|
<Popup title="Добавить подотдел" @close-popup="closeDepartmentPopup" :isPopupOpen="isOpenDepartmentPopup">
|
190
221
|
<DepartmentSubDepartmentModify
|
@@ -214,7 +245,7 @@
|
|
214
245
|
</ul>
|
215
246
|
|
216
247
|
|
217
|
-
</div>
|
248
|
+
</div> -->
|
218
249
|
</div>
|
219
250
|
</template>
|
220
251
|
|
@@ -234,13 +265,15 @@ import LocationMarker from "@pf/src/components/LocationMarker/LocationMarker.vue
|
|
234
265
|
import Button from "@pf/src/components/Button/Button.vue";
|
235
266
|
import Popup from "@pf/src/components/Popup/Popup.vue";
|
236
267
|
import Block from '@pf/src/components/Block/Block.vue';
|
268
|
+
import Feed from '@pf/src/components/Feed/Feed.vue'
|
237
269
|
|
238
270
|
import EditArray from "@pf/src/modules/organizations/components/blocks/EditArray.vue";
|
239
271
|
import DepartmentSub from "@pf/src/modules/organizations/components/blocks/DepartmentSub.vue";
|
240
|
-
import DepartmentMemberModify from "@pf/src/modules/organizations/components/blocks/DepartmentMemberModify.vue";
|
241
272
|
import DepartmentSubDepartmentModify from "@pf/src/modules/organizations/components/blocks/DepartmentMemberModify.vue";
|
242
|
-
import User from '@pf/src/modules/users/components/blocks/CardUser.vue';
|
243
273
|
|
274
|
+
import CardUser from '@pf/src/modules/users/components/blocks/CardUser.vue'
|
275
|
+
|
276
|
+
import * as globals from "@pf/src/modules/globals/store/globals";
|
244
277
|
import * as departments from "@pf/src/modules/organizations/store/departments";
|
245
278
|
import * as memberships from "@pf/src/modules/organizations/store/memberships";
|
246
279
|
|
@@ -248,11 +281,7 @@ const router = useRouter();
|
|
248
281
|
const route = useRoute();
|
249
282
|
|
250
283
|
async function fetchData() {
|
251
|
-
if (route.params.department) {
|
252
|
-
await memberships.actions.read({target: route.params._id});
|
253
|
-
}
|
254
284
|
const users = ref(memberships.state.memberships);
|
255
|
-
|
256
285
|
// await departments.actions.read({organization: route.params._id});
|
257
286
|
if (route.params.department) await departments.actions.readOne(route.params.department);
|
258
287
|
}
|
@@ -307,10 +336,19 @@ function redirectTo() {
|
|
307
336
|
}
|
308
337
|
|
309
338
|
async function onDelete() {
|
310
|
-
|
311
|
-
|
312
|
-
|
313
|
-
|
339
|
+
if (confirm("Are you sure you want to delete this department?")) {
|
340
|
+
await departments.actions.delete(
|
341
|
+
route.params._id,
|
342
|
+
departments.state.department
|
343
|
+
);
|
344
|
+
}
|
345
|
+
|
346
|
+
}
|
347
|
+
|
348
|
+
function removeMember(member) {
|
349
|
+
if (confirm("Are you sure you want to remove this member?")) {
|
350
|
+
globals.actions.delete(departments.state.department.members, { _id: member.user._id})
|
351
|
+
}
|
314
352
|
}
|
315
353
|
|
316
354
|
function redirectDash() {
|
@@ -129,7 +129,7 @@
|
|
129
129
|
<button
|
130
130
|
v-if="auth.state.user._id === organization.state.current.owner"
|
131
131
|
@click="$router.push(`/spots/${organization.state.current._id}/spots/create`)"
|
132
|
-
class="mn-b-thin button w-100"
|
132
|
+
class="mn-b-thin bg-main button w-100"
|
133
133
|
>
|
134
134
|
Add spot
|
135
135
|
</button>
|
@@ -5,13 +5,15 @@ const controllerFactory = (db) => {
|
|
5
5
|
|
6
6
|
const read = async (req, res) => {
|
7
7
|
try {
|
8
|
+
|
8
9
|
const memberships = await Membership.aggregate([
|
9
10
|
{
|
10
11
|
$match: {
|
11
12
|
...(req.query.user && { user: new ObjectId(req.query.user) }),
|
12
13
|
...(req.query.type && { type: req.query.type }),
|
13
14
|
...(req.query.target && { target: new ObjectId(req.query.target) }),
|
14
|
-
...(req.query.role && { role: req.query.role }),
|
15
|
+
// ...(req.query.role && { role: req.query.role }),
|
16
|
+
...(req.query.role && { role: { $in: req.query.role } }),
|
15
17
|
},
|
16
18
|
},
|
17
19
|
{
|
@@ -28,7 +28,7 @@ const actions = {
|
|
28
28
|
if (options._id) params._id = options._id;
|
29
29
|
if (options.user) params.user = options.user;
|
30
30
|
if (options.target) params.target = options.target;
|
31
|
-
if (options.
|
31
|
+
if (options.role) params.role = options.role;
|
32
32
|
|
33
33
|
try {
|
34
34
|
const response = await $axios.get(`/api/memberships`, { params: params });
|
@@ -13,9 +13,8 @@
|
|
13
13
|
: 'bg-white'
|
14
14
|
"
|
15
15
|
>
|
16
|
-
|
17
16
|
<router-link
|
18
|
-
v-if="user"
|
17
|
+
v-if="user && user.roles && (user.roles.includes('ROLE_MODERATOR') || user.roles.includes('ROLE_ADMIN'))"
|
19
18
|
:to="{
|
20
19
|
name: 'ProductEdit',
|
21
20
|
params: {
|
@@ -34,7 +33,7 @@
|
|
34
33
|
class="i-regular"
|
35
34
|
classes="fill-white"
|
36
35
|
/>
|
37
|
-
|
36
|
+
</router-link>
|
38
37
|
|
39
38
|
<!-- Product Image Sqaure -->
|
40
39
|
|
@@ -270,10 +270,18 @@
|
|
270
270
|
}
|
271
271
|
|
272
272
|
onMounted(async() => {
|
273
|
+
products.mutations.resetProduct();
|
273
274
|
|
274
|
-
|
275
|
-
|
275
|
+
if (route.params.product) {
|
276
|
+
await products.actions.read({ _id: route.params.product });
|
277
|
+
}
|
278
|
+
|
279
|
+
if (!products.state.current.ingredients) {
|
280
|
+
products.state.current.ingredients = []
|
281
|
+
}
|
276
282
|
|
283
|
+
// Data prefetching
|
284
|
+
await categories.actions.fetchCategories()
|
277
285
|
|
278
286
|
try {
|
279
287
|
const productsResponse = await products.actions.read({
|
@@ -284,17 +292,6 @@
|
|
284
292
|
} catch (error) {
|
285
293
|
console.error('error');
|
286
294
|
}
|
287
|
-
|
288
|
-
if (route.params.product) {
|
289
|
-
await products.actions.read({ _id: route.params.product });
|
290
|
-
} else {
|
291
|
-
// await commit('products/clearProductState')
|
292
|
-
}
|
293
|
-
|
294
|
-
if (!products.state.current.ingredients) {
|
295
|
-
products.state.current.ingredients = []
|
296
|
-
}
|
297
|
-
|
298
295
|
})
|
299
296
|
|
300
297
|
function onImagesUpdate(newImages) {
|
@@ -68,6 +68,7 @@
|
|
68
68
|
v-for="product in items"
|
69
69
|
:key="product._id"
|
70
70
|
:product="product"
|
71
|
+
:user="auth.state.access"
|
71
72
|
class="h-max"
|
72
73
|
@click.capture="$router.push({
|
73
74
|
name: 'Product Organization',
|
@@ -99,6 +100,7 @@
|
|
99
100
|
import CardProduct from '@pf/src/modules/products/components/blocks/CardProduct.vue'
|
100
101
|
|
101
102
|
// Accessing router and store
|
103
|
+
import * as auth from '@pf/src/modules/auth/store/auth';
|
102
104
|
import * as products from '@pf/src/modules/products/store/products';
|
103
105
|
|
104
106
|
const route = useRoute()
|
@@ -98,8 +98,8 @@ const actions = {
|
|
98
98
|
|
99
99
|
query.sort = 'createdAt';
|
100
100
|
|
101
|
-
query.skip = options.skip
|
102
|
-
query.limit = options.limit
|
101
|
+
query.skip = options.skip;
|
102
|
+
query.limit = options.limit;
|
103
103
|
|
104
104
|
try {
|
105
105
|
const response = await $axios.get('/api/products/read', { params: query });
|
@@ -230,6 +230,28 @@ const actions = {
|
|
230
230
|
},
|
231
231
|
};
|
232
232
|
|
233
|
+
const mutations = {
|
234
|
+
resetProduct(product) {
|
235
|
+
state.current = {
|
236
|
+
recommendation: false,
|
237
|
+
category: [],
|
238
|
+
status: 'unpublished',
|
239
|
+
information: [],
|
240
|
+
images: [],
|
241
|
+
files: [],
|
242
|
+
image3d: false,
|
243
|
+
name: '',
|
244
|
+
sale: 0,
|
245
|
+
price: 0,
|
246
|
+
localization: [],
|
247
|
+
modifications: [],
|
248
|
+
quantityDiscount: [],
|
249
|
+
ingredients: [],
|
250
|
+
description: ''
|
251
|
+
}
|
252
|
+
}
|
253
|
+
}
|
254
|
+
|
233
255
|
function set(product,property) {
|
234
256
|
state[property] = product
|
235
257
|
}
|
@@ -264,5 +286,6 @@ watch(state, (newState, oldState) => {
|
|
264
286
|
export {
|
265
287
|
state,
|
266
288
|
actions,
|
289
|
+
mutations,
|
267
290
|
getters
|
268
291
|
}
|
@@ -1,6 +1,6 @@
|
|
1
1
|
<template>
|
2
|
-
<div class="radius-big o-hidden cols-2-1_3">
|
3
|
-
<Map :location="{lat: spot.location.coordinates[1] ,lng: spot.location.coordinates[0]}" class=""/>
|
2
|
+
<div class="radius-big o-hidden pos-relative cols-2-1_3">
|
3
|
+
<Map :apiKey="GOOGLE_MAPS_API_KEY" :location="{lat: spot.location.coordinates[1] ,lng: spot.location.coordinates[0]}" class=""/>
|
4
4
|
|
5
5
|
<div class="pd-medium w-100">
|
6
6
|
|
@@ -1,69 +0,0 @@
|
|
1
|
-
<template>
|
2
|
-
<section id="about" class="section">
|
3
|
-
|
4
|
-
<div class="cols-2-golden-ration bg-white radius-big flex-nowrap">
|
5
|
-
<!-- Left col -->
|
6
|
-
<div class="pd-big text-about flex-v-center flex col">
|
7
|
-
<h3 class="mn-b-medium">{{t('title')}}</h3>
|
8
|
-
<p class="mn-b-big">{{t('description')}}</p>
|
9
|
-
</div>
|
10
|
-
<!-- Right col -->
|
11
|
-
<div class="brand-photocol col">
|
12
|
-
<video class="video" autoplay playsinline muted loop preload >
|
13
|
-
<source src="@/assets/videos/hotel.webm">
|
14
|
-
</video>
|
15
|
-
</div>
|
16
|
-
</div>
|
17
|
-
</section>
|
18
|
-
</template>
|
19
|
-
|
20
|
-
|
21
|
-
<script setup>
|
22
|
-
import { computed, onMounted, reactive, toRefs } from 'vue'
|
23
|
-
|
24
|
-
import { useRoute,useRouter } from 'vue-router'
|
25
|
-
import { useI18n } from 'vue-i18n'
|
26
|
-
|
27
|
-
const route = useRoute()
|
28
|
-
const router = useRouter()
|
29
|
-
|
30
|
-
const text = {
|
31
|
-
messages: {
|
32
|
-
en: {
|
33
|
-
title: "CANNABIS FRIENDLY HOTEL IN PHUKET 🌿😌",
|
34
|
-
description: "We invite you to enjoy the best views of Phuket whilst consuming our superior quality products which are conveniently located at our on-site dispensary. At Fingan House, we encourage the exploration of Phuket’s finest cannabis products and are proud to provide a fully stocked bar of our signature product offerings to those looking to enjoy their experience to the fullest. Whether you’re a seasoned veteran or completely new to the scene, our team of friendly experts is available to assist you in selecting the perfect strain for the occasion.",
|
35
|
-
calltoaction: "Like it? Check out Airbnb and start your mary jane adventure ✈️",
|
36
|
-
button: "Read more"
|
37
|
-
},
|
38
|
-
ru: {
|
39
|
-
title: "КАННАБИС ФРЕНДЛИ ОТЕЛЬ НА ПХУКЕТЕ 🌿😌",
|
40
|
-
description: "Расположенный в центре Раваи, вы можете наслаждаться потрясающим 360-градусным видом на Пхукет, куря убийственную травку на крыше Fingan House. Приходите полюбоваться удивительными закатами в 18:00 или увидеть ночные огни Пхукета во всей красе после захода солнца. Купите немного каннабиса и наслаждайтесь видами — это действительно так просто! Не умеете крутить? Не беспокойтесь — у Фингана есть помощник, который может бесплатно скрутить для вас косяк.",
|
41
|
-
calltoaction: "Нравится? Загляните на Airbnb и начните свое травяное приключение ✈️",
|
42
|
-
button: "Узнать больше"
|
43
|
-
}
|
44
|
-
}
|
45
|
-
}
|
46
|
-
|
47
|
-
const { t } = useI18n(text)
|
48
|
-
</script>
|
49
|
-
|
50
|
-
<style lang="scss">
|
51
|
-
#about {
|
52
|
-
|
53
|
-
.brand-photocol {
|
54
|
-
object-fit: cover;
|
55
|
-
min-height: 24rem;
|
56
|
-
height: 100%;
|
57
|
-
|
58
|
-
video {
|
59
|
-
position: absolute;
|
60
|
-
left: 0;
|
61
|
-
right: 0;
|
62
|
-
object-fit: cover;
|
63
|
-
width: 100%;
|
64
|
-
min-height: 100%;
|
65
|
-
}
|
66
|
-
}
|
67
|
-
}
|
68
|
-
|
69
|
-
</style>
|