@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
@@ -1,29 +1,29 @@
|
|
1
|
-
import { ref as d, resolveComponent as E, openBlock as S, createElementBlock as x, createElementVNode as o, toDisplayString as r, unref as t, createVNode as a, Transition as h, withCtx as m, withDirectives as
|
1
|
+
import { ref as d, resolveComponent as E, openBlock as S, createElementBlock as x, createElementVNode as o, toDisplayString as r, unref as t, createVNode as a, Transition as h, withCtx as m, withDirectives as _, vShow as f, createTextVNode as v } from "vue";
|
2
2
|
import N from "../../../../components/Tab/Tab.vue2.js";
|
3
|
-
import V from "../../../../components/Field/Field.
|
3
|
+
import V from "../../../../components/Field/Field.vue.js";
|
4
4
|
import y from "../../../../components/FieldPhone/FieldPhone.vue.js";
|
5
|
-
import D from "../../../../components/Button/Button.
|
6
|
-
import { useRoute as I, useRouter as
|
7
|
-
import { useI18n as
|
8
|
-
import
|
5
|
+
import D from "../../../../components/Button/Button.vue.js";
|
6
|
+
import { useRoute as I, useRouter as O } from "vue-router";
|
7
|
+
import { useI18n as P } from "vue-i18n";
|
8
|
+
import T from "../../localization/SignUp.json.js";
|
9
9
|
import { state as s } from "../../store/auth.js";
|
10
|
-
import { sendCode as
|
11
|
-
import { validateInputs as b, validatePhone as
|
10
|
+
import { sendCode as U } from "../../store/twofa.js";
|
11
|
+
import { validateInputs as b, validatePhone as $, validateEmail as A } from "../../../middlewares/client/inputs.validation.js";
|
12
12
|
/* empty css */
|
13
|
-
const B = { class: "t-left pd-medium" },
|
13
|
+
const B = { class: "t-left pd-medium" }, F = { class: "mn-b-small" }, R = { class: "mn-b-small p-small uppercase t-semi bg-light radius-big o-hidden" }, L = { class: "pos-relative" }, j = { class: "mn-b-semi radius-small" }, q = { class: "mn-b-small t-transp" }, z = { class: "mn-b-semi radius-small o-hidden" }, G = { class: "mn-b-small t-transp" }, H = { class: "w-100" }, ie = {
|
14
14
|
__name: "SignUp",
|
15
15
|
setup(J) {
|
16
|
-
const { t: e } =
|
16
|
+
const { t: e } = P({
|
17
17
|
useScope: "global",
|
18
|
-
...
|
18
|
+
...T
|
19
19
|
}), u = d(null), c = d(null);
|
20
20
|
I();
|
21
|
-
const g =
|
21
|
+
const g = O(), l = d("phone");
|
22
22
|
async function w() {
|
23
23
|
try {
|
24
24
|
l.value === "phone" && await b(
|
25
25
|
u,
|
26
|
-
|
26
|
+
$,
|
27
27
|
s.user.phone,
|
28
28
|
"Некорректный телефон"
|
29
29
|
), l.value === "email" && await b(
|
@@ -36,7 +36,7 @@ const B = { class: "t-left pd-medium" }, R = { class: "mn-b-small" }, $ = { clas
|
|
36
36
|
throw new Error();
|
37
37
|
}
|
38
38
|
try {
|
39
|
-
await
|
39
|
+
await U(s.user, "signup", l.value);
|
40
40
|
} catch {
|
41
41
|
throw new Error();
|
42
42
|
}
|
@@ -47,8 +47,8 @@ const B = { class: "t-left pd-medium" }, R = { class: "mn-b-small" }, $ = { clas
|
|
47
47
|
return (p, i) => {
|
48
48
|
const k = E("router-link");
|
49
49
|
return S(), x("section", B, [
|
50
|
-
o("h3",
|
51
|
-
o("div",
|
50
|
+
o("h3", F, r(t(e)("title")), 1),
|
51
|
+
o("div", R, [
|
52
52
|
a(N, {
|
53
53
|
selected: l.value,
|
54
54
|
"onUpdate:selected": i[0] || (i[0] = (n) => l.value = n),
|
@@ -61,7 +61,7 @@ const B = { class: "t-left pd-medium" }, R = { class: "mn-b-small" }, $ = { clas
|
|
61
61
|
o("div", L, [
|
62
62
|
a(h, { name: "slide-fade" }, {
|
63
63
|
default: m(() => [
|
64
|
-
|
64
|
+
_(o("div", j, [
|
65
65
|
o("p", q, r(t(e)("smsNotice")), 1),
|
66
66
|
a(y, {
|
67
67
|
onChange: i[1] || (i[1] = (n) => s.user.phone = n),
|
@@ -76,14 +76,14 @@ const B = { class: "t-left pd-medium" }, R = { class: "mn-b-small" }, $ = { clas
|
|
76
76
|
class: "bg-light pd-small radius-small mn-b-thin"
|
77
77
|
}, null, 8, ["validation", "inputOptions"])
|
78
78
|
], 512), [
|
79
|
-
[
|
79
|
+
[f, l.value === "phone"]
|
80
80
|
])
|
81
81
|
]),
|
82
82
|
_: 1
|
83
83
|
}),
|
84
84
|
a(h, { name: "slide-fade" }, {
|
85
85
|
default: m(() => [
|
86
|
-
|
86
|
+
_(o("div", z, [
|
87
87
|
o("p", G, r(t(e)("emailNotice")), 1),
|
88
88
|
a(V, {
|
89
89
|
field: s.user.email,
|
@@ -93,7 +93,7 @@ const B = { class: "t-left pd-medium" }, R = { class: "mn-b-small" }, $ = { clas
|
|
93
93
|
class: "bg-light pd-medium radius-small"
|
94
94
|
}, null, 8, ["field", "placeholder", "validation"])
|
95
95
|
], 512), [
|
96
|
-
[
|
96
|
+
[f, l.value === "email"]
|
97
97
|
])
|
98
98
|
]),
|
99
99
|
_: 1
|
@@ -1 +1 @@
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("axios"),d=require("../../../../../node_modules/js-cookie/dist/js.cookie.cjs"),g=require("../../../../node_modules/@capacitor/preferences/dist/esm/index.cjs"),w=require("vue"),c=require("../../globals/store/globals.cjs"),k=require("./twofa.cjs"),u=l.create({baseURL:process.env.API_URL,withCredentials:!0}),a=w.reactive({user:{_id:void 0,username:"",email:"",phone:"",password:"",passwordRepeat:""},access:{roles:null,token:null,status:!1},accesses:[]});async function
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("axios"),d=require("../../../../../node_modules/js-cookie/dist/js.cookie.cjs"),g=require("../../../../node_modules/@capacitor/preferences/dist/esm/index.cjs"),w=require("vue"),c=require("../../globals/store/globals.cjs"),k=require("./twofa.cjs"),u=l.create({baseURL:process.env.API_URL,withCredentials:!0}),a=w.reactive({user:{_id:void 0,username:"",email:"",phone:"",password:"",passwordRepeat:""},access:{roles:null,token:null,status:!1},accesses:[]});async function O(){try{const e=await m("user");if(e){const{_id:t,email:s,phone:n,roles:o,accessToken:r}=e;l.interceptors.request.use(i=>(i.headers["x-access-token"]=r,i),i=>Promise.reject(i));const h=(await l.get("/api/auth/check-accesses")).data;Object.assign(a.user,{_id:t,email:s,phone:n}),Object.assign(a.access,{token:r,roles:o,status:!!r}),a.accesses=h}}catch(e){console.error("Error initializing app:",e),f("user"),a.accesses=[]}}O();const P={async login(e,t){try{const s=await u.post("/api/auth/signin",{...e,type:t});return p("user",s.data),Object.assign(a.user,{...s.data}),Object.assign(a.access,{token:s.data.accessToken,status:!0,roles:s.data.roles}),s.data}catch(s){return Object.assign(a.access,{token:null,status:!1,roles:null}),console.log(s),c.setError(s),Promise.reject(s)}},async signup(e,t,s){const{password:n,passwordRepeat:o}=a.user;if(console.log(n),console.log(o),n!==o){const r={response:{data:{errorCode:"PASSWORDS_DO_NOT_MATCH"}}};throw c.setError(r),new Error(r.response.status)}try{const r=await u.post("/api/auth/signup",{...e,type:t,inviteCode:s});return console.log(r),r.data.accessToken&&p("user",r.data),Object.assign(a.user,{...r.data}),Object.assign(a.access,{token:r.data.accessToken,status:!0,roles:r.data.roles}),r.data}catch(r){throw c.setError(r),console.log("Sign up falied"),r}},logout(){f("user"),Object.assign(a.user,{email:"",phone:"",password:"",passwordRepeat:""}),Object.assign(a.access,{token:null,status:!1})},async resetPassword(e,t){try{const s=await u.post("/api/auth/reset-password",{email:e.email,phone:e.phone,type:t});return Object.assign(k.state.code,{...s.data,isSended:!0}),s.data}catch(s){return c.setError(s),Promise.reject(s)}},async updatePassword(e,t){const{password:s,passwordRepeat:n}=a.user;if(s!==n){const o={response:{data:{errorCode:"PASSWORDS_DO_NOT_MATCH"}}};throw c.setError(o),new Error(o.response.status)}try{const o=await u.post("/api/auth/update-password",{email:e.email,phone:e.phone,password:e.password,passwordRepeat:e.passwordRepeat,type:t});return o.data.accessToken&&p("user",o.data),Object.assign(a.user,{...o.data}),Object.assign(a.access,{token:o.data.accessToken,status:!0}),o.data}catch(o){return c.setError(o),Promise.reject(o)}}},j={development:{secure:!1,expires:7,sameSite:"Lax"},production:{expires:7,path:"/",domain:process.env.DOMAIN_URL,sameSite:"none",secure:!0}};async function m(e){if(process.env.MOBILE_APP){const{value:t}=await g.Preferences.get({key:e});return t?JSON.parse(t):null}else{const t=d.default.get(e);return t?JSON.parse(t):null}}function p(e,t,s=process.env.DOMAIN_URL){process.env.MOBILE_APP?g.Preferences.set({key:e,value:JSON.stringify(t)}):d.default.set(e,JSON.stringify(t),j[s])}function f(e,t=process.env.NODE_ENV){if(process.env.MOBILE_APP)g.Preferences.remove({key:e});else{const s=t==="production"?{domain:process.env.DOMAIN_URL}:{};d.default.remove(e,s)}}w.watch(a,(e,t)=>{});exports.actions=P;exports.initialize=O;exports.state=a;
|
@@ -1,10 +1,10 @@
|
|
1
1
|
import d from "axios";
|
2
2
|
import l from "../../../../../node_modules/js-cookie/dist/js.cookie.js";
|
3
3
|
import { Preferences as w } from "../../../../node_modules/@capacitor/preferences/dist/esm/index.js";
|
4
|
-
import { reactive as
|
4
|
+
import { reactive as O, watch as f } from "vue";
|
5
5
|
import { setError as c } from "../../globals/store/globals.js";
|
6
6
|
import { state as h } from "./twofa.js";
|
7
|
-
const p = d.create({ baseURL: process.env.API_URL, withCredentials: !0 }), o =
|
7
|
+
const p = d.create({ baseURL: process.env.API_URL, withCredentials: !0 }), o = O({
|
8
8
|
user: {
|
9
9
|
_id: void 0,
|
10
10
|
username: "",
|
@@ -22,7 +22,7 @@ const p = d.create({ baseURL: process.env.API_URL, withCredentials: !0 }), o = f
|
|
22
22
|
});
|
23
23
|
async function k() {
|
24
24
|
try {
|
25
|
-
const e = await
|
25
|
+
const e = await v("user");
|
26
26
|
if (e) {
|
27
27
|
const { _id: t, email: s, phone: n, roles: r, accessToken: a } = e;
|
28
28
|
d.interceptors.request.use((i) => (i.headers["x-access-token"] = a, i), (i) => Promise.reject(i));
|
@@ -34,7 +34,7 @@ async function k() {
|
|
34
34
|
}
|
35
35
|
}
|
36
36
|
k();
|
37
|
-
const
|
37
|
+
const N = {
|
38
38
|
async login(e, t) {
|
39
39
|
try {
|
40
40
|
const s = await p.post("/api/auth/signin", {
|
@@ -137,11 +137,11 @@ const C = {
|
|
137
137
|
return c(r), Promise.reject(r);
|
138
138
|
}
|
139
139
|
}
|
140
|
-
},
|
140
|
+
}, j = {
|
141
141
|
development: { secure: !1, expires: 7, sameSite: "Lax" },
|
142
|
-
production: { expires: 7, path: "/", domain: process.env.
|
142
|
+
production: { expires: 7, path: "/", domain: process.env.DOMAIN_URL, sameSite: "none", secure: !0 }
|
143
143
|
};
|
144
|
-
async function
|
144
|
+
async function v(e) {
|
145
145
|
if (process.env.MOBILE_APP) {
|
146
146
|
const { value: t } = await w.get({ key: e });
|
147
147
|
return t ? JSON.parse(t) : null;
|
@@ -154,20 +154,20 @@ function u(e, t, s = process.env.DOMAIN_URL) {
|
|
154
154
|
process.env.MOBILE_APP ? w.set({
|
155
155
|
key: e,
|
156
156
|
value: JSON.stringify(t)
|
157
|
-
}) : l.set(e, JSON.stringify(t),
|
157
|
+
}) : l.set(e, JSON.stringify(t), j[s]);
|
158
158
|
}
|
159
159
|
function g(e, t = process.env.NODE_ENV) {
|
160
160
|
if (process.env.MOBILE_APP)
|
161
161
|
w.remove({ key: e });
|
162
162
|
else {
|
163
|
-
const s = t === "production" ? { domain: process.env.
|
163
|
+
const s = t === "production" ? { domain: process.env.DOMAIN_URL } : {};
|
164
164
|
l.remove(e, s);
|
165
165
|
}
|
166
166
|
}
|
167
|
-
|
167
|
+
f(o, (e, t) => {
|
168
168
|
});
|
169
169
|
export {
|
170
|
-
|
170
|
+
N as actions,
|
171
171
|
k as initialize,
|
172
172
|
o as state
|
173
173
|
};
|
@@ -1 +1 @@
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),n=require("../../../../components/Menu/Menu.
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),n=require("../../../../components/Menu/Menu.vue.cjs"),s=require("../../../../components/Menu/MenuItem.vue.cjs");;/* empty css */const a=require("../../../icons/entities/IconProducts.vue.cjs"),u=require("../../../icons/entities/IconEvents.vue.cjs"),i=require("../../../icons/entities/IconGroups.vue.cjs"),c=require("../../../icons/entities/IconGallery.vue.cjs"),d=require("../../../icons/entities/IconOrders.vue.cjs"),f=require("../../../icons/entities/IconLeftovers.vue.cjs"),l=require("vue-router");require("../../../auth/store/auth.cjs");require("../../../organizations/store/organizations.cjs");const m={class:""},p=e.createElementVNode("h1",{class:"pd-medium radius-medium bg-light mn-b-small"},"Welcome to Backoffice2",-1),N=e.createElementVNode("span",null," Members ",-1),V=e.createElementVNode("span",null," Community ",-1),v=e.createElementVNode("span",null," Products ",-1),h=e.createElementVNode("span",null," Leftovers ",-1),_=e.createElementVNode("span",null," Orders ",-1),C=e.createElementVNode("span",null," Gallery ",-1),k=e.createElementVNode("span",null," Events ",-1),g=e.createElementVNode("span",null," Payments ",-1),w=e.createElementVNode("span",null," Organizations ",-1),b=e.createElementVNode("span",null," Pages ",-1),E=e.createElementVNode("span",null," Reports ",-1),x={__name:"Dashboard",props:{favorites:Array},setup(q){l.useRoute();const r=l.useRouter();return e.ref(null),e.ref([]),e.onMounted(async()=>{}),($,t)=>(e.openBlock(),e.createElementBlock("div",m,[p,e.createVNode(n.default,{class:"bg-light mn-b-semi"},{default:e.withCtx(()=>[e.createVNode(s.default,{onClick:t[0]||(t[0]=o=>e.unref(r).push({name:"Organization Members"})),class:"cursor-pointer"},{default:e.withCtx(()=>[e.createVNode(i.default,{class:"i-semi",icon:!0,fill:"rgb(var(--white))"}),N]),_:1}),e.createVNode(s.default,{onClick:t[1]||(t[1]=o=>e.unref(r).push({name:"Backoffice Community"})),class:"cursor-pointer"},{default:e.withCtx(()=>[V]),_:1}),e.createVNode(s.default,{onClick:t[2]||(t[2]=o=>e.unref(r).push({name:"Products"})),class:"cursor-pointer"},{default:e.withCtx(()=>[e.createVNode(a.default,{class:"i-semi",icon:!0,fill:"rgb(var(--white))"}),v]),_:1}),e.createVNode(s.default,{onClick:t[3]||(t[3]=o=>e.unref(r).push({name:"Leftovers"})),class:"cursor-pointer"},{default:e.withCtx(()=>[e.createVNode(f.default,{class:"i-semi",icon:!0,fill:"rgb(var(--white))"}),h]),_:1}),e.createVNode(s.default,{onClick:t[4]||(t[4]=o=>e.unref(r).push({name:"Backoffice Orders"})),class:"cursor-pointer"},{default:e.withCtx(()=>[e.createVNode(d.default,{class:"i-semi",icon:!0,fill:"rgb(var(--white))"}),_]),_:1}),e.createVNode(s.default,{onClick:t[5]||(t[5]=o=>e.unref(r).push({name:"Backoffice Gallery"})),class:"cursor-pointer"},{default:e.withCtx(()=>[e.createVNode(c.default,{class:"i-semi",icon:!0,fill:"rgb(var(--white))"}),C]),_:1}),e.createVNode(s.default,{onClick:t[6]||(t[6]=o=>e.unref(r).push({name:"Backoffice Events"})),class:"cursor-pointer"},{default:e.withCtx(()=>[e.createVNode(u.default,{class:"i-semi",icon:!0,fill:"rgb(var(--white))"}),k]),_:1}),e.createVNode(s.default,{onClick:t[7]||(t[7]=o=>e.unref(r).push({name:"Payments"})),class:"cursor-pointer"},{default:e.withCtx(()=>[g]),_:1})]),_:1}),e.createVNode(n.default,{class:"bg-light"},{default:e.withCtx(()=>[e.createVNode(s.default,{onClick:t[8]||(t[8]=o=>e.unref(r).push({name:"Backoffice Organizations"})),class:"cursor-pointer"},{default:e.withCtx(()=>[w]),_:1}),e.createVNode(s.default,{onClick:t[9]||(t[9]=o=>e.unref(r).push({name:"Backoffice Pages"})),class:"cursor-pointer"},{default:e.withCtx(()=>[b]),_:1}),e.createVNode(s.default,{onClick:t[10]||(t[10]=o=>e.unref(r).push({name:"Backoffice Reports"})),class:"cursor-pointer"},{default:e.withCtx(()=>[E]),_:1})]),_:1})]))}};exports.default=x;
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import { ref as a, onMounted as m, openBlock as f, createElementBlock as c, createVNode as e, withCtx as o, unref as i, createElementVNode as t } from "vue";
|
2
|
-
import u from "../../../../components/Menu/Menu.
|
2
|
+
import u from "../../../../components/Menu/Menu.vue.js";
|
3
3
|
import r from "../../../../components/Menu/MenuItem.vue.js";
|
4
4
|
/* empty css */
|
5
5
|
import p from "../../../icons/entities/IconProducts.vue.js";
|
@@ -1 +1 @@
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./components/layouts/Community.vue.cjs"),
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./components/layouts/Community.vue.cjs"),o=require("./components/pages/CreateBlogPost.vue.cjs"),e=require("./components/pages/BlogPost.vue.cjs"),s=require("./components/pages/Blog.vue.cjs"),r=require("./components/blocks/FooterBlogpost.vue.cjs"),u=require("./components/blocks/Activity.vue.cjs"),l=require("./components/blocks/CardBlogpost.vue.cjs"),i=require("./components/sections/JoinUs.vue.cjs"),n=require("./components/sections/Comments.vue.cjs"),a=require("./components/sections/HotPosts.vue.cjs"),c=require("./store/blogposts.cjs"),g=require("./store/reactions.cjs"),d=require("./router/blogposts.cjs");exports.Community=t.default;exports.CreateBlogPost=o.default;exports.BlogPost=e.default;exports.Blog=s.default;exports.FooterBlogpost=r.default;exports.Activity=u.default;exports.CardBlogpost=l.default;exports.JoinUs=i.default;exports.Comments=n.default;exports.HotPosts=a.default;exports.blogpostsStore=c;exports.reactionsStore=g;exports.blogpostsRoutes=d.default;
|
@@ -1,30 +1,28 @@
|
|
1
1
|
import { default as s } from "./components/layouts/Community.vue.js";
|
2
2
|
import { default as f } from "./components/pages/CreateBlogPost.vue.js";
|
3
3
|
import { default as l } from "./components/pages/BlogPost.vue.js";
|
4
|
-
import { default as
|
5
|
-
import { default as
|
4
|
+
import { default as u } from "./components/pages/Blog.vue.js";
|
5
|
+
import { default as d } from "./components/blocks/FooterBlogpost.vue.js";
|
6
6
|
import { default as i } from "./components/blocks/Activity.vue.js";
|
7
7
|
import { default as B } from "./components/blocks/CardBlogpost.vue.js";
|
8
|
-
import { default as b } from "./components/sections/
|
9
|
-
import { default as P } from "./components/sections/
|
10
|
-
import { default as
|
11
|
-
import { default as v } from "./components/sections/HotPosts.vue.js";
|
8
|
+
import { default as b } from "./components/sections/JoinUs.vue.js";
|
9
|
+
import { default as P } from "./components/sections/Comments.vue.js";
|
10
|
+
import { default as S } from "./components/sections/HotPosts.vue.js";
|
12
11
|
import * as o from "./store/blogposts.js";
|
13
12
|
import * as t from "./store/reactions.js";
|
14
|
-
import { default as
|
13
|
+
import { default as A } from "./router/blogposts.js";
|
15
14
|
export {
|
16
15
|
i as Activity,
|
17
|
-
|
16
|
+
u as Blog,
|
18
17
|
l as BlogPost,
|
19
18
|
B as CardBlogpost,
|
20
|
-
|
19
|
+
P as Comments,
|
21
20
|
s as Community,
|
22
21
|
f as CreateBlogPost,
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
H as blogpostsRoutes,
|
22
|
+
d as FooterBlogpost,
|
23
|
+
S as HotPosts,
|
24
|
+
b as JoinUs,
|
25
|
+
A as blogpostsRoutes,
|
28
26
|
o as blogpostsStore,
|
29
27
|
t as reactionsStore
|
30
28
|
};
|
package/dist/prometheus-framework/src/modules/community/components/blocks/CardBlogpost.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"),u=require("../../../globals/components/blocks/CardHeader.vue.cjs"),d=require("./FooterBlogpost.vue.cjs"),m=require("../../../../components/Text/Text.vue.cjs");;/* empty css */const g=require("vue-router"),b={class:"pos-relative bg-light radius-big flex-column flex"},p={class:"pd-t-zero pd-b-zero pd-medium"},y={key:0,class:"cursor-pointer mn-b-thin flex-nowrap flex w-100"},f={key:0,class:"pd-micro t-white uppercase t-semi p-small flex-center flex pd-r-small pd-l-small mn-l-thin w-min bg-second radius-extra"},h={key:1,class:"mn-b-small t-transp p-big"},v={key:2,class:"mn-b-small h2"},k=["src"],B={key:1,controls:"",class:"mn-b-medium object-fit-cover w-100 h-max-20r"},x=["src"],V={__name:"CardBlogpost",props:{blogpost:{type:Object},user:{type:String},type:{type:String},hideDescription:{type:Boolean,default:!1}},setup(t){const i=g.useRouter(),n=t,l=e.computed(()=>n.blogpost.content.find(o=>o.type==="ImageUpload")),s=e.computed(()=>n.blogpost.content.find(o=>o.type==="Video")),r=e.computed(()=>n.blogpost.content.find(o=>o.type==="Textarea"));return(o,a)=>{var c;return e.openBlock(),e.createElementBlock("article",b,[e.createVNode(u.default,{class:e.normalizeClass({"mn-b-small pd-medium":t.type!=="short","flex-child-order-last flex-child mn-l-small":t.type==="short"}),entity:t.blogpost,entityType:"blogpost",user:t.user,owner:t.blogpost.owner,creator:t.blogpost.creator,date:t.blogpost.createdAt,actions:t.user&&t.user===t.blogpost.creator.target._id?[{to:{name:"Edit BlogPost",params:{url:t.blogpost.url}},label:"Edit"}]:null},null,8,["class","entity","user","owner","creator","date","actions"]),e.createElementVNode("section",p,[t.type!=="blogpostPage"?(e.openBlock(),e.createElementBlock("div",y,[e.createVNode(m.default,{text:t.blogpost.name||"",maxLen:80,class:"h3 d-block",onClick:a[0]||(a[0]=E=>e.unref(i).push({name:"BlogPost",params:{url:t.blogpost.url}}))},null,8,["text"]),t.blogpost.status==="draft"?(e.openBlock(),e.createElementBlock("div",f,e.toDisplayString(t.blogpost.status),1)):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),r.value&&r.value.content&&t.type!=="blogpostPage"&&!t.hideDescription?(e.openBlock(),e.createElementBlock("p",h,e.toDisplayString(r.value.content.slice(0,120))+"... ",1)):e.createCommentVNode("",!0),t.type==="blogpostPage"?(e.openBlock(),e.createElementBlock("h3",v,e.toDisplayString(t.blogpost.name),1)):e.createCommentVNode("",!0),e.renderSlot(o.$slots,"default")]),l.value&&l.value.content&&t.type!=="blogpostPage"?(e.openBlock(),e.createElementBlock("img",{key:0,src:(o.FILE_SERVER_URL||"")+l.value.content,alt:"Blog post image",class:"mn-b-medium object-fit-cover w-100 h-min-10r h-100"},null,8,k)):e.createCommentVNode("",!0),!((c=l.value)!=null&&c.content)&&s.value&&s.value.content&&t.type!=="blogpostPage"?(e.openBlock(),e.createElementBlock("video",B,[e.createElementVNode("source",{src:s.value.content,type:"video/mp4"},null,8,x),e.createTextVNode(" Your browser does not support the video tag. ")])):e.createCommentVNode("",!0),e.createVNode(d.default,{class:"pd-t-zero pd-medium",blogpost:t.blogpost,user:t.user},null,8,["blogpost","user"])])}}};exports.default=V;
|
package/dist/prometheus-framework/src/modules/community/components/blocks/CardBlogpost.vue.js
CHANGED
@@ -1,27 +1,26 @@
|
|
1
|
-
import { computed as
|
2
|
-
import
|
3
|
-
import
|
4
|
-
import
|
5
|
-
/* empty css
|
6
|
-
import
|
7
|
-
|
8
|
-
const S = { class: "pos-relative bg-light radius-big flex-column flex" }, z = { class: "pd-t-zero pd-b-zero pd-medium" }, N = {
|
1
|
+
import { computed as c, openBlock as o, createElementBlock as l, createVNode as m, normalizeClass as f, createElementVNode as b, unref as y, toDisplayString as u, createCommentVNode as s, renderSlot as h, createTextVNode as v } from "vue";
|
2
|
+
import x from "../../../globals/components/blocks/CardHeader.vue.js";
|
3
|
+
import k from "./FooterBlogpost.vue.js";
|
4
|
+
import w from "../../../../components/Text/Text.vue.js";
|
5
|
+
/* empty css */
|
6
|
+
import { useRouter as B } from "vue-router";
|
7
|
+
const E = { class: "pos-relative bg-light radius-big flex-column flex" }, P = { class: "pd-t-zero pd-b-zero pd-medium" }, V = {
|
9
8
|
key: 0,
|
10
9
|
class: "cursor-pointer mn-b-thin flex-nowrap flex w-100"
|
11
|
-
},
|
10
|
+
}, S = {
|
12
11
|
key: 0,
|
13
12
|
class: "pd-micro t-white uppercase t-semi p-small flex-center flex pd-r-small pd-l-small mn-l-thin w-min bg-second radius-extra"
|
14
|
-
},
|
13
|
+
}, $ = {
|
15
14
|
key: 1,
|
16
15
|
class: "mn-b-small t-transp p-big"
|
17
|
-
},
|
16
|
+
}, z = {
|
18
17
|
key: 2,
|
19
18
|
class: "mn-b-small h2"
|
20
|
-
},
|
21
|
-
key:
|
19
|
+
}, C = ["src"], N = {
|
20
|
+
key: 1,
|
22
21
|
controls: "",
|
23
22
|
class: "mn-b-medium object-fit-cover w-100 h-max-20r"
|
24
|
-
},
|
23
|
+
}, R = ["src"], F = {
|
25
24
|
__name: "CardBlogpost",
|
26
25
|
props: {
|
27
26
|
blogpost: {
|
@@ -38,83 +37,67 @@ const S = { class: "pos-relative bg-light radius-big flex-column flex" }, z = {
|
|
38
37
|
default: !1
|
39
38
|
}
|
40
39
|
},
|
41
|
-
setup(
|
42
|
-
const
|
43
|
-
return (
|
40
|
+
setup(t) {
|
41
|
+
const p = B(), a = t, n = c(() => a.blogpost.content.find((e) => e.type === "ImageUpload")), r = c(() => a.blogpost.content.find((e) => e.type === "Video")), i = c(() => a.blogpost.content.find((e) => e.type === "Textarea"));
|
42
|
+
return (e, d) => {
|
44
43
|
var g;
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
name: "Edit BlogPost",
|
51
|
-
params: {
|
52
|
-
url: e.blogpost.url
|
53
|
-
}
|
54
|
-
},
|
55
|
-
class: "cursor-pointer pos-absolute pos-t-regular pos-r-regular radius-extra pd-thin bg-second"
|
56
|
-
}, {
|
57
|
-
default: v(() => [
|
58
|
-
n(E, {
|
59
|
-
class: "i-regular",
|
60
|
-
classes: "fill-white"
|
61
|
-
})
|
62
|
-
]),
|
63
|
-
_: 1
|
64
|
-
}, 8, ["to"])) : l("", !0),
|
65
|
-
n(P, {
|
66
|
-
class: x({
|
67
|
-
"mn-b-small pd-medium": e.type !== "short",
|
68
|
-
"flex-child-order-last flex-child mn-l-small": e.type === "short"
|
44
|
+
return o(), l("article", E, [
|
45
|
+
m(x, {
|
46
|
+
class: f({
|
47
|
+
"mn-b-small pd-medium": t.type !== "short",
|
48
|
+
"flex-child-order-last flex-child mn-l-small": t.type === "short"
|
69
49
|
}),
|
70
|
-
entity:
|
50
|
+
entity: t.blogpost,
|
71
51
|
entityType: "blogpost",
|
72
|
-
user:
|
73
|
-
owner:
|
74
|
-
creator:
|
75
|
-
date:
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
52
|
+
user: t.user,
|
53
|
+
owner: t.blogpost.owner,
|
54
|
+
creator: t.blogpost.creator,
|
55
|
+
date: t.blogpost.createdAt,
|
56
|
+
actions: t.user && t.user === t.blogpost.creator.target._id ? [
|
57
|
+
{ to: { name: "Edit BlogPost", params: { url: t.blogpost.url } }, label: "Edit" }
|
58
|
+
] : null
|
59
|
+
}, null, 8, ["class", "entity", "user", "owner", "creator", "date", "actions"]),
|
60
|
+
b("section", P, [
|
61
|
+
t.type !== "blogpostPage" ? (o(), l("div", V, [
|
62
|
+
m(w, {
|
63
|
+
text: t.blogpost.name || "",
|
81
64
|
maxLen: 80,
|
82
65
|
class: "h3 d-block",
|
83
|
-
onClick: d[0] || (d[0] = (
|
66
|
+
onClick: d[0] || (d[0] = (T) => y(p).push({
|
84
67
|
name: "BlogPost",
|
85
68
|
params: {
|
86
|
-
url:
|
69
|
+
url: t.blogpost.url
|
87
70
|
}
|
88
71
|
}))
|
89
72
|
}, null, 8, ["text"]),
|
90
|
-
|
91
|
-
])) :
|
92
|
-
|
93
|
-
|
94
|
-
|
73
|
+
t.blogpost.status === "draft" ? (o(), l("div", S, u(t.blogpost.status), 1)) : s("", !0)
|
74
|
+
])) : s("", !0),
|
75
|
+
i.value && i.value.content && t.type !== "blogpostPage" && !t.hideDescription ? (o(), l("p", $, u(i.value.content.slice(0, 120)) + "... ", 1)) : s("", !0),
|
76
|
+
t.type === "blogpostPage" ? (o(), l("h3", z, u(t.blogpost.name), 1)) : s("", !0),
|
77
|
+
h(e.$slots, "default")
|
95
78
|
]),
|
96
|
-
|
97
|
-
key:
|
98
|
-
src: (
|
79
|
+
n.value && n.value.content && t.type !== "blogpostPage" ? (o(), l("img", {
|
80
|
+
key: 0,
|
81
|
+
src: (e.FILE_SERVER_URL || "") + n.value.content,
|
99
82
|
alt: "Blog post image",
|
100
83
|
class: "mn-b-medium object-fit-cover w-100 h-min-10r h-100"
|
101
|
-
}, null, 8,
|
102
|
-
!((g =
|
103
|
-
|
104
|
-
src:
|
84
|
+
}, null, 8, C)) : s("", !0),
|
85
|
+
!((g = n.value) != null && g.content) && r.value && r.value.content && t.type !== "blogpostPage" ? (o(), l("video", N, [
|
86
|
+
b("source", {
|
87
|
+
src: r.value.content,
|
105
88
|
type: "video/mp4"
|
106
|
-
}, null, 8,
|
107
|
-
|
108
|
-
])) :
|
109
|
-
|
89
|
+
}, null, 8, R),
|
90
|
+
v(" Your browser does not support the video tag. ")
|
91
|
+
])) : s("", !0),
|
92
|
+
m(k, {
|
110
93
|
class: "pd-t-zero pd-medium",
|
111
|
-
blogpost:
|
112
|
-
user:
|
94
|
+
blogpost: t.blogpost,
|
95
|
+
user: t.user
|
113
96
|
}, null, 8, ["blogpost", "user"])
|
114
97
|
]);
|
115
98
|
};
|
116
99
|
}
|
117
100
|
};
|
118
101
|
export {
|
119
|
-
|
102
|
+
F as default
|
120
103
|
};
|
package/dist/prometheus-framework/src/modules/community/components/blocks/FooterBlogpost.vue.cjs
CHANGED
@@ -1 +1 @@
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue");require("vue-router");const
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue");require("vue-router");const c=require("../../store/reactions.cjs"),g={class:"t-semi br-top-dark flex-nowrap flex-nojustify flex"},m={class:"hover-bg-white pd-l-thin pd-r-thin radius-big cursor-pointer"},v={__name:"FooterBlogpost",props:["blogpost","owner","user"],setup(r){const o=r,n=e.ref(o.blogpost.numberOfReactions),s=e.ref(o.blogpost.isReacted),l=e.ref(o.blogpost.reactionId);async function u(i){if(!o.user){alert("Please login to add a reaction");return}try{const t={target:o.blogpost._id,type:"blogpost",user:o.user,class:"like"},a=await c.actions.create(t);a.reaction.class==="like"&&(n.value+=1,s.value=!0,l.value=a.reaction._id)}catch(t){console.error(t),alert("Error adding reaction. Please try again later.")}}async function d(i){if(!o.user){alert("Please login to add a reaction");return}try{const t={_id:l.value};await c.actions.delete(t),n.value-=1,s.value=!1,l.value=null}catch{alert("Error adding reaction. Please try again later.")}}return(i,t)=>{const a=e.resolveComponent("router-link");return e.openBlock(),e.createElementBlock("footer",g,[e.createVNode(a,{to:{name:"BlogPost",params:{url:r.blogpost.url}},class:"font-second cursor-pointer hover-bg-white pd-l-thin pd-r-thin radius-big"},{default:e.withCtx(()=>[e.createTextVNode(" 👁️ "+e.toDisplayString(r.blogpost.views),1)]),_:1},8,["to"]),e.createElementVNode("div",m,[s.value?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",{key:0,class:"cursor-pointer",onClick:t[0]||(t[0]=p=>u())}," 👍 "+e.toDisplayString(n.value),1)),s.value?(e.openBlock(),e.createElementBlock("div",{key:1,class:"cursor-pointer",onClick:t[1]||(t[1]=p=>d())}," 👍 "+e.toDisplayString(n.value),1)):e.createCommentVNode("",!0)]),e.createVNode(a,{to:{name:"BlogPost",hash:"#comments",params:{url:r.blogpost.url}},class:"font-second cursor-pointer hover-bg-white pd-l-thin pd-r-thin radius-big"},{default:e.withCtx(()=>[e.createTextVNode(" 💬 "+e.toDisplayString(r.blogpost.numberOfComments),1)]),_:1},8,["to"])])}}};exports.default=v;
|
package/dist/prometheus-framework/src/modules/community/components/blocks/FooterBlogpost.vue.js
CHANGED
@@ -1,12 +1,12 @@
|
|
1
|
-
import { ref as
|
1
|
+
import { ref as i, resolveComponent as k, openBlock as c, createElementBlock as u, createVNode as p, withCtx as g, createTextVNode as m, toDisplayString as s, createElementVNode as w, createCommentVNode as f } from "vue";
|
2
2
|
import "vue-router";
|
3
|
-
import { actions as
|
4
|
-
const
|
3
|
+
import { actions as v } from "../../store/reactions.js";
|
4
|
+
const x = { class: "t-semi br-top-dark flex-nowrap flex-nojustify flex" }, C = { class: "hover-bg-white pd-l-thin pd-r-thin radius-big cursor-pointer" }, R = {
|
5
5
|
__name: "FooterBlogpost",
|
6
6
|
props: ["blogpost", "owner", "user"],
|
7
|
-
setup(
|
8
|
-
const t =
|
9
|
-
async function
|
7
|
+
setup(o) {
|
8
|
+
const t = o, a = i(t.blogpost.numberOfReactions), n = i(t.blogpost.isReacted), l = i(t.blogpost.reactionId);
|
9
|
+
async function b(d) {
|
10
10
|
if (!t.user) {
|
11
11
|
alert("Please login to add a reaction");
|
12
12
|
return;
|
@@ -17,44 +17,72 @@ const y = { class: "t-semi br-top-dark flex-nowrap flex-nojustify flex" }, k = /
|
|
17
17
|
type: "blogpost",
|
18
18
|
user: t.user,
|
19
19
|
class: "like"
|
20
|
-
},
|
21
|
-
|
20
|
+
}, r = await v.create(e);
|
21
|
+
r.reaction.class === "like" && (a.value += 1, n.value = !0, l.value = r.reaction._id);
|
22
22
|
} catch (e) {
|
23
23
|
console.error(e), alert("Error adding reaction. Please try again later.");
|
24
24
|
}
|
25
25
|
}
|
26
|
-
async function
|
26
|
+
async function h(d) {
|
27
27
|
if (!t.user) {
|
28
28
|
alert("Please login to add a reaction");
|
29
29
|
return;
|
30
30
|
}
|
31
31
|
try {
|
32
32
|
const e = { _id: l.value };
|
33
|
-
await
|
33
|
+
await v.delete(e), a.value -= 1, n.value = !1, l.value = null;
|
34
34
|
} catch {
|
35
35
|
alert("Error adding reaction. Please try again later.");
|
36
36
|
}
|
37
37
|
}
|
38
|
-
return (
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
38
|
+
return (d, e) => {
|
39
|
+
const r = k("router-link");
|
40
|
+
return c(), u("footer", x, [
|
41
|
+
p(r, {
|
42
|
+
to: {
|
43
|
+
name: "BlogPost",
|
44
|
+
params: {
|
45
|
+
url: o.blogpost.url
|
46
|
+
}
|
47
|
+
},
|
48
|
+
class: "font-second cursor-pointer hover-bg-white pd-l-thin pd-r-thin radius-big"
|
49
|
+
}, {
|
50
|
+
default: g(() => [
|
51
|
+
m(" 👁️ " + s(o.blogpost.views), 1)
|
52
|
+
]),
|
53
|
+
_: 1
|
54
|
+
}, 8, ["to"]),
|
55
|
+
w("div", C, [
|
56
|
+
n.value ? f("", !0) : (c(), u("div", {
|
57
|
+
key: 0,
|
58
|
+
class: "cursor-pointer",
|
59
|
+
onClick: e[0] || (e[0] = (y) => b())
|
60
|
+
}, " 👍 " + s(a.value), 1)),
|
61
|
+
n.value ? (c(), u("div", {
|
62
|
+
key: 1,
|
63
|
+
class: "cursor-pointer",
|
64
|
+
onClick: e[1] || (e[1] = (y) => h())
|
65
|
+
}, " 👍 " + s(a.value), 1)) : f("", !0)
|
66
|
+
]),
|
67
|
+
p(r, {
|
68
|
+
to: {
|
69
|
+
name: "BlogPost",
|
70
|
+
hash: "#comments",
|
71
|
+
params: {
|
72
|
+
url: o.blogpost.url
|
73
|
+
}
|
74
|
+
},
|
75
|
+
class: "font-second cursor-pointer hover-bg-white pd-l-thin pd-r-thin radius-big"
|
76
|
+
}, {
|
77
|
+
default: g(() => [
|
78
|
+
m(" 💬 " + s(o.blogpost.numberOfComments), 1)
|
79
|
+
]),
|
80
|
+
_: 1
|
81
|
+
}, 8, ["to"])
|
82
|
+
]);
|
83
|
+
};
|
56
84
|
}
|
57
85
|
};
|
58
86
|
export {
|
59
|
-
|
87
|
+
R as default
|
60
88
|
};
|