@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,78 +1,93 @@
|
|
1
|
-
import { resolveComponent as
|
2
|
-
import { useRoute as
|
3
|
-
import
|
1
|
+
import { resolveComponent as b, openBlock as a, createElementBlock as g, createElementVNode as r, normalizeClass as d, unref as o, createVNode as s, createTextVNode as i, createCommentVNode as x, withCtx as n, Transition as w, createBlock as _, resolveDynamicComponent as C, Fragment as $, renderList as B } from "vue";
|
2
|
+
import { useRoute as F, useRouter as z } from "vue-router";
|
3
|
+
import N from "../../../../components/Select/Select.vue.js";
|
4
4
|
import P from "../../../../components/Feed/Feed.vue.js";
|
5
|
-
import
|
6
|
-
import
|
7
|
-
import
|
8
|
-
import
|
9
|
-
import
|
10
|
-
|
5
|
+
import M from "../../../organizations/components/blocks/CardOrganization.vue.js";
|
6
|
+
import R from "../../../icons/entities/IconFeatured.vue.js";
|
7
|
+
import U from "../../../icons/entities/IconPopular.vue.js";
|
8
|
+
import V from "../../../icons/entities/IconRecent.vue.js";
|
9
|
+
import O from "../../../icons/entities/IconFollowing.vue.js";
|
10
|
+
import { state as y } from "../../store/blogposts.js";
|
11
|
+
import { state as c } from "../../../auth/store/auth.js";
|
12
|
+
import { actions as T, state as v } from "../../../organizations/store/organizations.js";
|
13
|
+
import { mutations as E } from "../../../organizations/store/memberships.js";
|
14
|
+
const S = {
|
11
15
|
style: { "grid-template-columns": "1fr 3fr 1fr" },
|
12
16
|
class: "cols-3 gap-thin pd-thin"
|
13
|
-
},
|
14
|
-
/* @__PURE__ */ o("p", { class: "mn-b-small" }, "POPULAR COMMUNITIES"),
|
15
|
-
/* @__PURE__ */ o("button", { class: "radius-extra flex-center flex i-medium bg-main" }, "+")
|
16
|
-
], -1), Y = {
|
17
|
+
}, q = { 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" }, D = { class: "pos-relative" }, I = { class: "bg-main t-black radius-big pd-medium pos-relative mn-b-thin flex-v-center t-left flex-nowrap flex" }, L = { class: "pos-relative flex-v-center flex-nowrap flex" }, j = /* @__PURE__ */ r("span", { class: "mn-r-small" }, "Topics for ", -1), A = { class: "bg-grey radius-big pd-medium" }, G = { class: "gap-thin flex-nowrap flex" }, H = /* @__PURE__ */ r("p", { class: "t-medium mn-b-small" }, "Popular Communities", -1), ne = {
|
17
18
|
__name: "Community",
|
18
|
-
setup(
|
19
|
-
const
|
20
|
-
|
19
|
+
setup(J) {
|
20
|
+
const l = F(), m = z(), k = ({ membership: h, status: t, target: p }, f, e) => {
|
21
|
+
E.handleMembershipUpdate(v.current, h, t, p, f, e);
|
21
22
|
};
|
22
|
-
return (
|
23
|
-
const
|
24
|
-
return a(),
|
25
|
-
|
26
|
-
|
27
|
-
class:
|
28
|
-
onClick: t[0] || (t[0] = (e) =>
|
29
|
-
},
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
23
|
+
return (h, t) => {
|
24
|
+
const p = b("router-link"), f = b("router-view");
|
25
|
+
return a(), g("div", S, [
|
26
|
+
r("ul", q, [
|
27
|
+
r("li", {
|
28
|
+
class: d([{ "t-black bg-white": o(l).params.category === "featured" }, "cursor-pointer flex-v-center flex t-medium pd-thin radius-extra"]),
|
29
|
+
onClick: t[0] || (t[0] = (e) => o(m).push({ name: "Blog", params: { category: "featured" } }))
|
30
|
+
}, [
|
31
|
+
s(R, { class: "i-medium mn-r-thin t-transp" }),
|
32
|
+
i(" Featured ")
|
33
|
+
], 2),
|
34
|
+
r("li", {
|
35
|
+
class: d([{ "t-black bg-white": o(l).params.category === "popular" }, "cursor-pointer t-medium flex-v-center flex pd-thin radius-extra"]),
|
36
|
+
onClick: t[1] || (t[1] = (e) => o(m).push({ name: "Blog", params: { category: "popular" } }))
|
37
|
+
}, [
|
38
|
+
s(U, { class: "i-medium mn-r-thin t-transp" }),
|
39
|
+
i(" Popular ")
|
40
|
+
], 2),
|
41
|
+
r("li", {
|
42
|
+
class: d([{ "t-black bg-white": o(l).params.category === "new" }, "cursor-pointer t-medium flex-v-center flex pd-thin radius-extra"]),
|
43
|
+
onClick: t[2] || (t[2] = (e) => o(m).push({ name: "Blog", params: { category: "new" } }))
|
44
|
+
}, [
|
45
|
+
s(V, { class: "i-medium mn-r-thin t-transp" }),
|
46
|
+
i(" Recent ")
|
47
|
+
], 2),
|
48
|
+
c.user._id ? (a(), g("li", {
|
39
49
|
key: 0,
|
40
|
-
class:
|
41
|
-
onClick: t[3] || (t[3] = (e) =>
|
42
|
-
},
|
43
|
-
|
44
|
-
|
45
|
-
|
50
|
+
class: d([{ "t-white bg-black": o(l).params.category === "following" }, "cursor-pointer t-medium flex-v-center flex pd-thin radius-extra"]),
|
51
|
+
onClick: t[3] || (t[3] = (e) => o(m).push({ name: "Blog", params: { category: "following" } }))
|
52
|
+
}, [
|
53
|
+
s(O, { class: "i-medium mn-r-thin t-transp" }),
|
54
|
+
i(" Following ")
|
55
|
+
], 2)) : x("", !0),
|
56
|
+
s(p, {
|
57
|
+
to: {
|
58
|
+
name: "Create BlogPost"
|
59
|
+
},
|
60
|
+
class: "button t-medium mn-t-small bg-main w-100"
|
46
61
|
}, {
|
47
|
-
default:
|
48
|
-
|
62
|
+
default: n(() => [
|
63
|
+
i(" Create Post ")
|
49
64
|
]),
|
50
65
|
_: 1
|
51
66
|
})
|
52
67
|
]),
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
68
|
+
r("section", D, [
|
69
|
+
r("header", I, [
|
70
|
+
r("h2", L, [
|
71
|
+
j,
|
72
|
+
s(N, {
|
58
73
|
options: ["today", "week", "month", "year"],
|
59
|
-
select:
|
60
|
-
"onUpdate:select": t[4] || (t[4] = (e) =>
|
74
|
+
select: y.filter.period,
|
75
|
+
"onUpdate:select": t[4] || (t[4] = (e) => y.filter.period = e),
|
61
76
|
placeholder: "Select type",
|
62
|
-
class: "pos-relative w-max
|
77
|
+
class: "t-semi pos-relative w-max bg-main t-black pd-thin radius-medium h2 t-center br-solid br-2px br-black-transp-10"
|
63
78
|
}, null, 8, ["select"])
|
64
79
|
])
|
65
80
|
]),
|
66
|
-
|
67
|
-
default:
|
68
|
-
|
81
|
+
s(f, null, {
|
82
|
+
default: n(({ Component: e, route: u }) => [
|
83
|
+
s(w, {
|
69
84
|
name: "scaleIn",
|
70
85
|
mode: "out-in"
|
71
86
|
}, {
|
72
|
-
default:
|
87
|
+
default: n(() => [
|
73
88
|
(a(), _(C(e), {
|
74
89
|
ref: "page",
|
75
|
-
key:
|
90
|
+
key: u.query
|
76
91
|
}))
|
77
92
|
]),
|
78
93
|
_: 2
|
@@ -81,11 +96,25 @@ const R = {
|
|
81
96
|
_: 1
|
82
97
|
})
|
83
98
|
]),
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
99
|
+
r("div", A, [
|
100
|
+
r("div", G, [
|
101
|
+
H,
|
102
|
+
c.user._id ? (a(), _(p, {
|
103
|
+
key: 0,
|
104
|
+
to: {
|
105
|
+
name: "Create Organization"
|
106
|
+
},
|
107
|
+
class: "t-medium cursor-pointer hover-scale-1 radius-extra flex-center flex i-medium bg-main"
|
108
|
+
}, {
|
109
|
+
default: n(() => [
|
110
|
+
i(" + ")
|
111
|
+
]),
|
112
|
+
_: 1
|
113
|
+
})) : x("", !0)
|
114
|
+
]),
|
115
|
+
s(w, { name: "slide-fade" }, {
|
116
|
+
default: n(() => [
|
117
|
+
s(P, {
|
89
118
|
states: {
|
90
119
|
empty: {
|
91
120
|
title: "No Organization Found",
|
@@ -93,23 +122,23 @@ const R = {
|
|
93
122
|
}
|
94
123
|
},
|
95
124
|
store: {
|
96
|
-
read: (e) =>
|
97
|
-
state:
|
125
|
+
read: (e) => T.read(e),
|
126
|
+
state: v
|
98
127
|
},
|
99
128
|
options: {
|
100
|
-
user:
|
129
|
+
user: c.user._id,
|
101
130
|
sort: "numberOfMemberships",
|
102
131
|
contain: ["blogposts"],
|
103
132
|
limit: 10
|
104
133
|
}
|
105
134
|
}, {
|
106
|
-
default:
|
135
|
+
default: n(({
|
107
136
|
items: e
|
108
137
|
}) => [
|
109
|
-
(a(!0),
|
110
|
-
key:
|
111
|
-
organization:
|
112
|
-
user:
|
138
|
+
(a(!0), g($, null, B(e, (u) => (a(), _(M, {
|
139
|
+
key: u._id,
|
140
|
+
organization: u,
|
141
|
+
user: c.user,
|
113
142
|
showProducts: !1,
|
114
143
|
showRating: !1,
|
115
144
|
showFeatured: !1,
|
@@ -129,5 +158,5 @@ const R = {
|
|
129
158
|
}
|
130
159
|
};
|
131
160
|
export {
|
132
|
-
|
161
|
+
ne as default
|
133
162
|
};
|
@@ -1 +1 @@
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue");require("../../../../components/Loader/Loader.vue.cjs");const d=require("../../../../components/EmptyState/EmptyState.vue.cjs"),
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue");require("../../../../components/Loader/Loader.vue.cjs");const d=require("../../../../components/EmptyState/EmptyState.vue.cjs"),m=require("../blocks/CardBlogpost.vue.cjs"),p=require("../../../icons/skeletons/SkeletonBlogpost.vue.cjs"),g=require("../../../organizations/components/sections/Publics.vue.cjs"),f=require("../sections/Comments.vue.cjs"),v=require("../../../constructor/components/elements/Image.vue.cjs"),k=require("../../../constructor/components/elements/VideoPlayer.vue.cjs"),y=require("../../../constructor/components/elements/Embed.vue.cjs"),B=require("../../store/blogposts.cjs"),a=require("../../../auth/store/auth.cjs"),_=require("vue-router"),h={class:"pd-thin"},C=["href"],b=e.createElementVNode("h3",{class:"mn-b-small"},"Recommended Communities",-1),V={__name:"BlogPost",setup(N){const u=_.useRoute(),t=e.ref(null),n=e.ref(!0);e.onMounted(async()=>{n.value=!0;const r=await B.read({user:a.state.user._id,url:u.params.url});t.value=r[0],n.value=!1});const c={Textarea:"p",H2:"h2",Bullets:"p",Caption:"p",ImageUpload:v.default,Video:k.default,Link:"a",Embed:y.default};function i(r){return r.type==="Textarea"?{innerHTML:r.content,class:"p-big"}:r.type==="H2"?{innerHTML:r.content,class:"h3"}:r.type==="Caption"?{innerHTML:r.content}:r.type==="ImageUpload"?{src:r.content}:{}}return(r,s)=>(e.openBlock(),e.createElementBlock("section",h,[e.createVNode(e.TransitionGroup,{tag:"ul",name:"fade",class:"o-hidden bg-grey radius-big"},{default:e.withCtx(()=>[n.value?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},e.renderList(3,o=>e.createVNode(p.default,{key:o})),64)):e.createCommentVNode("",!0)]),_:1}),e.createVNode(e.Transition,{name:"fade"},{default:e.withCtx(()=>[!n.value&&!t.value?(e.openBlock(),e.createBlock(d.default,{key:0,title:"No Blogpost Found",description:"Currently, there are no blogposts available. Please check back later.",class:"pd-medium mn-b-thin bg-grey radius-big"})):e.createCommentVNode("",!0)]),_:1}),e.createVNode(e.TransitionGroup,{tag:"ul",name:"fade",class:"container"},{default:e.withCtx(()=>[!n.value&&t.value?(e.openBlock(),e.createBlock(m.default,{key:0,onClick:s[0]||(s[0]=o=>r.$router.push({name:"Blogpost",params:{url:t.value.url}})),blogpost:t.value,user:a.state.user._id,type:"blogpostPage",class:"mn-b-medium"},{default:e.withCtx(()=>[e.createElementVNode("section",null,[t.value&&t.value.content?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(t.value.content,(o,l)=>(e.openBlock(),e.createBlock(e.resolveDynamicComponent(c[o.type]),e.mergeProps({key:l,index:l,component:o,prop:o,class:o.class,content:"content"},i(o),{class:"mn-b-regular"}),null,16,["index","component","prop","class"]))),128)):e.createCommentVNode("",!0)]),t.value.source?(e.openBlock(),e.createElementBlock("a",{key:0,href:t.value.source,target:"_blank",class:"mn-b-semi d-block w-max radius-big pd-thin bg-black t-white"}," Check Source 🔗 ",8,C)):e.createCommentVNode("",!0)]),_:1},8,["blogpost","user"])):e.createCommentVNode("",!0),b,e.createVNode(g.default,{class:"mn-b-small"}),!n.value&&t.value?(e.openBlock(),e.createBlock(f.default,{key:1,type:"blogpost",target:t.value._id,owner:a.state.user._id},null,8,["target","owner"])):e.createCommentVNode("",!0)]),_:1})]))}};exports.default=V;
|
@@ -1,50 +1,52 @@
|
|
1
|
-
import { ref as d, onMounted as
|
1
|
+
import { ref as d, onMounted as k, openBlock as n, createElementBlock as l, createVNode as s, TransitionGroup as f, withCtx as u, Fragment as _, renderList as g, createCommentVNode as o, Transition as C, createBlock as i, createElementVNode as v, resolveDynamicComponent as B, mergeProps as $ } from "vue";
|
2
2
|
import "../../../../components/Loader/Loader.vue.js";
|
3
|
-
import
|
4
|
-
import
|
5
|
-
import
|
6
|
-
import
|
7
|
-
import
|
8
|
-
import
|
9
|
-
import
|
3
|
+
import T from "../../../../components/EmptyState/EmptyState.vue.js";
|
4
|
+
import w from "../blocks/CardBlogpost.vue.js";
|
5
|
+
import x from "../../../icons/skeletons/SkeletonBlogpost.vue.js";
|
6
|
+
import L from "../../../organizations/components/sections/Publics.vue.js";
|
7
|
+
import H from "../sections/Comments.vue.js";
|
8
|
+
import M from "../../../constructor/components/elements/Image.vue.js";
|
9
|
+
import P from "../../../constructor/components/elements/VideoPlayer.vue.js";
|
10
|
+
import N from "../../../constructor/components/elements/Embed.vue.js";
|
10
11
|
import { read as V } from "../../store/blogposts.js";
|
11
12
|
import { state as m } from "../../../auth/store/auth.js";
|
12
13
|
import { useRoute as E } from "vue-router";
|
13
|
-
const F = { class: "pd-thin" }, I = ["href"],
|
14
|
+
const F = { class: "pd-thin" }, I = ["href"], R = /* @__PURE__ */ v("h3", { class: "mn-b-small" }, "Recommended Communities", -1), Y = {
|
14
15
|
__name: "BlogPost",
|
15
16
|
setup(S) {
|
16
|
-
const
|
17
|
-
|
18
|
-
|
19
|
-
const t = await V({ user: m.user._id, url:
|
20
|
-
e.value = t[0],
|
17
|
+
const y = E(), e = d(null), a = d(!0);
|
18
|
+
k(async () => {
|
19
|
+
a.value = !0;
|
20
|
+
const t = await V({ user: m.user._id, url: y.params.url });
|
21
|
+
e.value = t[0], a.value = !1;
|
21
22
|
});
|
22
|
-
const
|
23
|
+
const h = {
|
23
24
|
Textarea: "p",
|
24
25
|
H2: "h2",
|
25
26
|
Bullets: "p",
|
26
27
|
Caption: "p",
|
27
|
-
ImageUpload:
|
28
|
-
Video:
|
29
|
-
Link: "a"
|
28
|
+
ImageUpload: M,
|
29
|
+
Video: P,
|
30
|
+
Link: "a",
|
31
|
+
Embed: N
|
30
32
|
};
|
31
33
|
function b(t) {
|
32
|
-
return t.type === "Textarea" ? { innerHTML: t.content, class: "p-
|
34
|
+
return t.type === "Textarea" ? { innerHTML: t.content, class: "p-big" } : t.type === "H2" ? { innerHTML: t.content, class: "h3" } : t.type === "Caption" ? { innerHTML: t.content } : t.type === "ImageUpload" ? { src: t.content } : {};
|
33
35
|
}
|
34
|
-
return (t, p) => (
|
36
|
+
return (t, p) => (n(), l("section", F, [
|
35
37
|
s(f, {
|
36
38
|
tag: "ul",
|
37
39
|
name: "fade",
|
38
40
|
class: "o-hidden bg-grey radius-big"
|
39
41
|
}, {
|
40
42
|
default: u(() => [
|
41
|
-
|
43
|
+
a.value ? (n(), l(_, { key: 0 }, g(3, (r) => s(x, { key: r })), 64)) : o("", !0)
|
42
44
|
]),
|
43
45
|
_: 1
|
44
46
|
}),
|
45
|
-
s(
|
47
|
+
s(C, { name: "fade" }, {
|
46
48
|
default: u(() => [
|
47
|
-
!
|
49
|
+
!a.value && !e.value ? (n(), i(T, {
|
48
50
|
key: 0,
|
49
51
|
title: "No Blogpost Found",
|
50
52
|
description: "Currently, there are no blogposts available. Please check back later.",
|
@@ -59,19 +61,17 @@ const F = { class: "pd-thin" }, I = ["href"], W = {
|
|
59
61
|
class: "container"
|
60
62
|
}, {
|
61
63
|
default: u(() => [
|
62
|
-
!
|
64
|
+
!a.value && e.value ? (n(), i(w, {
|
63
65
|
key: 0,
|
64
66
|
onClick: p[0] || (p[0] = (r) => t.$router.push({ name: "Blogpost", params: { url: e.value.url } })),
|
65
67
|
blogpost: e.value,
|
66
68
|
user: m.user._id,
|
67
69
|
type: "blogpostPage",
|
68
|
-
class:
|
69
|
-
"br-b br-solid br-black-transp-10": t.index !== e.value.length - 1
|
70
|
-
}])
|
70
|
+
class: "mn-b-medium"
|
71
71
|
}, {
|
72
72
|
default: u(() => [
|
73
|
-
|
74
|
-
e.value && e.value.content ? (
|
73
|
+
v("section", null, [
|
74
|
+
e.value && e.value.content ? (n(!0), l(_, { key: 0 }, g(e.value.content, (r, c) => (n(), i(B(h[r.type]), $({
|
75
75
|
key: c,
|
76
76
|
index: c,
|
77
77
|
component: r,
|
@@ -80,7 +80,7 @@ const F = { class: "pd-thin" }, I = ["href"], W = {
|
|
80
80
|
content: "content"
|
81
81
|
}, b(r), { class: "mn-b-regular" }), null, 16, ["index", "component", "prop", "class"]))), 128)) : o("", !0)
|
82
82
|
]),
|
83
|
-
e.value.source ? (
|
83
|
+
e.value.source ? (n(), l("a", {
|
84
84
|
key: 0,
|
85
85
|
href: e.value.source,
|
86
86
|
target: "_blank",
|
@@ -88,9 +88,10 @@ const F = { class: "pd-thin" }, I = ["href"], W = {
|
|
88
88
|
}, " Check Source 🔗 ", 8, I)) : o("", !0)
|
89
89
|
]),
|
90
90
|
_: 1
|
91
|
-
}, 8, ["blogpost", "user"
|
92
|
-
|
93
|
-
|
91
|
+
}, 8, ["blogpost", "user"])) : o("", !0),
|
92
|
+
R,
|
93
|
+
s(L, { class: "mn-b-small" }),
|
94
|
+
!a.value && e.value ? (n(), i(H, {
|
94
95
|
key: 1,
|
95
96
|
type: "blogpost",
|
96
97
|
target: e.value._id,
|
@@ -103,5 +104,5 @@ const F = { class: "pd-thin" }, I = ["href"], W = {
|
|
103
104
|
}
|
104
105
|
};
|
105
106
|
export {
|
106
|
-
|
107
|
+
Y as default
|
107
108
|
};
|
@@ -1 +1 @@
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),p=require("../blocks/CardBlogpost.vue.cjs");require("../../../../../../node_modules/@ozdao/prometheus-framework/dist/prometheus-framework.es.cjs");const l=require("../../store/blogposts.cjs"),_=require("../../../auth/store/auth.cjs"),f=require("vue-router");require("./Community.vue2.cjs");const b=require("../../../../../../_virtual/_plugin-vue_export-helper.cjs"),v=r=>(e.pushScopeId("data-v-
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),p=require("../blocks/CardBlogpost.vue.cjs");require("../../../../../../node_modules/@ozdao/prometheus-framework/dist/prometheus-framework.es.cjs");const l=require("../../store/blogposts.cjs"),_=require("../../../auth/store/auth.cjs"),f=require("vue-router");require("./Community.vue2.cjs");const b=require("../../../../../../_virtual/_plugin-vue_export-helper.cjs"),v=r=>(e.pushScopeId("data-v-e98ee39a"),r=r(),e.popScopeId(),r),g={class:"flex-v-center flex-nowrap flex mn-b-medium"},h=v(()=>e.createElementVNode("h3",{class:"mn-r-medium"},"Blog",-1)),k={class:""},w={class:"flex-nowrap flex pd-t-zero pd-b-zero pd-big"},y=["onClick"],C=["onClick"],B={__name:"Community",async setup(r){let s,c;const i=f.useRouter();[s,c]=e.withAsyncContext(()=>l.read()),await s,c(),console.log(l.state),e.ref({title:"",content:"",categories:[]});const d=async t=>{window.confirm("Are you sure you want to delete this post?")&&(console.log(t),await l.remove(t))};let u=e.ref("all");const a=e.computed(()=>u.value==="all"?l.state.all:l.state.all.filter(t=>t.categories.includes(u.value)));return e.computed(()=>{for(let t of a.value)if(t.blocks&&t.blocks.length>0){const n=t.blocks.find(o=>o.type.name==="ImageUpload");if(n)return n.content}return null}),(t,n)=>(e.openBlock(),e.createElementBlock("div",null,[e.createElementVNode("div",g,[h,e.createElementVNode("button",{onClick:n[0]||(n[0]=o=>e.unref(i).push({name:"Create BlogPost"})),class:"t-white bg-second button-small button"},"+")]),e.createElementVNode("div",k,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.value,o=>(e.openBlock(),e.createBlock(p.default,{key:o._id,blogpost:o,owner:_.state.user._id,class:"mn-b-medium"},{default:e.withCtx(()=>[e.createElementVNode("div",w,[e.createElementVNode("button",{class:"mn-r-thin button-small w-100 button",onClick:m=>t.$router.push({path:"/community/posts/"+o.url+"/edit"})},"Edit",8,y),e.createElementVNode("button",{class:"button-small w-100 button",onClick:m=>d(o._id)},"Delete",8,C)])]),_:2},1032,["blogpost","owner"]))),128))])]))}},E=b.default(B,[["__scopeId","data-v-e98ee39a"]]);exports.default=E;
|
@@ -6,41 +6,41 @@ import { state as E } from "../../../auth/store/auth.js";
|
|
6
6
|
import { useRouter as P } from "vue-router";
|
7
7
|
import "./Community.vue2.js";
|
8
8
|
import S from "../../../../../../_virtual/_plugin-vue_export-helper.js";
|
9
|
-
const z = (s) => (C("data-v-
|
9
|
+
const z = (s) => (C("data-v-e98ee39a"), s = s(), x(), s), A = { class: "flex-v-center flex-nowrap flex mn-b-medium" }, D = /* @__PURE__ */ z(() => /* @__PURE__ */ o("h3", { class: "mn-r-medium" }, "Blog", -1)), F = { class: "" }, L = { class: "flex-nowrap flex pd-t-zero pd-b-zero pd-big" }, N = ["onClick"], R = ["onClick"], U = {
|
10
10
|
__name: "Community",
|
11
11
|
async setup(s) {
|
12
|
-
let i,
|
12
|
+
let i, a;
|
13
13
|
const _ = P();
|
14
|
-
[i,
|
14
|
+
[i, a] = b(() => $()), await i, a(), console.log(r), u({
|
15
15
|
title: "",
|
16
16
|
content: "",
|
17
17
|
categories: []
|
18
18
|
});
|
19
|
-
const f = async (
|
20
|
-
window.confirm("Are you sure you want to delete this post?") && (console.log(
|
19
|
+
const f = async (e) => {
|
20
|
+
window.confirm("Are you sure you want to delete this post?") && (console.log(e), await I(e));
|
21
21
|
};
|
22
|
-
let
|
23
|
-
const m = d(() =>
|
22
|
+
let c = u("all");
|
23
|
+
const m = d(() => c.value === "all" ? r.all : r.all.filter((e) => e.categories.includes(c.value)));
|
24
24
|
return d(() => {
|
25
|
-
for (let
|
26
|
-
if (
|
27
|
-
const n =
|
25
|
+
for (let e of m.value)
|
26
|
+
if (e.blocks && e.blocks.length > 0) {
|
27
|
+
const n = e.blocks.find((t) => t.type.name === "ImageUpload");
|
28
28
|
if (n)
|
29
29
|
return n.content;
|
30
30
|
}
|
31
31
|
return null;
|
32
|
-
}), (
|
32
|
+
}), (e, n) => (l(), p("div", null, [
|
33
33
|
o("div", A, [
|
34
34
|
D,
|
35
35
|
o("button", {
|
36
|
-
onClick: n[0] || (n[0] = (
|
36
|
+
onClick: n[0] || (n[0] = (t) => v(_).push({ name: "Create BlogPost" })),
|
37
37
|
class: "t-white bg-second button-small button"
|
38
38
|
}, "+")
|
39
39
|
]),
|
40
40
|
o("div", F, [
|
41
|
-
(l(!0), p(w, null, g(m.value, (
|
42
|
-
key:
|
43
|
-
blogpost:
|
41
|
+
(l(!0), p(w, null, g(m.value, (t) => (l(), k(B, {
|
42
|
+
key: t._id,
|
43
|
+
blogpost: t,
|
44
44
|
owner: E.user._id,
|
45
45
|
class: "mn-b-medium"
|
46
46
|
}, {
|
@@ -48,11 +48,11 @@ const z = (s) => (C("data-v-dc16ad95"), s = s(), x(), s), A = { class: "flex-v-c
|
|
48
48
|
o("div", L, [
|
49
49
|
o("button", {
|
50
50
|
class: "mn-r-thin button-small w-100 button",
|
51
|
-
onClick: (h) =>
|
51
|
+
onClick: (h) => e.$router.push({ path: "/community/posts/" + t.url + "/edit" })
|
52
52
|
}, "Edit", 8, N),
|
53
53
|
o("button", {
|
54
54
|
class: "button-small w-100 button",
|
55
|
-
onClick: (h) => f(
|
55
|
+
onClick: (h) => f(t._id)
|
56
56
|
}, "Delete", 8, R)
|
57
57
|
])
|
58
58
|
]),
|
@@ -61,7 +61,7 @@ const z = (s) => (C("data-v-dc16ad95"), s = s(), x(), s), A = { class: "flex-v-c
|
|
61
61
|
])
|
62
62
|
]));
|
63
63
|
}
|
64
|
-
}, O = /* @__PURE__ */ S(U, [["__scopeId", "data-v-
|
64
|
+
}, O = /* @__PURE__ */ S(U, [["__scopeId", "data-v-e98ee39a"]]);
|
65
65
|
export {
|
66
66
|
O as default
|
67
67
|
};
|
package/dist/prometheus-framework/src/modules/community/components/pages/CreateBlogPost.vue.cjs
CHANGED
@@ -1 +1 @@
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),w=require("../../../constructor/components/elements/Textarea.
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),w=require("../../../constructor/components/elements/Textarea.vue.cjs"),V=require("../../../constructor/components/sections/Constructor.vue.cjs"),y=require("../../../../components/Popup/Popup.vue.cjs");require("../../../../components/FieldTags/tag-input.vue.cjs");require("../../../../components/FieldTags/vue-tags-input.scss.cjs");const B=require("../../../../components/FieldTags/BlockTags.vue.cjs"),N=require("../../../../components/Checkbox/Checkbox.vue.cjs"),C=require("../../../../components/Field/Field.vue.cjs"),P=require("../../../../components/SelectMulti/SelectMulti.vue.cjs"),x=require("../../../../components/Button/Button.vue.cjs"),f=require("vue-router"),n=require("../../store/blogposts.cjs"),i=require("../../../auth/store/auth.cjs"),q=require("../../../organizations/store/organizations.cjs"),E={class:"pd-thin"},T={style:{"min-height":"100%"},class:"w-100 bg-grey pd-big radius-big"},z={class:"w-full h-full"},A={key:0,class:"pd-thin pos-sticky pos-l-0 pos-b-0 w-100"},O={class:"pd-thin radius-big bg-main w-100 flex-nowrap flex"},U=e.createElementVNode("h3",{class:"mn-b-small"},"Final Touches",-1),D=e.createElementVNode("h5",{class:"mn-b-thin"},"Add source:",-1),M=e.createElementVNode("h5",{class:"mn-b-thin"},"Add to public:",-1),S={key:0,class:"mn-b-thin"},R={key:1,class:"mn-b-medium br-grey br-2px br-solid pd-small radius-big"},$={__name:"CreateBlogPost",setup(F){const s=f.useRoute(),u=f.useRouter();let t=e.ref(null),p=e.ref(null);const c=e.ref([]),r=e.ref(null);e.onMounted(async()=>{const o=await q.actions.read({user:i.state.user._id,postable:i.state.user._id,limit:100});if(p.value=o.map(a=>({name:a.profile.name,_id:a._id,photo:a.profile.photo})),s.params.url){const a=await n.read({user:i.state.user._id,url:s.params.url});t.value=a.pop()}else n.clean(),t.value=n.state.current;t.value.owner||(t.value.owner={target:i.state.user._id,type:"user"}),t.value.creator||(t.value.creator={target:i.state.user._id,type:"user",hidden:!1}),t.value.owner.type==="organization"&&(r.value={_id:t.value.owner.target._id,name:t.value.owner.target.profile.name,photo:t.value.owner.target.profile.photo}),console.log(o)});const g=e.ref(""),m=e.ref([{text:"story"},{text:"news"},{text:"guide"},{text:"discussion"},{text:"photos"}]);e.computed(()=>m.value.filter(o=>o.text.toLowerCase().includes(g.value.toLowerCase()))),e.computed(()=>m.value.filter(o=>!c.value.some(a=>a.text===o.text)));const d=e.ref(!1);function h(){d.value=!0}function v(){d.value=!1}function b(){c.value.length>0&&c.value.map(o=>o.text),t.value.status="draft",s.params.url?n.update(t.value).then(o=>{u.push({name:"BlogPost",params:{url:o.url}})}).catch(o=>{console.log(o)}):n.create(t.value).then(o=>{u.push({name:"BlogPost",params:{url:o.url}})}).catch(o=>{console.log(o)})}function k(){r.value&&(t.value.owner={target:r.value._id,type:"organization"}),r.value||(t.value.creator.hidden=!1),r.value||(t.value.organization=t.value.creator),t.value.status="published",console.log(t.value),s.params.url?n.update(t.value).then(o=>{console.log(t.value),u.push({name:"BlogPost",params:{url:o.url}})}).catch(o=>{console.error(o)}):n.create(t.value).then(o=>{u.push({name:"BlogPost",params:{url:o.url}})}).catch(o=>{console.error(o)})}function _(){confirm("Are you sure you want to delete this post?")&&n.remove(t.value._id).then(o=>{u.push({name:"User Blogposts",params:{_id:t.value.creator.target._id}})}).catch(o=>{console.log(o)})}return(o,a)=>(e.openBlock(),e.createElementBlock("article",E,[e.createElementVNode("section",T,[e.createElementVNode("div",z,[e.unref(t)?(e.openBlock(),e.createBlock(w.default,{key:0,prop:e.unref(t),content:"name",placeholder:"Enter post title",class:"h2"},null,8,["prop"])):e.createCommentVNode("",!0)]),e.unref(t)?(e.openBlock(),e.createBlock(V.default,{key:0,content:e.unref(t).content,onUpdate:a[0]||(a[0]=l=>e.unref(t).content=l)},null,8,["content"])):e.createCommentVNode("",!0)]),e.createVNode(e.Transition,{name:"scaleIn"},{default:e.withCtx(()=>[e.unref(t)?(e.openBlock(),e.createElementBlock("section",A,[e.createElementVNode("div",O,[e.unref(s).params.url?(e.openBlock(),e.createElementBlock("a",{key:0,onClick:a[1]||(a[1]=l=>_()),class:"mn-r-auto bg-red t-white t-black button"},"Delete")):e.createCommentVNode("",!0),e.createElementVNode("a",{onClick:a[2]||(a[2]=l=>b()),class:"mn-l-auto bg-white t-black button"},"To Drafts"),e.createElementVNode("a",{onClick:a[3]||(a[3]=l=>h()),class:"mn-l-thin bg-black t-white button"},"Publish")])])):e.createCommentVNode("",!0)]),_:1}),e.createVNode(y.default,{title:"Добавить участника",onClosePopup:v,isPopupOpen:d.value,class:"w-m-33r t-left pd-big bg-white radius-big"},{default:e.withCtx(()=>[U,e.createVNode(B.default,{onTagsChanged:a[4]||(a[4]=l=>e.unref(t).tags=l),tags:e.unref(t).tags},null,8,["tags"]),D,e.createVNode(C.default,{field:e.unref(t).source,"onUpdate:field":a[5]||(a[5]=l=>e.unref(t).source=l),placeholder:"Add full link to the source",class:"mn-b-medium bg-grey radius-medium pd-small"},null,8,["field"]),M,e.createVNode(P.default,{modelValue:r.value,"onUpdate:modelValue":a[6]||(a[6]=l=>r.value=l),options:e.unref(p),multiple:!1,taggable:!1,placeholder:"Type to search or add tag",label:"name","track-by":"_id",class:"mn-b-medium bg-grey radius-medium pd-small"},null,8,["modelValue","options"]),r.value?(e.openBlock(),e.createElementBlock("h5",S,"Options:")):e.createCommentVNode("",!0),r.value?(e.openBlock(),e.createElementBlock("div",R,[e.createVNode(N.default,{label:"Hide Author",radio:e.unref(t).creator.hidden,"onUpdate:radio":a[7]||(a[7]=l=>e.unref(t).creator.hidden=l),name:"prices",class:"w-100"},null,8,["radio"])])):e.createCommentVNode("",!0),e.createVNode(x.default,{submit:k,callback:o.redirectTo,class:"w-100 bg-black t-white"},{default:e.withCtx(()=>[e.createTextVNode("Publish")]),_:1},8,["callback"])]),_:1},8,["isPopupOpen"])]))}};exports.default=$;
|
package/dist/prometheus-framework/src/modules/community/components/pages/CreateBlogPost.vue.js
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
import { ref as n, onMounted as A, computed as w, openBlock as i, createElementBlock as m, createElementVNode as r, unref as a, createBlock as k, createCommentVNode as d, createVNode as u, Transition as U, withCtx as v, createTextVNode as z } from "vue";
|
2
|
-
import D from "../../../constructor/components/elements/Textarea.
|
2
|
+
import D from "../../../constructor/components/elements/Textarea.vue.js";
|
3
3
|
import N from "../../../constructor/components/sections/Constructor.vue.js";
|
4
|
-
import O from "../../../../components/Popup/Popup.
|
4
|
+
import O from "../../../../components/Popup/Popup.vue.js";
|
5
5
|
import "../../../../components/FieldTags/tag-input.vue.js";
|
6
6
|
import "../../../../components/FieldTags/vue-tags-input.scss.js";
|
7
7
|
import E from "../../../../components/FieldTags/BlockTags.vue.js";
|
8
|
-
import F from "../../../../components/Checkbox/Checkbox.
|
9
|
-
import L from "../../../../components/Field/Field.
|
8
|
+
import F from "../../../../components/Checkbox/Checkbox.vue.js";
|
9
|
+
import L from "../../../../components/Field/Field.vue.js";
|
10
10
|
import M from "../../../../components/SelectMulti/SelectMulti.vue.js";
|
11
|
-
import R from "../../../../components/Button/Button.
|
11
|
+
import R from "../../../../components/Button/Button.vue.js";
|
12
12
|
import { useRoute as S, useRouter as H } from "vue-router";
|
13
13
|
import { read as j, clean as q, state as G, update as y, create as P, remove as I } from "../../store/blogposts.js";
|
14
14
|
import { state as f } from "../../../auth/store/auth.js";
|
@@ -1 +1 @@
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),p=require("../../../../components/Loader/Loader.vue2.cjs"),f=require("../../../../components/EmptyState/EmptyState.vue.cjs"),g=require("../blocks/CardBlogpost.vue.cjs"),c=require("../../store/blogposts.cjs"),m={__name:"Feed",props:{category:{type:String,default:null},limit:{type:Number,default:7},skip:{type:Number,default:0},owner:{type:String,default:null},creator:{type:String,default:null},following:{type:String,default:null},status:{type:String,default:"published"},user:{type:[String,Number],default:null},period:{type:String,default:null}},setup(u){const t=u,a=e.ref([]),r=e.ref(!0);let o=e.ref(!0),n=e.ref(t.skip),s=e.ref(t.limit);const d=async()=>{if(r.value){n.value+=s.value;const l=await c.read({skip:n.value,limit:s.value,category:t.category,user:t.user,owner:t.owner,following:t.following,creator:t.creator,status:t.status,period:t.period});l.length===0&&(r.value=!1),a.value=[...a.value,...l]}};return e.onMounted(async()=>{const l=await c.read({skip:n.value,limit:s.value,category:t.category,user:t.user,owner:t.owner,following:t.following,status:t.status,creator:t.creator,period:t.period});l.length===0?r.value=!1:r.value=!0,a.value=l,o.value=!1}),(l,k)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createVNode(e.Transition,{name:"scaleTransition"},{default:e.withCtx(()=>[e.unref(o)?(e.openBlock(),e.createBlock(p.default,{key:0,class:"z-index-5 pos-t-50 left-t-50 pos-absolute"})):e.createCommentVNode("",!0)]),_:1}),e.createVNode(e.Transition,{name:"scaleTransition"},{default:e.withCtx(()=>[!e.unref(o)&&a.value.length<1?(e.openBlock(),e.createBlock(f.default,{key:0,title:"No Blog Posts Found",description:"Currently, there are no posts available in this blog. Please check back later.",class:"pd-medium mn-b-thin bg-grey radius-big"})):(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(l.$attrs.class)},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.value,i=>(e.openBlock(),e.createBlock(g.default,{key:i._id,blogpost:i,user:u.user,class:"mn-b-medium"},null,8,["blogpost","user"]))),128)),e.createVNode(e.Transition,{name:"scaleTransition"},{default:e.withCtx(()=>[r.value&&a.value.length>0?(e.openBlock(),e.createElementBlock("button",{key:0,onClick:d,class:"w-100 bg-main button"}," Load more ")):e.createCommentVNode("",!0)]),_:1})],2))]),_:1})],64))}};exports.default=m;
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),p=require("../../../../components/Loader/Loader.vue2.cjs"),f=require("../../../../components/EmptyState/EmptyState.vue.cjs"),g=require("../blocks/CardBlogpost.vue.cjs"),c=require("../../store/blogposts.cjs"),m={__name:"Feed",props:{category:{type:String,default:null},limit:{type:Number,default:7},skip:{type:Number,default:0},owner:{type:String,default:null},creator:{type:String,default:null},following:{type:String,default:null},status:{type:String,default:"published"},user:{type:[String,Number],default:null},period:{type:String,default:null}},setup(u){const t=u,a=e.ref([]),r=e.ref(!0);let o=e.ref(!0),n=e.ref(t.skip),s=e.ref(t.limit);const d=async()=>{if(r.value){n.value+=s.value;const l=await c.read({skip:n.value,limit:s.value,category:t.category,user:t.user,owner:t.owner,following:t.following,creator:t.creator,status:t.status,period:t.period});l.length===0&&(r.value=!1),a.value=[...a.value,...l]}};return e.onMounted(async()=>{const l=await c.read({skip:n.value,limit:s.value,category:t.category,user:t.user,owner:t.owner,following:t.following,status:t.status,creator:t.creator,period:t.period});l.length===0?r.value=!1:r.value=!0,a.value=l,o.value=!1}),(l,k)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createVNode(e.Transition,{name:"scaleTransition"},{default:e.withCtx(()=>[e.unref(o)?(e.openBlock(),e.createBlock(p.default,{key:0,class:"z-index-5 pos-t-50 left-t-50 pos-absolute"})):e.createCommentVNode("",!0)]),_:1}),e.createVNode(e.Transition,{name:"scaleTransition"},{default:e.withCtx(()=>[!e.unref(o)&&a.value.length<1?(e.openBlock(),e.createBlock(f.default,{key:0,title:"No Blog Posts Found",description:"Currently, there are no posts available in this blog. Please check back later.",class:"pd-medium mn-b-thin bg-grey radius-big"})):(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(l.$attrs.class)},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.value,i=>(e.openBlock(),e.createBlock(g.default,{key:i._id,blogpost:i,user:u.user,class:"h-max-40r mn-b-medium"},null,8,["blogpost","user"]))),128)),e.createVNode(e.Transition,{name:"scaleTransition"},{default:e.withCtx(()=>[r.value&&a.value.length>0?(e.openBlock(),e.createElementBlock("button",{key:0,onClick:d,class:"w-100 bg-main button"}," Load more ")):e.createCommentVNode("",!0)]),_:1})],2))]),_:1})],64))}};exports.default=m;
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import { ref as o, onMounted as h, openBlock as a, createElementBlock as s, Fragment as y, createVNode as c, Transition as d, withCtx as m, unref as v, createBlock as p, createCommentVNode as b, normalizeClass as _, renderList as S } from "vue";
|
2
2
|
import N from "../../../../components/Loader/Loader.vue2.js";
|
3
3
|
import C from "../../../../components/EmptyState/EmptyState.vue.js";
|
4
|
-
import
|
4
|
+
import x from "../blocks/CardBlogpost.vue.js";
|
5
5
|
import { read as k } from "../../store/blogposts.js";
|
6
6
|
const $ = {
|
7
7
|
__name: "Feed",
|
@@ -76,7 +76,7 @@ const $ = {
|
|
76
76
|
period: e.period
|
77
77
|
});
|
78
78
|
t.length === 0 ? r.value = !1 : r.value = !0, l.value = t, n.value = !1;
|
79
|
-
}), (t,
|
79
|
+
}), (t, B) => (a(), s(y, null, [
|
80
80
|
c(d, { name: "scaleTransition" }, {
|
81
81
|
default: m(() => [
|
82
82
|
v(n) ? (a(), p(N, {
|
@@ -97,11 +97,11 @@ const $ = {
|
|
97
97
|
key: 1,
|
98
98
|
class: _(t.$attrs.class)
|
99
99
|
}, [
|
100
|
-
(a(!0), s(y, null, S(l.value, (g) => (a(), p(
|
100
|
+
(a(!0), s(y, null, S(l.value, (g) => (a(), p(x, {
|
101
101
|
key: g._id,
|
102
102
|
blogpost: g,
|
103
103
|
user: f.user,
|
104
|
-
class: "mn-b-medium"
|
104
|
+
class: "h-max-40r mn-b-medium"
|
105
105
|
}, null, 8, ["blogpost", "user"]))), 128)),
|
106
106
|
c(d, { name: "scaleTransition" }, {
|
107
107
|
default: m(() => [
|
package/dist/prometheus-framework/src/modules/community/components/sections/HotPosts.vue.cjs
CHANGED
@@ -1 +1 @@
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue")
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue");require("../../../../components/Loader/Loader.vue.cjs");require("vue-i18n");const s=require("../../../../components/Slider/Slider.vue.cjs"),i=require("../../../icons/navigation/IconArrow.vue.cjs"),n=require("../blocks/CardBlogpost.vue.cjs"),l=require("../../store/blogposts.cjs"),a=require("../../../auth/store/auth.cjs");require("./HotPosts.vue2.cjs");const c={class:"pd-thin"},u={class:"bg-grey radius-big pd-t-big pd-b-big"},d={class:"w-100 pd-b-small t-center flex-center flex"},p=e.createElementVNode("b",null,"Community",-1),_={__name:"HotPosts",setup(h){return(o,g)=>{const r=e.resolveComponent("router-link");return e.openBlock(),e.createElementBlock("section",c,[e.createElementVNode("div",u,[e.createElementVNode("h2",d,[e.createTextVNode(" Discover Our "),e.createVNode(r,{to:{name:"Blog"},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"},{default:e.withCtx(()=>[p,e.createVNode(i.default,{class:"mn-l-thin radius-extra bg-white i-big"})]),_:1})]),e.createVNode(s.default,{store:{read:t=>l.read(t)},options:{skip:0,limit:8,user:a.state.user._id,period:"year"},text:{messages:{en:{title:"No Blogposts Found",description:"Currently, there are no blogposts available."}}},class:"slider-hotpost"},{default:e.withCtx(({item:t})=>[(e.openBlock(),e.createBlock(n.default,{key:t._id,blogpost:t,user:o.user,hideDescription:!0,class:"bg-white flex flex-column h-35r"},null,8,["blogpost","user"]))]),_:1},8,["store","options","text"])])])}}};exports.default=_;
|