@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
@@ -1,27 +1,56 @@
|
|
1
1
|
<template>
|
2
|
-
<div class="
|
3
|
-
|
4
|
-
<
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
2
|
+
<div class="bg-white radius-semi bg-white o-hidden pos-relative">
|
3
|
+
|
4
|
+
<div ref="allMessages" class="chat-messages o-scroll h-max-20r">
|
5
|
+
<div class="pos-relative h-min-20r flex-justify-end flex flex-column br-b br-solid br-black-transp-10">
|
6
|
+
<transition name="scaleIn" mode="out-in">
|
7
|
+
<div v-if="messages.length < 1" class="flex-center w-100 h-100 flex-column flex pos-absolute">
|
8
|
+
<PlaceholderChat class="radius-100 mn-b-thin"/>
|
9
|
+
<h4>Here you can view your chat history</h4>
|
10
|
+
<p>Feel free to ask if you have any questions.</p>
|
11
|
+
</div>
|
12
|
+
|
13
|
+
<TransitionGroup v-else name="list" tag="ul" class="w-100 o-hidden">
|
14
|
+
<ChatMessage
|
15
|
+
v-for="message in messages"
|
16
|
+
:key="message._id"
|
17
|
+
:message="message"
|
18
|
+
/>
|
19
|
+
|
20
|
+
</TransitionGroup>
|
21
|
+
</transition>
|
22
|
+
|
23
|
+
</div>
|
24
|
+
</div>
|
25
|
+
|
26
|
+
|
27
|
+
<div class="flex-nowrap flex-v-center flex bg-white w-100 radius-big pd-small">
|
28
|
+
<IconAdd
|
29
|
+
class="mn-r-thin t-transp i-regular"
|
30
|
+
/>
|
31
|
+
<input class="" placeholder="Enter your message" type="text" v-model="newMessage" @keyup.enter="sendMessage" />
|
32
|
+
</div>
|
11
33
|
</div>
|
12
34
|
</template>
|
13
35
|
|
14
36
|
<script setup>
|
15
|
-
import { ref, computed } from 'vue';
|
37
|
+
import { ref, computed, watch } from 'vue';
|
38
|
+
|
39
|
+
import IconAdd from '@pf/src/modules/icons/navigation/IconAdd.vue'
|
40
|
+
import PlaceholderChat from '@pf/src/modules/icons/placeholders/PlaceholderChat.vue'
|
41
|
+
|
16
42
|
import ChatMessage from '../blocks/ChatMessage.vue';
|
17
43
|
import chatStore from '../../store/chat.store.js';
|
18
44
|
|
19
45
|
const newMessage = ref('');
|
46
|
+
const allMessages = ref(null)
|
47
|
+
|
48
|
+
// Вычисляемые свойства
|
20
49
|
const messages = computed(() => chatStore.state.messages);
|
21
50
|
|
51
|
+
// Функция для отправки сообщения
|
22
52
|
const sendMessage = () => {
|
23
53
|
if (newMessage.value) {
|
24
|
-
|
25
54
|
const message = {
|
26
55
|
text: newMessage.value,
|
27
56
|
username: chatStore.state.username,
|
@@ -29,12 +58,28 @@ const sendMessage = () => {
|
|
29
58
|
};
|
30
59
|
|
31
60
|
chatStore.methods.addMessage(message);
|
61
|
+
console.log(allMessages.value.lastElementChild.offsetHeight)
|
62
|
+
allMessages.value.scrollTop = allMessages.value.lastElementChild.offsetHeight
|
32
63
|
|
33
64
|
newMessage.value = '';
|
34
65
|
}
|
35
66
|
};
|
67
|
+
|
68
|
+
// // При добавлении нового сообщения автоматически прокручиваем вниз
|
69
|
+
watch(chatStore.state.messages, () => {
|
70
|
+
allMessages.value.scrollTop = allMessages.value.lastElementChild.offsetHeight
|
71
|
+
}, {deep: true});
|
72
|
+
|
36
73
|
</script>
|
37
74
|
|
38
75
|
<style>
|
39
|
-
|
76
|
+
.list-enter-active,
|
77
|
+
.list-leave-active {
|
78
|
+
transition: all 0.5s ease;
|
79
|
+
}
|
80
|
+
.list-enter-from,
|
81
|
+
.list-leave-to {
|
82
|
+
opacity: 0;
|
83
|
+
transform: translateX(30px);
|
84
|
+
}
|
40
85
|
</style>
|
@@ -9,8 +9,12 @@ const state = reactive({
|
|
9
9
|
|
10
10
|
const methods = {
|
11
11
|
connectWebSocket() {
|
12
|
+
console.log('process env')
|
13
|
+
console.log(process.env.WSS_URL)
|
14
|
+
|
12
15
|
return new Promise(function(resolve, reject) {
|
13
|
-
|
16
|
+
|
17
|
+
state.websocket = new WebSocket(process.env.WSS_URL);
|
14
18
|
|
15
19
|
state.websocket.onopen = function() {
|
16
20
|
resolve(state.websocket);
|
@@ -28,6 +32,7 @@ const methods = {
|
|
28
32
|
});
|
29
33
|
},
|
30
34
|
setMessages(messages) {
|
35
|
+
console.log(process.env.API_URL)
|
31
36
|
state.messages = messages;
|
32
37
|
},
|
33
38
|
addMessage(message) {
|
@@ -7,7 +7,6 @@ import FooterBlogpost from './components/blocks/FooterBlogpost.vue';
|
|
7
7
|
import Activity from './components/blocks/Activity.vue';
|
8
8
|
import CardBlogpost from './components/blocks/CardBlogpost.vue';
|
9
9
|
import Feed from './components/sections/Feed.vue';
|
10
|
-
import SubscribeNewsletter from './components/sections/SubscribeNewsletter.vue';
|
11
10
|
import JoinUs from './components/sections/JoinUs.vue';
|
12
11
|
import Comments from './components/sections/Comments.vue';
|
13
12
|
import HotPosts from './components/sections/HotPosts.vue';
|
@@ -30,7 +29,6 @@ export {
|
|
30
29
|
Activity,
|
31
30
|
CardBlogpost,
|
32
31
|
Feed,
|
33
|
-
SubscribeNewsletter,
|
34
32
|
JoinUs,
|
35
33
|
Comments,
|
36
34
|
HotPosts,
|
@@ -1,39 +1,50 @@
|
|
1
1
|
<template>
|
2
2
|
<article
|
3
|
-
class="pos-relative bg-grey radius-big"
|
3
|
+
class="pos-relative bg-grey radius-big flex-column flex"
|
4
4
|
>
|
5
5
|
|
6
|
-
<
|
6
|
+
<router-link
|
7
7
|
v-if="user && user === blogpost.creator.target._id"
|
8
|
-
|
8
|
+
:to="{
|
9
9
|
name: 'Edit BlogPost',
|
10
10
|
params: {
|
11
11
|
url: blogpost.url
|
12
12
|
}
|
13
|
-
}
|
14
|
-
class="
|
15
|
-
|
13
|
+
}"
|
14
|
+
class="
|
15
|
+
cursor-pointer
|
16
|
+
pos-absolute pos-t-regular pos-r-regular
|
17
|
+
radius-extra pd-thin bg-second
|
18
|
+
"
|
19
|
+
>
|
20
|
+
<IconEdit
|
21
|
+
class="i-regular"
|
22
|
+
classes="fill-white"
|
23
|
+
/>
|
24
|
+
</router-link>
|
16
25
|
|
17
26
|
<CardHeader
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
27
|
+
:class="{
|
28
|
+
'mn-b-small pd-medium': type !== 'short',
|
29
|
+
'flex-child-order-last flex-child mn-l-small': type === 'short',
|
30
|
+
}"
|
31
|
+
:entity="blogpost"
|
32
|
+
:entityType="'blogpost'"
|
33
|
+
:user="user"
|
34
|
+
:owner="blogpost.owner"
|
35
|
+
:creator="blogpost.creator"
|
36
|
+
:date="blogpost.createdAt"
|
37
|
+
/>
|
38
|
+
|
39
|
+
<!-- <Image :prop="{content:firstImage.content}" class="h-100"/> -->
|
40
|
+
|
30
41
|
<template
|
31
42
|
v-if="firstImage && firstImage.content && type !== 'blogpostPage'"
|
32
43
|
>
|
33
44
|
<img
|
34
45
|
:src="(FILE_SERVER_URL || '') + firstImage.content"
|
35
46
|
alt="Blog post image"
|
36
|
-
class="mn-b-medium object-fit-cover w-100 h-
|
47
|
+
class="mn-b-medium object-fit-cover w-100 h-min-10r h-100"
|
37
48
|
/>
|
38
49
|
</template>
|
39
50
|
|
@@ -41,11 +52,11 @@
|
|
41
52
|
v-if="!firstImage?.content && firstVideo && firstVideo.content && type !== 'blogpostPage'"
|
42
53
|
>
|
43
54
|
<div class="flex-center flex">
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
55
|
+
<video controls class="mn-b-medium object-fit-cover w-100 h-min-10r h-max-20r">
|
56
|
+
<source :src="firstVideo.content" type="video/mp4">
|
57
|
+
Your browser does not support the video tag.
|
58
|
+
</video>
|
59
|
+
</div>
|
49
60
|
</template>
|
50
61
|
|
51
62
|
<section
|
@@ -54,30 +65,40 @@
|
|
54
65
|
|
55
66
|
<div v-if="type !== 'blogpostPage'" class="cursor-pointer mn-b-thin flex-nowrap flex w-100">
|
56
67
|
|
57
|
-
<
|
58
|
-
|
68
|
+
<Text
|
69
|
+
:text="blogpost.name || ''"
|
70
|
+
:maxLen="80"
|
71
|
+
class="h3 d-block"
|
72
|
+
@click="router.push({
|
59
73
|
name: 'BlogPost',
|
60
74
|
params: {
|
61
75
|
url: blogpost.url
|
62
76
|
}
|
63
77
|
})"
|
64
|
-
|
65
|
-
{{blogpost.name}}
|
66
|
-
</h3>
|
78
|
+
/>
|
67
79
|
|
68
|
-
<div
|
80
|
+
<div
|
81
|
+
v-if="blogpost.status === 'draft'"
|
82
|
+
class="pd-micro t-white uppercase t-semi p-small flex-center flex pd-r-small pd-l-small mn-l-thin w-min bg-second radius-extra"
|
83
|
+
>
|
69
84
|
{{blogpost.status}}
|
70
85
|
</div>
|
71
86
|
|
72
87
|
</div>
|
88
|
+
|
73
89
|
<p
|
74
|
-
v-if="firstText && firstText.content && type !== 'blogpostPage'"
|
90
|
+
v-if="firstText && firstText.content && type !== 'blogpostPage' && !hideDescription"
|
75
91
|
class='mn-b-small t-transp p-big'
|
76
92
|
>
|
77
93
|
{{firstText.content.slice(0,120)}}...
|
78
94
|
</p>
|
79
95
|
|
80
|
-
<h3
|
96
|
+
<h3
|
97
|
+
v-if="type === 'blogpostPage'"
|
98
|
+
class="mn-b-small h2"
|
99
|
+
>
|
100
|
+
{{blogpost.name}}
|
101
|
+
</h3>
|
81
102
|
|
82
103
|
<slot></slot>
|
83
104
|
|
@@ -102,6 +123,9 @@
|
|
102
123
|
import CardHeader from '@pf/src/modules/globals/components/blocks/CardHeader.vue'
|
103
124
|
import FooterBlogpost from '@pf/src/modules/community/components/blocks/FooterBlogpost.vue'
|
104
125
|
|
126
|
+
import Image from '@pf/src/modules/constructor/components/elements/Image.vue';
|
127
|
+
|
128
|
+
import Text from '@pf/src/components/Text/Text.vue'
|
105
129
|
import Chips from '@pf/src/components/Chips/Chips.vue'
|
106
130
|
|
107
131
|
import IconEdit from '@pf/src/modules/icons/navigation/IconEdit.vue'
|
@@ -112,7 +136,21 @@
|
|
112
136
|
|
113
137
|
const router = useRouter()
|
114
138
|
|
115
|
-
const props = defineProps(
|
139
|
+
const props = defineProps({
|
140
|
+
blogpost: {
|
141
|
+
type: Object,
|
142
|
+
},
|
143
|
+
user: {
|
144
|
+
type: String,
|
145
|
+
},
|
146
|
+
type: {
|
147
|
+
type: String,
|
148
|
+
},
|
149
|
+
hideDescription: {
|
150
|
+
type: Boolean,
|
151
|
+
default: false
|
152
|
+
}
|
153
|
+
})
|
116
154
|
|
117
155
|
const firstImage = computed(() => {
|
118
156
|
return props.blogpost.content.find(block => block.type === 'ImageUpload');
|
@@ -1,48 +1,73 @@
|
|
1
1
|
<template>
|
2
|
-
<div style="grid-template-columns:
|
2
|
+
<div style="grid-template-columns: 2fr 4fr 2fr;" class="cols-3 gap-thin pd-thin">
|
3
3
|
|
4
|
-
<ul class="w-100 bg-grey radius-big pd-medium p-medium gap-thin flex-column flex-nowrap flex">
|
4
|
+
<ul class="align-self-start pos-sticky pos-t-0 w-100 bg-grey radius-big pd-medium p-medium gap-thin flex-column flex-nowrap flex">
|
5
5
|
<li
|
6
|
-
|
7
|
-
|
8
|
-
|
6
|
+
:class="{'t-black bg-white': route.params.category === 'featured' }"
|
7
|
+
@click="router.push({name: 'Blog', params: { category: 'featured' } })"
|
8
|
+
class="cursor-pointer flex-v-center flex t-medium pd-thin radius-extra"
|
9
|
+
>
|
10
|
+
<IconFeatured class="i-medium mn-r-thin t-transp"/>
|
11
|
+
Featured
|
12
|
+
</li>
|
9
13
|
<li
|
10
|
-
|
11
|
-
|
12
|
-
|
14
|
+
:class="{'t-black bg-white': route.params.category === 'popular' }"
|
15
|
+
@click="router.push({name: 'Blog', params: { category: 'popular' } })"
|
16
|
+
class="cursor-pointer t-medium flex-v-center flex pd-thin radius-extra"
|
17
|
+
>
|
18
|
+
<IconPopular class="i-medium mn-r-thin t-transp"/>
|
19
|
+
Popular
|
20
|
+
</li>
|
13
21
|
<li
|
14
|
-
|
15
|
-
|
16
|
-
|
22
|
+
:class="{'t-black bg-white': route.params.category === 'new'}"
|
23
|
+
@click="router.push({name: 'Blog', params: { category: 'new' } })"
|
24
|
+
class="cursor-pointer t-medium flex-v-center flex pd-thin radius-extra"
|
25
|
+
>
|
26
|
+
<IconRecent class="i-medium mn-r-thin t-transp"/>
|
27
|
+
Recent
|
28
|
+
</li>
|
17
29
|
<li
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
30
|
+
v-if="auth.state.user._id"
|
31
|
+
:class="{'t-white bg-black': route.params.category === 'following'}"
|
32
|
+
@click="router.push({name: 'Blog', params: { category: 'following' } })"
|
33
|
+
class="cursor-pointer t-medium flex-v-center flex pd-thin radius-extra"
|
34
|
+
>
|
35
|
+
<IconFollowing class="i-medium mn-r-thin t-transp"/>
|
36
|
+
Following
|
37
|
+
</li>
|
38
|
+
|
39
|
+
<router-link
|
40
|
+
:to="{
|
41
|
+
name: 'Create BlogPost'
|
42
|
+
}"
|
43
|
+
class="button t-medium mn-t-small bg-main w-100"
|
44
|
+
>
|
45
|
+
Create Post
|
46
|
+
</router-link>
|
24
47
|
</ul>
|
25
48
|
|
26
49
|
<section class="pos-relative">
|
27
50
|
|
28
|
-
<header class="bg-
|
29
|
-
<h2 class="pos-relative flex-v-center flex-nowrap flex
|
30
|
-
<span class="">Topics for </span>
|
51
|
+
<header class="bg-main t-black radius-big pd-medium pos-relative mn-b-thin flex-v-center t-left flex-nowrap flex">
|
52
|
+
<h2 class="pos-relative flex-v-center flex-nowrap flex">
|
53
|
+
<span class="mn-r-small">Topics for </span>
|
31
54
|
|
32
55
|
<Select
|
33
56
|
:options="['today','week','month','year']"
|
34
57
|
v-model:select="blog.state.filter.period"
|
35
58
|
placeholder="Select type"
|
36
59
|
class="
|
60
|
+
t-semi
|
37
61
|
pos-relative
|
38
62
|
w-max
|
39
|
-
|
40
|
-
bg-grey
|
63
|
+
bg-main t-black
|
41
64
|
pd-thin
|
42
65
|
radius-medium
|
43
66
|
h2
|
44
67
|
t-center
|
45
|
-
|
68
|
+
br-solid
|
69
|
+
br-2px
|
70
|
+
br-black-transp-10
|
46
71
|
"
|
47
72
|
/>
|
48
73
|
</h2>
|
@@ -56,10 +81,19 @@
|
|
56
81
|
|
57
82
|
</section>
|
58
83
|
|
59
|
-
<div class="bg-grey radius-big pd-medium">
|
84
|
+
<div class="align-self-start bg-grey radius-big pd-medium">
|
60
85
|
<div class="gap-thin flex-nowrap flex">
|
61
|
-
<p class="mn-b-small">
|
62
|
-
|
86
|
+
<p class="t-medium mn-b-small">Popular Communities</p>
|
87
|
+
|
88
|
+
<router-link
|
89
|
+
v-if="auth.state.user._id"
|
90
|
+
:to="{
|
91
|
+
name: 'Create Organization'
|
92
|
+
}"
|
93
|
+
class="t-medium cursor-pointer hover-scale-1 radius-extra flex-center flex i-medium bg-main"
|
94
|
+
>
|
95
|
+
+
|
96
|
+
</router-link>
|
63
97
|
</div>
|
64
98
|
|
65
99
|
|
@@ -111,6 +145,11 @@
|
|
111
145
|
import Feed from '@pf/src/components/Feed/Feed.vue'
|
112
146
|
import CardOrganization from '@pf/src/modules/organizations/components/blocks/CardOrganization.vue'
|
113
147
|
|
148
|
+
import IconFeatured from '@pf/src/modules/icons/entities/IconFeatured.vue'
|
149
|
+
import IconPopular from '@pf/src/modules/icons/entities/IconPopular.vue'
|
150
|
+
import IconRecent from '@pf/src/modules/icons/entities/IconRecent.vue'
|
151
|
+
import IconFollowing from '@pf/src/modules/icons/entities/IconFollowing.vue'
|
152
|
+
|
114
153
|
// Import state
|
115
154
|
import * as blog from '@pf/src/modules/community/store/blogposts.js';
|
116
155
|
import * as auth from '@pf/src/modules/auth/store/auth'
|
@@ -1,5 +1,42 @@
|
|
1
1
|
<template>
|
2
2
|
<section>
|
3
|
+
|
4
|
+
|
5
|
+
|
6
|
+
<!-- <Feed
|
7
|
+
:showLoadMore="false"
|
8
|
+
:states="{
|
9
|
+
empty: {
|
10
|
+
title: 'No Blogposts Found',
|
11
|
+
description: 'Currently, there are no blogposts available.'
|
12
|
+
}
|
13
|
+
}"
|
14
|
+
:store="{
|
15
|
+
read: (options) => blog.read(options),
|
16
|
+
state: blog.state.all
|
17
|
+
}"
|
18
|
+
:options="{
|
19
|
+
skip: 0,
|
20
|
+
limit: 8,
|
21
|
+
user: auth.state.user._id,
|
22
|
+
period: 'year'
|
23
|
+
}"
|
24
|
+
v-slot="{
|
25
|
+
items
|
26
|
+
}"
|
27
|
+
class="cols-4 gap-thin"
|
28
|
+
>
|
29
|
+
<CardBlogpost
|
30
|
+
v-for="(blogpost,index) in items"
|
31
|
+
:key="blogpost._id"
|
32
|
+
:blogpost="blogpost"
|
33
|
+
:user="user"
|
34
|
+
class="mn-b-medium"
|
35
|
+
:class="`div${index}`"
|
36
|
+
/>
|
37
|
+
</Feed>
|
38
|
+
|
39
|
+
-->
|
3
40
|
<Feed
|
4
41
|
:category="route.params.category"
|
5
42
|
:user="auth.state.user._id"
|
@@ -27,9 +27,6 @@
|
|
27
27
|
:user="auth.state.user._id"
|
28
28
|
:type="'blogpostPage'"
|
29
29
|
class="mn-b-medium"
|
30
|
-
:class="{
|
31
|
-
'br-b br-solid br-black-transp-10': index !== blogpost.length - 1
|
32
|
-
}"
|
33
30
|
>
|
34
31
|
<section>
|
35
32
|
<component
|
@@ -53,7 +50,7 @@
|
|
53
50
|
|
54
51
|
</CardBlogpost>
|
55
52
|
|
56
|
-
|
53
|
+
<h3 class="mn-b-small">Recommended Communities</h3>
|
57
54
|
<Publics
|
58
55
|
class="mn-b-small"
|
59
56
|
/>
|
@@ -83,6 +80,7 @@
|
|
83
80
|
|
84
81
|
import Image from '@pf/src/modules/constructor/components/elements/Image.vue';
|
85
82
|
import VideoPlayer from '@pf/src/modules/constructor/components/elements/VideoPlayer.vue';
|
83
|
+
import Embed from '@pf/src/modules/constructor/components/elements/Embed.vue';
|
86
84
|
|
87
85
|
import * as blog from '@pf/src/modules/community/store/blogposts.js';
|
88
86
|
import * as auth from '@pf/src/modules/auth/store/auth';
|
@@ -111,12 +109,13 @@
|
|
111
109
|
'Caption': 'p',
|
112
110
|
'ImageUpload': Image,
|
113
111
|
'Video': VideoPlayer,
|
114
|
-
'Link': 'a'
|
112
|
+
'Link': 'a',
|
113
|
+
'Embed': Embed
|
115
114
|
};
|
116
115
|
|
117
116
|
function getBlockProps(block) {
|
118
117
|
if (block.type === 'Textarea') {
|
119
|
-
return { innerHTML: block.content, class: "p-
|
118
|
+
return { innerHTML: block.content, class: "p-big" };
|
120
119
|
} else if (block.type === 'H2') {
|
121
120
|
return { innerHTML: block.content, class: "h3" };
|
122
121
|
} else if (block.type === 'Caption') {
|
@@ -1,36 +1,76 @@
|
|
1
1
|
<template>
|
2
|
-
<section class="
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
2
|
+
<section class="pd-thin">
|
3
|
+
<div class="bg-grey radius-big pd-t-big pd-b-big">
|
4
|
+
|
5
|
+
<h2 class="w-100 pd-b-small t-center flex-center flex">
|
6
|
+
Discover Our
|
7
|
+
<router-link
|
8
|
+
:to="{ name:'Blog' }"
|
9
|
+
class="transition-ease-in hover-bg-black hover-t-white transition-timing-1 hover-scale-0 bg-main cursor-pointer pd-thin mn-l-thin radius-extra flex flex-v-center"
|
10
|
+
>
|
11
|
+
<b>Community</b>
|
12
|
+
<IconArrow class="mn-l-thin radius-extra bg-white i-big"/>
|
13
|
+
</router-link>
|
14
|
+
</h2>
|
15
|
+
|
16
|
+
<Slider
|
17
|
+
:store="{
|
18
|
+
read: (options) => blog.read(options)
|
19
|
+
}"
|
20
|
+
:options="{
|
21
|
+
skip: 0,
|
22
|
+
limit: 8,
|
23
|
+
user: auth.state.user._id,
|
24
|
+
period: 'year'
|
25
|
+
}"
|
26
|
+
:text="{
|
27
|
+
messages: {
|
28
|
+
en: {
|
29
|
+
title: 'No Blogposts Found',
|
30
|
+
description: 'Currently, there are no blogposts available.'
|
31
|
+
}
|
32
|
+
}
|
33
|
+
}"
|
34
|
+
v-slot="{
|
35
|
+
item
|
36
|
+
}"
|
37
|
+
class="slider-hotpost"
|
38
|
+
>
|
39
|
+
<CardBlogpost
|
40
|
+
:key="item._id"
|
41
|
+
:blogpost="item"
|
42
|
+
:user="user"
|
43
|
+
:hideDescription="true"
|
44
|
+
class="bg-white flex flex-column h-35r"
|
45
|
+
/>
|
46
|
+
</Slider>
|
47
|
+
</div>
|
12
48
|
</section>
|
13
49
|
</template>
|
14
50
|
|
15
51
|
<script setup="props">
|
16
52
|
import { ref, onMounted } from 'vue'
|
17
|
-
|
53
|
+
|
54
|
+
import Feed from '@pf/src/components/Feed/Feed.vue'
|
55
|
+
import Slider from '@pf/src/components/Slider/Slider.vue'
|
56
|
+
|
57
|
+
import IconArrow from '@pf/src/modules/icons/navigation/IconArrow.vue'
|
58
|
+
|
59
|
+
|
60
|
+
import CardBlogpost from '@pf/src/modules/community/components/blocks/CardBlogpost.vue';
|
18
61
|
// Import state
|
19
62
|
import * as blog from '@pf/src/modules/community/store/blogposts.js';
|
20
63
|
import * as auth from '@pf/src/modules/auth/store/auth'
|
21
64
|
</script>
|
22
65
|
|
23
|
-
<style
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
.grid-container {
|
29
|
-
display: grid;
|
30
|
-
grid-template-columns: 1fr 1fr 1fr 1fr; /* создаём две колонки */
|
31
|
-
grid-gap: 20px;
|
32
|
-
}
|
33
|
-
|
34
|
-
|
35
|
-
</style>
|
66
|
+
<style lang="scss" >
|
67
|
+
.slider-hotpost .embla__slide {
|
68
|
+
flex: 0 0 25%;
|
69
|
+
}
|
36
70
|
|
71
|
+
@media screen and (max-width: 1025px) {
|
72
|
+
.slider-hotpost .embla__slide {
|
73
|
+
flex: 0 0 75%;
|
74
|
+
}
|
75
|
+
}
|
76
|
+
</style>
|