@ozdao/prometheus-framework 0.2.91 → 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 +19 -9
- package/dist/events.server.mjs +19 -9
- 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/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/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 +1 -1
- 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 +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/layouts/layoutEvents.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/events/components/layouts/layoutEvents.vue.js +14 -48
- 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 +1 -1
- package/dist/prometheus-framework/src/modules/events/components/pages/Events.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/events/components/pages/Events.vue.js +85 -25
- 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 +1 -1
- 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 +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 +74 -63
- package/dist/prometheus-framework/src/modules/landing/components/sections/SectionFeatures.vue.cjs +1 -0
- package/dist/prometheus-framework/src/modules/landing/components/sections/SectionFeatures.vue.js +74 -0
- package/dist/prometheus-framework/src/modules/landing/landing.client.cjs +1 -1
- package/dist/prometheus-framework/src/modules/landing/landing.client.js +4 -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 +28 -28
- 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 +1 -1
- 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 +1 -1
- 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 +7 -9
- 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/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 +1 -1
- 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 +1 -1
- 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 +1 -1
- 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 +1 -1
- 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 +37 -26
- 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 +1 -1
- 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 +1 -1
- 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 +14 -15
- 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/EditProductInfo.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/sections/EditProductInfo.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 +1 -1
- 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/wallet/views/components/pages/Wallet.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/wallet/views/components/pages/Wallet.vue.js +1 -1
- 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/components/layouts/layoutEvents.vue +2 -59
- package/src/modules/events/components/pages/Events.vue +106 -23
- package/src/modules/events/controllers/events.controller.js +10 -7
- package/src/modules/globals/components/blocks/CardHeader.vue +31 -6
- 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/landing.client.js +3 -1
- 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/components/sections/SubscribeNewsletter.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 +3 -5
- 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 +32 -22
- package/src/modules/products/components/pages/ProductEdit.vue +10 -13
- package/src/modules/products/components/pages/Products.vue +2 -0
- package/src/modules/products/components/sections/HeroRecommendation.vue +1 -1
- 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
@@ -0,0 +1,164 @@
|
|
1
|
+
<template>
|
2
|
+
<section id="viewpoint" class="br-b-white hero" itemscope itemtype="http://schema.org/BarOrPub">
|
3
|
+
|
4
|
+
<div class="cols-2 gap-thin">
|
5
|
+
<!-- Left col -->
|
6
|
+
<div class="col-1 flex-justify flex-column flex o-hidden" itemprop="description">
|
7
|
+
|
8
|
+
|
9
|
+
<div class="pd-big bg-main mn-b-thin radius-big">
|
10
|
+
<h1 class="mn-b-small">
|
11
|
+
<span class="text-fade-in">
|
12
|
+
<span class="text-splitted" v-html="t('viewpoint.title')"/>
|
13
|
+
</span>
|
14
|
+
</h1>
|
15
|
+
|
16
|
+
<p class="p-big t-transp">{{ t('viewpoint.description') }}</p>
|
17
|
+
</div>
|
18
|
+
|
19
|
+
<div class="pd-big bg-black t-white radius-big">
|
20
|
+
<p class="p-big mn-b-small" itemprop="name">{{ t('contacts.name') }}</p>
|
21
|
+
|
22
|
+
<address class="d-block mn-b-small" itemprop="address" itemscope itemtype="http://schema.org/PostalAddress">
|
23
|
+
<a :href="t('contacts.addressLink')" target="_blank" rel="noopener">
|
24
|
+
<span itemprop="streetAddress">{{ t('contacts.streetAddress') }}</span>,
|
25
|
+
<span itemprop="addressLocality">{{ t('contacts.addressLocality') }}</span>,
|
26
|
+
<span itemprop="addressRegion">{{ t('contacts.addressRegion') }}</span>,
|
27
|
+
<span itemprop="postalCode">{{ t('contacts.postalCode') }}</span>
|
28
|
+
</a>
|
29
|
+
</address>
|
30
|
+
|
31
|
+
<span class="d-block mn-b-small" itemprop="telephone">
|
32
|
+
<a :href="'tel:' + t('contacts.telephone')" class="t-black">{{ t('contacts.telephone') }}</a>
|
33
|
+
</span>
|
34
|
+
|
35
|
+
<span class="d-block mn-b-medium" itemprop="email">
|
36
|
+
<a :href="'mailto:' + t('contacts.email')" class="t-black">{{ t('contacts.email') }}</a>
|
37
|
+
</span>
|
38
|
+
|
39
|
+
<a :href="t('contacts.addressLink')" target="_blank" rel="noopener" class="button hover-scale-1 t-black bg-main">
|
40
|
+
{{ t('contacts.seeongoogle') }}
|
41
|
+
</a>
|
42
|
+
</div>
|
43
|
+
|
44
|
+
</div>
|
45
|
+
<!-- Right col -->
|
46
|
+
<div class="col-2 w-100 flex">
|
47
|
+
<div class="pos-relative radius-big video-wrapper w-100 h-100 o-hidden">
|
48
|
+
<div class="video-gradient"></div>
|
49
|
+
<video ref="videoElement" style="object-fit: cover; position: absolute;" class="video-height" preload autoplay muted loop playsinlineclass playsinline src="/videos/farming.mp4" itemprop="video" type="video/mp4" ></video>
|
50
|
+
</div>
|
51
|
+
</div>
|
52
|
+
|
53
|
+
</div>
|
54
|
+
</section>
|
55
|
+
</template>
|
56
|
+
|
57
|
+
|
58
|
+
<script setup>
|
59
|
+
/////////////////////////////
|
60
|
+
// COMPONENT DEPENDENCIES
|
61
|
+
/////////////////////////////
|
62
|
+
import { ref, onMounted } from 'vue';
|
63
|
+
import { useI18n } from 'vue-i18n'
|
64
|
+
|
65
|
+
let text = {
|
66
|
+
messages: {
|
67
|
+
"en":{
|
68
|
+
"viewpoint":{
|
69
|
+
"title":"Increase Your Earnings from Canna-Business with Weeder Farms",
|
70
|
+
"description":"Using Top-Tier Technology to Streamline Your Cannabis Farming Operations"
|
71
|
+
},
|
72
|
+
"contacts": {
|
73
|
+
"name": "Запишитесь на бесплатную консультацию и узнайте как увеличить ваш доход на 30%",
|
74
|
+
"seeongoogle": "Book a free consultation"
|
75
|
+
}
|
76
|
+
},
|
77
|
+
"ru":{
|
78
|
+
"viewpoint":{
|
79
|
+
"title":"Живописная Терраса и Бар с Видом на Море",
|
80
|
+
"description":"Откройте для себя всё лучшее, что может предложить Пхукет, в The Commune, стильном баре и террасе на пляже Карон. Насладитесь впечатляющим видом на море, попивая изысканные коктейли и пробуя превосходные блюда из нашего меню."
|
81
|
+
}
|
82
|
+
}
|
83
|
+
}
|
84
|
+
}
|
85
|
+
|
86
|
+
const { t } = useI18n(text)
|
87
|
+
/////////////////////////////
|
88
|
+
// CREATED
|
89
|
+
/////////////////////////////
|
90
|
+
const videoElement = ref(null)
|
91
|
+
|
92
|
+
var isPlaying = false;
|
93
|
+
|
94
|
+
function checkAndPlayVideo() {
|
95
|
+
// Initializing values
|
96
|
+
|
97
|
+
// On video playing toggle values
|
98
|
+
videoElement.value.onplaying = function() {
|
99
|
+
isPlaying = true;
|
100
|
+
};
|
101
|
+
|
102
|
+
// On video pause toggle values
|
103
|
+
videoElement.value.onpause = function() {
|
104
|
+
isPlaying = false;
|
105
|
+
};
|
106
|
+
}
|
107
|
+
|
108
|
+
// Play video function
|
109
|
+
async function playVid() {
|
110
|
+
if (videoElement.value.paused && !isPlaying) {
|
111
|
+
return videoElement.value.play();
|
112
|
+
}
|
113
|
+
}
|
114
|
+
|
115
|
+
onMounted(() => {
|
116
|
+
checkAndPlayVideo()
|
117
|
+
playVid()
|
118
|
+
})
|
119
|
+
</script>
|
120
|
+
|
121
|
+
<style lang="scss">
|
122
|
+
.video-height {
|
123
|
+
width: 100%;
|
124
|
+
min-height: 100%;
|
125
|
+
max-height: 45vh;
|
126
|
+
object-fit: cover;
|
127
|
+
}
|
128
|
+
|
129
|
+
@media screen and (max-width: 1024px) {
|
130
|
+
.video-wrapper {
|
131
|
+
position: absolute;
|
132
|
+
left: 0;
|
133
|
+
top: 0;
|
134
|
+
border-radius: 0 !important;
|
135
|
+
|
136
|
+
.video-gradient {
|
137
|
+
position: absolute;
|
138
|
+
pointer-events: none;
|
139
|
+
top: 7px;
|
140
|
+
left: 0;
|
141
|
+
width: 100%;
|
142
|
+
height: 100%;
|
143
|
+
|
144
|
+
background: linear-gradient(to bottom, transparent, rgba(var(--white),1));
|
145
|
+
z-index: 1;
|
146
|
+
}
|
147
|
+
}
|
148
|
+
|
149
|
+
#viewpoint {
|
150
|
+
.cols-2 {
|
151
|
+
.col-1 {
|
152
|
+
order: 2;
|
153
|
+
border: 0;
|
154
|
+
}
|
155
|
+
|
156
|
+
.col-2 {
|
157
|
+
order: 1;
|
158
|
+
min-height: 33vh
|
159
|
+
}
|
160
|
+
}
|
161
|
+
}
|
162
|
+
}
|
163
|
+
</style>
|
164
|
+
|
@@ -18,6 +18,17 @@ const landing = [
|
|
18
18
|
},
|
19
19
|
component: () => import(/* webpackChunkName: 'Governance' */ '@pf/src/modules/landing/components/pages/Governance.vue'),
|
20
20
|
},
|
21
|
+
{
|
22
|
+
path: 'farming',
|
23
|
+
name: 'Farming',
|
24
|
+
meta: {
|
25
|
+
title: {
|
26
|
+
en: 'Governance',
|
27
|
+
ru: 'Управления'
|
28
|
+
}
|
29
|
+
},
|
30
|
+
component: () => import(/* webpackChunkName: 'Governance' */ '@pf/src/modules/landing/components/pages/Farming.vue'),
|
31
|
+
},
|
21
32
|
{
|
22
33
|
path: 'pages/:url',
|
23
34
|
name: 'Page',
|
@@ -1,10 +1,14 @@
|
|
1
1
|
<template>
|
2
|
-
<div class="z-index-1 pos-relative radius-big bg-black t-white pd-medium flex-v-center flex-nowrap flex
|
2
|
+
<div class="z-index-1 pos-relative radius-big bg-black t-white pd-medium flex-v-center flex-nowrap flex">
|
3
3
|
<!-- <p class="t-semi radius-extra uppercase p-medium mn-r-thin">Filter by</p> -->
|
4
|
+
<div class="
|
5
|
+
mn-r-auto pd-micro gap-micro br-solid br-2px br-white radius-extra flex-nowrap flex
|
6
|
+
"
|
7
|
+
>
|
4
8
|
<Dropdown
|
5
9
|
id="fitlerCategory"
|
6
10
|
:label="t('categoriesTitle')"
|
7
|
-
class="cursor-pointer
|
11
|
+
class="cursor-pointer pd-thin t-semi radius-extra uppercase p-medium"
|
8
12
|
:class="[
|
9
13
|
store.marketplace.state.filter.categories.length > 0 ? 'bg-white t-black' : ''
|
10
14
|
]"
|
@@ -22,10 +26,10 @@
|
|
22
26
|
</div>
|
23
27
|
</Dropdown>
|
24
28
|
|
25
|
-
|
26
|
-
|
29
|
+
<Dropdown
|
30
|
+
id="fitlerPrice"
|
27
31
|
:label="t('filters.price.title')"
|
28
|
-
class="cursor-pointer
|
32
|
+
class="cursor-pointer pd-thin t-semi radius-extra uppercase p-medium"
|
29
33
|
:class="[
|
30
34
|
store.marketplace.state.filter.prices.length > 0 ? 'bg-white t-black' : ''
|
31
35
|
]"
|
@@ -43,29 +47,28 @@
|
|
43
47
|
</div>
|
44
48
|
</Dropdown>
|
45
49
|
|
46
|
-
|
47
|
-
|
50
|
+
<Dropdown
|
51
|
+
label="Delivery"
|
48
52
|
id="fitlerDelivery"
|
49
|
-
class="cursor-pointer
|
53
|
+
class="cursor-pointer pd-thin t-semi radius-extra uppercase p-medium"
|
50
54
|
:class="[
|
51
55
|
store.marketplace.state.filter.delivery.length > 0 ? 'bg-white t-black' : ''
|
52
56
|
]"
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
</Dropdown>
|
66
|
-
<!-- Reset filter -->
|
67
|
-
<p class="t-semi radius-extra uppercase p-medium mn-r-thin t-nowrap">Sort by</p>
|
57
|
+
>
|
58
|
+
<div class="w-100 h-100 radius-semi o-hidden bg-black">
|
59
|
+
<Checkbox
|
60
|
+
v-for="(delivery, index) in delivery"
|
61
|
+
:label="delivery.label"
|
62
|
+
name="prices"
|
63
|
+
:value="delivery.value"
|
64
|
+
class="cursor-pointer w-100 mn-t-small bg-black t-white radius-small pd-small"
|
65
|
+
:radio="store.marketplace.state.filter.delivery"
|
66
|
+
@update:radio="event => store.marketplace.state.filter.delivery = event"
|
67
|
+
/>
|
68
|
+
</div>
|
68
69
|
|
70
|
+
</Dropdown>
|
71
|
+
</div>
|
69
72
|
<div class="flex-stretch flex-nowrap gap-thin flex">
|
70
73
|
<Select
|
71
74
|
:options="['products','distance','popularity']"
|
@@ -1,17 +1,22 @@
|
|
1
1
|
<template>
|
2
2
|
<div class="bg-grey radius-medium w-100">
|
3
3
|
<h3 class="pd-medium">Tracking History</h3>
|
4
|
-
<div v-for="status in
|
4
|
+
<div v-for="status in statusDetailedHistory" :key="status" class="w-100 br-t br-solid br-black-transp-10 pd-medium flex-v-center flex-nowrap flex">
|
5
5
|
<div class="flex-center flex i-big radius-extra br-solid br-2px br-black-transp-10 mn-r-small">
|
6
|
-
|
7
6
|
<IconCheckmark
|
8
|
-
v-if="isStatusInHistory(status.
|
7
|
+
v-if="isStatusInHistory(status.status)"
|
9
8
|
class="i-medium"
|
10
9
|
/>
|
11
10
|
</div>
|
12
|
-
|
11
|
+
|
12
|
+
<div>
|
13
|
+
<p class="h4 w-8r">{{status.status}}</p>
|
14
|
+
<p v-if="status.timestamp" class="h5 w-8r">{{formatDate(status.timestamp)}}</p>
|
15
|
+
</div>
|
16
|
+
|
17
|
+
<p class="h5 w-8r">{{status._id}}</p>
|
13
18
|
<!-- <button v-if="status.value === 'delivered'" @click="printReceipt()" class="mn-l-auto bg-main button radius-big">Print</button> -->
|
14
|
-
<button v-if="edit" :disabled="!isNextPossibleStatus(status
|
19
|
+
<button v-if="edit" :disabled="!isNextPossibleStatus(status)" @click="setStatus(status)" class="mn-l-auto bg-main button radius-big">Set status</button>
|
15
20
|
</div>
|
16
21
|
</div>
|
17
22
|
</template>
|
@@ -32,46 +37,22 @@ const props = defineProps({
|
|
32
37
|
},
|
33
38
|
edit: {
|
34
39
|
type: Boolean
|
40
|
+
},
|
41
|
+
statuses: {
|
42
|
+
type: Array
|
35
43
|
}
|
36
44
|
})
|
37
45
|
|
38
|
-
|
39
|
-
const
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
nextstatus: 'Confirming order...',
|
49
|
-
description: 'Your order has been confirmed. We are now processing your items and preparing them for shipment.'
|
50
|
-
},{
|
51
|
-
value: 'confirmed',
|
52
|
-
name: 'Confirmed',
|
53
|
-
nextstatus: 'Order is confirmed. Packing order...',
|
54
|
-
description: 'Your order has been confirmed. We are now processing your items and preparing them for shipment.'
|
55
|
-
},{
|
56
|
-
value: 'packing',
|
57
|
-
name: 'Packing',
|
58
|
-
nextstatus: 'Packing order...',
|
59
|
-
description: 'Your order is now awaiting shipment. Once shipped, you will receive a notification with tracking information.'
|
60
|
-
},{
|
61
|
-
value: 'packed',
|
62
|
-
name: 'Packed',
|
63
|
-
nextstatus: 'Delivering order...',
|
64
|
-
description: 'Your order is now awaiting shipment. Once shipped, you will receive a notification with tracking information.'
|
65
|
-
},{
|
66
|
-
value: 'in delivery',
|
67
|
-
name: 'Delivering',
|
68
|
-
description: 'Your order is currently in transit. Our delivery team is working hard to get your items to you as soon as possible.'
|
69
|
-
},{
|
70
|
-
value: 'delivered',
|
71
|
-
name: 'Delivered',
|
72
|
-
description: 'Congratulations! Your order has been successfully delivered. If you have any concerns or feedback, feel free to contact us.'
|
73
|
-
}
|
74
|
-
]);
|
46
|
+
const statusDetailedHistory = props.statuses.map(status => {
|
47
|
+
const historyEntry = props.statusHistory.find(entry => entry.status === status);
|
48
|
+
|
49
|
+
return {
|
50
|
+
status,
|
51
|
+
timestamp: historyEntry ? historyEntry.timestamp : 'N/A',
|
52
|
+
inHistory: !!historyEntry,
|
53
|
+
_id: historyEntry ? historyEntry._id : null
|
54
|
+
};
|
55
|
+
});
|
75
56
|
|
76
57
|
const statusCurrent = ref(props.statusCurrent);
|
77
58
|
const statusHistory = ref(props.statusHistory);
|
@@ -83,20 +64,11 @@ const isStatusInHistory = (statusValue) => {
|
|
83
64
|
|
84
65
|
// Проверка, является ли статус следующим возможным действием
|
85
66
|
const isNextPossibleStatus = (statusValue) => {
|
86
|
-
const currentIndex = statuses.
|
87
|
-
console.log(status.status === statusCurrent.value)
|
88
|
-
console.log(statusCurrent.value)
|
89
|
-
console.log(status)
|
67
|
+
const currentIndex = props.statuses.findIndex(status => status === statusCurrent.value);
|
90
68
|
const nextIndex = currentIndex + 1;
|
91
|
-
return statuses
|
69
|
+
return props.statuses[nextIndex] && props.statuses[nextIndex] === statusValue;
|
92
70
|
};
|
93
71
|
|
94
|
-
// Функция установки нового статуса
|
95
|
-
const setStatus = async (newStatus) => {
|
96
|
-
// console.log(status)
|
97
|
-
// orders.state.current.status = status.value
|
98
|
-
// await orders.actions.update(orders.state.current)
|
99
|
-
}
|
100
72
|
|
101
73
|
const printerIP = ref('192.168.1.197');
|
102
74
|
const printerPort = ref(9100);
|
@@ -210,7 +210,7 @@
|
|
210
210
|
<script setup="props">
|
211
211
|
import { computed, ref, onMounted } from 'vue'
|
212
212
|
import { useRouter, useRoute } from 'vue-router'
|
213
|
-
|
213
|
+
|
214
214
|
import CardOrderItem from '@pf/src/modules/orders/components/blocks/CardOrderItem.vue'
|
215
215
|
import CardOrganization from '@pf/src/modules/organizations/components/blocks/CardOrganization.vue'
|
216
216
|
|
@@ -242,7 +242,6 @@
|
|
242
242
|
_id: order.value?.owner.target._id,
|
243
243
|
location: globals.state.position?.location,
|
244
244
|
});
|
245
|
-
|
246
245
|
})
|
247
246
|
|
248
247
|
let cartTotalPrice = computed(() => {
|
@@ -262,10 +261,7 @@
|
|
262
261
|
|
263
262
|
const product = productsOrganization.value.find(product => product._id === _id)
|
264
263
|
|
265
|
-
|
266
|
-
console.log(productsOrganization)
|
267
|
-
|
268
|
-
return {
|
264
|
+
return {
|
269
265
|
name: product.name,
|
270
266
|
images: product.images,
|
271
267
|
price: product.price,
|