@ozdao/martyrs 0.2.454 → 0.2.456
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/{Media-DlEIDFaB.js → Media-1oukRVfv.js} +1 -1
- package/dist/{Media-DzQv7XkX.mjs → Media-q-XJSM_H.mjs} +3 -3
- package/dist/{main-CSphtCso.js → main-C7jGMDJC.js} +2 -2
- package/dist/{main-CjVIbgn3.mjs → main-yXkgrjj8.mjs} +3 -9
- package/dist/martyrs/src/components/Button/Button.vue.cjs +1 -1
- package/dist/martyrs/src/components/Button/Button.vue.js +1 -1
- package/dist/martyrs/src/components/DatePicker/DatePicker.vue.cjs +2 -2
- package/dist/martyrs/src/components/DatePicker/DatePicker.vue.cjs.map +1 -1
- package/dist/martyrs/src/components/DatePicker/DatePicker.vue.js +2 -2
- package/dist/martyrs/src/components/DatePicker/DatePicker.vue.js.map +1 -1
- package/dist/martyrs/src/components/Dropdown/{Dropdown.vue.cjs → Dropdown.vue2.cjs} +2 -2
- package/dist/martyrs/src/components/Dropdown/Dropdown.vue2.cjs.map +1 -0
- package/dist/martyrs/src/components/Dropdown/{Dropdown.vue.js → Dropdown.vue2.js} +2 -2
- package/dist/martyrs/src/components/Dropdown/{Dropdown.vue.cjs.map → Dropdown.vue2.js.map} +1 -1
- package/dist/martyrs/src/components/EditImages/EditImages.vue.cjs +93 -0
- package/dist/martyrs/src/components/EditImages/EditImages.vue.cjs.map +1 -1
- package/dist/martyrs/src/components/EditImages/EditImages.vue.js +94 -1
- package/dist/martyrs/src/components/EditImages/EditImages.vue.js.map +1 -1
- package/dist/martyrs/src/components/EditImages/EditImages.vue2.cjs +0 -93
- package/dist/martyrs/src/components/EditImages/EditImages.vue2.cjs.map +1 -1
- package/dist/martyrs/src/components/EditImages/EditImages.vue2.js +1 -94
- package/dist/martyrs/src/components/EditImages/EditImages.vue2.js.map +1 -1
- package/dist/martyrs/src/components/EmptyState/EmptyState.vue.cjs +1 -1
- package/dist/martyrs/src/components/EmptyState/EmptyState.vue.js +1 -1
- package/dist/martyrs/src/components/Feed/Feed.vue.cjs +2 -2
- package/dist/martyrs/src/components/Feed/Feed.vue.js +2 -2
- package/dist/martyrs/src/components/Loader/{Loader.vue.cjs → Loader.vue2.cjs} +2 -2
- package/dist/martyrs/src/components/Loader/Loader.vue2.cjs.map +1 -0
- package/dist/martyrs/src/components/Loader/{Loader.vue.js → Loader.vue2.js} +2 -2
- package/dist/martyrs/src/components/Loader/{Loader.vue.cjs.map → Loader.vue2.js.map} +1 -1
- package/dist/martyrs/src/components/LocationMarker/LocationMarker.vue2.cjs +1 -1
- package/dist/martyrs/src/components/LocationMarker/LocationMarker.vue2.js +1 -1
- package/dist/martyrs/src/components/Media/Media.vue.cjs +2 -2
- package/dist/martyrs/src/components/Media/Media.vue.cjs.map +1 -1
- package/dist/martyrs/src/components/Media/Media.vue.js +2 -2
- package/dist/martyrs/src/components/Media/Media.vue.js.map +1 -1
- package/dist/martyrs/src/components/Menu/{Menu.vue2.cjs → Menu.vue.cjs} +2 -2
- package/dist/martyrs/src/components/Menu/Menu.vue.cjs.map +1 -0
- package/dist/martyrs/src/components/Menu/{Menu.vue2.js → Menu.vue.js} +2 -2
- package/dist/martyrs/src/components/Menu/Menu.vue.js.map +1 -0
- package/dist/martyrs/src/components/Slider/Slider.native.vue.cjs +229 -0
- package/dist/martyrs/src/components/Slider/Slider.native.vue.cjs.map +1 -0
- package/dist/martyrs/src/components/Slider/Slider.native.vue.js +229 -0
- package/dist/martyrs/src/components/Slider/Slider.native.vue.js.map +1 -0
- package/dist/martyrs/src/components/Slider/Slider.vue.cjs +1 -1
- package/dist/martyrs/src/components/Slider/Slider.vue.js +1 -1
- package/dist/martyrs/src/components/UploadImageMultiple/UploadImageMultiple.vue.cjs +1 -1
- package/dist/martyrs/src/components/UploadImageMultiple/UploadImageMultiple.vue.js +1 -1
- package/dist/martyrs/src/modules/auth/views/components/layouts/Auth.vue.cjs +1 -1
- package/dist/martyrs/src/modules/auth/views/components/layouts/Auth.vue.js +1 -1
- package/dist/martyrs/src/modules/auth/views/components/pages/Profile.vue.cjs +3 -3
- package/dist/martyrs/src/modules/auth/views/components/pages/Profile.vue.js +3 -3
- package/dist/martyrs/src/modules/auth/views/components/sections/FeaturedUsers.vue.cjs +2 -2
- package/dist/martyrs/src/modules/auth/views/components/sections/FeaturedUsers.vue.cjs.map +1 -1
- package/dist/martyrs/src/modules/auth/views/components/sections/FeaturedUsers.vue.js +2 -2
- package/dist/martyrs/src/modules/auth/views/components/sections/FeaturedUsers.vue.js.map +1 -1
- package/dist/martyrs/src/modules/community/components/pages/BlogPost.vue.cjs +1 -1
- package/dist/martyrs/src/modules/community/components/pages/BlogPost.vue.js +1 -1
- package/dist/martyrs/src/modules/community/components/sections/HotPosts.vue.cjs +3 -4
- package/dist/martyrs/src/modules/community/components/sections/HotPosts.vue.cjs.map +1 -1
- package/dist/martyrs/src/modules/community/components/sections/HotPosts.vue.js +3 -4
- package/dist/martyrs/src/modules/community/components/sections/HotPosts.vue.js.map +1 -1
- package/dist/martyrs/src/modules/events/components/blocks/CardEvent.vue.cjs +29 -17
- package/dist/martyrs/src/modules/events/components/blocks/CardEvent.vue.cjs.map +1 -1
- package/dist/martyrs/src/modules/events/components/blocks/CardEvent.vue.js +29 -17
- package/dist/martyrs/src/modules/events/components/blocks/CardEvent.vue.js.map +1 -1
- package/dist/martyrs/src/modules/events/components/pages/EditEvent.vue.cjs +2 -2
- package/dist/martyrs/src/modules/events/components/pages/EditEvent.vue.js +2 -2
- package/dist/martyrs/src/modules/events/components/pages/Event.vue.cjs +2 -23
- package/dist/martyrs/src/modules/events/components/pages/Event.vue.cjs.map +1 -1
- package/dist/martyrs/src/modules/events/components/pages/Event.vue.js +5 -26
- package/dist/martyrs/src/modules/events/components/pages/Event.vue.js.map +1 -1
- package/dist/martyrs/src/modules/events/components/pages/Events.vue.cjs +50 -132
- package/dist/martyrs/src/modules/events/components/pages/Events.vue.cjs.map +1 -1
- package/dist/martyrs/src/modules/events/components/pages/Events.vue.js +66 -148
- package/dist/martyrs/src/modules/events/components/pages/Events.vue.js.map +1 -1
- package/dist/martyrs/src/modules/events/components/pages/EventsBackoffice.vue.cjs +3 -33
- 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 -33
- package/dist/martyrs/src/modules/events/components/pages/EventsBackoffice.vue.js.map +1 -1
- package/dist/martyrs/src/modules/events/components/pages/EventsSearch.vue.cjs +98 -0
- package/dist/martyrs/src/modules/events/components/pages/EventsSearch.vue.cjs.map +1 -0
- package/dist/martyrs/src/modules/events/components/pages/EventsSearch.vue.js +98 -0
- package/dist/martyrs/src/modules/events/components/pages/EventsSearch.vue.js.map +1 -0
- package/dist/martyrs/src/modules/events/components/sections/EventsHot.vue.cjs +4 -6
- package/dist/martyrs/src/modules/events/components/sections/EventsHot.vue.cjs.map +1 -1
- package/dist/martyrs/src/modules/events/components/sections/EventsHot.vue.js +4 -6
- package/dist/martyrs/src/modules/events/components/sections/EventsHot.vue.js.map +1 -1
- package/dist/martyrs/src/modules/events/components/sections/FeaturedEvents.vue.cjs +10 -8
- package/dist/martyrs/src/modules/events/components/sections/FeaturedEvents.vue.cjs.map +1 -1
- package/dist/martyrs/src/modules/events/components/sections/FeaturedEvents.vue.js +10 -8
- package/dist/martyrs/src/modules/events/components/sections/FeaturedEvents.vue.js.map +1 -1
- package/dist/martyrs/src/modules/events/components/sections/Feed.vue.cjs +1 -1
- package/dist/martyrs/src/modules/events/components/sections/Feed.vue.js +1 -1
- package/dist/martyrs/src/modules/events/components/sections/List.vue.cjs +4 -4
- package/dist/martyrs/src/modules/events/components/sections/List.vue.cjs.map +1 -1
- package/dist/martyrs/src/modules/events/components/sections/List.vue.js +4 -4
- package/dist/martyrs/src/modules/events/components/sections/List.vue.js.map +1 -1
- package/dist/martyrs/src/modules/events/components/sections/SelectDate.vue.cjs +190 -0
- package/dist/martyrs/src/modules/events/components/sections/SelectDate.vue.cjs.map +1 -0
- package/dist/martyrs/src/modules/events/components/sections/SelectDate.vue.js +190 -0
- package/dist/martyrs/src/modules/events/components/sections/SelectDate.vue.js.map +1 -0
- package/dist/martyrs/src/modules/events/events.client.js +12 -12
- package/dist/martyrs/src/modules/events/events.client.js.map +1 -1
- package/dist/martyrs/src/modules/events/router/events.cjs +15 -0
- package/dist/martyrs/src/modules/events/router/events.cjs.map +1 -1
- package/dist/martyrs/src/modules/events/router/events.js +15 -0
- package/dist/martyrs/src/modules/events/router/events.js.map +1 -1
- package/dist/martyrs/src/modules/gallery/components/sections/BackofficeGallery.vue.cjs +1 -1
- package/dist/martyrs/src/modules/gallery/components/sections/BackofficeGallery.vue.js +1 -1
- package/dist/martyrs/src/modules/globals/views/components/blocks/CardHeader.vue.cjs +2 -2
- package/dist/martyrs/src/modules/globals/views/components/blocks/CardHeader.vue.js +2 -2
- package/dist/martyrs/src/modules/globals/views/components/blocks/PopupDateSelector.vue.cjs +1 -1
- package/dist/martyrs/src/modules/globals/views/components/blocks/PopupDateSelector.vue.js +1 -1
- package/dist/martyrs/src/modules/globals/views/components/layouts/App.vue.cjs +2 -1
- package/dist/martyrs/src/modules/globals/views/components/layouts/App.vue.cjs.map +1 -1
- package/dist/martyrs/src/modules/globals/views/components/layouts/App.vue.js +1 -0
- package/dist/martyrs/src/modules/globals/views/components/layouts/App.vue.js.map +1 -1
- package/dist/martyrs/src/modules/globals/views/components/layouts/Client.vue.cjs +1 -1
- package/dist/martyrs/src/modules/globals/views/components/layouts/Client.vue.js +1 -1
- package/dist/martyrs/src/modules/globals/views/components/partials/Navigation.vue.cjs +1 -1
- package/dist/martyrs/src/modules/globals/views/components/partials/Navigation.vue.js +1 -1
- package/dist/martyrs/src/modules/marketplace/views/components/sections/SectionMenu.vue.cjs +1 -1
- package/dist/martyrs/src/modules/marketplace/views/components/sections/SectionMenu.vue.js +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.js +2 -2
- package/dist/martyrs/src/modules/organizations/components/pages/DepartmentEdit.vue.cjs +1 -1
- package/dist/martyrs/src/modules/organizations/components/pages/DepartmentEdit.vue.js +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 +1 -1
- package/dist/martyrs/src/modules/organizations/components/pages/Organization.vue.js +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/components/sections/DetailsTabSection.vue.cjs +1 -1
- package/dist/martyrs/src/modules/organizations/components/sections/DetailsTabSection.vue.js +1 -1
- package/dist/martyrs/src/modules/organizations/components/sections/Documents.vue.cjs +1 -1
- package/dist/martyrs/src/modules/organizations/components/sections/Documents.vue.js +1 -1
- package/dist/martyrs/src/modules/organizations/components/sections/Organizations.vue.cjs +1 -1
- package/dist/martyrs/src/modules/organizations/components/sections/Organizations.vue.js +1 -1
- package/dist/martyrs/src/modules/pages/views/components/blocks/CardPage.vue.cjs +1 -1
- package/dist/martyrs/src/modules/pages/views/components/blocks/CardPage.vue.js +1 -1
- package/dist/martyrs/src/modules/products/components/blocks/Images360.vue.cjs +1 -1
- package/dist/martyrs/src/modules/products/components/blocks/Images360.vue.js +1 -1
- package/dist/martyrs/src/modules/products/components/pages/Categories.vue.cjs +2 -2
- package/dist/martyrs/src/modules/products/components/pages/Categories.vue.js +2 -2
- package/dist/martyrs/src/modules/products/components/pages/CategoryEdit.vue.cjs +2 -2
- package/dist/martyrs/src/modules/products/components/pages/CategoryEdit.vue.js +2 -2
- package/dist/martyrs/src/modules/products/components/pages/ProductEdit.vue.cjs +1 -1
- package/dist/martyrs/src/modules/products/components/pages/ProductEdit.vue.js +1 -1
- package/dist/martyrs/src/modules/products/components/pages/ProductRecommmendation.vue.cjs +1 -1
- package/dist/martyrs/src/modules/products/components/pages/ProductRecommmendation.vue.js +1 -1
- package/dist/martyrs/src/modules/products/components/sections/EditProductInfo.vue.cjs +1 -1
- package/dist/martyrs/src/modules/products/components/sections/EditProductInfo.vue.js +1 -1
- package/dist/martyrs/src/modules/products/components/sections/PopularProducts.vue.cjs +1 -1
- package/dist/martyrs/src/modules/products/components/sections/PopularProducts.vue.js +1 -1
- package/dist/martyrs/src/modules/spots/components/layouts/Spots.vue.cjs +1 -1
- package/dist/martyrs/src/modules/spots/components/layouts/Spots.vue.js +1 -1
- package/dist/martyrs.cjs.js +1 -1
- package/dist/martyrs.css +1 -1
- package/dist/martyrs.es.js +1 -1
- package/dist/organizations.server.js +0 -1
- package/dist/organizations.server.mjs +0 -1
- package/dist/style.css +93 -6
- package/package.json +1 -1
- package/src/components/DatePicker/DatePicker.vue +1 -1
- package/src/components/EmptyState/EmptyState.vue +1 -1
- package/src/components/Media/Media.vue +1 -1
- package/src/components/Slider/Slider.native.vue +313 -0
- package/src/modules/auth/views/components/sections/FeaturedUsers.vue +2 -2
- package/src/modules/community/components/sections/HotPosts.vue +0 -1
- package/src/modules/events/components/blocks/CardEvent.vue +21 -7
- package/src/modules/events/components/pages/Event.vue +0 -20
- package/src/modules/events/components/pages/Events.vue +91 -141
- package/src/modules/events/components/pages/EventsBackoffice.vue +5 -3
- package/src/modules/events/components/pages/EventsSearch.vue +122 -0
- package/src/modules/events/components/sections/EventsHot.vue +3 -5
- package/src/modules/events/components/sections/FeaturedEvents.vue +45 -13
- package/src/modules/events/components/sections/List.vue +3 -3
- package/src/modules/events/components/sections/SelectDate.vue +217 -0
- package/src/modules/events/router/events.js +12 -0
- package/src/modules/globals/views/components/layouts/App.vue +1 -0
- package/src/modules/organizations/policies/organizations.policies.js +0 -1
- package/src/modules/products/components/pages/Product.old.vue +201 -0
- package/src/styles/base/all.scss +1 -0
- package/src/styles/typography.scss +22 -0
- package/dist/martyrs/src/components/Dropdown/Dropdown.vue.js.map +0 -1
- package/dist/martyrs/src/components/Loader/Loader.vue.js.map +0 -1
- package/dist/martyrs/src/components/Menu/Menu.vue2.cjs.map +0 -1
- package/dist/martyrs/src/components/Menu/Menu.vue2.js.map +0 -1
|
@@ -1,10 +1,8 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<section class="
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
<div class="gap-medium pos-t-0 pos-sticky z-index-2 radius-medium ">
|
|
2
|
+
<section class="bg-white">
|
|
3
|
+
<div class="gap-medium pos-t-0 pos-sticky z-index-3 radius-medium ">
|
|
6
4
|
<DatePicker
|
|
7
|
-
|
|
5
|
+
@update:date="handleDatePickerChange"
|
|
8
6
|
:locale="$i18n.locale"
|
|
9
7
|
:options="{
|
|
10
8
|
dateStart: 0,
|
|
@@ -16,7 +14,7 @@
|
|
|
16
14
|
|
|
17
15
|
<section class="pd-big mobile:pd-thin radius-tr-medium radius-tl-medium bg-white">
|
|
18
16
|
|
|
19
|
-
<div class="gap-medium radius-medium mn-b-
|
|
17
|
+
<div class="gap-medium radius-medium mn-b-semi">
|
|
20
18
|
<h2
|
|
21
19
|
class="mn-b-small"
|
|
22
20
|
>
|
|
@@ -34,87 +32,18 @@
|
|
|
34
32
|
|
|
35
33
|
<EventsHot
|
|
36
34
|
:options="{
|
|
37
|
-
status: 'featured'
|
|
38
35
|
}"
|
|
39
|
-
class=" mn-big-negative pd-big"
|
|
40
36
|
/>
|
|
41
37
|
</div>
|
|
42
38
|
|
|
43
39
|
|
|
44
|
-
<
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
</h3>
|
|
50
|
-
<FeaturedEvents class="gap-thin"/>
|
|
51
|
-
</div>
|
|
52
|
-
|
|
53
|
-
<div class="gap-medium radius-medium mn-b-medium">
|
|
54
|
-
<h3 class="mn-b-small">
|
|
55
|
-
Explore by Date
|
|
56
|
-
</h3>
|
|
57
|
-
|
|
58
|
-
<div class="cols-4 gap-thin">
|
|
59
|
-
<div
|
|
60
|
-
v-for="(date, index) in dateOptions"
|
|
61
|
-
:key="index"
|
|
62
|
-
class="bg-light radius-medium pd-medium cursor-pointer"
|
|
63
|
-
@click="selectDate(date)"
|
|
64
|
-
>
|
|
65
|
-
<h4 class="t-medium">{{ date.label }}</h4>
|
|
66
|
-
<div class="text-small text-muted">{{ date.range }}</div>
|
|
67
|
-
</div>
|
|
68
|
-
</div>
|
|
69
|
-
</div>
|
|
70
|
-
|
|
71
|
-
<div class="gap-medium radius-medium mn-b-medium">
|
|
72
|
-
|
|
73
|
-
<h3
|
|
74
|
-
class="mn-b-small"
|
|
75
|
-
>
|
|
76
|
-
Popular Events
|
|
77
|
-
</h3>
|
|
78
|
-
|
|
79
|
-
<Feed
|
|
80
|
-
:showLoadMore="false"
|
|
81
|
-
:LoadMore="false"
|
|
82
|
-
:states="{
|
|
83
|
-
empty: {
|
|
84
|
-
title: 'No Events Today',
|
|
85
|
-
description: 'Currently, there are no events available.'
|
|
86
|
-
}
|
|
87
|
-
}"
|
|
88
|
-
:store="{
|
|
89
|
-
read: (options) => events.read(options),
|
|
90
|
-
state: events.state
|
|
91
|
-
}"
|
|
92
|
-
:options="{
|
|
93
|
-
user: auth.state.user._id,
|
|
94
|
-
limit: 3,
|
|
95
|
-
page: 1
|
|
96
|
-
}"
|
|
97
|
-
v-slot="{
|
|
98
|
-
items
|
|
99
|
-
}"
|
|
100
|
-
class="cols-3 gap-thin"
|
|
101
|
-
>
|
|
102
|
-
<CardEvent
|
|
103
|
-
@click="$router.push({name: 'Event', params: {url: event.url}})"
|
|
104
|
-
v-for="(event,index) in items"
|
|
105
|
-
:key="event._id"
|
|
106
|
-
:event="event"
|
|
107
|
-
:user="auth.state.user._id"
|
|
108
|
-
:type="'normal'"
|
|
109
|
-
class="bg-light radius-big mn-b-thin"
|
|
110
|
-
>
|
|
111
|
-
</CardEvent>
|
|
112
|
-
</Feed>
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
</div>
|
|
40
|
+
<FeaturedEvents class="mn-b-semi"/>
|
|
41
|
+
<SelectDate
|
|
42
|
+
class="mn-b-semi"
|
|
43
|
+
@date-selected="handleDateSelection"
|
|
44
|
+
/>
|
|
116
45
|
|
|
117
|
-
<div class="gap-medium radius-medium mn-b-
|
|
46
|
+
<div class="gap-medium radius-medium mn-b-semi">
|
|
118
47
|
|
|
119
48
|
<h3
|
|
120
49
|
class="mn-b-small"
|
|
@@ -139,12 +68,12 @@
|
|
|
139
68
|
sort: 'numberOfMemberships',
|
|
140
69
|
contain: ['blogposts'],
|
|
141
70
|
lookup: ['blogposts'],
|
|
142
|
-
limit:
|
|
71
|
+
limit: 6
|
|
143
72
|
}"
|
|
144
73
|
v-slot="{
|
|
145
74
|
items
|
|
146
75
|
}"
|
|
147
|
-
class="cols-
|
|
76
|
+
class="cols-2 gap-thin"
|
|
148
77
|
>
|
|
149
78
|
<CardOrganization
|
|
150
79
|
v-for="organization in items"
|
|
@@ -162,7 +91,7 @@
|
|
|
162
91
|
|
|
163
92
|
</div>
|
|
164
93
|
|
|
165
|
-
<div class="gap-medium radius-medium
|
|
94
|
+
<div class="gap-medium radius-medium">
|
|
166
95
|
|
|
167
96
|
<h3
|
|
168
97
|
class="mn-b-small"
|
|
@@ -185,7 +114,7 @@
|
|
|
185
114
|
}"
|
|
186
115
|
:options="{
|
|
187
116
|
user: auth.state.user._id,
|
|
188
|
-
limit:
|
|
117
|
+
limit: 9
|
|
189
118
|
}"
|
|
190
119
|
v-slot="{
|
|
191
120
|
items
|
|
@@ -199,7 +128,7 @@
|
|
|
199
128
|
:event="event"
|
|
200
129
|
:user="auth.state.user._id"
|
|
201
130
|
:type="'normal'"
|
|
202
|
-
class="bg-light radius-big
|
|
131
|
+
class="bg-light radius-big"
|
|
203
132
|
>
|
|
204
133
|
</CardEvent>
|
|
205
134
|
</Feed>
|
|
@@ -222,6 +151,7 @@
|
|
|
222
151
|
import CitySelection from '@martyrs/src/modules/globals/views/components/partials/CitySelection.vue';
|
|
223
152
|
|
|
224
153
|
import FeaturedEvents from '@martyrs/src/modules/events/components/sections/FeaturedEvents.vue';
|
|
154
|
+
import SelectDate from '@martyrs/src/modules/events/components/sections/SelectDate.vue';
|
|
225
155
|
|
|
226
156
|
import EventsHot from '@martyrs/src/modules/events/components/sections/EventsHot.vue';
|
|
227
157
|
import CardEvent from '@martyrs/src/modules/events/components/blocks/CardEvent.vue';
|
|
@@ -242,64 +172,48 @@
|
|
|
242
172
|
const route = useRoute();
|
|
243
173
|
const router = useRouter();
|
|
244
174
|
|
|
245
|
-
let baseDate = new Date();
|
|
246
|
-
const formattedDate = formatDateForRouter(baseDate);
|
|
247
|
-
|
|
248
|
-
const dateOptions = [
|
|
249
|
-
{ label: 'Today', range: 'Tue, 4th Feb' },
|
|
250
|
-
{ label: 'Tomorrow', range: 'Wed, 5th Feb' },
|
|
251
|
-
{ label: 'This Weekend', range: '8th - 9th Feb' },
|
|
252
|
-
{ label: 'This Week', range: '3rd - 9th Feb' },
|
|
253
|
-
{ label: 'Next Weekend', range: '15th - 16th Feb' },
|
|
254
|
-
{ label: 'Next Week', range: '10th - 16th Feb' },
|
|
255
|
-
{ label: 'This Month', range: '1st - 28th Feb' },
|
|
256
|
-
{ label: 'Custom Date', range: 'Pick Range' }
|
|
257
|
-
];
|
|
258
|
-
|
|
259
|
-
const selectDate = (date) => {
|
|
260
|
-
// Здесь можно добавить логику выбора даты
|
|
261
|
-
console.log('Selected date:', date);
|
|
262
|
-
};
|
|
175
|
+
// let baseDate = new Date();
|
|
176
|
+
// const formattedDate = formatDateForRouter(baseDate);
|
|
263
177
|
|
|
264
|
-
function formatDateForRouter(date) {
|
|
265
|
-
|
|
266
|
-
}
|
|
178
|
+
// function formatDateForRouter(date) {
|
|
179
|
+
// return `${date.getDate().toString().padStart(2, '0')}${(date.getMonth() + 1).toString().padStart(2, '0')}${date.getFullYear()}`;
|
|
180
|
+
// }
|
|
267
181
|
|
|
268
|
-
if (route.query) {
|
|
269
|
-
|
|
182
|
+
// if (route.query) {
|
|
183
|
+
// const query = route.query;
|
|
270
184
|
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
} else {
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
}
|
|
284
|
-
|
|
285
|
-
watch(() => events.state.filter, (newFilterValue, oldFilterValue) => { // <-- Modified
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
}, { deep: true })
|
|
185
|
+
// const newFilterValue = {
|
|
186
|
+
// tags: query.tags ? query.tags.split(',') : null,
|
|
187
|
+
// date: query.date ? query.date : null,
|
|
188
|
+
// };
|
|
189
|
+
|
|
190
|
+
// events.state.filter = newFilterValue; // <-- Modified
|
|
191
|
+
// } else {
|
|
192
|
+
// const newFilterValue = {
|
|
193
|
+
// date: formattedDate,
|
|
194
|
+
// };
|
|
195
|
+
|
|
196
|
+
// events.state.filter = newFilterValue;
|
|
197
|
+
// }
|
|
198
|
+
|
|
199
|
+
// watch(() => events.state.filter, (newFilterValue, oldFilterValue) => { // <-- Modified
|
|
200
|
+
// const query = { ...route.query };
|
|
201
|
+
|
|
202
|
+
// Object.keys(oldFilterValue).forEach(key => {
|
|
203
|
+
// if (query[key]) {
|
|
204
|
+
// delete query[key];
|
|
205
|
+
// }
|
|
206
|
+
// });
|
|
207
|
+
|
|
208
|
+
// const newQueryValues = Object.fromEntries(
|
|
209
|
+
// Object.entries(newFilterValue)
|
|
210
|
+
// .filter(([key, value]) => (Array.isArray(value) && value.length > 0) || (typeof value === 'string' && value))
|
|
211
|
+
// .map(([key, value]) => [key, Array.isArray(value) ? value.join(',') : value])
|
|
212
|
+
// );
|
|
213
|
+
// Object.assign(query, newQueryValues);
|
|
214
|
+
|
|
215
|
+
// router.push({ query });
|
|
216
|
+
// }, { deep: true })
|
|
303
217
|
|
|
304
218
|
const isCitySelectionPopup = ref(false)
|
|
305
219
|
|
|
@@ -309,6 +223,42 @@
|
|
|
309
223
|
function closeCitySelectionPopup() {
|
|
310
224
|
isCitySelectionPopup.value = false;
|
|
311
225
|
}
|
|
226
|
+
|
|
227
|
+
const handleDatePickerChange = (date) => {
|
|
228
|
+
if (date) {
|
|
229
|
+
// Убедимся, что у нас действительно объект даты
|
|
230
|
+
const selectedDate = new Date(date);
|
|
231
|
+
|
|
232
|
+
// Создаем начало дня в локальной временной зоне
|
|
233
|
+
const startOfDay = new Date(selectedDate);
|
|
234
|
+
startOfDay.setHours(0, 0, 0, 0);
|
|
235
|
+
|
|
236
|
+
// Создаем конец дня в локальной временной зоне
|
|
237
|
+
const endOfDay = new Date(selectedDate);
|
|
238
|
+
endOfDay.setHours(23, 59, 59, 999);
|
|
239
|
+
|
|
240
|
+
router.push({
|
|
241
|
+
name: 'Events Search',
|
|
242
|
+
query: {
|
|
243
|
+
period: 'day',
|
|
244
|
+
periodStart: startOfDay.toISOString(),
|
|
245
|
+
periodEnd: endOfDay.toISOString()
|
|
246
|
+
}
|
|
247
|
+
});
|
|
248
|
+
}
|
|
249
|
+
};
|
|
250
|
+
|
|
251
|
+
// Update the existing handleDateSelection method
|
|
252
|
+
const handleDateSelection = (dateData) => {
|
|
253
|
+
console.log('Selected date data:', dateData);
|
|
254
|
+
router.push({
|
|
255
|
+
name: 'Events Search',
|
|
256
|
+
query: {
|
|
257
|
+
periodStart: dateData.startDate.toISOString(),
|
|
258
|
+
periodEnd: dateData.endDate.toISOString()
|
|
259
|
+
}
|
|
260
|
+
});
|
|
261
|
+
};
|
|
312
262
|
</script>
|
|
313
263
|
|
|
314
264
|
<style lang="scss">
|
|
@@ -58,14 +58,16 @@
|
|
|
58
58
|
:options="{
|
|
59
59
|
user: auth.state.user._id,
|
|
60
60
|
owner: route.params._id,
|
|
61
|
-
creator: route.params.user
|
|
61
|
+
creator: route.params.user,
|
|
62
|
+
sortParam: 'date.start',
|
|
63
|
+
sortOrder: 'desc'
|
|
62
64
|
}"
|
|
63
65
|
v-slot="{
|
|
64
66
|
items
|
|
65
67
|
}"
|
|
66
68
|
class="cols-1 gap-thin"
|
|
67
69
|
>
|
|
68
|
-
<Table
|
|
70
|
+
<!-- <Table
|
|
69
71
|
class="radius-semi bg-white"
|
|
70
72
|
:items="items"
|
|
71
73
|
:columns="[{
|
|
@@ -93,7 +95,7 @@
|
|
|
93
95
|
label: 'Date',
|
|
94
96
|
formatter: (value) => new Date(value).toLocaleDateString()
|
|
95
97
|
}]"
|
|
96
|
-
/>
|
|
98
|
+
/> -->
|
|
97
99
|
<CardEvent
|
|
98
100
|
@click="$router.push({name: 'Event', params: {url: event.url}})"
|
|
99
101
|
v-for="(event,index) in items"
|
|
@@ -0,0 +1,122 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<section class="pd-big mobile:pd-thin bg-white">
|
|
3
|
+
<h3 class="mn-b-small">
|
|
4
|
+
{{ pageTitle }}
|
|
5
|
+
</h3>
|
|
6
|
+
<Feed
|
|
7
|
+
:search="true"
|
|
8
|
+
:showLoadMore="false"
|
|
9
|
+
:states="{
|
|
10
|
+
empty: {
|
|
11
|
+
title: 'No Events',
|
|
12
|
+
description: 'Currently, there are no events available.'
|
|
13
|
+
}
|
|
14
|
+
}"
|
|
15
|
+
:store="{
|
|
16
|
+
read: (options) => events.read(options),
|
|
17
|
+
state: events.state
|
|
18
|
+
}"
|
|
19
|
+
:options="feedOptions"
|
|
20
|
+
v-slot="{ items }"
|
|
21
|
+
class="cols-1 gap-thin"
|
|
22
|
+
>
|
|
23
|
+
<CardEvent
|
|
24
|
+
@click="$router.push({name: 'Event', params: {url: event.url}})"
|
|
25
|
+
v-for="(event,index) in items"
|
|
26
|
+
:key="event._id"
|
|
27
|
+
:event="event"
|
|
28
|
+
:user="auth.state.user._id"
|
|
29
|
+
:type="'normal'"
|
|
30
|
+
class="bg-light radius-big"
|
|
31
|
+
>
|
|
32
|
+
</CardEvent>
|
|
33
|
+
</Feed>
|
|
34
|
+
</section>
|
|
35
|
+
</template>
|
|
36
|
+
|
|
37
|
+
<script setup="props">
|
|
38
|
+
import { computed, onMounted, watch, ref } from 'vue';
|
|
39
|
+
import { useRoute, useRouter } from 'vue-router';
|
|
40
|
+
import Feed from '@martyrs/src/components/Feed/Feed.vue'
|
|
41
|
+
import DatePicker from '@martyrs/src/components/DatePicker/DatePicker.vue'
|
|
42
|
+
import CardEvent from '@martyrs/src/modules/events/components/blocks/CardEvent.vue';
|
|
43
|
+
// Import state
|
|
44
|
+
import * as auth from '@martyrs/src/modules/auth/views/store/auth'
|
|
45
|
+
import * as events from '@martyrs/src/modules/events/store/events.js';
|
|
46
|
+
|
|
47
|
+
import { useI18n } from 'vue-i18n';
|
|
48
|
+
|
|
49
|
+
// State
|
|
50
|
+
const route = useRoute();
|
|
51
|
+
const router = useRouter();
|
|
52
|
+
const { locale, t } = useI18n();
|
|
53
|
+
|
|
54
|
+
// Generate feed options based on route query parameters
|
|
55
|
+
const feedOptions = computed(() => {
|
|
56
|
+
const options = {
|
|
57
|
+
user: auth.state.user._id,
|
|
58
|
+
limit: 9
|
|
59
|
+
};
|
|
60
|
+
|
|
61
|
+
if (route.query.periodStart) {
|
|
62
|
+
options.periodStart = route.query.periodStart;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
if (route.query.periodEnd) {
|
|
66
|
+
options.periodEnd = route.query.periodEnd;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
return options;
|
|
70
|
+
});
|
|
71
|
+
|
|
72
|
+
// Format date for display in title
|
|
73
|
+
const formatDate = (dateString, format = 'long') => {
|
|
74
|
+
try {
|
|
75
|
+
const date = new Date(dateString);
|
|
76
|
+
|
|
77
|
+
if (isNaN(date.getTime())) {
|
|
78
|
+
return '';
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
return new Intl.DateTimeFormat(locale.value,
|
|
82
|
+
format === 'long' ?
|
|
83
|
+
{ weekday: 'long', year: 'numeric', month: 'long', day: 'numeric' } :
|
|
84
|
+
{ year: 'numeric', month: 'short', day: 'numeric' }
|
|
85
|
+
).format(date);
|
|
86
|
+
} catch (error) {
|
|
87
|
+
console.error('Error formatting date:', error);
|
|
88
|
+
return dateString;
|
|
89
|
+
}
|
|
90
|
+
};
|
|
91
|
+
|
|
92
|
+
// Generate page title based on query parameters
|
|
93
|
+
const pageTitle = computed(() => {
|
|
94
|
+
const startDate = route.query.periodStart;
|
|
95
|
+
const endDate = route.query.periodEnd;
|
|
96
|
+
|
|
97
|
+
if (startDate && endDate) {
|
|
98
|
+
// Check if the dates represent a single day by comparing just the date parts
|
|
99
|
+
const start = new Date(startDate);
|
|
100
|
+
const end = new Date(endDate);
|
|
101
|
+
|
|
102
|
+
// Compare only the date portions (year, month, day)
|
|
103
|
+
const isSameDay = start.getFullYear() === end.getFullYear() &&
|
|
104
|
+
start.getMonth() === end.getMonth() &&
|
|
105
|
+
start.getDate() === end.getDate();
|
|
106
|
+
|
|
107
|
+
if (isSameDay) {
|
|
108
|
+
return `Events on ${formatDate(startDate)}`;
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
// Otherwise it's a date range
|
|
112
|
+
return `Events from ${formatDate(startDate, 'short')} to ${formatDate(endDate, 'short')}`;
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
// Fallback case
|
|
116
|
+
return 'All Events';
|
|
117
|
+
});
|
|
118
|
+
</script>
|
|
119
|
+
|
|
120
|
+
<style lang="scss">
|
|
121
|
+
|
|
122
|
+
</style>
|
|
@@ -1,11 +1,9 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<
|
|
2
|
+
<SliderNative
|
|
3
3
|
:store="{
|
|
4
4
|
read: (options) => events.read({
|
|
5
5
|
skip,
|
|
6
6
|
limit,
|
|
7
|
-
user: userId,
|
|
8
|
-
period,
|
|
9
7
|
status
|
|
10
8
|
})
|
|
11
9
|
}"
|
|
@@ -44,14 +42,14 @@
|
|
|
44
42
|
</div>
|
|
45
43
|
</router-link>
|
|
46
44
|
|
|
47
|
-
</
|
|
45
|
+
</SliderNative>
|
|
48
46
|
</template>
|
|
49
47
|
|
|
50
48
|
<script setup>
|
|
51
49
|
import { ref, onMounted, defineProps } from 'vue'
|
|
52
50
|
|
|
53
51
|
import Feed from '@martyrs/src/components/Feed/Feed.vue'
|
|
54
|
-
import
|
|
52
|
+
import SliderNative from '@martyrs/src/components/Slider/Slider.native.vue'
|
|
55
53
|
import Media from '@martyrs/src/components/Media/Media.vue'
|
|
56
54
|
|
|
57
55
|
import * as events from '@martyrs/src/modules/events/store/events.js';
|
|
@@ -1,32 +1,30 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<div class="
|
|
3
|
-
|
|
4
|
-
<
|
|
2
|
+
<div class="columns-wrapper scroll-hide gap-thin">
|
|
3
|
+
<div class="column flex flex-column flex-child-default">
|
|
4
|
+
<h3
|
|
5
5
|
class="mn-b-small"
|
|
6
6
|
>
|
|
7
7
|
Planned
|
|
8
|
-
</
|
|
8
|
+
</h3>
|
|
9
9
|
<List
|
|
10
10
|
:user="auth.state.user._id"
|
|
11
|
-
class="bg-
|
|
11
|
+
class="bg-light o-hidden h-100 pd-thin radius-medium"
|
|
12
12
|
:phase="'planned'"
|
|
13
13
|
/>
|
|
14
14
|
</div>
|
|
15
15
|
|
|
16
|
-
<div class="
|
|
17
|
-
<
|
|
16
|
+
<div class="column flex flex-column flex-child-default">
|
|
17
|
+
<h3
|
|
18
18
|
class="mn-b-small"
|
|
19
19
|
>
|
|
20
20
|
Finished
|
|
21
|
-
</
|
|
21
|
+
</h3>
|
|
22
22
|
<List
|
|
23
23
|
:user="auth.state.user._id"
|
|
24
|
-
class="bg-
|
|
24
|
+
class="bg-light o-hidden h-100 pd-thin radius-medium"
|
|
25
25
|
:phase="'finished'"
|
|
26
26
|
/>
|
|
27
27
|
</div>
|
|
28
|
-
|
|
29
|
-
|
|
30
28
|
</div>
|
|
31
29
|
</template>
|
|
32
30
|
|
|
@@ -44,6 +42,40 @@
|
|
|
44
42
|
const router = useRouter();
|
|
45
43
|
</script>
|
|
46
44
|
|
|
47
|
-
<style lang="scss">
|
|
45
|
+
<style lang="scss" scoped>
|
|
46
|
+
.columns-container {
|
|
47
|
+
width: 100%;
|
|
48
|
+
overflow: hidden;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
.columns-wrapper {
|
|
52
|
+
display: flex;
|
|
53
|
+
width: 100%;
|
|
48
54
|
|
|
49
|
-
|
|
55
|
+
@media (min-width: 768px) {
|
|
56
|
+
/* Десктоп: 2 колонки рядом */
|
|
57
|
+
display: grid;
|
|
58
|
+
grid-template-columns: 1fr 1fr;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
@media (max-width: 767px) {
|
|
62
|
+
/* Мобильные устройства: горизонтальный скролл */
|
|
63
|
+
overflow-x: auto;
|
|
64
|
+
scroll-snap-type: x mandatory;
|
|
65
|
+
-webkit-overflow-scrolling: touch;
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
.column {
|
|
70
|
+
@media (max-width: 767px) {
|
|
71
|
+
/* Настройки для мобильных устройств */
|
|
72
|
+
max-width: 90%;
|
|
73
|
+
flex: 0 0 auto;
|
|
74
|
+
scroll-snap-align: start;
|
|
75
|
+
|
|
76
|
+
&:last-child {
|
|
77
|
+
margin-right: 0;
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
</style>
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
<Loader v-if="isLoading" class="z-index-5 pos-t-50 left-t-50 pos-absolute"/>
|
|
7
7
|
</transition> -->
|
|
8
8
|
|
|
9
|
-
<TransitionGroup tag="ul" name="fade" class="o-hidden bg-
|
|
9
|
+
<TransitionGroup tag="ul" name="fade" class="o-hidden bg-white radius-medium">
|
|
10
10
|
<SkeletonEventShort
|
|
11
11
|
v-if="isLoading"
|
|
12
12
|
v-for="i in limit" :key="i"
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
v-if="!isLoading && eventsList.length < 1"
|
|
21
21
|
title="No Planned Events "
|
|
22
22
|
description="No events available. Please check back later."
|
|
23
|
-
class="pd-medium
|
|
23
|
+
class="pd-medium h-100 bg-white radius-medium"
|
|
24
24
|
/>
|
|
25
25
|
</transition>
|
|
26
26
|
|
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
:event="event"
|
|
35
35
|
:owner="user"
|
|
36
36
|
:type="'short'"
|
|
37
|
-
class="pd-medium"
|
|
37
|
+
class="pd-medium mobile:pd-thin"
|
|
38
38
|
:class="{
|
|
39
39
|
'br-b br-solid br-black-transp-10': index !== eventsList.length - 1
|
|
40
40
|
}"
|