@ozdao/prometheus-framework 0.2.39 → 0.2.41
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/auth.server.js +1 -2
- package/dist/auth.server.mjs +1 -2
- package/dist/files.server.js +1 -2
- package/dist/files.server.mjs +1 -2
- package/dist/globals.server.js +1 -1
- package/dist/globals.server.mjs +1 -1
- package/dist/mailing-10560277.mjs +78 -0
- package/dist/mailing-902d13d5.js +77 -0
- package/dist/main.css +1 -1
- package/dist/prometheus-framework/src/components/Button/Button.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/Button/Button.vue.js +225 -2
- package/dist/prometheus-framework/src/components/Button/Button.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/components/Button/Button.vue2.js +2 -225
- package/dist/prometheus-framework/src/components/Checkbox/Checkbox.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/Checkbox/Checkbox.vue.js +61 -2
- package/dist/prometheus-framework/src/components/Checkbox/Checkbox.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/components/Checkbox/Checkbox.vue2.js +2 -61
- package/dist/prometheus-framework/src/components/Chips/Chips.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/Chips/Chips.vue.js +13 -9
- package/dist/prometheus-framework/src/components/Chips/Chips.vue2.cjs +1 -0
- package/dist/prometheus-framework/src/components/Chips/Chips.vue2.js +4 -0
- package/dist/prometheus-framework/src/components/Dropdown/Dropdown.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/Dropdown/Dropdown.vue.js +26 -22
- package/dist/prometheus-framework/src/components/Feed/Feed.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/Feed/Feed.vue.js +29 -30
- package/dist/prometheus-framework/src/components/Field/Field.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/Field/Field.vue.js +76 -2
- package/dist/prometheus-framework/src/components/Field/Field.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/components/Field/Field.vue2.js +2 -76
- package/dist/prometheus-framework/src/components/Popup/Popup.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/Popup/Popup.vue.js +70 -2
- package/dist/prometheus-framework/src/components/Popup/Popup.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/components/Popup/Popup.vue2.js +2 -70
- package/dist/prometheus-framework/src/components/Select/Select.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/Select/Select.vue.js +95 -2
- package/dist/prometheus-framework/src/components/Select/Select.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/components/Select/Select.vue2.js +2 -95
- package/dist/prometheus-framework/src/components/Slider/Slider.vue.cjs +1 -0
- package/dist/prometheus-framework/src/components/Slider/Slider.vue.js +69 -0
- package/dist/prometheus-framework/src/components/Tab/Tab.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/Tab/Tab.vue.js +44 -2
- package/dist/prometheus-framework/src/components/Tab/Tab.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/components/Tab/Tab.vue2.js +2 -44
- package/dist/prometheus-framework/src/modules/auth/components/layouts/Auth.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/auth/components/layouts/Auth.vue.js +3 -3
- package/dist/prometheus-framework/src/modules/auth/components/pages/EnterCode.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/auth/components/pages/EnterCode.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/auth/components/pages/EnterPassword.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/auth/components/pages/EnterPassword.vue.js +3 -3
- package/dist/prometheus-framework/src/modules/auth/components/pages/Invite.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/auth/components/pages/Invite.vue.js +3 -3
- package/dist/prometheus-framework/src/modules/auth/components/pages/ResetPassword.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/auth/components/pages/ResetPassword.vue.js +3 -3
- package/dist/prometheus-framework/src/modules/auth/components/pages/SignIn.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/auth/components/pages/SignIn.vue.js +3 -3
- package/dist/prometheus-framework/src/modules/auth/components/pages/SignUp.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/auth/components/pages/SignUp.vue.js +3 -3
- package/dist/prometheus-framework/src/modules/auth/store/auth.cjs +1 -1
- package/dist/prometheus-framework/src/modules/auth/store/auth.js +8 -8
- package/dist/prometheus-framework/src/modules/backoffice/components/pages/Dashboard.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/backoffice/components/pages/Dashboard.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/community/community.client.cjs +1 -1
- package/dist/prometheus-framework/src/modules/community/community.client.js +18 -20
- package/dist/prometheus-framework/src/modules/community/components/blocks/CardBlogpost.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/community/components/blocks/CardBlogpost.vue.js +88 -62
- 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 +97 -68
- package/dist/prometheus-framework/src/modules/community/components/pages/BlogPost.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/community/components/pages/BlogPost.vue.js +35 -34
- 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 +18 -18
- package/dist/prometheus-framework/src/modules/community/components/pages/Community.vue2.js +2 -2
- 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 +5 -5
- package/dist/prometheus-framework/src/modules/community/components/sections/Feed.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/community/components/sections/Feed.vue.js +4 -4
- package/dist/prometheus-framework/src/modules/community/components/sections/HotPosts.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/community/components/sections/HotPosts.vue.js +65 -19
- package/dist/prometheus-framework/src/modules/community/components/sections/JoinUs.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/community/components/sections/JoinUs.vue.js +9 -9
- package/dist/prometheus-framework/src/modules/constructor/components/elements/Embed.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/constructor/components/elements/Embed.vue.js +8 -7
- package/dist/prometheus-framework/src/modules/constructor/components/elements/Image.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/constructor/components/elements/Image.vue.js +6 -6
- 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 +65 -2
- 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 +2 -65
- 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 +64 -70
- package/dist/prometheus-framework/src/modules/events/components/blocks/CardEvent.vue.js +6 -6
- package/dist/prometheus-framework/src/modules/events/components/elements/ButtonJoin.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/events/components/elements/ButtonJoin.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/events/components/layouts/layoutEvents.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/events/components/layouts/layoutEvents.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/events/components/pages/EditEvent.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/events/components/pages/EditEvent.vue.js +5 -5
- 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 +6 -5
- package/dist/prometheus-framework/src/modules/gallery/components/sections/BackofficeGallery.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/gallery/components/sections/BackofficeGallery.vue.js +3 -3
- package/dist/prometheus-framework/src/modules/gallery/components/sections/GalleryWithCategories.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/gallery/components/sections/GalleryWithCategories.vue.js +3 -3
- package/dist/prometheus-framework/src/modules/globals/components/blocks/CardHeader.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/globals/components/blocks/CardHeader.vue.js +43 -42
- package/dist/prometheus-framework/src/modules/icons/entities/IconFeatured.vue.cjs +1 -0
- package/dist/prometheus-framework/src/modules/icons/entities/IconFeatured.vue.js +30 -0
- package/dist/prometheus-framework/src/modules/icons/entities/IconFollowing.vue.cjs +1 -0
- package/dist/prometheus-framework/src/modules/icons/entities/IconFollowing.vue.js +47 -0
- package/dist/prometheus-framework/src/modules/icons/entities/IconPopular.vue.cjs +1 -0
- package/dist/prometheus-framework/src/modules/icons/entities/IconPopular.vue.js +28 -0
- package/dist/prometheus-framework/src/modules/icons/entities/IconRecent.vue.cjs +1 -0
- package/dist/prometheus-framework/src/modules/icons/entities/IconRecent.vue.js +45 -0
- package/dist/prometheus-framework/src/modules/icons/navigation/IconArrow.vue.cjs +1 -0
- package/dist/prometheus-framework/src/modules/icons/navigation/IconArrow.vue.js +32 -0
- package/dist/prometheus-framework/src/modules/icons/navigation/IconChevronRight.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/icons/navigation/IconChevronRight.vue.js +3 -3
- package/dist/prometheus-framework/src/modules/icons/navigation/IconEdit.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/icons/navigation/IconEdit.vue.js +25 -14
- package/dist/prometheus-framework/src/modules/icons/navigation/IconEllipsis.vue.cjs +1 -0
- package/dist/prometheus-framework/src/modules/icons/navigation/IconEllipsis.vue.js +44 -0
- package/dist/prometheus-framework/src/modules/landing/components/sections/MobileApp.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/landing/components/sections/MobileApp.vue.js +90 -67
- package/dist/prometheus-framework/src/modules/legal/components/pages/Legal.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/legal/components/pages/Legal.vue.js +3 -3
- package/dist/prometheus-framework/src/modules/mobile/components/Menu/Menu.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/mobile/components/Menu/Menu.vue.js +2 -11
- package/dist/prometheus-framework/src/modules/mobile/components/Menu/Menu.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/modules/mobile/components/Menu/Menu.vue2.js +11 -2
- package/dist/prometheus-framework/src/modules/orders/components/pages/EditOrder.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/orders/components/pages/EditOrder.vue.js +1 -1
- 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 +1 -1
- package/dist/prometheus-framework/src/modules/orders/components/sections/FormOrderDetails.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/orders/components/sections/FormOrderDetails.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/organizations/components/blocks/CardOrganization.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/blocks/CardOrganization.vue.js +45 -42
- 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 +2 -2
- package/dist/prometheus-framework/src/modules/organizations/components/elements/ButtonToggleMembership.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/elements/ButtonToggleMembership.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/pages/DepartmentEdit.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/pages/DepartmentEdit.vue.js +6 -6
- 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 +1 -1
- 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 +3 -3
- 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 +5 -5
- package/dist/prometheus-framework/src/modules/organizations/components/pages/Organizations.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/pages/Organizations.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/sections/DetailsTab.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/sections/DetailsTab.vue.js +60 -55
- package/dist/prometheus-framework/src/modules/organizations/components/sections/Documents.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/sections/Documents.vue.js +3 -3
- package/dist/prometheus-framework/src/modules/organizations/components/sections/FeedDepartments.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/sections/FeedDepartments.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 +3 -3
- package/dist/prometheus-framework/src/modules/organizations/components/sections/MembersList.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/sections/MembersList.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 +18 -17
- package/dist/prometheus-framework/src/modules/organizations/components/sections/Publics.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/sections/Publics.vue.js +20 -21
- package/dist/prometheus-framework/src/modules/products/components/blocks/CardLeftover.vue.js +7 -7
- package/dist/prometheus-framework/src/modules/products/components/blocks/CardPosition.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/blocks/CardPosition.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/products/components/blocks/ImagesThumbnails.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/blocks/ImagesThumbnails.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 +2 -2
- package/dist/prometheus-framework/src/modules/products/components/pages/Leftovers.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/pages/Leftovers.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 +6 -6
- package/dist/prometheus-framework/src/modules/products/components/pages/ProductsBackoffice.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/pages/ProductsBackoffice.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/products/components/sections/EditProductInfo.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/sections/EditProductInfo.vue.js +3 -3
- package/dist/prometheus-framework/src/modules/products/components/sections/FilterProducts.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/sections/FilterProducts.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/products/components/sections/PopularProducts.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/sections/PopularProducts.vue.js +37 -34
- package/dist/prometheus-framework/src/modules/products/components/sections/SectionProduct.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/sections/SectionProduct.vue.js +23 -23
- 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 +3 -3
- package/dist/prometheus-framework/src/modules/spots/components/blocks/CardSpot.vue.js +8 -8
- package/dist/prometheus-framework/src/modules/users/components/pages/Profile.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/users/components/pages/Profile.vue.js +7 -7
- package/dist/prometheus-framework/src/modules/users/components/pages/ProfileBlogposts.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/users/components/pages/ProfileBlogposts.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/users/components/pages/ProfileEdit.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/users/components/pages/ProfileEdit.vue.js +3 -3
- package/dist/prometheus-framework/src/modules/users/components/pages/ProfileEvents.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/users/components/pages/ProfileEvents.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/wallet/components/pages/Wallet.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/wallet/components/pages/Wallet.vue.js +31 -30
- package/dist/prometheus-framework.cjs.js +20 -20
- package/dist/prometheus-framework.es.js +1278 -1288
- package/dist/style.css +1 -1
- package/package.json +1 -1
- package/src/components/Button/Button.vue +2 -3
- package/src/components/Chips/Chips.vue +9 -3
- package/src/components/Countdown/Countdown.vue +4 -3
- package/src/components/Dropdown/Dropdown.vue +9 -3
- package/src/components/Feed/Feed.vue +7 -11
- package/src/components/Feed/Masonry.vue +177 -0
- package/src/components/FieldBig/FieldBig.vue +3 -3
- package/src/components/Header/Header.vue +2 -0
- package/src/components/Navigation/Navigation.vue +2 -0
- package/src/components/Shader/Shader.vue +161 -116
- package/src/components/Slider/Slider.vue +92 -0
- package/src/modules/applications/applications.client.js +2 -0
- package/src/modules/applications/components/sections/SubscribeNewsletter.vue +114 -0
- package/src/modules/applications/controllers/applications.controller.js +125 -136
- package/src/modules/applications/models/application.model.js +22 -7
- package/src/modules/applications/routes/applications.routes.js +29 -13
- package/src/modules/auth/controllers/auth.controller.js +2 -3
- package/src/modules/auth/store/auth.js +3 -5
- package/src/modules/chats/components/blocks/ChatMessage.vue +3 -2
- package/src/modules/chats/components/pages/ChatPage.vue +6 -6
- package/src/modules/chats/components/sections/ChatWindow.vue +57 -12
- package/src/modules/chats/store/chat.store.js +6 -1
- package/src/modules/community/community.client.js +0 -2
- package/src/modules/community/components/blocks/CardBlogpost.vue +71 -33
- package/src/modules/community/components/layouts/Community.vue +65 -26
- package/src/modules/community/components/pages/Blog.vue +37 -0
- package/src/modules/community/components/pages/BlogPost.vue +5 -6
- package/src/modules/community/components/pages/Community.vue +1 -0
- package/src/modules/community/components/pages/CreateBlogPost.vue +1 -0
- package/src/modules/community/components/sections/Feed.vue +1 -1
- package/src/modules/community/components/sections/HotPosts.vue +64 -24
- package/src/modules/community/components/sections/JoinUs.vue +4 -5
- package/src/modules/community/store/blogposts.js +1 -0
- package/src/modules/constructor/components/elements/Embed.vue +7 -6
- package/src/modules/constructor/components/elements/Image.vue +2 -2
- package/src/modules/constructor/components/elements/Textarea.vue +1 -1
- package/src/modules/constructor/components/sections/Constructor.vue +3 -19
- package/src/modules/events/components/pages/EditEvent.vue +48 -3
- package/src/modules/events/components/pages/Event.vue +16 -8
- package/src/modules/events/components/sections/HeroEvent.vue +32 -28
- package/src/modules/events/components/sections/SectionMainGuest.vue +3 -2
- package/src/modules/events/components/sections/SectionPreviousEvents.vue +22 -15
- package/src/modules/events/models/event.model.js +9 -0
- package/src/modules/files/middlewares/server/middlewareBusboy.js +14 -3
- package/src/modules/files/routes/files.routes.js +9 -1
- package/src/modules/globals/components/blocks/CardHeader.vue +6 -3
- package/src/modules/globals/utils/mailing.js +12 -0
- package/src/modules/icons/entities/IconEarn.vue +20 -0
- package/src/modules/icons/entities/IconFeatured.vue +14 -0
- package/src/modules/icons/entities/IconFollowing.vue +17 -0
- package/src/modules/icons/entities/IconPopular.vue +14 -0
- package/src/modules/icons/entities/IconRecent.vue +17 -0
- package/src/modules/icons/navigation/IconAdd.vue +1 -3
- package/src/modules/icons/navigation/IconArrow.vue +21 -0
- package/src/modules/icons/navigation/IconCheckmark.vue +16 -0
- package/src/modules/icons/navigation/IconChevronRight.vue +2 -2
- package/src/modules/icons/navigation/IconEdit.vue +16 -2
- package/src/modules/icons/navigation/IconEllipsis.vue +16 -0
- package/src/modules/icons/placeholders/PlaceholderChat.vue +9 -0
- package/src/modules/landing/components/sections/MobileApp.vue +38 -21
- package/src/modules/landing/components/sections/SectionEarn.vue +104 -0
- package/src/modules/landing/components/sections/SectionFeatures.vue +7 -8
- package/src/modules/marketplace/components/layouts/Marketplace.vue +3 -3
- package/src/modules/orders/components/blocks/StatusHistory.vue +7 -1
- package/src/modules/orders/components/pages/Order.vue +3 -4
- package/src/modules/orders/store/shopcart.js +21 -5
- package/src/modules/organizations/components/blocks/CardOrganization.vue +6 -6
- package/src/modules/organizations/components/pages/Organization.vue +1 -1
- package/src/modules/organizations/components/sections/DetailsTab.vue +42 -43
- package/src/modules/organizations/components/sections/Publics.vue +3 -4
- package/src/modules/payments/controller/payments.controller.js +54 -200
- package/src/modules/payments/controller/payments.tinkoff.controller.js +242 -0
- package/src/modules/payments/models/payment.model.js +22 -0
- package/src/modules/payments/routes/payments.routes.js +4 -25
- package/src/modules/payments/routes/payments.tinkoff.routes.js +58 -0
- package/src/modules/products/components/pages/Product.vue +3 -1
- package/src/modules/products/components/sections/HeroRecommendation.vue +9 -170
- package/src/modules/products/components/sections/MenuSection.vue +4 -4
- package/src/modules/products/components/sections/PopularProducts.vue +3 -3
- package/src/modules/products/components/sections/SectionProduct.vue +3 -0
- package/src/modules/products/controllers/products.controller.js +188 -109
- package/src/modules/products/models/product.model.js +1 -0
- package/src/modules/spots/components/layouts/Spots.vue +2 -2
- package/src/modules/wallet/components/pages/Wallet.vue +73 -88
- package/src/modules/wallet/controllers/crypto.controller.js +79 -0
- package/src/modules/wallet/models/wallet.model.js +27 -0
- package/src/styles/base/all.scss +4 -0
- package/src/styles/base/backgrounds.scss +2 -2
- package/src/styles/base/shadow_transitions_hover_refactor.scss +11 -1
- package/src/styles/typography.scss +19 -12
- package/src/modules/community/components/sections/SubscribeNewsletter.vue +0 -67
- package/src/modules/constructor/components/elements/Youtube.vue +0 -52
- /package/src/modules/{orders/models/payment.model.js → payments/models/payment.tinkoff.model.js} +0 -0
@@ -0,0 +1,177 @@
|
|
1
|
+
<script setup>
|
2
|
+
import { nextTick, onBeforeUnmount, onMounted, ref, watch } from 'vue'
|
3
|
+
|
4
|
+
// Assuming the default props are handled similarly in JS
|
5
|
+
const props = defineProps({
|
6
|
+
columnWidth: { type: [Number, Array], default: 400 },
|
7
|
+
items: { type: Array, required: true },
|
8
|
+
gap: { type: Number, default: 0 },
|
9
|
+
rtl: { type: Boolean, default: false },
|
10
|
+
ssrColumns: { type: Number, default: 0 },
|
11
|
+
minColumns: { type: Number, default: 1 },
|
12
|
+
maxColumns: { type: Number, default: 3 },
|
13
|
+
keyMapper: { default: undefined },
|
14
|
+
})
|
15
|
+
|
16
|
+
const emit = defineEmits(['redraw', 'redrawSkip'])
|
17
|
+
|
18
|
+
|
19
|
+
const columns = ref([])
|
20
|
+
const wall = ref(null)
|
21
|
+
const scrollContainer = ref(null);
|
22
|
+
|
23
|
+
function useMasonryWall({
|
24
|
+
columns,
|
25
|
+
columnWidth,
|
26
|
+
emit,
|
27
|
+
gap,
|
28
|
+
items,
|
29
|
+
maxColumns,
|
30
|
+
minColumns,
|
31
|
+
rtl,
|
32
|
+
scrollContainer,
|
33
|
+
ssrColumns,
|
34
|
+
wall
|
35
|
+
}) {
|
36
|
+
// Helper function to recursively count the number of columns that can fit
|
37
|
+
function countIteratively(containerWidth, gap, count, consumed) {
|
38
|
+
const nextWidth = getColumnWidthTarget(count);
|
39
|
+
if (consumed + gap + nextWidth <= containerWidth) {
|
40
|
+
return countIteratively(containerWidth, gap, count + 1, consumed + gap + nextWidth);
|
41
|
+
}
|
42
|
+
return count;
|
43
|
+
}
|
44
|
+
|
45
|
+
// Calculate target width for a column at given index
|
46
|
+
function getColumnWidthTarget(columnIndex) {
|
47
|
+
const widths = Array.isArray(columnWidth.value) ? columnWidth.value : [columnWidth.value];
|
48
|
+
return widths[columnIndex % widths.length];
|
49
|
+
}
|
50
|
+
|
51
|
+
// Determine the number of columns based on the container's width
|
52
|
+
function columnCount() {
|
53
|
+
const count = countIteratively(
|
54
|
+
wall.value.getBoundingClientRect().width,
|
55
|
+
gap.value,
|
56
|
+
0,
|
57
|
+
-gap.value // Account for initial gap
|
58
|
+
);
|
59
|
+
const boundedCount = Math.max(minColumns.value || 0, Math.min(count, maxColumns.value || count));
|
60
|
+
return boundedCount > 0 ? boundedCount : 1;
|
61
|
+
}
|
62
|
+
|
63
|
+
// Create columns arrays based on count
|
64
|
+
function createColumns(count) {
|
65
|
+
return Array.from({ length: count }, () => []);
|
66
|
+
}
|
67
|
+
|
68
|
+
// Initial columns setup for SSR
|
69
|
+
if (ssrColumns.value > 0) {
|
70
|
+
const newColumns = createColumns(ssrColumns.value);
|
71
|
+
props.items.forEach((_, i) => newColumns[i % ssrColumns.value].push(i));
|
72
|
+
columns.value = newColumns;
|
73
|
+
}
|
74
|
+
|
75
|
+
// Asynchronously fill columns with items
|
76
|
+
async function fillColumns(itemIndex) {
|
77
|
+
if (itemIndex >= props.items.length) return;
|
78
|
+
await nextTick();
|
79
|
+
const columnDivs = [...wall.value.children];
|
80
|
+
if (rtl.value) columnDivs.reverse();
|
81
|
+
const target = columnDivs.reduce((prev, curr) =>
|
82
|
+
curr.getBoundingClientRect().height < prev.getBoundingClientRect().height ? curr : prev
|
83
|
+
);
|
84
|
+
columns.value[+target.dataset.index].push(itemIndex);
|
85
|
+
await fillColumns(itemIndex + 1);
|
86
|
+
}
|
87
|
+
|
88
|
+
// Redraw columns, optionally forcing a refresh
|
89
|
+
async function redraw(force = false) {
|
90
|
+
if (columns.value.length === columnCount() && !force) {
|
91
|
+
emit('redrawSkip');
|
92
|
+
return;
|
93
|
+
}
|
94
|
+
columns.value = createColumns(columnCount());
|
95
|
+
// const scrollY = scrollContainer.value ? scrollContainer.value.scrollTop : window.scrollY;
|
96
|
+
await fillColumns(0);
|
97
|
+
// if (scrollContainer.value) {
|
98
|
+
// scrollContainer.value.scrollTop = scrollY;
|
99
|
+
// } else {
|
100
|
+
// window.scrollTo({ top: scrollY });
|
101
|
+
// }
|
102
|
+
emit('redraw');
|
103
|
+
}
|
104
|
+
|
105
|
+
// Observe wall size changes to trigger redraw
|
106
|
+
const resizeObserver = typeof ResizeObserver !== 'undefined' ? new ResizeObserver(() => redraw()) : undefined;
|
107
|
+
|
108
|
+
onMounted(() => {
|
109
|
+
redraw();
|
110
|
+
if (resizeObserver) resizeObserver.observe(wall.value);
|
111
|
+
});
|
112
|
+
|
113
|
+
onBeforeUnmount(() => {
|
114
|
+
if (resizeObserver) resizeObserver.unobserve(wall.value);
|
115
|
+
});
|
116
|
+
|
117
|
+
// Watchers for reactive properties
|
118
|
+
watch([items, rtl, columnWidth, gap, minColumns, maxColumns, ssrColumns], () => redraw(true));
|
119
|
+
|
120
|
+
return { getColumnWidthTarget };
|
121
|
+
}
|
122
|
+
|
123
|
+
const { getColumnWidthTarget } = useMasonryWall({
|
124
|
+
columns,
|
125
|
+
columnWidth: props.columnWidth,
|
126
|
+
emit,
|
127
|
+
gap: props.gap,
|
128
|
+
items: props.items,
|
129
|
+
maxColumns: props.maxColumns,
|
130
|
+
minColumns: props.minColumns,
|
131
|
+
rtl: props.rtl,
|
132
|
+
scrollContainer: props.scrollContainer,
|
133
|
+
ssrColumns: props.ssrColumns,
|
134
|
+
wall
|
135
|
+
});
|
136
|
+
|
137
|
+
|
138
|
+
</script>
|
139
|
+
|
140
|
+
<template>
|
141
|
+
<div
|
142
|
+
ref="wall"
|
143
|
+
class="masonry-wall"
|
144
|
+
:style="{ display: 'flex', gap: `${props.gap}px` }"
|
145
|
+
>
|
146
|
+
<div
|
147
|
+
v-for="(column, columnIndex) in columns"
|
148
|
+
:key="columnIndex"
|
149
|
+
class="masonry-column"
|
150
|
+
:data-index="columnIndex"
|
151
|
+
:style="{
|
152
|
+
'display': 'flex',
|
153
|
+
'flex-basis': `${getColumnWidthTarget(columnIndex)}px`,
|
154
|
+
'flex-direction': 'column',
|
155
|
+
'flex-grow': 1,
|
156
|
+
'gap': `${props.gap}px`,
|
157
|
+
'height': '-webkit-max-content, -moz-max-content, max-content',
|
158
|
+
'min-width': 0,
|
159
|
+
}"
|
160
|
+
>
|
161
|
+
<div
|
162
|
+
v-for="(itemIndex, row) in column"
|
163
|
+
:key="props.keyMapper ? props.keyMapper(props.items[itemIndex], columnIndex, row, itemIndex) : itemIndex"
|
164
|
+
class="masonry-item"
|
165
|
+
>
|
166
|
+
<slot
|
167
|
+
:item="props.items[itemIndex]"
|
168
|
+
:column="columnIndex"
|
169
|
+
:row="row"
|
170
|
+
:index="itemIndex"
|
171
|
+
>
|
172
|
+
{{ props.items[itemIndex] }}
|
173
|
+
</slot>
|
174
|
+
</div>
|
175
|
+
</div>
|
176
|
+
</div>
|
177
|
+
</template>
|
@@ -1,5 +1,5 @@
|
|
1
1
|
<template>
|
2
|
-
<div class="pd-thin radius-extra flex-nowrap flex">
|
2
|
+
<div class=" pd-thin radius-extra flex-nowrap flex">
|
3
3
|
<Field
|
4
4
|
v-model:field="inputField"
|
5
5
|
@update:field="updateInput"
|
@@ -7,9 +7,9 @@
|
|
7
7
|
@input="handleInput"
|
8
8
|
@focus="handleFocus"
|
9
9
|
@blur="checkInput"
|
10
|
-
class="w-100 t-
|
10
|
+
class="w-100 p-medium t-regular uppercase pd-small"
|
11
11
|
/>
|
12
|
-
<button v-if="action" @click="emitAction" class="w-max hover-bg-
|
12
|
+
<button v-if="action" @click="emitAction" class="t-medium radius-big uppercase cursor-pointer pd-l-semi pd-r-semi w-max hover-bg-fifth t-semi transition-linear transition-timing-1 t-black bg-main" v-html="action"/>
|
13
13
|
</div>
|
14
14
|
</template>
|
15
15
|
|
@@ -1,123 +1,168 @@
|
|
1
1
|
<template>
|
2
|
-
<canvas ref="refCanvas"
|
2
|
+
<canvas id="glcanvas" ref="refCanvas"/>
|
3
3
|
</template>
|
4
4
|
|
5
5
|
<script setup>
|
6
|
-
import {onMounted, ref} from 'vue'
|
7
|
-
|
8
|
-
|
9
|
-
const
|
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
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
|
6
|
+
import {onMounted, ref} from 'vue'
|
7
|
+
|
8
|
+
onMounted(() => {
|
9
|
+
const canvas = document.getElementById('glcanvas');
|
10
|
+
const gl = canvas.getContext('webgl') || canvas.getContext('experimental-webgl');
|
11
|
+
|
12
|
+
const vsSource = `
|
13
|
+
attribute vec4 aVertexPosition;
|
14
|
+
void main() {
|
15
|
+
gl_Position = aVertexPosition;
|
16
|
+
}
|
17
|
+
`;
|
18
|
+
|
19
|
+
// Fragment shader (your GLSL code goes here)
|
20
|
+
const fsSource = `
|
21
|
+
precision mediump float;
|
22
|
+
|
23
|
+
const float PI = 3.14159265358979323846264;
|
24
|
+
const float TWOPI = PI * 2.0;
|
25
|
+
const vec4 WHITE = vec4(0.0, 1.0, 0.533, 1); // Для цвета F6F9F7
|
26
|
+
const vec4 BLACK = vec4(0.0, 0.9, 0.48, 1); // Для цвета EBF2ED
|
27
|
+
|
28
|
+
const int MAX_RINGS = 30;
|
29
|
+
const float RING_DISTANCE = 0.03;
|
30
|
+
const float WAVE_COUNT = 60.0;
|
31
|
+
const float WAVE_DEPTH = 0.08;
|
32
|
+
|
33
|
+
uniform float iTime;
|
34
|
+
uniform vec2 iResolution;
|
35
|
+
|
36
|
+
void main() {
|
37
|
+
float rot = mod(iTime * 0.6, TWOPI);
|
38
|
+
vec2 fragCoord = gl_FragCoord.xy;
|
39
|
+
vec2 pos = vec2(fragCoord.x / iResolution.x, fragCoord.y / iResolution.y);
|
40
|
+
pos = vec2(3.0 * (pos.x - 0.5), 3.0 * (pos.y - 0.4));
|
41
|
+
float x = pos.x;
|
42
|
+
float y = pos.y;
|
43
|
+
|
44
|
+
bool black = false;
|
45
|
+
float prevRingDist = RING_DISTANCE;
|
46
|
+
for (int i = 0; i < MAX_RINGS; i++) {
|
47
|
+
vec2 center = vec2(0.0, 0.7 - RING_DISTANCE * float(i) * 1.2);
|
48
|
+
float radius = 0.5 + RING_DISTANCE / (pow(float(i + 5), 1.1) * 0.006);
|
49
|
+
float dist = distance(center, pos);
|
50
|
+
dist = pow(dist, 0.3);
|
51
|
+
float ringDist = abs(dist - radius);
|
52
|
+
if (ringDist < RING_DISTANCE * prevRingDist * 7.0) {
|
53
|
+
float angle = atan(y - center.y, x - center.x);
|
54
|
+
float thickness = 1.1 * abs(dist - radius) / prevRingDist;
|
55
|
+
float depthFactor = WAVE_DEPTH * sin((angle + rot * radius) * WAVE_COUNT);
|
56
|
+
if (dist > radius) {
|
57
|
+
black = (thickness < RING_DISTANCE * 5.0 - depthFactor * 2.0);
|
58
|
+
} else {
|
59
|
+
black = (thickness < RING_DISTANCE * 5.0 + depthFactor);
|
60
|
+
}
|
61
|
+
break;
|
62
|
+
}
|
63
|
+
if (dist > radius) break;
|
64
|
+
prevRingDist = ringDist;
|
65
|
+
}
|
66
|
+
|
67
|
+
gl_FragColor = black ? BLACK : WHITE;
|
68
|
+
}
|
69
|
+
|
70
|
+
`;
|
71
|
+
|
72
|
+
function compileShader(gl, type, source) {
|
73
|
+
const shader = gl.createShader(type);
|
74
|
+
gl.shaderSource(shader, source);
|
75
|
+
gl.compileShader(shader);
|
76
|
+
|
77
|
+
// Check for compilation errors
|
78
|
+
if (!gl.getShaderParameter(shader, gl.COMPILE_STATUS)) {
|
79
|
+
alert('An error occurred compiling the shaders: ' + gl.getShaderInfoLog(shader));
|
80
|
+
gl.deleteShader(shader);
|
81
|
+
return null;
|
82
|
+
}
|
83
|
+
|
84
|
+
return shader;
|
85
|
+
}
|
86
|
+
|
87
|
+
const vertexShader = compileShader(gl, gl.VERTEX_SHADER, vsSource);
|
88
|
+
const fragmentShader = compileShader(gl, gl.FRAGMENT_SHADER, fsSource);
|
89
|
+
|
90
|
+
// Create the shader program
|
91
|
+
const shaderProgram = gl.createProgram();
|
92
|
+
|
93
|
+
gl.attachShader(shaderProgram, vertexShader);
|
94
|
+
gl.attachShader(shaderProgram, fragmentShader);
|
95
|
+
gl.linkProgram(shaderProgram);
|
96
|
+
|
97
|
+
// Check for linking errors
|
98
|
+
if (!gl.getProgramParameter(shaderProgram, gl.LINK_STATUS)) {
|
99
|
+
alert('Unable to initialize the shader program: ' + gl.getProgramInfoLog(shaderProgram));
|
100
|
+
}
|
101
|
+
|
102
|
+
function resizeCanvasToDisplaySize(canvas) {
|
103
|
+
const width = canvas.clientWidth * window.devicePixelRatio;
|
104
|
+
const height = canvas.clientHeight * window.devicePixelRatio;
|
105
|
+
if (canvas.width !== width || canvas.height !== height) {
|
106
|
+
canvas.width = width;
|
107
|
+
canvas.height = height;
|
108
|
+
return true; // размер изменился
|
109
|
+
}
|
110
|
+
return false; // размер не изменился
|
111
|
+
}
|
112
|
+
|
113
|
+
|
114
|
+
function render() {
|
115
|
+
if (resizeCanvasToDisplaySize(gl.canvas)) {
|
116
|
+
gl.viewport(0, 0, gl.canvas.width, gl.canvas.height);
|
117
|
+
}
|
118
|
+
gl.clearColor(0.0, 0.0, 0.0, 1.0); // Clear to black, fully opaque
|
119
|
+
gl.clearDepth(1.0); // Clear everything
|
120
|
+
gl.enable(gl.DEPTH_TEST); // Enable depth testing
|
121
|
+
gl.depthFunc(gl.LEQUAL); // Near things obscure far things
|
122
|
+
|
123
|
+
// Clear the canvas before we start drawing on it
|
124
|
+
gl.clear(gl.COLOR_BUFFER_BIT | gl.DEPTH_BUFFER_BIT);
|
125
|
+
|
126
|
+
// Set the shader program
|
127
|
+
gl.useProgram(shaderProgram);
|
128
|
+
|
129
|
+
// Set up geometry, attributes, uniforms here
|
130
|
+
// Create a buffer for the square's positions
|
131
|
+
const positionBuffer = gl.createBuffer();
|
132
|
+
gl.bindBuffer(gl.ARRAY_BUFFER, positionBuffer);
|
133
|
+
|
134
|
+
// Now create an array of positions for the square
|
135
|
+
const positions = [
|
136
|
+
-1.0, 1.0,
|
137
|
+
1.0, 1.0,
|
138
|
+
-1.0, -1.0,
|
139
|
+
1.0, -1.0,
|
140
|
+
];
|
141
|
+
|
142
|
+
// Pass the positions to WebGL
|
143
|
+
gl.bufferData(gl.ARRAY_BUFFER, new Float32Array(positions), gl.STATIC_DRAW);
|
144
|
+
|
145
|
+
// Tell WebGL how to pull out the positions from the position buffer
|
146
|
+
const vertexPosition = gl.getAttribLocation(shaderProgram, 'aVertexPosition');
|
147
|
+
gl.vertexAttribPointer(vertexPosition, 2, gl.FLOAT, false, 0, 0);
|
148
|
+
gl.enableVertexAttribArray(vertexPosition);
|
149
|
+
|
150
|
+
// Set the shader uniforms
|
151
|
+
var timeUniformLocation = gl.getUniformLocation(shaderProgram, 'iTime');
|
152
|
+
var resolutionUniformLocation = gl.getUniformLocation(shaderProgram, 'iResolution');
|
153
|
+
|
154
|
+
gl.uniform1f(timeUniformLocation, performance.now() / 3000.0);
|
155
|
+
gl.uniform2f(resolutionUniformLocation, gl.canvas.width, gl.canvas.height);
|
156
|
+
|
157
|
+
// Draw the scene
|
158
|
+
gl.drawArrays(gl.TRIANGLE_STRIP, 0, 4);
|
159
|
+
|
160
|
+
// Call render again on the next frame
|
161
|
+
requestAnimationFrame(render);
|
162
|
+
}
|
163
|
+
requestAnimationFrame(render);
|
164
|
+
|
165
|
+
});
|
121
166
|
</script>
|
122
167
|
|
123
168
|
<style scoped>
|
@@ -0,0 +1,92 @@
|
|
1
|
+
<template>
|
2
|
+
<div class="embla" ref="emblaNode">
|
3
|
+
<div class="embla__container">
|
4
|
+
|
5
|
+
<div class="embla__slide pd-nano" v-for="(entity, key, index) in entitiesState" :key="key">
|
6
|
+
<transition name="fade" mode="out-in" appear>
|
7
|
+
<!-- <div
|
8
|
+
v-if="!isLoading && entitiesState.length > 0"
|
9
|
+
class="h-100 w-100 radius-big flex-center bg-grey"
|
10
|
+
>
|
11
|
+
<Loader class="pos-relative"/>
|
12
|
+
</div>
|
13
|
+
-->
|
14
|
+
<slot
|
15
|
+
:item="entity"
|
16
|
+
:user="user"
|
17
|
+
></slot>
|
18
|
+
</transition>
|
19
|
+
</div>
|
20
|
+
|
21
|
+
</div>
|
22
|
+
</div>
|
23
|
+
</template>
|
24
|
+
|
25
|
+
<style scoped>
|
26
|
+
|
27
|
+
</style>
|
28
|
+
|
29
|
+
<script setup scoped>
|
30
|
+
import { ref, onMounted } from 'vue'
|
31
|
+
import { useRouter } from 'vue-router'
|
32
|
+
import { useI18n } from 'vue-i18n'
|
33
|
+
|
34
|
+
import emblaCarouselVue from 'embla-carousel-vue'
|
35
|
+
import Autoplay from 'embla-carousel-autoplay'
|
36
|
+
|
37
|
+
import Loader from '@pf/src/components/Loader/Loader.vue'
|
38
|
+
|
39
|
+
// Props for customization
|
40
|
+
const props = defineProps({
|
41
|
+
store: Object, // Expect a store object with a 'read' function
|
42
|
+
options: Object, // Options to pass to the store's read function
|
43
|
+
text: Object, // Optional: Custom text for i18n
|
44
|
+
});
|
45
|
+
|
46
|
+
const router = useRouter()
|
47
|
+
|
48
|
+
const { t } = useI18n(props.text || {
|
49
|
+
messages: {
|
50
|
+
en: {
|
51
|
+
title: 'Explore Our Collection',
|
52
|
+
},
|
53
|
+
}
|
54
|
+
})
|
55
|
+
|
56
|
+
const entitiesState = ref([])
|
57
|
+
const isLoading = ref(true);
|
58
|
+
|
59
|
+
|
60
|
+
const autoplayOptions = {
|
61
|
+
delay: 2000,
|
62
|
+
jump: false,
|
63
|
+
stopOnInteraction: false,
|
64
|
+
stopOnMouseEnter: false,
|
65
|
+
stopOnFocusIn: true,
|
66
|
+
stopOnLastSnap: false,
|
67
|
+
rootNode: (emblaRoot) => emblaRoot.parentElement
|
68
|
+
}
|
69
|
+
|
70
|
+
const [emblaNode, emblaApi] = emblaCarouselVue({ loop: true }, [Autoplay(autoplayOptions)])
|
71
|
+
|
72
|
+
const scrollTo = (index) => emblaApi.value && emblaApi.value.scrollTo(index);
|
73
|
+
// const onInit = (embla) => scrollSnaps.value = emblaApi.value.scrollSnapList();
|
74
|
+
const onSelect = (embla) => selectedIndex.value = emblaApi.value.selectedScrollSnap();
|
75
|
+
|
76
|
+
onMounted(async() => {
|
77
|
+
entitiesState.value = await props.store.read({
|
78
|
+
...props.options
|
79
|
+
});
|
80
|
+
|
81
|
+
console.log(entitiesState.value)
|
82
|
+
|
83
|
+
isLoading.value = false;
|
84
|
+
|
85
|
+
onInit(emblaApi);
|
86
|
+
onSelect(emblaApi);
|
87
|
+
|
88
|
+
emblaApi.value.on('reInit', onInit);
|
89
|
+
emblaApi.value.on('reInit', onSelect);
|
90
|
+
emblaApi.value.on('select', onSelect);
|
91
|
+
});
|
92
|
+
</script>
|