@ozdao/prometheus-framework 0.2.130 → 0.2.132
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/auth.server.js +0 -1
- package/dist/auth.server.mjs +0 -1
- package/dist/community.server.js +172 -31
- package/dist/community.server.mjs +172 -31
- package/dist/events.server.js +1 -1
- package/dist/events.server.mjs +1 -1
- package/dist/files.server.js +38 -4
- package/dist/files.server.mjs +38 -4
- package/dist/gallery.server.js +1 -1
- package/dist/gallery.server.mjs +1 -1
- package/dist/main-CI9l9xMs.js +92 -0
- package/dist/main-DPg58GOU.mjs +14509 -0
- package/dist/main.css +1 -1
- package/dist/orders.server.js +1 -1
- package/dist/orders.server.mjs +1 -1
- package/dist/organizations.server.js +4 -3
- package/dist/organizations.server.mjs +4 -3
- package/dist/products.server.js +2 -1
- package/dist/products.server.mjs +2 -1
- package/dist/prometheus-framework/src/components/Address/Address.vue.cjs +1 -0
- package/dist/prometheus-framework/src/components/Address/Address.vue.js +89 -0
- package/dist/prometheus-framework/src/components/Address/Address.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/components/Address/Address.vue2.js +22 -23
- package/dist/prometheus-framework/src/components/Block/Block.vue.js +13 -13
- package/dist/prometheus-framework/src/components/Button/Button.vue.cjs +1 -0
- package/dist/prometheus-framework/src/components/Button/Button.vue.js +95 -0
- package/dist/prometheus-framework/src/components/Chips/Chips.vue2.cjs +1 -0
- package/dist/prometheus-framework/src/components/Chips/Chips.vue2.js +26 -0
- package/dist/prometheus-framework/src/components/DatePicker/Calendar.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/components/DatePicker/Calendar.vue2.js +32 -33
- package/dist/prometheus-framework/src/components/Draggable/Draggable.vue.cjs +1 -0
- package/dist/prometheus-framework/src/components/Draggable/Draggable.vue.js +75 -0
- package/dist/prometheus-framework/src/components/Dropdown/Dropdown.vue2.cjs +1 -0
- package/dist/prometheus-framework/src/components/Dropdown/Dropdown.vue2.js +57 -0
- package/dist/prometheus-framework/src/components/Feed/Feed.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/Feed/Feed.vue.js +93 -87
- package/dist/prometheus-framework/src/components/Field/Field.vue.cjs +1 -0
- package/dist/prometheus-framework/src/components/Field/Field.vue.js +84 -0
- package/dist/prometheus-framework/src/components/FieldBig/FieldBig.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/FieldBig/FieldBig.vue.js +32 -29
- package/dist/prometheus-framework/src/components/FieldPhone/FieldPhone.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/FieldPhone/FieldPhone.vue.js +22 -23
- package/dist/prometheus-framework/src/components/FieldTags/FieldTags.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/FieldTags/FieldTags.vue.js +39 -39
- package/dist/prometheus-framework/src/components/FieldTags/tag-input.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/components/FieldTags/tag-input.vue2.js +5 -5
- package/dist/prometheus-framework/src/components/LocationMarker/LocationMarker.vue.cjs +1 -0
- package/dist/prometheus-framework/src/components/LocationMarker/LocationMarker.vue.js +127 -0
- package/dist/prometheus-framework/src/components/LocationMarker/LocationMarker.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/components/LocationMarker/LocationMarker.vue2.js +46 -47
- package/dist/prometheus-framework/src/components/Menu/Menu.vue.cjs +1 -0
- package/dist/prometheus-framework/src/components/Menu/Menu.vue.js +13 -0
- package/dist/prometheus-framework/src/components/PhotoViewer/PhotoViewer.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/PhotoViewer/PhotoViewer.vue.js +22 -23
- package/dist/prometheus-framework/src/components/Select/Select.vue.cjs +1 -0
- package/dist/prometheus-framework/src/components/Select/Select.vue.js +103 -0
- package/dist/prometheus-framework/src/components/Spoiler/Spoiler.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/components/Spoiler/Spoiler.vue2.js +14 -15
- package/dist/prometheus-framework/src/components/Tooltip/Tooltip.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/Tooltip/Tooltip.vue.js +9 -10
- package/dist/prometheus-framework/src/components/Upload/Upload.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/Upload/Upload.vue.js +37 -34
- 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 +2 -2
- 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 +2 -2
- 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 +2 -2
- 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 +31 -31
- 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 +32 -32
- 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 +20 -20
- package/dist/prometheus-framework/src/modules/auth/store/auth.cjs +1 -1
- package/dist/prometheus-framework/src/modules/auth/store/auth.js +11 -11
- 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 +12 -14
- 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 +55 -72
- package/dist/prometheus-framework/src/modules/community/components/blocks/FooterBlogpost.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/community/components/blocks/FooterBlogpost.vue.js +57 -29
- 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 +87 -77
- package/dist/prometheus-framework/src/modules/community/components/pages/Blog.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/community/components/pages/Blog.vue.js +58 -28
- 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 +3 -3
- 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 +71 -80
- package/dist/prometheus-framework/src/modules/community/components/sections/Comment.vue.cjs +1 -0
- package/dist/prometheus-framework/src/modules/community/components/sections/Comment.vue.js +104 -0
- package/dist/prometheus-framework/src/modules/community/components/sections/Comments.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/community/components/sections/Comments.vue.js +99 -54
- 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 +29 -30
- package/dist/prometheus-framework/src/modules/community/store/blogposts.cjs +1 -1
- package/dist/prometheus-framework/src/modules/community/store/blogposts.js +45 -34
- package/dist/prometheus-framework/src/modules/constructor/components/elements/Audio.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/constructor/components/elements/Audio.vue.js +31 -29
- 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 +1 -1
- package/dist/prometheus-framework/src/modules/constructor/components/elements/ImageUpload.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/constructor/components/elements/ImageUpload.vue.js +32 -27
- package/dist/prometheus-framework/src/modules/constructor/components/elements/Textarea.vue.cjs +5 -0
- package/dist/prometheus-framework/src/modules/constructor/components/elements/Textarea.vue.js +67 -0
- package/dist/prometheus-framework/src/modules/constructor/components/elements/Video.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/constructor/components/elements/Video.vue.js +16 -16
- 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 +119 -112
- package/dist/prometheus-framework/src/modules/events/components/blocks/CardEvent.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/events/components/blocks/CardEvent.vue.js +6 -6
- package/dist/prometheus-framework/src/modules/events/components/elements/ButtonCheck.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/events/components/elements/ButtonCheck.vue.js +1 -1
- 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/pages/EditEvent.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/events/components/pages/EditEvent.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/events/components/pages/EditEventTickets.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/events/components/pages/EditEventTickets.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/gallery/components/pages/Gallery.vue.js +21 -21
- 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 +30 -30
- package/dist/prometheus-framework/src/modules/globals/components/blocks/BlockFilter.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/globals/components/blocks/BlockFilter.vue.js +33 -22
- package/dist/prometheus-framework/src/modules/globals/components/blocks/BlockSearch.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/globals/components/blocks/BlockSearch.vue.js +1 -1
- 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 +18 -18
- 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/marketplace/store/marketplace.cjs +1 -1
- package/dist/prometheus-framework/src/modules/marketplace/store/marketplace.js +3 -9
- package/dist/prometheus-framework/src/modules/orders/components/pages/OrderCreateBackoffice.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/orders/components/pages/OrderCreateBackoffice.vue.js +3 -3
- package/dist/prometheus-framework/src/modules/orders/components/sections/FormAddCustomer.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/orders/components/sections/FormAddCustomer.vue.js +3 -3
- package/dist/prometheus-framework/src/modules/orders/components/sections/FormCustomerDetails.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/orders/components/sections/FormCustomerDetails.vue.js +9 -9
- package/dist/prometheus-framework/src/modules/orders/components/sections/FormDelivery.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/orders/components/sections/FormDelivery.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/orders/components/sections/FormPayment.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/orders/components/sections/FormPayment.vue.js +1 -1
- 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 +39 -38
- 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 +3 -3
- 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 +2 -2
- 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 +113 -86
- package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationBackoffice.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationBackoffice.vue.js +1 -1
- 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 +37 -36
- 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 +10 -10
- 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 +2 -2
- 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/Organizations.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/sections/Organizations.vue.js +5 -5
- 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 +17 -17
- package/dist/prometheus-framework/src/modules/organizations/store/memberships.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/store/memberships.js +18 -18
- 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/CardProduct.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/blocks/CardProduct.vue.js +6 -6
- package/dist/prometheus-framework/src/modules/products/components/blocks/ImagesThumbnails.vue.js +12 -12
- package/dist/prometheus-framework/src/modules/products/components/blocks/LeftoverPositions.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/blocks/LeftoverPositions.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/products/components/blocks/ListPositions.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/blocks/ListPositions.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/products/components/pages/Categories.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/pages/Categories.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/products/components/pages/CategoryEdit.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/pages/CategoryEdit.vue.js +3 -3
- 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/ProductEdit.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/pages/ProductEdit.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/products/components/pages/ProductRecommmendation.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/pages/ProductRecommmendation.vue.js +3 -2
- package/dist/prometheus-framework/src/modules/products/components/sections/EditModifications.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/sections/EditModifications.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/HeroRecommendation.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/sections/HeroRecommendation.vue.js +32 -37
- 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 +1 -1
- 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 +2 -2
- package/dist/prometheus-framework/src/modules/spots/components/blocks/CardSpot.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/spots/components/blocks/CardSpot.vue.js +5 -5
- package/dist/prometheus-framework/src/modules/users/components/blocks/CardUser.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/users/components/blocks/CardUser.vue.js +14 -14
- 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 +33 -33
- 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 +53 -35
- 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 +2 -2
- package/dist/prometheus-framework/src/modules/wallet/components/blocks/CardBalanceReplenished.vue.cjs +1 -0
- package/dist/prometheus-framework/src/modules/wallet/components/blocks/CardBalanceReplenished.vue.js +30 -0
- package/dist/prometheus-framework/src/modules/wallet/components/blocks/CardDeposite.vue.cjs +1 -0
- package/dist/prometheus-framework/src/modules/wallet/components/blocks/CardDeposite.vue.js +42 -0
- package/dist/prometheus-framework/src/modules/wallet/components/blocks/CashDeposite.vue.cjs +1 -0
- package/dist/prometheus-framework/src/modules/wallet/components/blocks/CashDeposite.vue.js +26 -0
- package/dist/prometheus-framework/src/modules/wallet/components/blocks/CryptoDeposite.vue.cjs +1 -0
- package/dist/prometheus-framework/src/modules/wallet/components/blocks/CryptoDeposite.vue.js +42 -0
- package/dist/prometheus-framework/src/modules/wallet/localization/Wallet.json.cjs +1 -0
- package/dist/prometheus-framework/src/modules/wallet/localization/Wallet.json.js +26 -0
- package/dist/prometheus-framework/src/modules/wallet/views/components/pages/Wallet.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/wallet/views/components/pages/Wallet.vue.js +158 -81
- package/dist/prometheus-framework.cjs.js +1 -1
- package/dist/prometheus-framework.es.js +14 -14
- package/dist/queryProcessor-DQSFR9YA.mjs +179 -0
- package/dist/queryProcessor-iewDZq_f.js +178 -0
- package/dist/style.css +1 -1
- package/dist/wallet.server.js +80 -27
- package/dist/wallet.server.mjs +80 -27
- package/dist/web-DZUec7pP.js +1 -0
- package/dist/web-krQQeSb6.mjs +54 -0
- package/package.json +1 -1
- package/src/components/Address/Address.vue +1 -1
- package/src/components/Chips/Chips.vue +1 -1
- package/src/components/Completion/Completion.vue +1 -4
- package/src/components/DatePicker/Calendar.vue +1 -1
- package/src/components/Draggable/Draggable.vue +113 -0
- package/src/components/Dropdown/Dropdown.vue +1 -1
- package/src/components/Feed/Feed.vue +18 -12
- package/src/components/FieldBig/FieldBig.vue +11 -1
- package/src/components/FieldPhone/FieldPhone.vue +1 -1
- package/src/components/FieldTags/FieldTags.vue +2 -1
- package/src/components/FieldTags/tag-input.vue +1 -1
- package/src/components/LocationMarker/LocationMarker.vue +1 -1
- package/src/components/PhotoViewer/PhotoViewer.vue +1 -1
- package/src/components/Shader/Shader.vue +2 -2
- package/src/components/Slider/Slider.vue +1 -5
- package/src/components/Spoiler/Spoiler.vue +1 -1
- package/src/components/Text/Text.vue +1 -4
- package/src/components/Tooltip/Tooltip.vue +1 -1
- package/src/components/Upload/Upload.vue +5 -3
- package/src/modules/auth/controllers/auth.controller.js +0 -2
- package/src/modules/auth/store/auth.js +2 -2
- package/src/modules/community/DOCUMENTATION.MD +4 -0
- package/src/modules/community/community.client.js +0 -2
- package/src/modules/community/components/blocks/CardBlogpost.vue +6 -2
- package/src/modules/community/components/blocks/FooterBlogpost.vue +21 -5
- package/src/modules/community/components/layouts/Community.vue +15 -11
- package/src/modules/community/components/pages/Blog.vue +25 -32
- package/src/modules/community/components/pages/CreateBlogPost.vue +8 -15
- package/src/modules/community/components/sections/Comment.vue +123 -0
- package/src/modules/community/components/sections/Comments.vue +90 -19
- package/src/modules/community/components/sections/HotPosts.vue +3 -6
- package/src/modules/community/controllers/blog.controller.js +1 -1
- package/src/modules/community/controllers/comments.controller.aggr.js +280 -0
- package/src/modules/community/controllers/comments.controller.js +187 -38
- package/src/modules/community/controllers/comments.controller.populate.js +180 -0
- package/src/modules/community/models/comment.model.js +15 -0
- package/src/modules/community/store/blogposts.js +20 -2
- package/src/modules/constructor/components/elements/Audio.vue +28 -40
- package/src/modules/constructor/components/elements/ImageUpload.vue +12 -7
- package/src/modules/constructor/components/elements/Video.vue +10 -18
- package/src/modules/constructor/components/sections/Constructor.vue +54 -47
- package/src/modules/files/controllers/files.controller.js +2 -0
- package/src/modules/files/middlewares/server/middlewareBusboy.js +32 -4
- package/src/modules/files/routes/files.routes.js +8 -0
- package/src/modules/globals/components/blocks/BlockFilter.vue +17 -7
- package/src/modules/globals/components/partials/Header.vue +12 -7
- package/src/modules/globals/controllers/utils/queryProcessor.js +1 -0
- package/src/modules/icons/logos/Logotype.vue +8 -6
- package/src/modules/icons/logos/LogotypeNunito.vue +12 -0
- package/src/modules/marketplace/components/layouts/Marketplace.vue +29 -27
- package/src/modules/marketplace/store/marketplace.js +2 -8
- package/src/modules/organizations/components/blocks/CardOrganization.vue +1 -1
- package/src/modules/organizations/components/pages/Members.vue +1 -1
- package/src/modules/organizations/components/pages/Organization.vue +33 -5
- package/src/modules/organizations/components/pages/OrganizationEdit.vue +7 -4
- package/src/modules/organizations/components/sections/DetailsTab.vue +10 -10
- package/src/modules/organizations/components/sections/Publics.vue +2 -2
- package/src/modules/organizations/controllers/memberships.controller.js +2 -3
- package/src/modules/organizations/controllers/organizations.controller.js +1 -1
- package/src/modules/organizations/store/memberships.js +4 -1
- package/src/modules/products/components/blocks/CardProduct.vue +1 -1
- package/src/modules/products/components/sections/HeroRecommendation.vue +11 -8
- package/src/modules/products/models/product.model.js +2 -1
- package/src/modules/spots/components/layouts/Spots.vue +0 -3
- package/src/modules/spots/components/pages/Map.vue +13 -3
- package/src/modules/users/components/blocks/CardUser.vue +2 -2
- package/src/modules/users/components/pages/ProfileBlogposts.vue +45 -28
- package/src/modules/wallet/components/blocks/CardBalanceReplenished.vue +40 -0
- package/src/modules/wallet/components/blocks/CardDeposite.vue +55 -0
- package/src/modules/wallet/components/blocks/CashDeposite.vue +28 -0
- package/src/modules/wallet/components/blocks/CryptoDeposite.vue +55 -0
- package/src/modules/wallet/controllers/factories/rewards.factory.aggr.js +181 -0
- package/src/modules/wallet/controllers/factories/rewards.factory.js +87 -113
- package/src/modules/wallet/controllers/factories/rewards.factory.population.js +213 -0
- package/src/modules/wallet/localization/Wallet.json +22 -0
- package/src/modules/wallet/views/components/pages/Wallet.vue +153 -53
- package/src/styles/base/all.scss +16 -26
- package/src/styles/config.scss +70 -34
- package/src/styles/typography.scss +5 -5
- package/src/modules/community/components/sections/Feed.vue +0 -148
- package/src/modules/middlewares/server/accessors/AccessController.js +0 -33
- package/src/modules/middlewares/server/accessors/ReadDepartments.js +0 -101
package/dist/prometheus-framework/src/modules/community/components/pages/CreateBlogPost.vue.js
CHANGED
@@ -1,38 +1,38 @@
|
|
1
|
-
import { ref as
|
2
|
-
|
3
|
-
import
|
4
|
-
import
|
1
|
+
import { ref as r, onMounted as V, computed as w, openBlock as u, createElementBlock as m, createElementVNode as n, unref as l, createBlock as A, createCommentVNode as p, createVNode as i, Transition as U, withCtx as v, createTextVNode as z } from "vue";
|
2
|
+
/* empty css */
|
3
|
+
import D from "../../../constructor/components/sections/Constructor.vue.js";
|
4
|
+
import N from "../../../../components/Popup/Popup.vue.js";
|
5
5
|
/* empty css */
|
6
6
|
/* empty css */
|
7
|
-
import
|
8
|
-
import
|
9
|
-
import
|
10
|
-
import
|
11
|
-
import
|
12
|
-
import { useRoute as
|
13
|
-
import { read as
|
7
|
+
import O from "../../../../components/FieldTags/BlockTags.vue.js";
|
8
|
+
import E from "../../../../components/Checkbox/Checkbox.vue.js";
|
9
|
+
import F from "../../../../components/Field/Field.vue.js";
|
10
|
+
import L from "../../../../components/SelectMulti/SelectMulti.vue.js";
|
11
|
+
import M from "../../../../components/Button/Button.vue.js";
|
12
|
+
import { useRoute as R, useRouter as S } from "vue-router";
|
13
|
+
import { read as H, clean as j, state as q, update as k, create as y, remove as G } from "../../store/blogposts.js";
|
14
14
|
import { state as f } from "../../../auth/store/auth.js";
|
15
|
-
import { actions as
|
16
|
-
const
|
15
|
+
import { actions as I } from "../../../organizations/store/organizations.js";
|
16
|
+
const J = { class: "pd-thin" }, K = {
|
17
17
|
style: { "min-height": "100%" },
|
18
18
|
class: "w-100 bg-light pd-big radius-big"
|
19
|
-
},
|
19
|
+
}, Q = /* @__PURE__ */ n("div", { class: "w-full h-full" }, null, -1), W = {
|
20
20
|
key: 0,
|
21
21
|
class: "pd-thin pos-sticky pos-l-0 pos-b-0 w-100"
|
22
|
-
},
|
22
|
+
}, X = { class: "pd-thin radius-big bg-main w-100 flex-nowrap flex" }, Y = /* @__PURE__ */ n("h3", { class: "mn-b-small" }, "Final Touches", -1), Z = /* @__PURE__ */ n("h5", { class: "mn-b-thin" }, "Add source:", -1), ee = /* @__PURE__ */ n("h5", { class: "mn-b-thin" }, "Add to public:", -1), te = {
|
23
23
|
key: 0,
|
24
24
|
class: "mn-b-thin"
|
25
|
-
},
|
25
|
+
}, oe = {
|
26
26
|
key: 1,
|
27
27
|
class: "mn-b-medium br-grey-transp-25 br-2px br-solid pd-small radius-big"
|
28
|
-
},
|
28
|
+
}, _e = {
|
29
29
|
__name: "CreateBlogPost",
|
30
30
|
setup(ae) {
|
31
|
-
const
|
32
|
-
let e =
|
33
|
-
const g =
|
34
|
-
|
35
|
-
const t = await
|
31
|
+
const d = R(), c = S();
|
32
|
+
let e = r(null), b = r(null);
|
33
|
+
const g = r([]), s = r(null);
|
34
|
+
V(async () => {
|
35
|
+
const t = await I.read({
|
36
36
|
user: f.user._id,
|
37
37
|
postable: f.user._id,
|
38
38
|
limit: 100
|
@@ -41,11 +41,11 @@ const K = { class: "pd-thin" }, Q = {
|
|
41
41
|
name: o.profile.name,
|
42
42
|
_id: o._id,
|
43
43
|
photo: o.profile.photo
|
44
|
-
})),
|
45
|
-
const o = await
|
44
|
+
})), d.params.url) {
|
45
|
+
const o = await H({ user: f.user._id, url: d.params.url });
|
46
46
|
e.value = o.pop();
|
47
47
|
} else
|
48
|
-
|
48
|
+
j(), e.value = q.current;
|
49
49
|
e.value.owner || (e.value.owner = {
|
50
50
|
target: f.user._id,
|
51
51
|
type: "user"
|
@@ -57,88 +57,79 @@ const K = { class: "pd-thin" }, Q = {
|
|
57
57
|
_id: e.value.owner.target._id,
|
58
58
|
name: e.value.owner.target.profile.name,
|
59
59
|
photo: e.value.owner.target.profile.photo
|
60
|
-
})
|
60
|
+
});
|
61
61
|
});
|
62
|
-
const
|
62
|
+
const P = r(""), _ = r([
|
63
63
|
{ text: "story" },
|
64
64
|
{ text: "news" },
|
65
65
|
{ text: "guide" },
|
66
66
|
{ text: "discussion" },
|
67
67
|
{ text: "photos" }
|
68
68
|
]);
|
69
|
-
w(() => _.value.filter((t) => t.text.toLowerCase().includes(
|
70
|
-
const h =
|
71
|
-
function
|
69
|
+
w(() => _.value.filter((t) => t.text.toLowerCase().includes(P.value.toLowerCase()))), w(() => _.value.filter((t) => !g.value.some((o) => o.text === t.text)));
|
70
|
+
const h = r(!1);
|
71
|
+
function x() {
|
72
72
|
h.value = !0;
|
73
73
|
}
|
74
|
-
function
|
74
|
+
function C() {
|
75
75
|
h.value = !1;
|
76
76
|
}
|
77
77
|
function B() {
|
78
|
-
g.value.length > 0 && g.value.map((t) => t.text), e.value.status = "draft",
|
79
|
-
|
78
|
+
g.value.length > 0 && g.value.map((t) => t.text), e.value.status = "draft", e.value.name = e.value.content[0].content, d.params.url ? k(e.value).then((t) => {
|
79
|
+
c.push({ name: "BlogPost", params: { url: t.url } });
|
80
80
|
}).catch((t) => {
|
81
81
|
console.log(t);
|
82
|
-
}) :
|
83
|
-
|
82
|
+
}) : y(e.value).then((t) => {
|
83
|
+
c.push({ name: "BlogPost", params: { url: t.url } });
|
84
84
|
}).catch((t) => {
|
85
85
|
console.log(t);
|
86
86
|
});
|
87
87
|
}
|
88
|
-
function
|
88
|
+
function $() {
|
89
89
|
s.value && (e.value.owner = {
|
90
90
|
target: s.value._id,
|
91
91
|
type: "organization"
|
92
|
-
}), s.value || (e.value.creator.hidden = !1), s.value || (e.value.organization = e.value.creator), e.value.status = "published",
|
93
|
-
console.log(e.value),
|
92
|
+
}), s.value || (e.value.creator.hidden = !1), s.value || (e.value.organization = e.value.creator), e.value.status = "published", e.value.name = e.value.content[0].content, d.params.url ? k(e.value).then((t) => {
|
93
|
+
console.log(e.value), c.push({ name: "BlogPost", params: { url: t.url } });
|
94
94
|
}).catch((t) => {
|
95
95
|
console.error(t);
|
96
|
-
}) :
|
97
|
-
|
96
|
+
}) : y(e.value).then((t) => {
|
97
|
+
c.push({ name: "BlogPost", params: { url: t.url } });
|
98
98
|
}).catch((t) => {
|
99
99
|
console.error(t);
|
100
100
|
});
|
101
101
|
}
|
102
|
-
function
|
103
|
-
confirm("Are you sure you want to delete this post?") &&
|
104
|
-
|
102
|
+
function T() {
|
103
|
+
confirm("Are you sure you want to delete this post?") && G(e.value._id).then((t) => {
|
104
|
+
c.push({ name: "User Blogposts", params: { _id: e.value.creator.target._id } });
|
105
105
|
}).catch((t) => {
|
106
106
|
console.log(t);
|
107
107
|
});
|
108
108
|
}
|
109
|
-
return (t, o) => (
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
key: 0,
|
114
|
-
prop: l(e),
|
115
|
-
setFocus: !0,
|
116
|
-
content: "name",
|
117
|
-
placeholder: "Enter post title",
|
118
|
-
class: "h2"
|
119
|
-
}, null, 8, ["prop"])) : p("", !0)
|
120
|
-
]),
|
121
|
-
l(e) ? (i(), k(N, {
|
109
|
+
return (t, o) => (u(), m("article", J, [
|
110
|
+
n("section", K, [
|
111
|
+
Q,
|
112
|
+
l(e) ? (u(), A(D, {
|
122
113
|
key: 0,
|
123
114
|
content: l(e).content,
|
124
115
|
onUpdate: o[0] || (o[0] = (a) => l(e).content = a)
|
125
116
|
}, null, 8, ["content"])) : p("", !0)
|
126
117
|
]),
|
127
|
-
|
118
|
+
i(U, { name: "scaleIn" }, {
|
128
119
|
default: v(() => [
|
129
|
-
l(e) ? (
|
130
|
-
|
131
|
-
l(
|
120
|
+
l(e) ? (u(), m("section", W, [
|
121
|
+
n("div", X, [
|
122
|
+
l(d).params.url ? (u(), m("a", {
|
132
123
|
key: 0,
|
133
|
-
onClick: o[1] || (o[1] = (a) =>
|
124
|
+
onClick: o[1] || (o[1] = (a) => T()),
|
134
125
|
class: "mn-r-auto bg-red t-white t-black button"
|
135
126
|
}, "Delete")) : p("", !0),
|
136
|
-
|
127
|
+
n("a", {
|
137
128
|
onClick: o[2] || (o[2] = (a) => B()),
|
138
129
|
class: "mn-l-auto bg-white t-black button"
|
139
130
|
}, "To Drafts"),
|
140
|
-
|
141
|
-
onClick: o[3] || (o[3] = (a) =>
|
131
|
+
n("a", {
|
132
|
+
onClick: o[3] || (o[3] = (a) => x()),
|
142
133
|
class: "mn-l-thin bg-black t-white button"
|
143
134
|
}, "Publish")
|
144
135
|
])
|
@@ -146,27 +137,27 @@ const K = { class: "pd-thin" }, Q = {
|
|
146
137
|
]),
|
147
138
|
_: 1
|
148
139
|
}),
|
149
|
-
|
150
|
-
|
151
|
-
onClosePopup: $,
|
140
|
+
i(N, {
|
141
|
+
onClosePopup: C,
|
152
142
|
isPopupOpen: h.value,
|
153
143
|
class: "w-m-33r t-left pd-big bg-white radius-big"
|
154
144
|
}, {
|
155
145
|
default: v(() => [
|
156
|
-
|
157
|
-
|
146
|
+
Y,
|
147
|
+
i(O, {
|
158
148
|
onTagsChanged: o[4] || (o[4] = (a) => l(e).tags = a),
|
159
|
-
tags: l(e).tags
|
149
|
+
tags: l(e).tags,
|
150
|
+
class: "mn-b-small"
|
160
151
|
}, null, 8, ["tags"]),
|
161
|
-
|
162
|
-
|
152
|
+
Z,
|
153
|
+
i(F, {
|
163
154
|
field: l(e).source,
|
164
155
|
"onUpdate:field": o[5] || (o[5] = (a) => l(e).source = a),
|
165
156
|
placeholder: "Add full link to the source",
|
166
157
|
class: "mn-b-medium bg-light radius-medium pd-small"
|
167
158
|
}, null, 8, ["field"]),
|
168
|
-
|
169
|
-
|
159
|
+
ee,
|
160
|
+
i(L, {
|
170
161
|
modelValue: s.value,
|
171
162
|
"onUpdate:modelValue": o[6] || (o[6] = (a) => s.value = a),
|
172
163
|
options: l(b),
|
@@ -177,9 +168,9 @@ const K = { class: "pd-thin" }, Q = {
|
|
177
168
|
"track-by": "_id",
|
178
169
|
class: "mn-b-medium bg-light radius-medium pd-small"
|
179
170
|
}, null, 8, ["modelValue", "options"]),
|
180
|
-
s.value ? (
|
181
|
-
s.value ? (
|
182
|
-
|
171
|
+
s.value ? (u(), m("h5", te, "Options:")) : p("", !0),
|
172
|
+
s.value ? (u(), m("div", oe, [
|
173
|
+
i(E, {
|
183
174
|
label: "Hide Author",
|
184
175
|
radio: l(e).creator.hidden,
|
185
176
|
"onUpdate:radio": o[7] || (o[7] = (a) => l(e).creator.hidden = a),
|
@@ -187,8 +178,8 @@ const K = { class: "pd-thin" }, Q = {
|
|
187
178
|
class: "w-100"
|
188
179
|
}, null, 8, ["radio"])
|
189
180
|
])) : p("", !0),
|
190
|
-
|
191
|
-
submit:
|
181
|
+
i(M, {
|
182
|
+
submit: $,
|
192
183
|
callback: t.redirectTo,
|
193
184
|
class: "w-100 bg-black t-white"
|
194
185
|
}, {
|
@@ -204,5 +195,5 @@ const K = { class: "pd-thin" }, Q = {
|
|
204
195
|
}
|
205
196
|
};
|
206
197
|
export {
|
207
|
-
|
198
|
+
_e as default
|
208
199
|
};
|
@@ -0,0 +1 @@
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),f=require("../../../globals/components/blocks/CardHeader.vue.cjs"),b={class:"pd-t-zero"},w={class:"p-big"},B={class:"mn-t-thin flex-v-center flex-nowrap flex gap-small"},E={key:0,class:"mn-l-medium mn-t-small bg-white w-100 radius-small pd-small reply-form"},V={key:1,class:"br-solid br-l br-grey-transp-25"},i={__name:"Comment",props:{comment:{type:Object,required:!0},target:{type:String,required:!0},owner:{type:String,required:!0}},emits:["reply","load-more"],setup(t,{emit:y}){const a=t,m=y,s=e.ref(!1),r=e.ref(""),c=e.ref(p(a.comment.depth));function p(l){return l%3<2}const d=e.computed(()=>{function l(n){return!n.children||n.children.length===0?0:n.children.length+n.children.reduce((o,h)=>o+l(h),0)}return l(a.comment)}),v=()=>{c.value=!c.value},u=()=>{m("reply",a.comment._id,r.value),r.value="",s.value=!1},g=(l,n)=>{m("reply",l,n)},k=(l,n)=>{m("load-more",l,n)};return(l,n)=>(e.openBlock(),e.createElementBlock("div",null,[e.createVNode(f.default,{class:"mn-b-thin",entity:t.comment,entityType:"comment",user:t.owner,owner:{target:t.comment.user},creator:{target:t.comment.user},date:t.comment.createdAt},null,8,["entity","user","owner","creator","date"]),e.createElementVNode("div",b,[e.createElementVNode("p",w,e.toDisplayString(t.comment.content),1)]),e.createElementVNode("div",B,[d.value>0?(e.openBlock(),e.createElementBlock("button",{key:0,onClick:v,class:"t-second cursor-pointer t-medium font-second"},e.toDisplayString(c.value?"Hide":d.value+(d.value===1?" reply":" replies")),1)):e.createCommentVNode("",!0),t.owner?(e.openBlock(),e.createElementBlock("button",{key:1,class:"font-second cursor-pointer t-transp t-medium",onClick:n[0]||(n[0]=o=>s.value=!0)}," Reply ")):e.createCommentVNode("",!0)]),s.value?(e.openBlock(),e.createElementBlock("div",E,[e.withDirectives(e.createElementVNode("textarea",{class:"w-100","onUpdate:modelValue":n[1]||(n[1]=o=>r.value=o)},null,512),[[e.vModelText,r.value]]),e.createElementVNode("div",{class:"mn-l-auto gap-thin flex-nowrap flex"},[e.createElementVNode("button",{class:"bg-grey-transp-25 button",onClick:u},"Cancel"),e.createElementVNode("button",{class:"bg-main button",onClick:u},"Send")])])):e.createCommentVNode("",!0),c.value&&t.comment.children&&t.comment.children.length?(e.openBlock(),e.createElementBlock("div",V,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.comment.children,o=>(e.openBlock(),e.createBlock(i,{key:o._id,comment:o,target:t.target,owner:t.owner,onReply:g,onLoadMore:k,class:"mn-l-medium mn-t-small"},null,8,["comment","target","owner"]))),128))])):e.createCommentVNode("",!0)]))}};exports.default=i;
|
@@ -0,0 +1,104 @@
|
|
1
|
+
import { ref as v, computed as C, openBlock as r, createElementBlock as a, createVNode as R, createElementVNode as o, toDisplayString as h, createCommentVNode as i, withDirectives as B, vModelText as E, Fragment as S, renderList as V, createBlock as q } from "vue";
|
2
|
+
import L from "../../../globals/components/blocks/CardHeader.vue.js";
|
3
|
+
const M = { class: "pd-t-zero" }, N = { class: "p-big" }, D = { class: "mn-t-thin flex-v-center flex-nowrap flex gap-small" }, F = {
|
4
|
+
key: 0,
|
5
|
+
class: "mn-l-medium mn-t-small bg-white w-100 radius-small pd-small reply-form"
|
6
|
+
}, T = {
|
7
|
+
key: 1,
|
8
|
+
class: "br-solid br-l br-grey-transp-25"
|
9
|
+
}, $ = {
|
10
|
+
__name: "Comment",
|
11
|
+
props: {
|
12
|
+
comment: {
|
13
|
+
type: Object,
|
14
|
+
required: !0
|
15
|
+
},
|
16
|
+
target: {
|
17
|
+
type: String,
|
18
|
+
required: !0
|
19
|
+
},
|
20
|
+
owner: {
|
21
|
+
type: String,
|
22
|
+
required: !0
|
23
|
+
}
|
24
|
+
},
|
25
|
+
emits: ["reply", "load-more"],
|
26
|
+
setup(e, { emit: p }) {
|
27
|
+
const m = e, u = p, d = v(!1), c = v(""), s = v(f(m.comment.depth));
|
28
|
+
function f(n) {
|
29
|
+
return n % 3 < 2;
|
30
|
+
}
|
31
|
+
const y = C(() => {
|
32
|
+
function n(t) {
|
33
|
+
return !t.children || t.children.length === 0 ? 0 : t.children.length + t.children.reduce((l, x) => l + n(x), 0);
|
34
|
+
}
|
35
|
+
return n(m.comment);
|
36
|
+
}), b = () => {
|
37
|
+
s.value = !s.value;
|
38
|
+
}, g = () => {
|
39
|
+
u("reply", m.comment._id, c.value), c.value = "", d.value = !1;
|
40
|
+
}, w = (n, t) => {
|
41
|
+
u("reply", n, t);
|
42
|
+
}, k = (n, t) => {
|
43
|
+
u("load-more", n, t);
|
44
|
+
};
|
45
|
+
return (n, t) => (r(), a("div", null, [
|
46
|
+
R(L, {
|
47
|
+
class: "mn-b-thin",
|
48
|
+
entity: e.comment,
|
49
|
+
entityType: "comment",
|
50
|
+
user: e.owner,
|
51
|
+
owner: { target: e.comment.user },
|
52
|
+
creator: { target: e.comment.user },
|
53
|
+
date: e.comment.createdAt
|
54
|
+
}, null, 8, ["entity", "user", "owner", "creator", "date"]),
|
55
|
+
o("div", M, [
|
56
|
+
o("p", N, h(e.comment.content), 1)
|
57
|
+
]),
|
58
|
+
o("div", D, [
|
59
|
+
y.value > 0 ? (r(), a("button", {
|
60
|
+
key: 0,
|
61
|
+
onClick: b,
|
62
|
+
class: "t-second cursor-pointer t-medium font-second"
|
63
|
+
}, h(s.value ? "Hide" : y.value + (y.value === 1 ? " reply" : " replies")), 1)) : i("", !0),
|
64
|
+
e.owner ? (r(), a("button", {
|
65
|
+
key: 1,
|
66
|
+
class: "font-second cursor-pointer t-transp t-medium",
|
67
|
+
onClick: t[0] || (t[0] = (l) => d.value = !0)
|
68
|
+
}, " Reply ")) : i("", !0)
|
69
|
+
]),
|
70
|
+
d.value ? (r(), a("div", F, [
|
71
|
+
B(o("textarea", {
|
72
|
+
class: "w-100",
|
73
|
+
"onUpdate:modelValue": t[1] || (t[1] = (l) => c.value = l)
|
74
|
+
}, null, 512), [
|
75
|
+
[E, c.value]
|
76
|
+
]),
|
77
|
+
o("div", { class: "mn-l-auto gap-thin flex-nowrap flex" }, [
|
78
|
+
o("button", {
|
79
|
+
class: "bg-grey-transp-25 button",
|
80
|
+
onClick: g
|
81
|
+
}, "Cancel"),
|
82
|
+
o("button", {
|
83
|
+
class: "bg-main button",
|
84
|
+
onClick: g
|
85
|
+
}, "Send")
|
86
|
+
])
|
87
|
+
])) : i("", !0),
|
88
|
+
s.value && e.comment.children && e.comment.children.length ? (r(), a("div", T, [
|
89
|
+
(r(!0), a(S, null, V(e.comment.children, (l) => (r(), q($, {
|
90
|
+
key: l._id,
|
91
|
+
comment: l,
|
92
|
+
target: e.target,
|
93
|
+
owner: e.owner,
|
94
|
+
onReply: w,
|
95
|
+
onLoadMore: k,
|
96
|
+
class: "mn-l-medium mn-t-small"
|
97
|
+
}, null, 8, ["comment", "target", "owner"]))), 128))
|
98
|
+
])) : i("", !0)
|
99
|
+
]));
|
100
|
+
}
|
101
|
+
};
|
102
|
+
export {
|
103
|
+
$ as default
|
104
|
+
};
|
package/dist/prometheus-framework/src/modules/community/components/sections/Comments.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"),m=require("axios"),b=require("./Comment.vue.cjs"),f={id:"comments"},w={class:"mn-b-small"},k=e.createElementVNode("p",{class:"t-semi uppercase"},"Please log in to leave a comment.",-1),E=[k],C={key:1,class:"mn-b-small"},B=e.createElementVNode("button",{type:"submit",class:"mn-l-auto bg-main button"},"Send",-1),V={__name:"Comments",props:["target","owner","type"],setup(s){const o=s,p=m.create({baseURL:process.env.API_URL}),l=e.ref([]),c=e.ref(""),g=async()=>{try{const t=await m.get("/comments/read",{params:{target:o.target,type:o.type,user:o.owner,maxDepth:2}});l.value=t.data}catch(t){console.error("Error fetching comments:",t)}},h=async(t,n)=>{try{const i=(await m.post("/comments/create",{content:n,target:o.target,type:o.type,user:o.owner,parent:t})).data;u(l.value,t,i)}catch(r){console.error("Error posting reply:",r)}},y=async(t,n)=>{try{const r=await m.get("/comments/read",{params:{target:o.target,type:o.type,user:o.owner,parentId:t,depth:n,maxDepth:10}});u(l.value,t,r.data,r.data.hasMore,!0)}catch(r){console.error("Error loading more comments:",r)}},u=(t,n,r,i,d=!1)=>{for(let a=0;a<t.length;a++){if(t[a]._id===n)return d?(t[a].children=[...t[a].children,...r],t[a].hasMore=i):t[a].children.push(r),!0;if(t[a].children&&u(t[a].children,n,r,i,d))return!0}return!1},v=async()=>{if(c.value)try{const t=await p.post("/comments/create",{target:o.target,user:o.owner,type:o.type,content:c.value});t.data.owner=o.owner,l.value.push(t.data),c.value=""}catch(t){console.error(t)}};return g(),(t,n)=>(e.openBlock(),e.createElementBlock("div",f,[e.createElementVNode("div",null,[e.createElementVNode("h3",w,e.toDisplayString(l.value.length)+" comments",1),s.owner?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",{key:0,onClick:n[0]||(n[0]=r=>t.$router.push({name:"Sign In"})),class:"cursor-pointer mn-b-small section bg-black t-white flex-center flex radius-big"},E)),s.owner?(e.openBlock(),e.createElementBlock("div",C,[e.createElementVNode("form",{onSubmit:e.withModifiers(v,["prevent"]),class:"bg-light radius-big pd-medium"},[e.withDirectives(e.createElementVNode("textarea",{"onUpdate:modelValue":n[1]||(n[1]=r=>c.value=r),placeholder:"Enter your comment",class:"pd-small p-big w-100 radius-small mn-r-small"},null,512),[[e.vModelText,c.value]]),B],32)])):e.createCommentVNode("",!0)]),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.value,r=>(e.openBlock(),e.createBlock(b.default,{key:r._id,comment:r,target:s.target,type:s.type,owner:s.owner,onReply:h,onLoadMore:y,class:"comment mn-b-small radius-big pd-medium bg-light"},null,8,["comment","target","type","owner"]))),128))]))}};exports.default=V;
|
@@ -1,79 +1,124 @@
|
|
1
|
-
import { ref as
|
2
|
-
import
|
3
|
-
import
|
4
|
-
const
|
5
|
-
|
6
|
-
],
|
1
|
+
import { ref as h, openBlock as i, createElementBlock as u, createElementVNode as l, toDisplayString as C, createCommentVNode as y, withModifiers as k, withDirectives as _, vModelText as E, Fragment as M, renderList as R, createBlock as S } from "vue";
|
2
|
+
import d from "axios";
|
3
|
+
import $ from "./Comment.vue.js";
|
4
|
+
const B = { id: "comments" }, L = { class: "mn-b-small" }, U = /* @__PURE__ */ l("p", { class: "t-semi uppercase" }, "Please log in to leave a comment.", -1), V = [
|
5
|
+
U
|
6
|
+
], D = {
|
7
7
|
key: 1,
|
8
8
|
class: "mn-b-small"
|
9
|
-
},
|
9
|
+
}, N = /* @__PURE__ */ l("button", {
|
10
10
|
type: "submit",
|
11
11
|
class: "mn-l-auto bg-main button"
|
12
|
-
}, "Send", -1),
|
12
|
+
}, "Send", -1), F = {
|
13
13
|
__name: "Comments",
|
14
|
-
props: [
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
14
|
+
props: [
|
15
|
+
"target",
|
16
|
+
"owner",
|
17
|
+
"type"
|
18
|
+
],
|
19
|
+
setup(a) {
|
20
|
+
const r = a, v = d.create({ baseURL: process.env.API_URL }), s = h([]), c = h(""), f = async () => {
|
21
|
+
try {
|
22
|
+
const e = await d.get("/comments/read", {
|
23
|
+
params: {
|
24
|
+
target: r.target,
|
25
|
+
type: r.type,
|
26
|
+
user: r.owner,
|
27
|
+
maxDepth: 2
|
28
|
+
}
|
29
|
+
});
|
30
|
+
s.value = e.data;
|
31
|
+
} catch (e) {
|
32
|
+
console.error("Error fetching comments:", e);
|
33
|
+
}
|
34
|
+
}, b = async (e, o) => {
|
35
|
+
try {
|
36
|
+
const m = (await d.post("/comments/create", {
|
37
|
+
content: o,
|
38
|
+
target: r.target,
|
39
|
+
type: r.type,
|
40
|
+
user: r.owner,
|
41
|
+
parent: e
|
42
|
+
})).data;
|
43
|
+
p(s.value, e, m);
|
44
|
+
} catch (t) {
|
45
|
+
console.error("Error posting reply:", t);
|
46
|
+
}
|
47
|
+
}, w = async (e, o) => {
|
48
|
+
try {
|
49
|
+
const t = await d.get("/comments/read", {
|
50
|
+
params: {
|
51
|
+
target: r.target,
|
52
|
+
type: r.type,
|
53
|
+
user: r.owner,
|
54
|
+
parentId: e,
|
55
|
+
depth: o,
|
56
|
+
maxDepth: 10
|
57
|
+
}
|
58
|
+
});
|
59
|
+
p(s.value, e, t.data, t.data.hasMore, !0);
|
60
|
+
} catch (t) {
|
61
|
+
console.error("Error loading more comments:", t);
|
62
|
+
}
|
63
|
+
}, p = (e, o, t, m, g = !1) => {
|
64
|
+
for (let n = 0; n < e.length; n++) {
|
65
|
+
if (e[n]._id === o)
|
66
|
+
return g ? (e[n].children = [...e[n].children, ...t], e[n].hasMore = m) : e[n].children.push(t), !0;
|
67
|
+
if (e[n].children && p(e[n].children, o, t, m, g))
|
68
|
+
return !0;
|
69
|
+
}
|
70
|
+
return !1;
|
71
|
+
}, x = async () => {
|
72
|
+
if (c.value)
|
21
73
|
try {
|
22
|
-
const
|
23
|
-
target:
|
24
|
-
user:
|
25
|
-
type:
|
26
|
-
content:
|
74
|
+
const e = await v.post("/comments/create", {
|
75
|
+
target: r.target,
|
76
|
+
user: r.owner,
|
77
|
+
type: r.type,
|
78
|
+
content: c.value
|
27
79
|
});
|
28
|
-
|
29
|
-
} catch (
|
30
|
-
console.error(
|
80
|
+
e.data.owner = r.owner, s.value.push(e.data), c.value = "";
|
81
|
+
} catch (e) {
|
82
|
+
console.error(e);
|
31
83
|
}
|
32
84
|
};
|
33
|
-
return
|
34
|
-
|
35
|
-
|
36
|
-
|
85
|
+
return f(), (e, o) => (i(), u("div", B, [
|
86
|
+
l("div", null, [
|
87
|
+
l("h3", L, C(s.value.length) + " comments", 1),
|
88
|
+
a.owner ? y("", !0) : (i(), u("div", {
|
37
89
|
key: 0,
|
38
|
-
onClick:
|
90
|
+
onClick: o[0] || (o[0] = (t) => e.$router.push({ name: "Sign In" })),
|
39
91
|
class: "cursor-pointer mn-b-small section bg-black t-white flex-center flex radius-big"
|
40
|
-
},
|
41
|
-
|
42
|
-
|
43
|
-
onSubmit:
|
92
|
+
}, V)),
|
93
|
+
a.owner ? (i(), u("div", D, [
|
94
|
+
l("form", {
|
95
|
+
onSubmit: k(x, ["prevent"]),
|
44
96
|
class: "bg-light radius-big pd-medium"
|
45
97
|
}, [
|
46
|
-
|
47
|
-
"onUpdate:modelValue":
|
98
|
+
_(l("textarea", {
|
99
|
+
"onUpdate:modelValue": o[1] || (o[1] = (t) => c.value = t),
|
48
100
|
placeholder: "Enter your comment",
|
49
101
|
class: "pd-small p-big w-100 radius-small mn-r-small"
|
50
102
|
}, null, 512), [
|
51
|
-
[
|
103
|
+
[E, c.value]
|
52
104
|
]),
|
53
|
-
|
105
|
+
N
|
54
106
|
], 32)
|
55
|
-
])) :
|
107
|
+
])) : y("", !0)
|
56
108
|
]),
|
57
|
-
(
|
58
|
-
key:
|
109
|
+
(i(!0), u(M, null, R(s.value, (t) => (i(), S($, {
|
110
|
+
key: t._id,
|
111
|
+
comment: t,
|
112
|
+
target: a.target,
|
113
|
+
type: a.type,
|
114
|
+
owner: a.owner,
|
115
|
+
onReply: b,
|
116
|
+
onLoadMore: w,
|
59
117
|
class: "comment mn-b-small radius-big pd-medium bg-light"
|
60
|
-
}, [
|
61
|
-
_(x, {
|
62
|
-
class: "mn-b-medium",
|
63
|
-
entity: e,
|
64
|
-
entityType: "comment",
|
65
|
-
user: l.owner,
|
66
|
-
owner: { target: e.user },
|
67
|
-
creator: { target: e.user },
|
68
|
-
date: e.createdAt
|
69
|
-
}, null, 8, ["entity", "user", "owner", "creator", "date"]),
|
70
|
-
s("div", L, [
|
71
|
-
s("p", N, d(e.content), 1)
|
72
|
-
])
|
73
|
-
]))), 128))
|
118
|
+
}, null, 8, ["comment", "target", "type", "owner"]))), 128))
|
74
119
|
]));
|
75
120
|
}
|
76
121
|
};
|
77
122
|
export {
|
78
|
-
|
123
|
+
F as default
|
79
124
|
};
|
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");;/* empty css */;/* empty css
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue");;/* empty css */;/* empty css */;/* empty css */;/* empty css */;/* empty css */;/* empty css */const s=require("../../../../components/Slider/Slider.vue.cjs"),i=require("../blocks/CardBlogpost.vue.cjs"),l=require("../../store/blogposts.cjs"),r=require("../../../auth/store/auth.cjs");;/* empty css */const n={class:"pd-thin"},a={class:"bg-light radius-big pd-t-big pd-b-big"},c={class:"w-100 pd-b-small t-center flex-center flex"},u=e.createElementVNode("b",null,"Community",-1),d={__name:"HotPosts",setup(p){return(_,h)=>{const o=e.resolveComponent("router-link");return e.openBlock(),e.createElementBlock("section",n,[e.createElementVNode("div",a,[e.createElementVNode("h2",c,[e.createTextVNode(" Discover Our "),e.createVNode(o,{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 pd-r-small pd-l-small mn-l-thin radius-extra flex flex-v-center"},{default:e.withCtx(()=>[u]),_:1})]),e.createVNode(s.default,{store:{read:t=>l.read(t)},options:{skip:0,limit:8,user:r.state.user._id,period:"year",category:"featured"},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(i.default,{key:t._id,blogpost:t,user:r.state.user._id,hideDescription:!0,class:"bg-white flex flex-column h-35r"},null,8,["blogpost","user"]))]),_:1},8,["store","options"])])])}}};exports.default=d;
|