@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,45 +1,44 @@
|
|
1
|
-
import { resolveComponent as
|
1
|
+
import { resolveComponent as n, openBlock as o, createElementBlock as a, createElementVNode as t, createTextVNode as c, createVNode as r, withCtx as s, createBlock as p } from "vue";
|
2
2
|
/* empty css */
|
3
|
-
/* empty css
|
3
|
+
/* empty css */
|
4
4
|
/* empty css */
|
5
|
-
/* empty css
|
5
|
+
/* empty css */
|
6
6
|
/* empty css */
|
7
7
|
/* empty css */
|
8
|
-
import
|
9
|
-
import _ from "../../../icons/navigation/IconArrow.vue.js";
|
8
|
+
import m from "../../../../components/Slider/Slider.vue.js";
|
10
9
|
import d from "../blocks/CardBlogpost.vue.js";
|
11
|
-
import { read as
|
12
|
-
import { state as
|
10
|
+
import { read as _ } from "../../store/blogposts.js";
|
11
|
+
import { state as i } from "../../../auth/store/auth.js";
|
13
12
|
/* empty css */
|
14
|
-
const
|
13
|
+
const u = { class: "pd-thin" }, h = { class: "bg-light radius-big pd-t-big pd-b-big" }, f = { class: "w-100 pd-b-small t-center flex-center flex" }, g = /* @__PURE__ */ t("b", null, "Community", -1), O = {
|
15
14
|
__name: "HotPosts",
|
16
|
-
setup(
|
17
|
-
return (
|
18
|
-
const
|
19
|
-
return
|
20
|
-
|
21
|
-
|
15
|
+
setup(b) {
|
16
|
+
return (x, k) => {
|
17
|
+
const l = n("router-link");
|
18
|
+
return o(), a("section", u, [
|
19
|
+
t("div", h, [
|
20
|
+
t("h2", f, [
|
22
21
|
c(" Discover Our "),
|
23
|
-
|
22
|
+
r(l, {
|
24
23
|
to: { name: "Blog" },
|
25
|
-
class: "transition-ease-in hover-bg-black hover-t-white transition-timing-1 hover-scale-0 bg-main cursor-pointer pd-thin mn-l-thin radius-extra flex flex-v-center"
|
24
|
+
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"
|
26
25
|
}, {
|
27
|
-
default:
|
28
|
-
g
|
29
|
-
e(_, { class: "mn-l-thin radius-extra bg-white i-big" })
|
26
|
+
default: s(() => [
|
27
|
+
g
|
30
28
|
]),
|
31
29
|
_: 1
|
32
30
|
})
|
33
31
|
]),
|
34
|
-
|
32
|
+
r(m, {
|
35
33
|
store: {
|
36
|
-
read: (
|
34
|
+
read: (e) => _(e)
|
37
35
|
},
|
38
36
|
options: {
|
39
37
|
skip: 0,
|
40
38
|
limit: 8,
|
41
|
-
user:
|
42
|
-
period: "year"
|
39
|
+
user: i.user._id,
|
40
|
+
period: "year",
|
41
|
+
category: "featured"
|
43
42
|
},
|
44
43
|
text: {
|
45
44
|
messages: {
|
@@ -51,13 +50,13 @@ const h = { class: "pd-thin" }, f = { class: "bg-light radius-big pd-t-big pd-b-
|
|
51
50
|
},
|
52
51
|
class: "slider-hotpost"
|
53
52
|
}, {
|
54
|
-
default:
|
55
|
-
item:
|
53
|
+
default: s(({
|
54
|
+
item: e
|
56
55
|
}) => [
|
57
|
-
(
|
58
|
-
key:
|
59
|
-
blogpost:
|
60
|
-
user:
|
56
|
+
(o(), p(d, {
|
57
|
+
key: e._id,
|
58
|
+
blogpost: e,
|
59
|
+
user: i.user._id,
|
61
60
|
hideDescription: !0,
|
62
61
|
class: "bg-white flex flex-column h-35r"
|
63
62
|
}, null, 8, ["blogpost", "user"]))
|
@@ -70,5 +69,5 @@ const h = { class: "pd-thin" }, f = { class: "bg-light radius-big pd-t-big pd-b-
|
|
70
69
|
}
|
71
70
|
};
|
72
71
|
export {
|
73
|
-
|
72
|
+
O as default
|
74
73
|
};
|
@@ -1 +1 @@
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const m=require("axios"),u=require("vue"),c=require("../../globals/store/globals.cjs"),l=m.create({baseURL:process.env.API_URL,withCredentials:!0}),a=u.reactive({all:[],filter:{tags:[],period:""},pagination:{page:1,perPage:18},sort:{param:"createdAt",order:"desc",hideButton:!0,options:[{label:"Date",value:"createdAt"},{label:"Popularity",value:"views"},{label:"Creator",value:"creator"}]},current:{_id:"",url:"",status:"",name:"",tags:[],owner:{},source:null,date:"",views:0,content:[]}});async function n(e={}){e.params=e.params||{},e.params.skip=e.skip||0,e.params.limit=e.limit||9,e.params.tags=e.tags||[],e.period&&(e.params.period=e.period),e.url&&(e.params={url:e.url}),e.category&&(e.params.category=e.category),e.owner&&(e.params.owner=e.owner),e.following&&(e.params.following=e.following),e.creator&&(e.params.creator=e.creator),e.status&&(e.params.status=e.status),e.user&&(e.params.user=e.user),e.sortParam&&(e.params.sortParam=e.sortParam),e.sortOrder&&(e.params.sortOrder=e.sortOrder),e.params.skip=e.skip||0,e.params.limit=e.limit||10;try{const r=await l.get("/api/blog/read",{params:e.params});return e.url?t(r.data,"current"):t(r.data,"all"),Promise.resolve(r.data)}catch(r){return c.setError(r),Promise.reject(r)}}async function i(e){return l.post("/api/blog/create",e).then(r=>(t(r.data,"current"),Promise.resolve(r.data)),r=>(c.setError(r),Promise.reject(r)))}async function f(e){return l.post("/api/blog/update",e).then(r=>(t(r.data,"current"),Promise.resolve(r.data)),r=>(c.setError(r),Promise.reject(r)))}async function g(e){return await l.delete(`/api/blog/delete/${e}`).then(r=>{const s=a.all.findIndex(d=>d._id===e);return s!==-1&&a.all.splice(s,1),Promise.resolve(r.data)},r=>(c.setError(r),Promise.reject(r)))}function t(e,r){a[r]=e}function w(){a.current={_id:"",url:"",status:"",name:"",tags:[],author:"",owner:"",date:"",views:0,content:[]}}function v(e){const r={order:a.project.content.length+1,type:e.type,data:e.data,class:e.class,content:e.content};a.project.content.push(r)}u.watch(a,(e,r)=>{});exports.blockAdd=v;exports.clean=w;exports.create=i;exports.read=n;exports.remove=g;exports.set=t;exports.state=a;exports.update=f;
|
@@ -1,7 +1,7 @@
|
|
1
|
-
import
|
2
|
-
import { reactive as
|
1
|
+
import m from "axios";
|
2
|
+
import { reactive as d, watch as n } from "vue";
|
3
3
|
import { setError as c } from "../../globals/store/globals.js";
|
4
|
-
const l =
|
4
|
+
const l = m.create({ baseURL: process.env.API_URL, withCredentials: !0 }), a = d({
|
5
5
|
all: [],
|
6
6
|
filter: {
|
7
7
|
// query
|
@@ -15,8 +15,19 @@ const l = n.create({ baseURL: process.env.API_URL, withCredentials: !0 }), r = m
|
|
15
15
|
},
|
16
16
|
// Sort
|
17
17
|
sort: {
|
18
|
-
|
19
|
-
|
18
|
+
param: "createdAt",
|
19
|
+
order: "desc",
|
20
|
+
hideButton: !0,
|
21
|
+
options: [{
|
22
|
+
label: "Date",
|
23
|
+
value: "createdAt"
|
24
|
+
}, {
|
25
|
+
label: "Popularity",
|
26
|
+
value: "views"
|
27
|
+
}, {
|
28
|
+
label: "Creator",
|
29
|
+
value: "creator"
|
30
|
+
}]
|
20
31
|
},
|
21
32
|
current: {
|
22
33
|
_id: "",
|
@@ -32,40 +43,40 @@ const l = n.create({ baseURL: process.env.API_URL, withCredentials: !0 }), r = m
|
|
32
43
|
}
|
33
44
|
});
|
34
45
|
async function w(e = {}) {
|
35
|
-
e.params = e.params || {}, e.params.skip = e.skip || 0, e.params.limit = e.limit || 9, e.params.tags = e.tags || [], e.period && (e.params.period = e.period), e.url && (e.params = { url: e.url }), e.category && (e.params.category = e.category), e.owner && (e.params.owner = e.owner), e.following && (e.params.following = e.following), e.creator && (e.params.creator = e.creator), e.status && (e.params.status = e.status), e.user && (e.params.user = e.user), e.params.skip = e.skip || 0, e.params.limit = e.limit || 10;
|
46
|
+
e.params = e.params || {}, e.params.skip = e.skip || 0, e.params.limit = e.limit || 9, e.params.tags = e.tags || [], e.period && (e.params.period = e.period), e.url && (e.params = { url: e.url }), e.category && (e.params.category = e.category), e.owner && (e.params.owner = e.owner), e.following && (e.params.following = e.following), e.creator && (e.params.creator = e.creator), e.status && (e.params.status = e.status), e.user && (e.params.user = e.user), e.sortParam && (e.params.sortParam = e.sortParam), e.sortOrder && (e.params.sortOrder = e.sortOrder), e.params.skip = e.skip || 0, e.params.limit = e.limit || 10;
|
36
47
|
try {
|
37
|
-
const
|
38
|
-
return e.url ? t(
|
39
|
-
} catch (
|
40
|
-
return c(
|
48
|
+
const r = await l.get("/api/blog/read", { params: e.params });
|
49
|
+
return e.url ? t(r.data, "current") : t(r.data, "all"), Promise.resolve(r.data);
|
50
|
+
} catch (r) {
|
51
|
+
return c(r), Promise.reject(r);
|
41
52
|
}
|
42
53
|
}
|
43
|
-
async function
|
54
|
+
async function P(e) {
|
44
55
|
return l.post("/api/blog/create", e).then(
|
45
|
-
(
|
46
|
-
(
|
56
|
+
(r) => (t(r.data, "current"), Promise.resolve(r.data)),
|
57
|
+
(r) => (c(r), Promise.reject(r))
|
47
58
|
);
|
48
59
|
}
|
49
|
-
async function
|
60
|
+
async function v(e) {
|
50
61
|
return l.post("/api/blog/update", e).then(
|
51
|
-
(
|
52
|
-
(
|
62
|
+
(r) => (t(r.data, "current"), Promise.resolve(r.data)),
|
63
|
+
(r) => (c(r), Promise.reject(r))
|
53
64
|
);
|
54
65
|
}
|
55
|
-
async function
|
66
|
+
async function y(e) {
|
56
67
|
return await l.delete(`/api/blog/delete/${e}`).then(
|
57
|
-
(
|
58
|
-
const u =
|
59
|
-
return u !== -1 &&
|
68
|
+
(r) => {
|
69
|
+
const u = a.all.findIndex((s) => s._id === e);
|
70
|
+
return u !== -1 && a.all.splice(u, 1), Promise.resolve(r.data);
|
60
71
|
},
|
61
|
-
(
|
72
|
+
(r) => (c(r), Promise.reject(r))
|
62
73
|
);
|
63
74
|
}
|
64
|
-
function t(e,
|
65
|
-
r
|
75
|
+
function t(e, r) {
|
76
|
+
a[r] = e;
|
66
77
|
}
|
67
78
|
function h() {
|
68
|
-
|
79
|
+
a.current = {
|
69
80
|
_id: "",
|
70
81
|
url: "",
|
71
82
|
status: "",
|
@@ -78,25 +89,25 @@ function h() {
|
|
78
89
|
content: []
|
79
90
|
};
|
80
91
|
}
|
81
|
-
function
|
82
|
-
const
|
83
|
-
order:
|
92
|
+
function p(e) {
|
93
|
+
const r = {
|
94
|
+
order: a.project.content.length + 1,
|
84
95
|
type: e.type,
|
85
96
|
data: e.data,
|
86
97
|
class: e.class,
|
87
98
|
content: e.content
|
88
99
|
};
|
89
|
-
|
100
|
+
a.project.content.push(r);
|
90
101
|
}
|
91
|
-
|
102
|
+
n(a, (e, r) => {
|
92
103
|
});
|
93
104
|
export {
|
94
|
-
|
105
|
+
p as blockAdd,
|
95
106
|
h as clean,
|
96
|
-
|
107
|
+
P as create,
|
97
108
|
w as read,
|
98
|
-
|
109
|
+
y as remove,
|
99
110
|
t as set,
|
100
|
-
|
101
|
-
|
111
|
+
a as state,
|
112
|
+
v as update
|
102
113
|
};
|
@@ -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("../../../../components/Upload/Upload.vue.cjs"),i={class:"mn-b-thin w-100 radius-medium"},p={key:0,class:"flex-center flex"},m={controls:"",class:"w-100 h-max-30r"},v=["src"],f={key:1},_={__name:"Audio",props:["label","value","prop"],emits:["input","updateBlock"],setup(t,{emit:a}){const o=e.ref(null);e.ref(null);const c=t,l=a;function s(n){o.value=n,o.value?(l("input",o.value),l("updateBlock",c.prop,{content:o.value})):alert("Invalid embed code or source not allowed.")}return(n,r)=>(e.openBlock(),e.createElementBlock("div",i,[t.prop.content?(e.openBlock(),e.createElementBlock("div",p,[e.createElementVNode("audio",m,[e.createElementVNode("source",{src:t.prop.content,type:"video/mp4"},null,8,v),e.createTextVNode(" Your browser does not support the video tag. ")])])):(e.openBlock(),e.createElementBlock("div",f,[e.createVNode(u.default,{field:o.value,"onUpdate:field":r[0]||(r[0]=d=>o.value=d),onFileChange:s,type:"audio",placeholder:"Upload video",class:"w-100 br-solid br-1px br-black-transp-10 pd-medium radius-small mn-b-thin"},null,8,["field"])]))]))}};exports.default=_;
|
@@ -1,9 +1,12 @@
|
|
1
|
-
import { ref as
|
1
|
+
import { ref as d, openBlock as t, createElementBlock as l, createElementVNode as r, createTextVNode as m, createVNode as v } from "vue";
|
2
2
|
import f from "../../../../components/Upload/Upload.vue.js";
|
3
|
-
const
|
4
|
-
key:
|
5
|
-
class: ""
|
6
|
-
},
|
3
|
+
const h = { class: "mn-b-thin w-100 radius-medium" }, _ = {
|
4
|
+
key: 0,
|
5
|
+
class: "flex-center flex"
|
6
|
+
}, b = {
|
7
|
+
controls: "",
|
8
|
+
class: "w-100 h-max-30r"
|
9
|
+
}, k = ["src"], x = { key: 1 }, B = {
|
7
10
|
__name: "Audio",
|
8
11
|
props: [
|
9
12
|
"label",
|
@@ -11,36 +14,35 @@ const v = { class: "mn-b-thin w-100 pd-medium bg-white radius-medium" }, k = ["i
|
|
11
14
|
"prop"
|
12
15
|
],
|
13
16
|
emits: ["input", "updateBlock"],
|
14
|
-
setup(
|
15
|
-
const e =
|
16
|
-
|
17
|
-
|
17
|
+
setup(o, { emit: i }) {
|
18
|
+
const e = d(null);
|
19
|
+
d(null);
|
20
|
+
const c = o, n = i;
|
21
|
+
function u(a) {
|
22
|
+
e.value = a, e.value ? (n("input", e.value), n("updateBlock", c.prop, { content: e.value })) : alert("Invalid embed code or source not allowed.");
|
18
23
|
}
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
24
|
+
return (a, s) => (t(), l("div", h, [
|
25
|
+
o.prop.content ? (t(), l("div", _, [
|
26
|
+
r("audio", b, [
|
27
|
+
r("source", {
|
28
|
+
src: o.prop.content,
|
29
|
+
type: "video/mp4"
|
30
|
+
}, null, 8, k),
|
31
|
+
m(" Your browser does not support the video tag. ")
|
32
|
+
])
|
33
|
+
])) : (t(), l("div", x, [
|
34
|
+
v(f, {
|
29
35
|
field: e.value,
|
30
|
-
"onUpdate:field":
|
31
|
-
onFileChange:
|
32
|
-
type: "
|
33
|
-
placeholder: "
|
36
|
+
"onUpdate:field": s[0] || (s[0] = (p) => e.value = p),
|
37
|
+
onFileChange: u,
|
38
|
+
type: "audio",
|
39
|
+
placeholder: "Upload video",
|
34
40
|
class: "w-100 br-solid br-1px br-black-transp-10 pd-medium radius-small mn-b-thin"
|
35
|
-
}, null, 8, ["field"])
|
36
|
-
b("button", {
|
37
|
-
onClick: c,
|
38
|
-
class: "button-small button"
|
39
|
-
}, " Save ")
|
41
|
+
}, null, 8, ["field"])
|
40
42
|
]))
|
41
43
|
]));
|
42
44
|
}
|
43
45
|
};
|
44
46
|
export {
|
45
|
-
|
47
|
+
B as default
|
46
48
|
};
|
@@ -1 +1 @@
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),u=require("../../../../components/Field/Field.
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),u=require("../../../../components/Field/Field.vue.cjs"),m={class:"mn-b-thin w-100 pd-medium bg-white radius-medium"},p=["innerHTML"],b={key:1,class:""},f=e.createElementVNode("p",{class:"t-center"},"Embeds from youtube.com, vimeo.com, soundcloud.com are allowed",-1),v={__name:"Embed",props:["label","value","prop"],emits:["input","updateBlock"],setup(t,{emit:a}){const o=e.ref(null),s=t,c=a;function i(d){return[/youtube\.com/,/facebook\.com/,/instagram\.com/,/twitter\.com/,/tiktok\.com/,/soundcloud\.com/,/vimeo\.com/,/reddit\.com/,/linkedin\.com/,/medium\.com/,/spotify\.com/].some(n=>n.test(d))}function r(){o.value&&i(o.value)?(c("input",o.value),c("updateBlock",s.prop,{content:o.value})):alert("Invalid embed code or source not allowed.")}return(d,l)=>(e.openBlock(),e.createElementBlock("div",m,[t.prop.content?(e.openBlock(),e.createElementBlock("div",{key:0,innerHTML:t.prop.content,class:"flex-center flex"},null,8,p)):(e.openBlock(),e.createElementBlock("div",b,[e.createVNode(u.default,{field:o.value,"onUpdate:field":l[0]||(l[0]=n=>o.value=n),type:"textarea",placeholder:"Paste your embed code here",class:"w-100 br-solid br-1px br-black-transp-10 pd-medium radius-small mn-b-thin"},null,8,["field"]),e.createElementVNode("div",{class:"flex-v-center flex-nowrap flex gap-small"},[f,e.createElementVNode("button",{onClick:r,class:"button-small button"}," Save ")])]))]))}};exports.default=v;
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import { ref as p, openBlock as n, createElementBlock as c, createVNode as b, createElementVNode as d } from "vue";
|
2
|
-
import f from "../../../../components/Field/Field.
|
2
|
+
import f from "../../../../components/Field/Field.vue.js";
|
3
3
|
const v = { class: "mn-b-thin w-100 pd-medium bg-white radius-medium" }, k = ["innerHTML"], w = {
|
4
4
|
key: 1,
|
5
5
|
class: ""
|
package/dist/prometheus-framework/src/modules/constructor/components/elements/ImageUpload.vue.cjs
CHANGED
@@ -1 +1 @@
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),g=require("axios"),k=["src"],v={key:1,class:"t-transp pd-extra"},h={__name:"ImageUpload",props:["label","value","prop"],emits:["input","updateBlock"],setup(
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),g=require("axios"),k=["src"],v={key:1,class:"t-transp pd-extra"},h={__name:"ImageUpload",props:["label","value","prop"],emits:["input","updateBlock"],setup(n,{emit:u}){const a=e.ref(null),r=e.ref(null),i=n,s=u;function f(){r.value.click()}async function c(t){let o=t.target.files[0];console.log(o);let l=new FormData;l.append("file",o),console.log(l.has("file"));try{let m=await g.create({baseURL:process.env.API_URL,withCredentials:!0}).post(`/api/upload/multiple?folderName=${encodeURIComponent(i.uploadPath||"images")}`,l,{headers:{"Content-Type":"multipart/form-data"}});a.value=m.data[0].filepath,console.log(a.value),s("input",a.value),s("updateBlock",i.prop,{content:a.value})}catch(p){console.error(p)}}function d(t){t.preventDefault(),t.dataTransfer&&t.dataTransfer.files&&t.dataTransfer.files.length&&c({target:{files:t.dataTransfer.files}})}return(t,o)=>(e.openBlock(),e.createElementBlock("div",{onClick:f,onDrop:d,onDragover:o[0]||(o[0]=e.withModifiers(()=>{},["prevent"])),onDragenter:o[1]||(o[1]=e.withModifiers(()=>{},["prevent"])),onDragleave:o[2]||(o[2]=e.withModifiers(()=>{},["prevent"])),class:"w-100 radius-big bg-white image-upload-area flex-v-center flex-h-center flex t-black mn-b-small"},[n.prop.content?(e.openBlock(),e.createElementBlock("img",{key:0,src:(t.FILE_SERVER_URL||"")+n.prop.content,alt:"Uploaded image",class:"w-100 h-30r object-fit-contain"},null,8,k)):(e.openBlock(),e.createElementBlock("span",v,"Click or drag-and-drop your image")),n.prop.content?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("input",{key:2,type:"file",ref_key:"fileInput",ref:r,tabindex:"-1",onChange:c,style:{display:"none"}},null,544))],32))}};exports.default=h;
|
package/dist/prometheus-framework/src/modules/constructor/components/elements/ImageUpload.vue.js
CHANGED
@@ -1,9 +1,9 @@
|
|
1
|
-
import { ref as
|
2
|
-
import
|
3
|
-
const
|
1
|
+
import { ref as d, openBlock as a, createElementBlock as l, withModifiers as i, createCommentVNode as y } from "vue";
|
2
|
+
import h from "axios";
|
3
|
+
const C = ["src"], x = {
|
4
4
|
key: 1,
|
5
5
|
class: "t-transp pd-extra"
|
6
|
-
},
|
6
|
+
}, w = {
|
7
7
|
__name: "ImageUpload",
|
8
8
|
props: [
|
9
9
|
"label",
|
@@ -11,58 +11,63 @@ const x = ["src"], C = {
|
|
11
11
|
"prop"
|
12
12
|
],
|
13
13
|
emits: ["input", "updateBlock"],
|
14
|
-
setup(
|
15
|
-
const o =
|
16
|
-
function
|
17
|
-
|
14
|
+
setup(n, { emit: m }) {
|
15
|
+
const o = d(null), s = d(null), p = n, c = m;
|
16
|
+
function g() {
|
17
|
+
s.value.click();
|
18
18
|
}
|
19
|
-
async function
|
19
|
+
async function f(e) {
|
20
20
|
let t = e.target.files[0];
|
21
21
|
console.log(t);
|
22
|
-
let
|
23
|
-
|
22
|
+
let r = new FormData();
|
23
|
+
r.append("file", t), console.log(r.has("file"));
|
24
24
|
try {
|
25
|
-
let
|
25
|
+
let k = await h.create({ baseURL: process.env.API_URL, withCredentials: !0 }).post(`/api/upload/multiple?folderName=${encodeURIComponent(p.uploadPath || "images")}`, r, {
|
26
26
|
headers: {
|
27
27
|
"Content-Type": "multipart/form-data"
|
28
28
|
}
|
29
29
|
});
|
30
|
-
o.value =
|
30
|
+
o.value = k.data[0].filepath, console.log(o.value), c("input", o.value), c("updateBlock", p.prop, { content: o.value });
|
31
31
|
} catch (u) {
|
32
32
|
console.error(u);
|
33
33
|
}
|
34
34
|
}
|
35
|
-
function
|
36
|
-
e.preventDefault(),
|
35
|
+
function v(e) {
|
36
|
+
e.preventDefault(), e.dataTransfer && e.dataTransfer.files && e.dataTransfer.files.length && f({
|
37
37
|
target: {
|
38
38
|
files: e.dataTransfer.files
|
39
39
|
}
|
40
40
|
});
|
41
41
|
}
|
42
|
-
return (e, t) => (
|
43
|
-
onClick:
|
44
|
-
onDrop:
|
45
|
-
onDragover: t[0] || (t[0] =
|
42
|
+
return (e, t) => (a(), l("div", {
|
43
|
+
onClick: g,
|
44
|
+
onDrop: v,
|
45
|
+
onDragover: t[0] || (t[0] = i(() => {
|
46
|
+
}, ["prevent"])),
|
47
|
+
onDragenter: t[1] || (t[1] = i(() => {
|
48
|
+
}, ["prevent"])),
|
49
|
+
onDragleave: t[2] || (t[2] = i(() => {
|
46
50
|
}, ["prevent"])),
|
47
51
|
class: "w-100 radius-big bg-white image-upload-area flex-v-center flex-h-center flex t-black mn-b-small"
|
48
52
|
}, [
|
49
|
-
|
53
|
+
n.prop.content ? (a(), l("img", {
|
50
54
|
key: 0,
|
51
|
-
src: (e.FILE_SERVER_URL || "") +
|
55
|
+
src: (e.FILE_SERVER_URL || "") + n.prop.content,
|
52
56
|
alt: "Uploaded image",
|
53
57
|
class: "w-100 h-30r object-fit-contain"
|
54
|
-
}, null, 8,
|
55
|
-
|
58
|
+
}, null, 8, C)) : (a(), l("span", x, "Click or drag-and-drop your image")),
|
59
|
+
n.prop.content ? y("", !0) : (a(), l("input", {
|
60
|
+
key: 2,
|
56
61
|
type: "file",
|
57
62
|
ref_key: "fileInput",
|
58
|
-
ref:
|
63
|
+
ref: s,
|
59
64
|
tabindex: "-1",
|
60
|
-
onChange:
|
65
|
+
onChange: f,
|
61
66
|
style: { display: "none" }
|
62
|
-
}, null, 544)
|
67
|
+
}, null, 544))
|
63
68
|
], 32));
|
64
69
|
}
|
65
70
|
};
|
66
71
|
export {
|
67
|
-
|
72
|
+
w as default
|
68
73
|
};
|
package/dist/prometheus-framework/src/modules/constructor/components/elements/Textarea.vue.cjs
ADDED
@@ -0,0 +1,5 @@
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue");;/* empty css */const k=["placeholder"],x={__name:"Textarea",props:["prop","value","content","placeholder","index","setFocus"],emits:["deleteBlock","updateBlock","addBlock","focus"],setup(o,{emit:s}){const t=o,c=s;e.ref(t);const n=e.ref(null);e.ref(0);function d(a){let l=a.target.value.split(/\n+/);if(l.length>1){t.prop[t.content]=l[0],e.nextTick(()=>{r()});let i=l.slice(1).map(f=>({__name:"Textarea",content:f}));c("addBlock","Textarea","",t.index,{blocks:i,ref:n})}else a.target.value.trim()===""&&a.target.value.includes(`
|
2
|
+
|
3
|
+
`)&&(console.log("We are adding new block:"+t.index+newBlocks+n),c("addBlock","Textarea","",t.index,{blocks:newBlocks,ref:n})),r()}function p(a){(a.keyCode===8||a.keyCode===46)&&t.prop[t.content].trim()===""&&c("deleteBlock",t.prop)}function u(){e.nextTick(()=>{n.value.focus(),c("updateBlock",t.prop,{setFocus:!1})})}function r(){n.value.style.height="1rem",n.value.style.height=n.value.scrollHeight+"px"}return e.onUpdated(()=>{t.setFocus&&e.nextTick(()=>{u()}),r()}),e.onMounted(()=>{t.setFocus&&e.nextTick(()=>{u()}),r()}),(a,l)=>(e.openBlock(),e.createElementBlock("div",null,[e.withDirectives(e.createElementVNode("textarea",{"onUpdate:modelValue":l[0]||(l[0]=i=>o.prop[o.content]=i),placeholder:o.placeholder?o.placeholder:"",onInput:d,onFocus:l[1]||(l[1]=i=>c("focus",n.value)),onKeyup:p,ref_key:"textarea",ref:n,tabindex:"-1",class:e.normalizeClass(["text-area mn-b-thin",{"t-main t-semi":o.prop.type==="Link"}])},`
|
4
|
+
|
5
|
+
`,42,k),[[e.vModelText,o.prop[o.content]]])]))}};exports.default=x;
|
@@ -0,0 +1,67 @@
|
|
1
|
+
import { ref as s, onUpdated as m, nextTick as i, onMounted as x, openBlock as h, createElementBlock as B, withDirectives as g, createElementVNode as v, normalizeClass as y, vModelText as T } from "vue";
|
2
|
+
/* empty css */
|
3
|
+
const b = ["placeholder"], C = {
|
4
|
+
__name: "Textarea",
|
5
|
+
props: ["prop", "value", "content", "placeholder", "index", "setFocus"],
|
6
|
+
emits: ["deleteBlock", "updateBlock", "addBlock", "focus"],
|
7
|
+
setup(o, { emit: u }) {
|
8
|
+
const e = o, a = u;
|
9
|
+
s(e);
|
10
|
+
const t = s(null);
|
11
|
+
s(0);
|
12
|
+
function p(l) {
|
13
|
+
let n = l.target.value.split(/\n+/);
|
14
|
+
if (n.length > 1) {
|
15
|
+
e.prop[e.content] = n[0], i(() => {
|
16
|
+
c();
|
17
|
+
});
|
18
|
+
let r = n.slice(1).map((k) => ({ __name: "Textarea", content: k }));
|
19
|
+
a("addBlock", "Textarea", "", e.index, { blocks: r, ref: t });
|
20
|
+
} else
|
21
|
+
l.target.value.trim() === "" && l.target.value.includes(`
|
22
|
+
|
23
|
+
`) && (console.log("We are adding new block:" + e.index + newBlocks + t), a("addBlock", "Textarea", "", e.index, { blocks: newBlocks, ref: t })), c();
|
24
|
+
}
|
25
|
+
function f(l) {
|
26
|
+
(l.keyCode === 8 || l.keyCode === 46) && e.prop[e.content].trim() === "" && a("deleteBlock", e.prop);
|
27
|
+
}
|
28
|
+
function d() {
|
29
|
+
i(() => {
|
30
|
+
t.value.focus(), a("updateBlock", e.prop, { setFocus: !1 });
|
31
|
+
});
|
32
|
+
}
|
33
|
+
function c() {
|
34
|
+
t.value.style.height = "1rem", t.value.style.height = t.value.scrollHeight + "px";
|
35
|
+
}
|
36
|
+
return m(() => {
|
37
|
+
e.setFocus && i(() => {
|
38
|
+
d();
|
39
|
+
}), c();
|
40
|
+
}), x(() => {
|
41
|
+
e.setFocus && i(() => {
|
42
|
+
d();
|
43
|
+
}), c();
|
44
|
+
}), (l, n) => (h(), B("div", null, [
|
45
|
+
g(v("textarea", {
|
46
|
+
"onUpdate:modelValue": n[0] || (n[0] = (r) => o.prop[o.content] = r),
|
47
|
+
placeholder: o.placeholder ? o.placeholder : "",
|
48
|
+
onInput: p,
|
49
|
+
onFocus: n[1] || (n[1] = (r) => a("focus", t.value)),
|
50
|
+
onKeyup: f,
|
51
|
+
ref_key: "textarea",
|
52
|
+
ref: t,
|
53
|
+
tabindex: "-1",
|
54
|
+
class: y(["text-area mn-b-thin", {
|
55
|
+
"t-main t-semi": o.prop.type === "Link"
|
56
|
+
}])
|
57
|
+
}, `
|
58
|
+
|
59
|
+
`, 42, b), [
|
60
|
+
[T, o.prop[o.content]]
|
61
|
+
])
|
62
|
+
]));
|
63
|
+
}
|
64
|
+
};
|
65
|
+
export {
|
66
|
+
C as default
|
67
|
+
};
|
@@ -1 +1 @@
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),i=require("../../../../components/Upload/Upload.vue.cjs"),u={class:"mn-b-thin w-100 pd-medium bg-black t-white radius-medium"},p={key:0,class:"flex-center flex"},m={controls:"",class:"w-100 h-max-30r"},v=["src"],b={key:1},f={__name:"Video",props:["label","value","prop"],emits:["input","updateBlock"],setup(o,{emit:
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),i=require("../../../../components/Upload/Upload.vue.cjs"),u={class:"mn-b-thin w-100 pd-medium bg-black t-white radius-medium"},p={key:0,class:"flex-center flex"},m={controls:"",class:"w-100 h-max-30r"},v=["src"],b={key:1},f={__name:"Video",props:["label","value","prop"],emits:["input","updateBlock"],setup(o,{emit:c}){const t=e.ref(null);e.ref(null);const a=o,l=c;function d(n){t.value=n,t.value?(l("input",t.value),l("updateBlock",a.prop,{content:t.value})):alert("Invalid embed code or source not allowed.")}return(n,r)=>(e.openBlock(),e.createElementBlock("div",u,[o.prop.content?(e.openBlock(),e.createElementBlock("div",p,[e.createElementVNode("audio",m,[e.createElementVNode("source",{src:o.prop.content,type:"audio/mp3"},null,8,v),e.createTextVNode(" Your browser does not support the audio tag. ")])])):(e.openBlock(),e.createElementBlock("div",b,[e.createVNode(i.default,{field:t.value,"onUpdate:field":r[0]||(r[0]=s=>t.value=s),onFileChange:d,type:"file",placeholder:"Enter embed code",class:"w-100 br-solid br-1px br-black-transp-10 pd-medium radius-small mn-b-thin"},null,8,["field"])]))]))}};exports.default=f;
|
@@ -1,12 +1,12 @@
|
|
1
|
-
import { ref as
|
2
|
-
import
|
1
|
+
import { ref as r, openBlock as t, createElementBlock as l, createElementVNode as s, createTextVNode as m, createVNode as f } from "vue";
|
2
|
+
import v from "../../../../components/Upload/Upload.vue.js";
|
3
3
|
const b = { class: "mn-b-thin w-100 pd-medium bg-black t-white radius-medium" }, h = {
|
4
4
|
key: 0,
|
5
5
|
class: "flex-center flex"
|
6
6
|
}, _ = {
|
7
7
|
controls: "",
|
8
8
|
class: "w-100 h-max-30r"
|
9
|
-
}, k = ["src"], x = { key: 1 },
|
9
|
+
}, k = ["src"], x = { key: 1 }, B = {
|
10
10
|
__name: "Video",
|
11
11
|
props: [
|
12
12
|
"label",
|
@@ -15,26 +15,26 @@ const b = { class: "mn-b-thin w-100 pd-medium bg-black t-white radius-medium" },
|
|
15
15
|
],
|
16
16
|
emits: ["input", "updateBlock"],
|
17
17
|
setup(o, { emit: i }) {
|
18
|
-
const e =
|
19
|
-
|
18
|
+
const e = r(null);
|
19
|
+
r(null);
|
20
20
|
const c = o, n = i;
|
21
|
-
function
|
22
|
-
|
21
|
+
function u(a) {
|
22
|
+
e.value = a, e.value ? (n("input", e.value), n("updateBlock", c.prop, { content: e.value })) : alert("Invalid embed code or source not allowed.");
|
23
23
|
}
|
24
|
-
return (
|
24
|
+
return (a, d) => (t(), l("div", b, [
|
25
25
|
o.prop.content ? (t(), l("div", h, [
|
26
|
-
|
27
|
-
|
26
|
+
s("audio", _, [
|
27
|
+
s("source", {
|
28
28
|
src: o.prop.content,
|
29
|
-
type: "
|
29
|
+
type: "audio/mp3"
|
30
30
|
}, null, 8, k),
|
31
|
-
m(" Your browser does not support the
|
31
|
+
m(" Your browser does not support the audio tag. ")
|
32
32
|
])
|
33
33
|
])) : (t(), l("div", x, [
|
34
|
-
v
|
34
|
+
f(v, {
|
35
35
|
field: e.value,
|
36
|
-
"onUpdate:field":
|
37
|
-
onFileChange:
|
36
|
+
"onUpdate:field": d[0] || (d[0] = (p) => e.value = p),
|
37
|
+
onFileChange: u,
|
38
38
|
type: "file",
|
39
39
|
placeholder: "Enter embed code",
|
40
40
|
class: "w-100 br-solid br-1px br-black-transp-10 pd-medium radius-small mn-b-thin"
|
@@ -44,5 +44,5 @@ const b = { class: "mn-b-thin w-100 pd-medium bg-black t-white radius-medium" },
|
|
44
44
|
}
|
45
45
|
};
|
46
46
|
export {
|
47
|
-
|
47
|
+
B as default
|
48
48
|
};
|