@ozdao/prometheus-framework 0.2.30 → 0.2.31
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/addMembersQuantity-3505b6f3.mjs +98 -0
- package/dist/addMembersQuantity-fb552ca0.js +97 -0
- package/dist/auth.server.js +6 -9
- package/dist/auth.server.mjs +6 -9
- package/dist/community.server.js +28 -21
- package/dist/community.server.mjs +28 -21
- package/dist/events.server.js +1 -1
- package/dist/events.server.mjs +1 -1
- package/dist/files.server.js +114 -111
- package/dist/files.server.mjs +114 -111
- package/dist/gallery.server.js +3 -3
- package/dist/gallery.server.mjs +3 -3
- package/dist/globals.server.js +1 -1
- package/dist/globals.server.mjs +1 -1
- package/dist/index-a8dffc0c.js +213 -0
- package/dist/index-d769324d.mjs +214 -0
- package/dist/mailing-37c2ba41.mjs +68 -0
- package/dist/mailing-fe16a26a.js +67 -0
- package/dist/main.css +1 -1
- package/dist/middlewares.server.js +1 -1
- package/dist/middlewares.server.mjs +1 -1
- package/dist/organizations.server.js +125 -25
- package/dist/organizations.server.mjs +125 -25
- package/dist/prometheus-framework.cjs.js +30 -29
- package/dist/prometheus-framework.es.js +2478 -2282
- package/dist/reports.server.js +1 -1
- package/dist/reports.server.mjs +1 -1
- package/dist/users.server.js +1 -1
- package/dist/users.server.mjs +1 -1
- package/package.json +4 -2
- package/src/assets/images/logo.svg +7 -7
- package/src/components/Block/Block.vue +77 -0
- package/src/components/Breadcrumbs/Breadcrumbs.vue +2 -2
- package/src/components/Button/Button.vue +32 -227
- package/src/components/Checkbox/Checkbox.vue +1 -1
- package/src/components/Chips/Chips.vue +8 -8
- package/src/components/DatePicker/DatePicker.vue +3 -4
- package/src/components/EditImages/EditImages.vue +32 -14
- package/src/{modules/globals/components/sections → components/Feed}/Feed.vue +60 -45
- package/src/components/FieldBig/FieldBig.vue +16 -5
- package/src/components/FieldPhone/FieldPhone.vue +2 -1
- package/src/components/Footer/Footer.vue +36 -27
- package/src/components/Header/Header.vue +161 -166
- package/src/components/Loader/Loader.vue +9 -2
- package/src/components/LocationMarker/LocationMarker.vue +38 -12
- package/src/components/LocationSelection/LocationSelection.vue +67 -75
- package/src/components/Magnifier/Magnifier.vue +3 -3
- package/src/components/Navigation/Navigation.vue +16 -16
- package/src/components/Popup/Popup.vue +8 -6
- package/src/components/Select/Select.vue +35 -6
- package/src/components/SelectMulti/SelectMulti.vue +5 -13
- package/src/components/Shader/Shader.vue +128 -0
- package/src/components/Sidebar/Sidebar.vue +71 -35
- package/src/components/Spoiler/Spoiler.vue +1 -1
- package/src/components/Tab/Tab.vue +1 -1
- package/src/components/Tooltip/Tooltip.vue +1 -1
- package/src/components/UploadImage/UploadImage.vue +4 -4
- package/src/components/UploadImageMultiple/UploadImageMultiple.vue +54 -10
- package/src/modules/applications/controllers/applications.controller.js +0 -1
- package/src/modules/auth/components/pages/EnterCode.vue +1 -1
- package/src/modules/auth/components/pages/EnterPassword.vue +3 -3
- package/src/modules/auth/components/pages/ResetPassword.vue +1 -2
- package/src/modules/auth/components/pages/SignIn.vue +26 -10
- package/src/modules/auth/components/pages/SignUp.vue +1 -2
- package/src/modules/auth/controllers/twofa.controller.js +4 -4
- package/src/modules/auth/localization/EnterCode.json +2 -2
- package/src/modules/auth/localization/EnterPassword.json +2 -2
- package/src/modules/auth/localization/ResetPassword.json +2 -2
- package/src/modules/auth/localization/SignIn.json +3 -3
- package/src/modules/auth/localization/SignUp.json +3 -3
- package/src/modules/auth/utils/server/verifyAppleIdToken.js +0 -1
- package/src/modules/backoffice/components/layouts/Backoffice.vue +1 -1
- package/src/modules/backoffice/components/pages/Dashboard.vue +171 -120
- package/src/modules/backoffice/router/backoffice.js +119 -129
- package/src/modules/chats/components/blocks/ChatMessage.vue +25 -0
- package/src/modules/chats/components/pages/ChatPage.vue +50 -0
- package/src/modules/chats/components/sections/ChatWindow.vue +38 -0
- package/src/modules/chats/controllers/chats.controller.js +32 -0
- package/src/modules/chats/models/chat.model.js +26 -0
- package/src/modules/chats/routes/chats.routes.js +53 -0
- package/src/modules/chats/store/chat.store.js +61 -0
- package/src/modules/community/components/blocks/CardBlogpost.vue +19 -4
- package/src/modules/community/components/layouts/Community.vue +96 -39
- package/src/modules/community/components/pages/Blog.vue +4 -3
- package/src/modules/community/components/pages/BlogPost.vue +10 -1
- package/src/modules/community/components/pages/CreateBlogPost.vue +36 -17
- package/src/modules/community/components/sections/HotPosts.vue +3 -3
- package/src/modules/community/components/sections/JoinUs.vue +19 -13
- package/src/modules/community/controllers/blog.controller.js +3 -4
- package/src/modules/community/controllers/utils/queryProcessor.js +16 -17
- package/src/modules/community/models/blogpost.model.js +6 -3
- package/src/modules/community/store/blogposts.js +1 -0
- package/src/modules/constructor/components/elements/Embed.vue +12 -1
- package/src/modules/constructor/components/elements/ImageUpload.vue +2 -2
- package/src/modules/constructor/components/elements/Textarea.vue +6 -1
- package/src/modules/constructor/components/elements/Video.vue +79 -0
- package/src/modules/constructor/components/elements/VideoPlayer.vue +59 -0
- package/src/modules/constructor/components/elements/Youtube.vue +52 -0
- package/src/modules/constructor/components/sections/Constructor.vue +27 -3
- package/src/modules/events/components/layouts/layoutEvents.vue +7 -28
- package/src/modules/files/controllers/files.controller.js +9 -22
- package/src/modules/files/middlewares/server/index.js +2 -2
- package/src/modules/files/middlewares/server/middlewareBusboy.js +137 -0
- package/src/modules/files/routes/files.routes.js +9 -9
- package/src/modules/globals/localization/vue-i18n.js +8 -1
- package/src/modules/globals/mixins/mixins.js +23 -13
- package/src/modules/globals/router/routerGuards.js +2 -2
- package/src/modules/globals/store/globals.js +86 -9
- package/src/modules/globals/utils/mailing.js +24 -3
- package/src/modules/icons/entities/IconCommunity.vue +4 -4
- package/src/modules/icons/entities/IconEvents.vue +1 -1
- package/src/modules/icons/entities/IconGroups.vue +1 -1
- package/src/modules/icons/entities/IconPrice.vue +5 -0
- package/src/modules/icons/entities/IconProfile.vue +5 -0
- package/src/modules/icons/entities/IconShopcart.vue +5 -0
- package/src/modules/icons/entities/IconTime.vue +5 -0
- package/src/modules/icons/icons.client.js +4 -0
- package/src/modules/icons/labels/LabelAppStore.vue +24 -24
- package/src/modules/icons/labels/LabelGooglePlay.vue +9 -9
- package/src/modules/icons/logos/Logotype.vue +20 -0
- package/src/modules/icons/navigation/IconAdd.vue +17 -0
- package/src/modules/icons/navigation/IconChevronBottom.vue +18 -0
- package/src/modules/icons/navigation/IconChevronRight.vue +3 -3
- package/src/modules/icons/navigation/IconDelete.vue +19 -0
- package/src/modules/icons/navigation/IconMinus.vue +15 -0
- package/src/modules/icons/navigation/IconSearch.vue +17 -0
- package/src/modules/icons/navigation/IconUpload.vue +16 -0
- package/src/modules/icons/placeholders/PlaceholderImage.vue +5 -0
- package/src/modules/icons/placeholders/PlaceholderOrganizationPic.vue +20 -0
- package/src/modules/icons/placeholders/PlaceholderUserpic.vue +4 -18
- package/src/modules/icons/socials/instagram.vue +1 -1
- package/src/modules/icons/socials/line.vue +1 -1
- package/src/modules/icons/socials/reddit.vue +1 -1
- package/src/modules/icons/socials/telegram.vue +1 -1
- package/src/modules/icons/socials/twitter.vue +1 -1
- package/src/modules/icons/socials/youtube.vue +1 -1
- package/src/modules/landing/components/sections/Guide.vue +92 -0
- package/src/modules/landing/components/sections/MobileApp.vue +23 -12
- package/src/modules/marketplace/components/layouts/Marketplace.vue +76 -188
- package/src/modules/marketplace/components/pages/Catalog.vue +65 -119
- package/src/modules/marketplace/components/sections/Filters.vue +195 -0
- package/src/modules/marketplace/store/marketplace.js +2 -2
- package/src/modules/middlewares/client/auth.validation.js +0 -6
- package/src/modules/middlewares/client/states.validation.js +2 -8
- package/src/modules/middlewares/server/authJwt.js +1 -1
- package/src/modules/mobile/components/Menu/MenuItem.vue +3 -6
- package/src/modules/openai/controllers/openai.controller.js +0 -1
- package/src/modules/orders/components/blocks/CardOrder.vue +166 -0
- package/src/modules/orders/components/blocks/CardOrderItem.vue +59 -66
- package/src/modules/orders/components/blocks/Positions.vue +4 -4
- package/src/modules/orders/components/pages/EditOrder.vue +78 -142
- package/src/modules/orders/components/pages/FormOrder.vue +192 -0
- package/src/modules/orders/components/pages/Order.vue +326 -120
- package/src/modules/orders/components/pages/Orders.vue +13 -9
- package/src/modules/orders/components/pages/{ViewOrder.vue → Orders_refact.vue} +13 -10
- package/src/modules/orders/components/partials/ShopCart.vue +22 -13
- package/src/modules/orders/components/sections/EmptyState.vue +1 -1
- package/src/modules/orders/components/sections/{Form.vue → FormOrderDetails.vue} +38 -106
- package/src/modules/orders/controllers/orders.controller.js +37 -28
- package/src/modules/orders/models/order.model.js +39 -9
- package/src/modules/orders/router/orders.router.js +23 -2
- package/src/modules/orders/routes/orders.routes.js +14 -17
- package/src/modules/orders/store/orders.js +24 -9
- package/src/modules/orders/store/shopcart.js +20 -19
- package/src/modules/organizations/components/blocks/CardDepartment.vue +1 -1
- package/src/modules/organizations/components/blocks/CardOrganization.vue +98 -46
- package/src/modules/organizations/components/blocks/Rating.vue +1 -1
- package/src/modules/organizations/components/blocks/Socials.vue +11 -3
- package/src/modules/organizations/components/elements/ButtonToggleMembership.vue +1 -1
- package/src/modules/organizations/components/pages/Department.vue +1 -1
- package/src/modules/organizations/components/pages/DepartmentEdit.vue +4 -4
- package/src/modules/organizations/components/pages/Members.vue +6 -4
- package/src/modules/organizations/components/pages/Organization.vue +120 -49
- package/src/modules/organizations/components/pages/OrganizationEdit.vue +8 -1
- package/src/modules/organizations/components/pages/Organizations.vue +27 -6
- package/src/modules/organizations/components/sections/DetailsTab.vue +11 -9
- package/src/modules/organizations/components/sections/Feed.vue +0 -3
- package/src/modules/organizations/components/sections/FeedDepartments.vue +2 -2
- package/src/modules/organizations/controllers/organizations.controller.js +126 -15
- package/src/modules/organizations/controllers/utils/addMembersQuantity.js +19 -9
- package/src/modules/organizations/models/organization.model.js +5 -2
- package/src/modules/organizations/router/members.router.js +1 -3
- package/src/modules/organizations/router/organizations.js +8 -6
- package/src/modules/organizations/router/products.router.js +36 -2
- package/src/modules/organizations/store/organizations.js +38 -84
- package/src/modules/pages/controllers/pages.controller.js +0 -4
- package/src/modules/payments/controller/payments.controller.js +1 -1
- package/src/modules/products/components/blocks/CardLeftover.vue +17 -22
- package/src/modules/products/components/blocks/CardPosition.vue +96 -49
- package/src/modules/products/components/blocks/CardProduct.vue +24 -53
- package/src/modules/products/components/blocks/Images360.vue +4 -4
- package/src/modules/products/components/blocks/ImagesThumbnails.vue +2 -7
- package/src/modules/products/components/blocks/ListPositions.vue +74 -0
- package/src/modules/products/components/elements/Price.vue +11 -5
- package/src/modules/products/components/elements/THC.vue +6 -6
- package/src/modules/products/components/pages/{LeftoverAdd.vue → EditLeftover.vue} +93 -79
- package/src/modules/products/components/pages/Leftovers.vue +74 -70
- package/src/modules/products/components/pages/Product.vue +4 -7
- package/src/modules/products/components/pages/ProductEdit.vue +230 -88
- package/src/modules/products/components/pages/ProductRecommmendation.vue +1 -1
- package/src/modules/products/components/pages/Products.vue +6 -3
- package/src/modules/products/components/pages/ProductsBackoffice.vue +3 -5
- package/src/modules/products/components/sections/EditModifications.vue +3 -3
- package/src/modules/products/components/sections/EditProductInfo.vue +40 -50
- package/src/modules/products/components/sections/FilterProducts.vue +57 -18
- package/src/modules/products/components/sections/HeroRecommendation.vue +233 -99
- package/src/modules/products/components/sections/MenuSection.vue +127 -0
- package/src/modules/products/components/sections/PopularProducts.vue +81 -37
- package/src/modules/products/components/sections/SectionProduct.vue +21 -23
- package/src/modules/products/controllers/leftovers.controller.js +11 -1
- package/src/modules/products/controllers/products.controller.js +100 -97
- package/src/modules/products/models/leftover.model.js +6 -4
- package/src/modules/products/models/product.model.js +13 -1
- package/src/modules/products/routes/products.routes.js +4 -4
- package/src/modules/products/store/leftovers.js +4 -24
- package/src/modules/products/store/products.js +44 -30
- package/src/modules/spots/components/blocks/CardSpot.vue +43 -72
- package/src/modules/spots/components/layouts/Spots.vue +9 -91
- package/src/modules/spots/components/pages/Map.vue +171 -62
- package/src/modules/spots/components/pages/Spot.vue +1 -1
- package/src/modules/spots/components/pages/SpotEdit.vue +131 -174
- package/src/modules/spots/controllers/spots.controller.js +1 -0
- package/src/modules/spots/models/spot.model.js +6 -3
- package/src/modules/spots/store/spots.js +42 -48
- package/src/modules/users/components/pages/Profile.vue +6 -28
- package/src/modules/users/components/pages/ProfileBlogposts.vue +1 -1
- package/src/modules/users/components/pages/ProfileEdit.vue +1 -1
- package/src/modules/users/components/pages/ProfileEvents.vue +1 -1
- package/src/modules/users/components/pages/ProfileOrganizations.vue +1 -1
- package/src/modules/users/router/users.js +1 -1
- package/src/modules/wallet/components/pages/Wallet.vue +105 -109
- package/src/modules/wallet/controllers/crypto.controller.js +129 -0
- package/src/modules/wallet/models/reward.model.js +53 -0
- package/src/modules/wallet/routes/crypto.routes.js +36 -0
- package/src/modules/wallet/store/wallet.js +52 -49
- package/src/styles/base/all.scss +143 -11
- package/src/styles/base/backgrounds.scss +2 -34
- package/src/styles/base/borders.scss +18 -23
- package/src/styles/base/scrolling.scss +97 -29
- package/src/styles/base/{shadows.scss → shadow_transitions_hover_refactor.scss} +55 -2
- package/src/styles/config.scss +69 -17
- package/src/styles/layout.scss +12 -182
- package/src/styles/reset.scss +20 -21
- package/src/styles/responsive.scss +4 -67
- package/src/styles/theme.scss +3 -4
- package/src/styles/typography.scss +15 -17
- package/src/assets/fonts/AvenirNext-Bold.woff2 +0 -0
- package/src/assets/fonts/AvenirNext-DemiBold.woff2 +0 -0
- package/src/assets/fonts/AvenirNext-Heavy.woff2 +0 -0
- package/src/assets/fonts/AvenirNext-Medium.woff2 +0 -0
- package/src/assets/fonts/AvenirNext-Regular.woff2 +0 -0
- package/src/assets/fonts/AvenirNext-UltraLight.woff2 +0 -0
- package/src/modules/files/middlewares/server/md.js +0 -152
- package/src/modules/files/middlewares/server/middlewareMulter.js +0 -121
- package/src/modules/organizations/controllers/organizations.new.controller.js +0 -372
- package/src/modules/products/components/blocks/EditCategories.vue +0 -68
- package/src/modules/products/components/sections/EditParameters.vue +0 -58
- package/src/modules/products/components/sections/EditProductImages.vue +0 -67
- package/src/modules/spots/components/sections/Feed.vue +0 -64
- package/src/styles/base/border-radius.scss +0 -47
- package/src/styles/base/cursors.scss +0 -23
- package/src/styles/base/height.scss +0 -60
- package/src/styles/base/hovers.scss +0 -110
- package/src/styles/base/positions.scss +0 -192
- package/src/styles/base/transitions.scss +0 -137
- package/src/styles/base/width.scss +0 -2
- package/src/styles/components/block.scss +0 -18
- package/src/styles/components/breadcrumbs.scss +0 -0
- package/src/styles/components/input.scss +0 -319
@@ -1,70 +1,65 @@
|
|
1
1
|
<template>
|
2
|
-
<div class="
|
3
|
-
<p class="h1">🌍</p>
|
4
|
-
|
2
|
+
<div class="t-center flex-center">
|
3
|
+
<p class="h1 mn-b-medium">🌍</p>
|
4
|
+
|
5
5
|
<h3 class="mn-b-semi">{{t('title')}}</h3>
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
}"
|
64
|
-
/>
|
65
|
-
|
66
|
-
<button @click="savePosition()" class="w-100 mn-t-medium button">Save Position</button>
|
67
|
-
</div>
|
6
|
+
<p class="mn-b-small t-transp p-medium">{{t('description')}}</p>
|
7
|
+
|
8
|
+
<Address
|
9
|
+
apiKey="AIzaSyDDR6WgYB7XMt7yTDDzQNEdF_gTdUiq8dI"
|
10
|
+
|
11
|
+
:address="position.address"
|
12
|
+
:location="position.location"
|
13
|
+
|
14
|
+
placeholder="Enter your address"
|
15
|
+
|
16
|
+
class="
|
17
|
+
bg-white radius-tl-medium radius-tr-medium t-black br-grey br-solid br-2px pd-medium
|
18
|
+
"
|
19
|
+
|
20
|
+
@update:country="newCountry => {
|
21
|
+
position.country = newCountry;
|
22
|
+
}"
|
23
|
+
@update:state="newState => {
|
24
|
+
position.state = newState;
|
25
|
+
}"
|
26
|
+
@update:city="newCity => {
|
27
|
+
position.city = newCity;
|
28
|
+
}"
|
29
|
+
@update:location="newLocation => {
|
30
|
+
position.location = newLocation;
|
31
|
+
}"
|
32
|
+
@update:address="newAddress => {
|
33
|
+
position.address = newAddress;
|
34
|
+
}"
|
35
|
+
/>
|
36
|
+
|
37
|
+
<LocationMarker
|
38
|
+
apiKey="AIzaSyDDR6WgYB7XMt7yTDDzQNEdF_gTdUiq8dI"
|
39
|
+
|
40
|
+
:address="position.address"
|
41
|
+
:location="position.location"
|
42
|
+
|
43
|
+
class=" radius-bl-medium radius-br-medium h-15r o-hidden"
|
44
|
+
|
45
|
+
@update:country="newCountry => {
|
46
|
+
position.country = newCountry;
|
47
|
+
}"
|
48
|
+
@update:state="newState => {
|
49
|
+
position.state = newState;
|
50
|
+
}"
|
51
|
+
@update:city="newCity => {
|
52
|
+
position.city = newCity;
|
53
|
+
}"
|
54
|
+
@update:location="newLocation => {
|
55
|
+
position.location = newLocation;
|
56
|
+
}"
|
57
|
+
@update:address="newAddress => {
|
58
|
+
position.address = newAddress;
|
59
|
+
}"
|
60
|
+
/>
|
61
|
+
|
62
|
+
<button @click="savePosition()" class="w-100 mn-t-medium bg-main radius-extra button">Save Position</button>
|
68
63
|
</div>
|
69
64
|
</template>
|
70
65
|
|
@@ -85,17 +80,17 @@ const route = useRoute()
|
|
85
80
|
const router = useRouter()
|
86
81
|
|
87
82
|
const position = ref({
|
88
|
-
country:
|
89
|
-
state:
|
90
|
-
city:
|
91
|
-
address:
|
92
|
-
location:
|
83
|
+
country: null,
|
84
|
+
state: null,
|
85
|
+
city: null,
|
86
|
+
address: null,
|
87
|
+
location: null,
|
93
88
|
})
|
94
89
|
|
95
90
|
|
96
91
|
function savePosition() {
|
97
92
|
store.globals.state.position = { ...position.value };
|
98
|
-
store.globals.state.
|
93
|
+
store.globals.state.isOpenLocationPopup = false
|
99
94
|
|
100
95
|
localStorage.setItem('position', JSON.stringify(store.globals.state.position));
|
101
96
|
}
|
@@ -109,7 +104,7 @@ const text = {
|
|
109
104
|
messages: {
|
110
105
|
en: {
|
111
106
|
title: "Choose Your Location",
|
112
|
-
description: "
|
107
|
+
description: "Enter your address or select it on the map to see the nearest offers to you.",
|
113
108
|
choose: "Select",
|
114
109
|
countries: [
|
115
110
|
"Thailand\u00A0🇹🇭"
|
@@ -147,7 +142,4 @@ const { t } = useI18n(text)
|
|
147
142
|
</script>
|
148
143
|
|
149
144
|
<style lang="scss">
|
150
|
-
.select-country {
|
151
|
-
max-width: 100%;
|
152
|
-
}
|
153
145
|
</style>
|
@@ -31,7 +31,7 @@ function updateZoomLens(event) {
|
|
31
31
|
const x = event.clientX - rect.left;
|
32
32
|
const y = event.clientY - rect.top;
|
33
33
|
|
34
|
-
const lensSize =
|
34
|
+
const lensSize = 200;
|
35
35
|
|
36
36
|
const lensX = Math.max(0, Math.min(x - lensSize / 2, rect.width - lensSize));
|
37
37
|
const lensY = Math.max(0, Math.min(y - lensSize / 2, rect.height - lensSize));
|
@@ -79,8 +79,8 @@ function handleTouchEnd() {
|
|
79
79
|
|
80
80
|
.zoom-lens {
|
81
81
|
position: absolute;
|
82
|
-
width:
|
83
|
-
height:
|
82
|
+
width: 200px;
|
83
|
+
height: 200px;
|
84
84
|
border: 1px solid rgba(0, 0, 0, 0.3);
|
85
85
|
box-sizing: border-box;
|
86
86
|
background-repeat: no-repeat;
|
@@ -1,47 +1,47 @@
|
|
1
1
|
<template>
|
2
|
-
<ul class="t-semi flex-nowrap flex-center flex">
|
3
|
-
<li
|
2
|
+
<ul class="t-semi gap-small flex-nowrap flex-center flex">
|
3
|
+
<li>
|
4
4
|
<router-link
|
5
|
-
:to="getMarketplaceLink()"
|
6
|
-
|
5
|
+
:to="getMarketplaceLink(null,store.globals.state.position?.country,store.globals.state.position?.state,store.globals.state.position?.city)"
|
6
|
+
>
|
7
7
|
{{ t('HEADER.MENU.MARKETPLACE') }}
|
8
8
|
</router-link>
|
9
9
|
</li>
|
10
|
-
<li
|
11
|
-
<router-link
|
12
|
-
:to="getSpotsLink()"
|
13
|
-
|
10
|
+
<li>
|
11
|
+
<router-link
|
12
|
+
:to="getSpotsLink(store.globals.state.position?.country,store.globals.state.position?.state,store.globals.state.position?.city)"
|
13
|
+
>
|
14
14
|
{{ t('HEADER.MENU.DISPENSARIES') }}
|
15
15
|
</router-link>
|
16
16
|
</li>
|
17
17
|
|
18
|
-
<!-- <li
|
18
|
+
<!-- <li>
|
19
19
|
<router-link
|
20
20
|
to="/gallery"
|
21
|
-
|
21
|
+
>
|
22
22
|
{{ t('HEADER.MENU.GALLERY') }}
|
23
23
|
</router-link>
|
24
24
|
</li> -->
|
25
25
|
|
26
|
-
<li
|
26
|
+
<li>
|
27
27
|
<router-link
|
28
28
|
to="/events"
|
29
|
-
|
29
|
+
>
|
30
30
|
{{ t('HEADER.MENU.EVENTS') }}
|
31
31
|
</router-link>
|
32
32
|
</li>
|
33
33
|
|
34
|
-
<li
|
34
|
+
<li>
|
35
35
|
<router-link
|
36
36
|
to="/community"
|
37
|
-
|
37
|
+
>
|
38
38
|
{{ t('HEADER.MENU.BLOG') }}
|
39
39
|
</router-link>
|
40
40
|
</li>
|
41
|
-
<li
|
41
|
+
<li>
|
42
42
|
<router-link
|
43
43
|
to="/governance"
|
44
|
-
|
44
|
+
>
|
45
45
|
{{ t('HEADER.MENU.GOVERNANCE') }}
|
46
46
|
</router-link>
|
47
47
|
</li>
|
@@ -2,26 +2,28 @@
|
|
2
2
|
|
3
3
|
<teleport to="body" v-if="isPopupOpen">
|
4
4
|
<transition name="TransitionTranslateY" appear>
|
5
|
+
|
5
6
|
<div v-if="isPopupOpen" key="popup-content" class="pd-small popup-wrapper">
|
6
7
|
|
7
8
|
<transition name="TransitionTranslateY" mode="out-in">
|
8
9
|
<section v-if="isPopupOpen" class="pos-relative z-index-4" v-bind="$attrs">
|
9
|
-
|
10
|
-
|
11
|
-
<IconCross/>
|
12
|
-
</button>
|
10
|
+
<IconCross @click="closePopup()" class="cursor-pointer pos-absolute pos-t-0 pos-r-0 mn-t-semi mn-r-semi hover-scale-1 i-regular z-index-5"/>
|
11
|
+
|
13
12
|
<slot></slot>
|
14
13
|
</section>
|
15
14
|
</transition>
|
16
15
|
|
17
16
|
<div
|
18
17
|
@click="closePopup()"
|
19
|
-
|
20
|
-
|
18
|
+
:class="{'active':isPopupOpen === true}"
|
19
|
+
class="color-overlay z-index-3">
|
21
20
|
</div>
|
21
|
+
|
22
22
|
</div>
|
23
|
+
|
23
24
|
</transition>
|
24
25
|
</teleport>
|
26
|
+
|
25
27
|
</template>
|
26
28
|
|
27
29
|
<script setup>
|
@@ -2,8 +2,9 @@
|
|
2
2
|
<!-- Input Wrapper -->
|
3
3
|
<div
|
4
4
|
@click.stop="toggleMenu"
|
5
|
+
v-click-outside="clickedOutside"
|
5
6
|
:class="$attrs.class"
|
6
|
-
class="cursor-pointer flex-nowrap flex"
|
7
|
+
class="cursor-pointer flex-v-center flex-nowrap flex pos-relative"
|
7
8
|
>
|
8
9
|
<!-- Label -->
|
9
10
|
<div v-if="label" class="t-transp mn-r-small">
|
@@ -14,7 +15,7 @@
|
|
14
15
|
<li class="w-100">
|
15
16
|
<!-- Selected Value -->
|
16
17
|
<span>
|
17
|
-
{{ selectedOption?.name
|
18
|
+
{{ selectedOption?.name ? selectedOption?.name : selectedOption || placeholder }}
|
18
19
|
</span>
|
19
20
|
</li>
|
20
21
|
|
@@ -23,7 +24,7 @@
|
|
23
24
|
<ul
|
24
25
|
v-if="showMenu"
|
25
26
|
:class="$attrs.class"
|
26
|
-
class="pos-absolute pos-t-100 pos-l-0 z-index-5 w-100 mn-t-thin"
|
27
|
+
class="bs-black pos-absolute pos-t-100 pos-l-0 z-index-5 w-100 mn-t-thin"
|
27
28
|
>
|
28
29
|
<li @click.stop="selectOption(option)" v-for="option in optionsListed">
|
29
30
|
<span v-if="option" class="w-100">
|
@@ -47,19 +48,40 @@ import { ref, computed, watch } from 'vue'
|
|
47
48
|
|
48
49
|
const emit = defineEmits(['update:select', 'focus', 'blur'])
|
49
50
|
|
51
|
+
import clickOutside from '../FieldPhone/click-outside';
|
52
|
+
|
53
|
+
let vClickOutside = clickOutside
|
54
|
+
|
55
|
+
|
50
56
|
const props = defineProps({
|
51
57
|
label: String,
|
52
58
|
select: [String, Object],
|
59
|
+
property: String,
|
53
60
|
placeholder: { type: String, default: 'Please select an item' },
|
54
61
|
options: { type: Array, default: () => [] },
|
55
62
|
validation: Boolean,
|
56
63
|
})
|
57
64
|
|
58
|
-
const selectedOption = ref(props.select)
|
65
|
+
const selectedOption = ref(props.property ? findObjectByValue(props.select, props.property, props.options) : props.select)
|
59
66
|
const showMenu = ref(false)
|
60
67
|
|
68
|
+
function clickedOutside () {
|
69
|
+
showMenu.value = false
|
70
|
+
}
|
71
|
+
|
72
|
+
|
73
|
+
function findObjectByValue(value, property,objects) {
|
74
|
+
for (const object of objects) {
|
75
|
+
if (object[property] === value || object === value) {
|
76
|
+
return object;
|
77
|
+
}
|
78
|
+
|
79
|
+
}
|
80
|
+
return null;
|
81
|
+
}
|
82
|
+
|
61
83
|
watch(() => props.select, (newSelect) => {
|
62
|
-
selectedOption.value =
|
84
|
+
selectedOption.value = props.property ? findObjectByValue(props.select, props.property, props.options) : props.select;
|
63
85
|
});
|
64
86
|
|
65
87
|
const optionsListed = computed(() => {
|
@@ -68,13 +90,20 @@ const optionsListed = computed(() => {
|
|
68
90
|
|
69
91
|
const toggleMenu = () => {
|
70
92
|
showMenu.value = !showMenu.value
|
93
|
+
|
71
94
|
emit(showMenu.value ? 'focus' : 'blur')
|
72
95
|
}
|
73
96
|
|
74
97
|
const selectOption = option => {
|
75
98
|
selectedOption.value = option
|
99
|
+
|
76
100
|
toggleMenu()
|
77
|
-
|
101
|
+
|
102
|
+
if (props.property) {
|
103
|
+
emit('update:select', selectedOption.value[props.property])
|
104
|
+
} else {
|
105
|
+
emit('update:select', selectedOption.value)
|
106
|
+
}
|
78
107
|
}
|
79
108
|
</script>
|
80
109
|
|
@@ -500,18 +500,17 @@ export default {
|
|
500
500
|
}
|
501
501
|
|
502
502
|
.multiselect__input,
|
503
|
-
.multiselect__single
|
503
|
+
.multiselect__single,
|
504
|
+
.multiselect__placeholder {
|
504
505
|
position: relative;
|
505
506
|
display: inline-block;
|
506
507
|
min-height: 20px;
|
507
508
|
line-height: 20px;
|
508
509
|
border: none;
|
509
|
-
/* padding: 0 0 0 5px;*/
|
510
510
|
width: calc(100%);
|
511
|
+
height: inherit;
|
511
512
|
box-sizing: border-box;
|
512
|
-
/* margin-bottom: 8px;*/
|
513
513
|
vertical-align: top;
|
514
|
-
height: 100%;
|
515
514
|
display: flex;
|
516
515
|
align-items: center;
|
517
516
|
}
|
@@ -542,6 +541,7 @@ export default {
|
|
542
541
|
|
543
542
|
.multiselect__tags {
|
544
543
|
display: block;
|
544
|
+
height: inherit;
|
545
545
|
}
|
546
546
|
|
547
547
|
.multiselect__tag {
|
@@ -639,15 +639,6 @@ export default {
|
|
639
639
|
content: "";
|
640
640
|
}
|
641
641
|
|
642
|
-
.multiselect__placeholder {
|
643
|
-
color: #adadad;
|
644
|
-
display: inline-block;
|
645
|
-
height: 100%;
|
646
|
-
display: flex;
|
647
|
-
align-items: center;
|
648
|
-
/* margin-bottom: 10px;*/
|
649
|
-
/* padding-top: 2px;*/
|
650
|
-
}
|
651
642
|
|
652
643
|
.multiselect--active .multiselect__placeholder {
|
653
644
|
display: none;
|
@@ -659,6 +650,7 @@ export default {
|
|
659
650
|
background: #fff;
|
660
651
|
width: 100%;
|
661
652
|
max-height: 240px;
|
653
|
+
height: min-content;
|
662
654
|
overflow: auto;
|
663
655
|
left: 0;
|
664
656
|
border-top: none;
|
@@ -0,0 +1,128 @@
|
|
1
|
+
<template>
|
2
|
+
<canvas ref="refCanvas"></canvas>
|
3
|
+
</template>
|
4
|
+
|
5
|
+
<script setup>
|
6
|
+
import {onMounted, ref} from 'vue'
|
7
|
+
|
8
|
+
let refCanvas = ref(null)
|
9
|
+
const vertexShaderSource = `
|
10
|
+
void main() {
|
11
|
+
gl_Position = vec4(0.0, 0.0, 0.0, 1.0);
|
12
|
+
}
|
13
|
+
`;
|
14
|
+
|
15
|
+
const fragmentShaderSource = `
|
16
|
+
precision mediump float;
|
17
|
+
|
18
|
+
#define time (iTime * 0.9)
|
19
|
+
|
20
|
+
vec4 gradient(float f)
|
21
|
+
{
|
22
|
+
vec4 c = vec4(0);
|
23
|
+
f = mod(f, 1.5);
|
24
|
+
for (int i = 0; i < 3; ++i)
|
25
|
+
c[i] = pow(0.5 + 0.5 * sin(2.0 * (f + 0.2 * float(i))), 10.0);
|
26
|
+
return c;
|
27
|
+
}
|
28
|
+
|
29
|
+
float offset(float th)
|
30
|
+
{
|
31
|
+
return 0.5 * sin(25.0 * th) * sin(time);
|
32
|
+
}
|
33
|
+
|
34
|
+
vec4 tunnel(float th, float radius)
|
35
|
+
{
|
36
|
+
return gradient(offset(th + 0.25 * time) + 3.0 * log(3.0 * radius) - time);
|
37
|
+
}
|
38
|
+
|
39
|
+
void main() {
|
40
|
+
vec2 p = -1.0 + 2.0 * gl_FragCoord.xy / iResolution.xy;
|
41
|
+
p.x *= iResolution.x / iResolution.y;
|
42
|
+
gl_FragColor = tunnel(atan(p.y, p.x), 2.0 * length(p));
|
43
|
+
}
|
44
|
+
`;
|
45
|
+
|
46
|
+
onMounted(() => {
|
47
|
+
const canvas = refCanvas.value;
|
48
|
+
const gl = canvas.getContext("webgl");
|
49
|
+
|
50
|
+
if (!gl) {
|
51
|
+
console.error("Unable to initialize WebGL. Your browser may not support it.");
|
52
|
+
return;
|
53
|
+
}
|
54
|
+
|
55
|
+
const vertexShader = createShader(gl, gl.VERTEX_SHADER, vertexShaderSource);
|
56
|
+
const fragmentShader = createShader(gl, gl.FRAGMENT_SHADER, fragmentShaderSource);
|
57
|
+
|
58
|
+
const program = createProgram(gl, vertexShader, fragmentShader);
|
59
|
+
|
60
|
+
gl.useProgram(program);
|
61
|
+
|
62
|
+
const positionAttributeLocation = gl.getAttribLocation(program, "a_position");
|
63
|
+
const positionBuffer = gl.createBuffer();
|
64
|
+
|
65
|
+
gl.bindBuffer(gl.ARRAY_BUFFER, positionBuffer);
|
66
|
+
|
67
|
+
const positions = new Float32Array([-1, -1, 3, -1, -1, 3]);
|
68
|
+
gl.bufferData(gl.ARRAY_BUFFER, positions, gl.STATIC_DRAW);
|
69
|
+
|
70
|
+
const vao = gl.createVertexArray();
|
71
|
+
gl.bindVertexArray(vao);
|
72
|
+
gl.enableVertexAttribArray(positionAttributeLocation);
|
73
|
+
|
74
|
+
const size = 2;
|
75
|
+
const type = gl.FLOAT;
|
76
|
+
const normalize = false;
|
77
|
+
const stride = 0;
|
78
|
+
const offset = 0;
|
79
|
+
|
80
|
+
gl.vertexAttribPointer(
|
81
|
+
positionAttributeLocation, size, type, normalize, stride, offset
|
82
|
+
);
|
83
|
+
|
84
|
+
gl.clearColor(0, 0, 0, 0);
|
85
|
+
gl.clear(gl.COLOR_BUFFER_BIT);
|
86
|
+
|
87
|
+
gl.useProgram(program);
|
88
|
+
gl.bindVertexArray(vao);
|
89
|
+
|
90
|
+
gl.drawArrays(gl.TRIANGLES, 0, 3);
|
91
|
+
});
|
92
|
+
|
93
|
+
function createShader(gl, type, source) {
|
94
|
+
const shader = gl.createShader(type);
|
95
|
+
gl.shaderSource(shader, source);
|
96
|
+
gl.compileShader(shader);
|
97
|
+
|
98
|
+
if (!gl.getShaderParameter(shader, gl.COMPILE_STATUS)) {
|
99
|
+
console.error(gl.getShaderInfoLog(shader));
|
100
|
+
gl.deleteShader(shader);
|
101
|
+
return null;
|
102
|
+
}
|
103
|
+
|
104
|
+
return shader;
|
105
|
+
}
|
106
|
+
|
107
|
+
function createProgram(gl, vertexShader, fragmentShader) {
|
108
|
+
const program = gl.createProgram();
|
109
|
+
gl.attachShader(program, vertexShader);
|
110
|
+
gl.attachShader(program, fragmentShader);
|
111
|
+
gl.linkProgram(program);
|
112
|
+
|
113
|
+
if (!gl.getProgramParameter(program, gl.LINK_STATUS)) {
|
114
|
+
console.error(gl.getProgramInfoLog(program));
|
115
|
+
gl.deleteProgram(program);
|
116
|
+
return null;
|
117
|
+
}
|
118
|
+
|
119
|
+
return program;
|
120
|
+
}
|
121
|
+
</script>
|
122
|
+
|
123
|
+
<style scoped>
|
124
|
+
canvas {
|
125
|
+
width: 100%;
|
126
|
+
height: 100%;
|
127
|
+
}
|
128
|
+
</style>
|