@ozdao/prometheus-framework 0.1.99 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/main.css +1 -1
- package/dist/prometheus-framework/src/components/EditImages/EditImages.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/EditImages/EditImages.vue.js +5 -5
- package/dist/prometheus-framework/src/components/EmptyState/EmptyState.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/EmptyState/EmptyState.vue.js +1 -1
- package/dist/prometheus-framework/src/components/Field/Field.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/components/Field/Field.vue2.js +2 -2
- package/dist/prometheus-framework/src/components/FieldTags/BlockTags.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/FieldTags/BlockTags.vue.js +10 -10
- 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 +12 -12
- 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 +15 -15
- 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 +8 -8
- 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 +14 -14
- 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 +14 -14
- 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 +9 -9
- package/dist/prometheus-framework/src/modules/auth/components/sections/SliderFeatures.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/auth/components/sections/SliderFeatures.vue.js +4 -4
- 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/components/blocks/CardBlogpost.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/community/components/blocks/CardBlogpost.vue.js +8 -8
- 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 +1 -1
- package/dist/prometheus-framework/src/modules/community/components/pages/BlogPost.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/community/components/pages/BlogPost.vue.js +10 -10
- 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 +4 -4
- 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 +9 -9
- package/dist/prometheus-framework/src/modules/community/components/sections/Feed.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/community/components/sections/Feed.vue.js +8 -8
- package/dist/prometheus-framework/src/modules/community/components/sections/JoinUs.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/community/components/sections/JoinUs.vue.js +3 -3
- package/dist/prometheus-framework/src/modules/community/components/sections/SubscribeNewsletter.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/community/components/sections/SubscribeNewsletter.vue.js +3 -3
- 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 +2 -2
- package/dist/prometheus-framework/src/modules/constructor/components/elements/Bullets.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/constructor/components/elements/Bullets.vue.js +4 -4
- package/dist/prometheus-framework/src/modules/constructor/components/elements/Caption.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/constructor/components/elements/Caption.vue.js +1 -1
- 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 +2 -2
- package/dist/prometheus-framework/src/modules/constructor/components/elements/H2.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/constructor/components/elements/H2.vue.js +5 -5
- package/dist/prometheus-framework/src/modules/constructor/components/elements/Image.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/constructor/components/elements/Image.vue.js +20 -11
- 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 +1 -1
- package/dist/prometheus-framework/src/modules/constructor/components/elements/Textarea.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/modules/constructor/components/elements/Textarea.vue2.js +3 -3
- 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 +12 -12
- 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 +11 -11
- package/dist/prometheus-framework/src/modules/events/components/layouts/layoutEvents.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/events/components/layouts/layoutEvents.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/events/components/pages/EditEvent.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/events/components/pages/EditEvent.vue.js +18 -18
- package/dist/prometheus-framework/src/modules/events/components/pages/Event.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/events/components/pages/Event.vue.js +6 -6
- package/dist/prometheus-framework/src/modules/events/components/sections/Feed.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/events/components/sections/Feed.vue.js +7 -7
- package/dist/prometheus-framework/src/modules/events/components/sections/List.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/events/components/sections/List.vue.js +4 -4
- 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 +10 -10
- package/dist/prometheus-framework/src/modules/gallery/components/sections/GalleryWithCategories.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/gallery/components/sections/GalleryWithCategories.vue.js +13 -13
- package/dist/prometheus-framework/src/modules/globals/components/sections/Feed.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/globals/components/sections/Feed.vue.js +4 -4
- package/dist/prometheus-framework/src/modules/landing/components/sections/MobileApp.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/landing/components/sections/MobileApp.vue.js +3 -3
- 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 +6 -6
- package/dist/prometheus-framework/src/modules/mobile/components/Menu/MenuItem.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/mobile/components/Menu/MenuItem.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/orders/components/blocks/CardOrderItem.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/orders/components/blocks/CardOrderItem.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/blocks/CardDepartment.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/blocks/CardDepartment.vue.js +8 -8
- 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 +3 -3
- package/dist/prometheus-framework/src/modules/organizations/components/blocks/Contacts.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/blocks/Contacts.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/blocks/DepartmentMemberModify.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/blocks/DepartmentMemberModify.vue.js +8 -8
- package/dist/prometheus-framework/src/modules/organizations/components/blocks/EditArray.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/blocks/EditArray.vue.js +4 -4
- package/dist/prometheus-framework/src/modules/organizations/components/blocks/EmptyState.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/blocks/EmptyState.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/blocks/Rating.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/blocks/Rating.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/pages/Department.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/pages/Department.vue.js +7 -7
- 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 +5 -5
- 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 +2 -2
- 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 +13 -13
- package/dist/prometheus-framework/src/modules/organizations/components/pages/Organizations.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/pages/Organizations.vue.js +7 -7
- 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 +5 -5
- 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 +14 -14
- package/dist/prometheus-framework/src/modules/organizations/components/sections/Feed.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/sections/Feed.vue.js +8 -8
- package/dist/prometheus-framework/src/modules/organizations/components/sections/FeedDepartments.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/sections/FeedDepartments.vue.js +5 -5
- 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 +5 -5
- package/dist/prometheus-framework/src/modules/organizations/components/sections/MembersList.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/sections/MembersList.vue.js +7 -7
- package/dist/prometheus-framework/src/modules/organizations/components/sections/Unit.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 +4 -4
- package/dist/prometheus-framework/src/modules/products/components/sections/FilterProducts.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/sections/FilterProducts.vue.js +5 -5
- package/dist/prometheus-framework/src/modules/reports/components/pages/BackofficeReports.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/reports/components/pages/BackofficeReports.vue.js +2 -2
- 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 +4 -4
- 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 +8 -8
- package/dist/prometheus-framework/src/modules/spots/components/sections/Feed.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/spots/components/sections/Feed.vue.js +5 -5
- package/dist/prometheus-framework/src/modules/users/components/pages/Profile.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/users/components/pages/Profile.vue.js +7 -7
- package/dist/prometheus-framework/src/modules/users/components/pages/ProfileBlogposts.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/users/components/pages/ProfileBlogposts.vue.js +6 -6
- 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 +18 -18
- package/dist/prometheus-framework/src/modules/users/components/pages/ProfileEvents.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/users/components/pages/ProfileEvents.vue.js +5 -5
- package/dist/prometheus-framework/src/modules/users/components/pages/ProfileOrganizations.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/users/components/pages/ProfileOrganizations.vue.js +9 -9
- package/dist/prometheus-framework/src/modules/users/components/sections/ProfileCompletion.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/users/components/sections/ProfileCompletion.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/wallet/components/pages/Wallet.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/wallet/components/pages/Wallet.vue.js +8 -8
- package/dist/prometheus-framework.cjs.js +1 -1
- package/dist/prometheus-framework.es.js +2 -2
- package/dist/style.css +1 -1
- package/package.json +1 -1
- package/src/components/EditImages/EditImages.vue +3 -3
- package/src/components/EmptyState/EmptyState.vue +2 -2
- package/src/components/Field/Field.svlt +1 -1
- package/src/components/Field/Field.vue +1 -1
- package/src/components/FieldTags/BlockTags.vue +4 -4
- package/src/components/Footer/Footer.vue +8 -8
- package/src/components/LocationSelection/LocationSelection.vue +4 -4
- package/src/components/Search/Search.vue +3 -3
- package/src/configurator/components/layouts/layoutConfigurator.vue +2 -2
- package/src/configurator/components/pages/Styles.vue +3 -3
- package/src/modules/auth/components/pages/EnterCode.vue +4 -4
- package/src/modules/auth/components/pages/EnterPassword.vue +9 -9
- package/src/modules/auth/components/pages/Invite.vue +6 -6
- package/src/modules/auth/components/pages/ResetPassword.vue +10 -10
- package/src/modules/auth/components/pages/SignIn.vue +11 -11
- package/src/modules/auth/components/pages/SignUp.vue +11 -11
- package/src/modules/auth/components/sections/SliderFeatures.vue +2 -2
- package/src/modules/backoffice/components/admin/Categories.vue +2 -2
- package/src/modules/backoffice/components/admin/CategoryEdit.vue +2 -2
- package/src/modules/backoffice/components/admin/Dashboard.vue +1 -1
- package/src/modules/backoffice/components/admin/FastOrders.vue +3 -3
- package/src/modules/backoffice/components/admin/PageEdit.vue +3 -3
- package/src/modules/backoffice/components/admin/Pages.vue +1 -1
- package/src/modules/backoffice/components/admin/ProductEdit.vue +1 -1
- package/src/modules/backoffice/components/admin/User.vue +6 -6
- package/src/modules/backoffice/components/admin/Users.vue +4 -4
- package/src/modules/backoffice/components/layouts/Backoffice.vue +1 -1
- package/src/modules/backoffice/components/pages/Dashboard.vue +1 -1
- package/src/modules/community/components/blocks/CardBlogpost.vue +5 -5
- package/src/modules/community/components/layouts/Community.vue +2 -2
- package/src/modules/community/components/pages/BlogPost.vue +4 -4
- package/src/modules/community/components/pages/Community.vue +2 -2
- package/src/modules/community/components/pages/CreateBlogPost.vue +5 -5
- package/src/modules/community/components/sections/Comments.vue +5 -5
- package/src/modules/community/components/sections/Feed.vue +2 -2
- package/src/modules/community/components/sections/JoinUs.vue +2 -2
- package/src/modules/community/components/sections/SubscribeNewsletter.vue +3 -3
- package/src/modules/constructor/components/elements/Audio.vue +2 -2
- package/src/modules/constructor/components/elements/Bullets.vue +1 -1
- package/src/modules/constructor/components/elements/Caption.vue +1 -1
- package/src/modules/constructor/components/elements/Embed.vue +2 -2
- package/src/modules/constructor/components/elements/H2.vue +1 -1
- package/src/modules/constructor/components/elements/Image.vue +19 -5
- package/src/modules/constructor/components/elements/ImageUpload.vue +1 -1
- package/src/modules/constructor/components/elements/Textarea.vue +1 -1
- package/src/modules/constructor/components/sections/Constructor.vue +4 -4
- package/src/modules/events/components/blocks/CardEvent.vue +5 -5
- package/src/modules/events/components/layouts/layoutEvents.vue +1 -1
- package/src/modules/events/components/pages/EditEvent.vue +12 -12
- package/src/modules/events/components/pages/Event.vue +4 -4
- package/src/modules/events/components/pages/Events.vue +1 -1
- package/src/modules/events/components/sections/Feed.vue +2 -2
- package/src/modules/events/components/sections/List.vue +1 -1
- package/src/modules/gallery/components/sections/BackofficeGallery.vue +10 -10
- package/src/modules/gallery/components/sections/GalleryWithCategories.vue +6 -6
- package/src/modules/globals/components/sections/Feed.vue +1 -1
- package/src/modules/landing/components/sections/MobileApp.vue +7 -7
- package/src/modules/legal/components/pages/Legal.vue +5 -5
- package/src/modules/marketplace/components/layouts/Marketplace.vue +1 -1
- package/src/modules/mobile/components/Menu/MenuItem.vue +2 -2
- package/src/modules/orders/components/blocks/CardOrderItem.vue +1 -1
- package/src/modules/orders/components/blocks/Positions.vue +8 -8
- package/src/modules/orders/components/pages/EditOrder.vue +19 -19
- package/src/modules/orders/components/pages/Favorites.vue +2 -2
- package/src/modules/orders/components/pages/Order.vue +5 -5
- package/src/modules/orders/components/pages/Orders.vue +5 -5
- package/src/modules/orders/components/pages/ViewOrder.vue +7 -7
- package/src/modules/orders/components/partials/ShopCart.vue +3 -3
- package/src/modules/orders/components/sections/Form.vue +12 -12
- package/src/modules/orders/components/sections/Succes.vue +4 -4
- package/src/modules/organizations/components/blocks/CardDepartment.vue +3 -3
- package/src/modules/organizations/components/blocks/CardOrganization.vue +3 -3
- package/src/modules/organizations/components/blocks/Contacts.vue +1 -1
- package/src/modules/organizations/components/blocks/DepartmentMemberModify.vue +2 -2
- package/src/modules/organizations/components/blocks/EditArray.vue +2 -2
- package/src/modules/organizations/components/blocks/EmptyState.vue +3 -3
- package/src/modules/organizations/components/blocks/Rating.vue +1 -1
- package/src/modules/organizations/components/pages/Department.vue +6 -6
- package/src/modules/organizations/components/pages/DepartmentEdit.vue +16 -16
- package/src/modules/organizations/components/pages/Members.vue +2 -2
- package/src/modules/organizations/components/pages/Organization.vue +5 -5
- package/src/modules/organizations/components/pages/OrganizationEdit.vue +16 -16
- package/src/modules/organizations/components/pages/Organizations.vue +2 -2
- package/src/modules/organizations/components/sections/DetailsTab.vue +11 -11
- package/src/modules/organizations/components/sections/Documents.vue +4 -4
- package/src/modules/organizations/components/sections/Feed.vue +2 -2
- package/src/modules/organizations/components/sections/FeedDepartments.vue +2 -2
- package/src/modules/organizations/components/sections/MembersAdd.vue +5 -5
- package/src/modules/organizations/components/sections/MembersList.vue +2 -2
- package/src/modules/organizations/components/sections/Unit.vue +12 -12
- package/src/modules/payments/components/pages/Payments.vue +3 -3
- package/src/modules/products/components/blocks/CardLeftover.vue +4 -4
- package/src/modules/products/components/blocks/CardProduct.vue +3 -3
- package/src/modules/products/components/blocks/EditCategories.vue +4 -4
- package/src/modules/products/components/blocks/EditFilters.vue +4 -4
- package/src/modules/products/components/blocks/LeftoverPositions.vue +1 -1
- package/src/modules/products/components/pages/LeftoverAdd.vue +7 -7
- package/src/modules/products/components/pages/Leftovers.vue +5 -5
- package/src/modules/products/components/pages/OrganizationDetails.vue +4 -4
- package/src/modules/products/components/pages/OrganizationDocuments.vue +5 -5
- package/src/modules/products/components/pages/OrganizationPeople.vue +5 -5
- package/src/modules/products/components/pages/ProductEdit.vue +5 -5
- package/src/modules/products/components/pages/ProductRecommmendation.vue +1 -1
- package/src/modules/products/components/pages/ProductsBackoffice.vue +2 -2
- package/src/modules/products/components/sections/EditModifications.vue +8 -8
- package/src/modules/products/components/sections/EditParameters.vue +4 -4
- package/src/modules/products/components/sections/EditProductImages.vue +2 -2
- package/src/modules/products/components/sections/EditProductInfo.vue +5 -5
- package/src/modules/products/components/sections/FilterProducts.vue +9 -9
- package/src/modules/products/components/sections/HeroRecommendation.vue +5 -5
- package/src/modules/products/components/sections/PopularProducts.vue +1 -1
- package/src/modules/products/components/sections/ProductInformationSection.vue +27 -27
- package/src/modules/products/components/sections/SectionProduct.vue +6 -6
- package/src/modules/products/components/sections/SortProducts.vue +1 -1
- package/src/modules/reports/components/pages/BackofficeReports.vue +4 -4
- package/src/modules/reports/components/sections/FormReport.vue +4 -4
- package/src/modules/spots/components/blocks/CardSpot.vue +4 -4
- package/src/modules/spots/components/blocks/SpotMemberModify.vue +2 -2
- package/src/modules/spots/components/layouts/Spots.vue +3 -3
- package/src/modules/spots/components/pages/Spot.vue +4 -4
- package/src/modules/spots/components/pages/SpotEdit.vue +16 -16
- package/src/modules/spots/components/sections/Feed.vue +2 -2
- package/src/modules/spots/components/sections/PlaceModify.vue +1 -1
- package/src/modules/spots/components/sections/Places.vue +1 -1
- package/src/modules/users/components/pages/Profile.vue +13 -13
- package/src/modules/users/components/pages/ProfileBlogposts.vue +2 -2
- package/src/modules/users/components/pages/ProfileComments.vue +1 -1
- package/src/modules/users/components/pages/ProfileEdit.vue +21 -21
- package/src/modules/users/components/pages/ProfileEvents.vue +2 -2
- package/src/modules/users/components/pages/ProfileLikes.vue +1 -1
- package/src/modules/users/components/pages/ProfileOrganizations.vue +2 -2
- package/src/modules/users/components/sections/ProfileCompletion.vue +1 -1
- package/src/modules/wallet/components/pages/Wallet.vue +17 -17
- package/src/styles/base/all.scss +83 -324
- package/src/styles/base/border-radius.scss +47 -0
- package/src/styles/base/height.scss +60 -0
- package/src/styles/base/scrolling.scss +8 -8
- package/src/styles/base/width.scss +2 -0
- package/src/styles/config.scss +153 -51
- package/src/styles/responsive.scss +2 -2
@@ -1,4 +1,4 @@
|
|
1
|
-
import { ref as
|
1
|
+
import { ref as k, computed as l, openBlock as n, createElementBlock as i, normalizeClass as m, createVNode as x, createElementVNode as c, createCommentVNode as a, createBlock as w, withModifiers as D, toDisplayString as d, renderSlot as E } from "vue";
|
2
2
|
import p from "../../../../components/Chips/Chips.vue.js";
|
3
3
|
import $ from "../../../icons/navigation/IconEdit.vue.js";
|
4
4
|
import I from "../../../globals/components/blocks/CardHeader.vue.js";
|
@@ -6,7 +6,7 @@ import "../../../community/store/reactions.js";
|
|
6
6
|
import { useRouter as M } from "vue-router";
|
7
7
|
const F = {
|
8
8
|
key: 0,
|
9
|
-
class: "o-hidden pos-relative bg-grey mn-small w-100"
|
9
|
+
class: "o-hidden pos-relative bg-grey mn-b-small w-100"
|
10
10
|
}, S = ["src"], R = ["src"], N = { class: "w-max mn-r-thin pd-thin radius-small t-semi bg-main" }, z = {
|
11
11
|
key: 0,
|
12
12
|
class: "t-semi"
|
@@ -15,7 +15,7 @@ const F = {
|
|
15
15
|
class: "t-semi uppercase"
|
16
16
|
}, B = {
|
17
17
|
key: 1,
|
18
|
-
class: "cursor-pointer mn-thin flex-nowrap flex w-100"
|
18
|
+
class: "cursor-pointer mn-b-thin flex-nowrap flex w-100"
|
19
19
|
}, H = {
|
20
20
|
key: 0,
|
21
21
|
class: ""
|
@@ -24,12 +24,12 @@ const F = {
|
|
24
24
|
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"
|
25
25
|
}, Y = {
|
26
26
|
key: 2,
|
27
|
-
class: "mn-small p-big"
|
27
|
+
class: "mn-b-small p-big"
|
28
28
|
}, K = {
|
29
29
|
__name: "CardEvent",
|
30
30
|
props: ["event", "user", "short", "type"],
|
31
31
|
setup(e) {
|
32
|
-
|
32
|
+
k(/* @__PURE__ */ new Date()), M();
|
33
33
|
const s = e;
|
34
34
|
l(() => s.event.content.find((t) => t.type.name === "ImageUpload")), l(() => s.event.content.find((t) => t.type.name === "Textarea"));
|
35
35
|
const T = l(() => {
|
@@ -45,11 +45,11 @@ const F = {
|
|
45
45
|
}), C = l(() => {
|
46
46
|
const t = new Date(s.event.date.start), o = { day: "2-digit", month: "2-digit" };
|
47
47
|
return t.toLocaleDateString(void 0, o);
|
48
|
-
}),
|
48
|
+
}), b = l(() => {
|
49
49
|
console.log(s.event.date.start), console.log(s.event.date.end);
|
50
50
|
const t = new Date(s.event.date.start), o = new Date(s.event.date.end), r = new Intl.DateTimeFormat(void 0, { hour: "2-digit", minute: "2-digit", hourCycle: "h23" }).format(t), v = new Intl.DateTimeFormat(void 0, { hour: "2-digit", minute: "2-digit", hourCycle: "h23" }).format(o);
|
51
51
|
return `${r}-${v}`;
|
52
|
-
}),
|
52
|
+
}), U = l(() => {
|
53
53
|
const t = s.event.name;
|
54
54
|
return t.length > 26 ? `${t.substring(0, 22)}…` : t;
|
55
55
|
});
|
@@ -60,7 +60,7 @@ const F = {
|
|
60
60
|
}, [
|
61
61
|
x(I, {
|
62
62
|
class: m({
|
63
|
-
"mn-small pd-medium": e.type !== "short",
|
63
|
+
"mn-b-small pd-medium": e.type !== "short",
|
64
64
|
"flex-child-order-last flex-child mn-l-small": e.type === "short"
|
65
65
|
}),
|
66
66
|
entity: e.event,
|
@@ -100,13 +100,13 @@ const F = {
|
|
100
100
|
class: "z-index-2 pos-absolute pos-t-regular pos-r-regular i-regular t-transp"
|
101
101
|
})) : a("", !0),
|
102
102
|
c("div", {
|
103
|
-
class: m([{ "mn-small": e.type !== "short" }, "flex-v-center flex-nowrap flex"])
|
103
|
+
class: m([{ "mn-b-small": e.type !== "short" }, "flex-v-center flex-nowrap flex"])
|
104
104
|
}, [
|
105
105
|
c("div", N, [
|
106
106
|
e.type !== "short" ? (n(), i("span", z, d(C.value) + " | ", 1)) : a("", !0),
|
107
|
-
c("span", L, d(
|
107
|
+
c("span", L, d(b.value), 1)
|
108
108
|
]),
|
109
|
-
e.type === "short" ? (n(), i("span", V, d(
|
109
|
+
e.type === "short" ? (n(), i("span", V, d(U.value), 1)) : a("", !0)
|
110
110
|
], 2),
|
111
111
|
e.type !== "short" ? (n(), i("div", B, [
|
112
112
|
e.type !== "short" ? (n(), i("h3", H, d(e.event.name), 1)) : a("", !0),
|
package/dist/prometheus-framework/src/modules/events/components/layouts/layoutEvents.vue.cjs
CHANGED
@@ -1 +1 @@
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),c=require("vue-router");require("../../../../components/Select/Select.vue.cjs");const f=require("../../../../components/DatePicker/DatePicker.vue.cjs"),i=require("../../store/events.cjs"),m={class:"pd-thin min-h-100vh"},g=e.createElementVNode("div",{class:"mn-thin br-solid br-1px br-grey bg-grey radius-big"},null,-1),y={class:""},_={__name:"layoutEvents",setup(b){const l=c.useRoute(),d=c.useRouter(),u=p(new Date);function p(t){return`${t.getDate().toString().padStart(2,"0")}${(t.getMonth()+1).toString().padStart(2,"0")}${t.getFullYear()}`}if(l.query){const t=l.query,s={tags:t.tags?t.tags.split(","):null,date:t.date?t.date:u};i.state.filter=s}else{const t={date:u};i.state.filter=t}return e.watch(()=>i.state.filter,(t,s)=>{const a={...l.query};Object.keys(s).forEach(o=>{a[o]&&delete a[o]});const n=Object.fromEntries(Object.entries(t).filter(([o,r])=>Array.isArray(r)&&r.length>0||typeof r=="string"&&r).map(([o,r])=>[o,Array.isArray(r)?r.join(","):r]));Object.assign(a,n),d.push({query:a})},{deep:!0}),(t,s)=>{const a=e.resolveComponent("router-view");return e.openBlock(),e.createElementBlock("div",m,[e.createVNode(f.default,{date:i.state.filter.date,"onUpdate:date":s[0]||(s[0]=n=>i.state.filter.date=n),locale:t.$i18n.locale,class:"radius-small bg-grey pd-l-zero pd-r-zero pd-medium"},null,8,["date","locale"]),g,e.createElementVNode("section",y,[e.createVNode(a,null,{default:e.withCtx(({Component:n,route:o})=>[e.createVNode(e.Transition,{name:"scaleIn",mode:"out-in"},{default:e.withCtx(()=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(n),{ref:"page",key:o.query}))]),_:2},1024)]),_:1})])])}}};exports.default=_;
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),c=require("vue-router");require("../../../../components/Select/Select.vue.cjs");const f=require("../../../../components/DatePicker/DatePicker.vue.cjs"),i=require("../../store/events.cjs"),m={class:"pd-thin min-h-100vh"},g=e.createElementVNode("div",{class:"mn-b-thin br-solid br-1px br-grey bg-grey radius-big"},null,-1),y={class:""},_={__name:"layoutEvents",setup(b){const l=c.useRoute(),d=c.useRouter(),u=p(new Date);function p(t){return`${t.getDate().toString().padStart(2,"0")}${(t.getMonth()+1).toString().padStart(2,"0")}${t.getFullYear()}`}if(l.query){const t=l.query,s={tags:t.tags?t.tags.split(","):null,date:t.date?t.date:u};i.state.filter=s}else{const t={date:u};i.state.filter=t}return e.watch(()=>i.state.filter,(t,s)=>{const a={...l.query};Object.keys(s).forEach(o=>{a[o]&&delete a[o]});const n=Object.fromEntries(Object.entries(t).filter(([o,r])=>Array.isArray(r)&&r.length>0||typeof r=="string"&&r).map(([o,r])=>[o,Array.isArray(r)?r.join(","):r]));Object.assign(a,n),d.push({query:a})},{deep:!0}),(t,s)=>{const a=e.resolveComponent("router-view");return e.openBlock(),e.createElementBlock("div",m,[e.createVNode(f.default,{date:i.state.filter.date,"onUpdate:date":s[0]||(s[0]=n=>i.state.filter.date=n),locale:t.$i18n.locale,class:"radius-small bg-grey pd-l-zero pd-r-zero pd-medium"},null,8,["date","locale"]),g,e.createElementVNode("section",y,[e.createVNode(a,null,{default:e.withCtx(({Component:n,route:o})=>[e.createVNode(e.Transition,{name:"scaleIn",mode:"out-in"},{default:e.withCtx(()=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(n),{ref:"page",key:o.query}))]),_:2},1024)]),_:1})])])}}};exports.default=_;
|
@@ -3,7 +3,7 @@ import { useRoute as D, useRouter as q } from "vue-router";
|
|
3
3
|
import "../../../../components/Select/Select.vue.js";
|
4
4
|
import j from "../../../../components/DatePicker/DatePicker.vue.js";
|
5
5
|
import { state as s } from "../../store/events.js";
|
6
|
-
const k = { class: "pd-thin min-h-100vh" }, E = /* @__PURE__ */ m("div", { class: "mn-thin br-solid br-1px br-grey bg-grey radius-big" }, null, -1), V = { class: "" }, B = {
|
6
|
+
const k = { class: "pd-thin min-h-100vh" }, E = /* @__PURE__ */ m("div", { class: "mn-b-thin br-solid br-1px br-grey bg-grey radius-big" }, null, -1), V = { class: "" }, B = {
|
7
7
|
__name: "layoutEvents",
|
8
8
|
setup($) {
|
9
9
|
const i = D(), p = q(), c = f(/* @__PURE__ */ new Date());
|
@@ -1 +1 @@
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue");require("../../../constructor/components/elements/Textarea.vue.cjs");const N=require("../../../constructor/components/sections/Constructor.vue.cjs"),E=require("../../../../../node_modules/@vuepic/vue-datepicker/dist/vue-datepicker.cjs");require("../../../../../node_modules/@vuepic/vue-datepicker/dist/main.css.cjs");const y=require("../../../../components/Popup/Popup.vue.cjs"),f=require("../../../../components/Field/Field.vue2.cjs"),q=require("../../../../components/FieldTags/BlockTags.vue.cjs"),P=require("../../../../components/Checkbox/Checkbox.vue.cjs"),C=require("../../../../components/SelectMulti/SelectMulti.vue.cjs"),x=require("../../../../components/UploadImage/UploadImage.vue.cjs"),B=require("../../../../components/Button/Button.vue2.cjs"),v=require("vue-router"),s=require("../../store/events.cjs"),u=require("../../../auth/store/auth.cjs"),D=require("../../../organizations/store/organizations.cjs");require("./EditEvent.vue2.cjs");const U={key:0,class:"h-100 pd-thin"},T={class:"mn-thin radius-small w-100 h-10r bg-grey flex-center flex-column flex"},z=e.createElementVNode("h4",null,"Upload Event Cover",-1),O=e.createElementVNode("h3",{class:"mn-small"},"Date",-1),M=e.createElementVNode("h3",{class:"mn-small"},"Description",-1),S={key:0,class:"pd-b-extra w-100 bg-grey pd-big radius-big"},A={key:1,class:"pd-thin pos-sticky pos-l-0 pos-b-0 w-100"},R={class:"pd-thin radius-big bg-main w-100 flex-nowrap flex"},$=e.createElementVNode("h3",{class:"mn-small"},"Final Touches",-1),F=e.createElementVNode("h5",{class:"mn-thin"},"Add to public:",-1),j={key:0,class:"mn-thin"},H={key:1,class:"mn-medium br-grey br-2px br-solid pd-small radius-big"},G={__name:"EditEvent",setup(J){const i=v.useRoute(),d=v.useRouter();let t=e.ref(null),p=e.ref(null);const m=e.ref([]),n=e.ref(null),r=e.ref(),
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue");require("../../../constructor/components/elements/Textarea.vue.cjs");const N=require("../../../constructor/components/sections/Constructor.vue.cjs"),E=require("../../../../../node_modules/@vuepic/vue-datepicker/dist/vue-datepicker.cjs");require("../../../../../node_modules/@vuepic/vue-datepicker/dist/main.css.cjs");const y=require("../../../../components/Popup/Popup.vue.cjs"),f=require("../../../../components/Field/Field.vue2.cjs"),q=require("../../../../components/FieldTags/BlockTags.vue.cjs"),P=require("../../../../components/Checkbox/Checkbox.vue.cjs"),C=require("../../../../components/SelectMulti/SelectMulti.vue.cjs"),x=require("../../../../components/UploadImage/UploadImage.vue.cjs"),B=require("../../../../components/Button/Button.vue2.cjs"),v=require("vue-router"),s=require("../../store/events.cjs"),u=require("../../../auth/store/auth.cjs"),D=require("../../../organizations/store/organizations.cjs");require("./EditEvent.vue2.cjs");const U={key:0,class:"h-100 pd-thin"},T={class:"mn-b-thin radius-small w-100 h-10r bg-grey flex-center flex-column flex"},z=e.createElementVNode("h4",null,"Upload Event Cover",-1),O=e.createElementVNode("h3",{class:"mn-b-small"},"Date",-1),M=e.createElementVNode("h3",{class:"mn-b-small"},"Description",-1),S={key:0,class:"pd-b-extra w-100 bg-grey pd-big radius-big"},A={key:1,class:"pd-thin pos-sticky pos-l-0 pos-b-0 w-100"},R={class:"pd-thin radius-big bg-main w-100 flex-nowrap flex"},$=e.createElementVNode("h3",{class:"mn-b-small"},"Final Touches",-1),F=e.createElementVNode("h5",{class:"mn-b-thin"},"Add to public:",-1),j={key:0,class:"mn-b-thin"},H={key:1,class:"mn-b-medium br-grey br-2px br-solid pd-small radius-big"},G={__name:"EditEvent",setup(J){const i=v.useRoute(),d=v.useRouter();let t=e.ref(null),p=e.ref(null);const m=e.ref([]),n=e.ref(null),r=e.ref(),b=()=>({top:0,left:0});e.onMounted(async()=>{if(i.params.url){const a=await s.read({user:u.state.user._id,url:i.params.url});t.value=a.pop();const l=t.value.date.start,_=t.value.date.end;r.value=[l,_]}else{s.clean(),t.value=s.state.current;const a=new Date,l=new Date;r.value=[a,l]}t.value.owner||(t.value.owner={target:u.state.user._id,type:"user"}),t.value.creator||(t.value.creator={target:u.state.user._id,type:"user",hidden:!1}),t.value.owner.type==="organization"&&(n.value={_id:t.value.owner.target._id,name:t.value.owner.target.profile.name,photo:t.value.owner.target.profile.photo});const o=await D.actions.read({user:u.state.user._id,postable:u.state.user._id,limit:100});p.value=o.map(a=>({name:a.profile.name,_id:a._id,photo:a.profile.photo}))});const c=e.ref(!1);function h(){c.value=!0}function g(){c.value=!1}function k(){m.value.length>0&&m.value.map(o=>o.text),t.value.status="draft",t.value.date={start:r.value[0],end:r.value[1]},i.params.url?s.update(t.value).then(o=>{d.push({name:"Event",params:{url:o.url}})}).catch(o=>{console.error(o)}):s.create(t.value).then(o=>{d.push({name:"Event",params:{url:o.url}})}).catch(o=>{console.error(o)})}function V(){n.value&&(t.value.owner={target:n.value._id,type:"organization"}),n.value||(t.value.creator.hidden=!1),n.value||(t.value.organization=t.value.creator),t.value.status="published",t.value.date={start:r.value[0],end:r.value[1]},console.log(r.value),i.params.url?s.update(t.value).then(o=>{d.push({name:"Event",params:{url:o.url}})}).catch(o=>{console.log(o)}):s.create(t.value).then(o=>{d.push({name:"Event",params:{url:o.url}})}).catch(o=>{console.log(o)})}function w(){confirm("Are you sure you want to delete this event?")&&s.remove(t.value._id).then(o=>{d.push({name:"User Events",params:{_id:t.value.creator.target._id}})}).catch(o=>{console.error(o)})}return(o,a)=>e.unref(t)?(e.openBlock(),e.createElementBlock("article",U,[e.createElementVNode("div",T,[e.createVNode(x.default,{photo:e.unref(t).cover,"onUpdate:photo":a[0]||(a[0]=l=>e.unref(t).cover=l),uploadPath:"users/"+u.state.user._id+"/events",class:"h-4r w-4r aspect-1x1 o-hidden mn-b-thin radius-extra"},null,8,["photo","uploadPath"]),z]),e.createVNode(f.default,{field:e.unref(t).name,"onUpdate:field":a[1]||(a[1]=l=>e.unref(t).name=l),placeholder:"Event name",class:"mn-b-thin w-100 bg-grey pd-medium radius-small"},null,8,["field"]),e.createVNode(f.default,{field:e.unref(t).description,"onUpdate:field":a[2]||(a[2]=l=>e.unref(t).description=l),type:"textfield",placeholder:"Enter short description",class:"mn-b-semi w-100 bg-grey pd-medium radius-small"},null,8,["field"]),O,e.createVNode(e.unref(E.default),{modelValue:r.value,"onUpdate:modelValue":a[3]||(a[3]=l=>r.value=l),"alt-position":b,range:"",class:"mn-b-semi"},null,8,["modelValue"]),M,e.unref(t)?(e.openBlock(),e.createElementBlock("section",S,[e.createVNode(N.default,{content:e.unref(t).content,onUpdate:a[4]||(a[4]=l=>e.unref(t).content=l)},null,8,["content"])])):e.createCommentVNode("",!0),e.unref(t)?(e.openBlock(),e.createElementBlock("section",A,[e.createElementVNode("div",R,[e.unref(i).params.url?(e.openBlock(),e.createElementBlock("a",{key:0,onClick:a[5]||(a[5]=l=>w()),class:"mn-r-auto bg-red t-white t-black button"},"Delete")):e.createCommentVNode("",!0),e.createElementVNode("a",{onClick:a[6]||(a[6]=l=>k()),class:"mn-l-auto bg-white t-black button"},"To Drafts"),e.createElementVNode("a",{onClick:a[7]||(a[7]=l=>h()),class:"mn-l-thin bg-black t-white button"},"Publish")])])):e.createCommentVNode("",!0),e.createVNode(y.default,{title:"Добавить участника",onClosePopup:g,isPopupOpen:c.value,class:"w-m-33r t-left pd-big bg-white radius-big"},{default:e.withCtx(()=>[$,e.createVNode(q.default,{onTagsChanged:a[8]||(a[8]=l=>e.unref(t).tags=l),tags:e.unref(t).tags},null,8,["tags"]),F,e.createVNode(C.default,{modelValue:n.value,"onUpdate:modelValue":a[9]||(a[9]=l=>n.value=l),options:e.unref(p),multiple:!1,taggable:!1,placeholder:"Type to search or add tag",label:"name","track-by":"_id",class:"mn-b-medium bg-grey radius-medium pd-small"},null,8,["modelValue","options"]),n.value?(e.openBlock(),e.createElementBlock("h5",j,"Options:")):e.createCommentVNode("",!0),n.value?(e.openBlock(),e.createElementBlock("div",H,[e.createVNode(P.default,{label:"Hide Author",radio:e.unref(t).creator.hidden,"onUpdate:radio":a[10]||(a[10]=l=>e.unref(t).creator.hidden=l),name:"prices",class:"w-100"},null,8,["radio"])])):e.createCommentVNode("",!0),e.createVNode(B.default,{submit:V,callback:o.redirectTo,class:"w-100 bg-black t-white"},{default:e.withCtx(()=>[e.createTextVNode("Publish")]),_:1},8,["callback"])]),_:1},8,["isPopupOpen"])])):e.createCommentVNode("",!0)}};exports.default=G;
|
@@ -18,24 +18,24 @@ import "./EditEvent.vue2.js";
|
|
18
18
|
const L = {
|
19
19
|
key: 0,
|
20
20
|
class: "h-100 pd-thin"
|
21
|
-
}, Q = { class: "mn-thin radius-small w-100 h-10r bg-grey flex-center flex-column flex" }, W = /* @__PURE__ */ i("h4", null, "Upload Event Cover", -1), X = /* @__PURE__ */ i("h3", { class: "mn-small" }, "Date", -1), Y = /* @__PURE__ */ i("h3", { class: "mn-small" }, "Description", -1), Z = {
|
21
|
+
}, Q = { class: "mn-b-thin radius-small w-100 h-10r bg-grey flex-center flex-column flex" }, W = /* @__PURE__ */ i("h4", null, "Upload Event Cover", -1), X = /* @__PURE__ */ i("h3", { class: "mn-b-small" }, "Date", -1), Y = /* @__PURE__ */ i("h3", { class: "mn-b-small" }, "Description", -1), Z = {
|
22
22
|
key: 0,
|
23
23
|
class: "pd-b-extra w-100 bg-grey pd-big radius-big"
|
24
24
|
}, I = {
|
25
25
|
key: 1,
|
26
26
|
class: "pd-thin pos-sticky pos-l-0 pos-b-0 w-100"
|
27
|
-
}, ee = { class: "pd-thin radius-big bg-main w-100 flex-nowrap flex" }, te = /* @__PURE__ */ i("h3", { class: "mn-small" }, "Final Touches", -1), ae = /* @__PURE__ */ i("h5", { class: "mn-thin" }, "Add to public:", -1), oe = {
|
27
|
+
}, ee = { class: "pd-thin radius-big bg-main w-100 flex-nowrap flex" }, te = /* @__PURE__ */ i("h3", { class: "mn-b-small" }, "Final Touches", -1), ae = /* @__PURE__ */ i("h5", { class: "mn-b-thin" }, "Add to public:", -1), oe = {
|
28
28
|
key: 0,
|
29
|
-
class: "mn-thin"
|
29
|
+
class: "mn-b-thin"
|
30
30
|
}, le = {
|
31
31
|
key: 1,
|
32
|
-
class: "mn-medium br-grey br-2px br-solid pd-small radius-big"
|
32
|
+
class: "mn-b-medium br-grey br-2px br-solid pd-small radius-big"
|
33
33
|
}, xe = {
|
34
34
|
__name: "EditEvent",
|
35
35
|
setup(se) {
|
36
36
|
const v = S(), f = j();
|
37
|
-
let e = u(null),
|
38
|
-
const
|
37
|
+
let e = u(null), h = u(null);
|
38
|
+
const g = u([]), n = u(null), r = u(), x = () => ({ top: 0, left: 0 });
|
39
39
|
$(async () => {
|
40
40
|
if (v.params.url) {
|
41
41
|
const t = await H({ user: c.user._id, url: v.params.url });
|
@@ -64,21 +64,21 @@ const L = {
|
|
64
64
|
postable: c.user._id,
|
65
65
|
limit: 100
|
66
66
|
});
|
67
|
-
|
67
|
+
h.value = a.map((t) => ({
|
68
68
|
name: t.profile.name,
|
69
69
|
_id: t._id,
|
70
70
|
photo: t.profile.photo
|
71
71
|
}));
|
72
72
|
});
|
73
|
-
const
|
73
|
+
const b = u(!1);
|
74
74
|
function P() {
|
75
|
-
|
75
|
+
b.value = !0;
|
76
76
|
}
|
77
77
|
function D() {
|
78
|
-
|
78
|
+
b.value = !1;
|
79
79
|
}
|
80
80
|
function E() {
|
81
|
-
|
81
|
+
g.value.length > 0 && g.value.map((a) => a.text), e.value.status = "draft", e.value.date = {
|
82
82
|
start: r.value[0],
|
83
83
|
end: r.value[1]
|
84
84
|
}, v.params.url ? y(e.value).then((a) => {
|
@@ -121,7 +121,7 @@ const L = {
|
|
121
121
|
photo: l(e).cover,
|
122
122
|
"onUpdate:photo": t[0] || (t[0] = (o) => l(e).cover = o),
|
123
123
|
uploadPath: "users/" + c.user._id + "/events",
|
124
|
-
class: "h-4r w-4r aspect-1x1 o-hidden mn-thin radius-extra"
|
124
|
+
class: "h-4r w-4r aspect-1x1 o-hidden mn-b-thin radius-extra"
|
125
125
|
}, null, 8, ["photo", "uploadPath"]),
|
126
126
|
W
|
127
127
|
]),
|
@@ -129,14 +129,14 @@ const L = {
|
|
129
129
|
field: l(e).name,
|
130
130
|
"onUpdate:field": t[1] || (t[1] = (o) => l(e).name = o),
|
131
131
|
placeholder: "Event name",
|
132
|
-
class: "mn-thin w-100 bg-grey pd-medium radius-small"
|
132
|
+
class: "mn-b-thin w-100 bg-grey pd-medium radius-small"
|
133
133
|
}, null, 8, ["field"]),
|
134
134
|
s(w, {
|
135
135
|
field: l(e).description,
|
136
136
|
"onUpdate:field": t[2] || (t[2] = (o) => l(e).description = o),
|
137
137
|
type: "textfield",
|
138
138
|
placeholder: "Enter short description",
|
139
|
-
class: "mn-semi w-100 bg-grey pd-medium radius-small"
|
139
|
+
class: "mn-b-semi w-100 bg-grey pd-medium radius-small"
|
140
140
|
}, null, 8, ["field"]),
|
141
141
|
X,
|
142
142
|
s(l(N), {
|
@@ -144,7 +144,7 @@ const L = {
|
|
144
144
|
"onUpdate:modelValue": t[3] || (t[3] = (o) => r.value = o),
|
145
145
|
"alt-position": x,
|
146
146
|
range: "",
|
147
|
-
class: "mn-semi"
|
147
|
+
class: "mn-b-semi"
|
148
148
|
}, null, 8, ["modelValue"]),
|
149
149
|
Y,
|
150
150
|
l(e) ? (d(), m("section", Z, [
|
@@ -173,7 +173,7 @@ const L = {
|
|
173
173
|
s(O, {
|
174
174
|
title: "Добавить участника",
|
175
175
|
onClosePopup: D,
|
176
|
-
isPopupOpen:
|
176
|
+
isPopupOpen: b.value,
|
177
177
|
class: "w-m-33r t-left pd-big bg-white radius-big"
|
178
178
|
}, {
|
179
179
|
default: _(() => [
|
@@ -186,13 +186,13 @@ const L = {
|
|
186
186
|
s(F, {
|
187
187
|
modelValue: n.value,
|
188
188
|
"onUpdate:modelValue": t[9] || (t[9] = (o) => n.value = o),
|
189
|
-
options: l(
|
189
|
+
options: l(h),
|
190
190
|
multiple: !1,
|
191
191
|
taggable: !1,
|
192
192
|
placeholder: "Type to search or add tag",
|
193
193
|
label: "name",
|
194
194
|
"track-by": "_id",
|
195
|
-
class: "mn-medium bg-grey radius-medium pd-small"
|
195
|
+
class: "mn-b-medium bg-grey radius-medium pd-small"
|
196
196
|
}, null, 8, ["modelValue", "options"]),
|
197
197
|
n.value ? (d(), m("h5", oe, "Options:")) : p("", !0),
|
198
198
|
n.value ? (d(), m("div", le, [
|
@@ -1 +1 @@
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue");require("../../../../components/Loader/Loader.vue.cjs");const m=require("../../../../components/EmptyState/EmptyState.vue.cjs"),p=require("../blocks/CardEvent.vue.cjs"),v=require("../../../icons/skeletons/SkeletonEvent.vue.cjs"),g=require("../elements/ButtonJoin.vue.cjs"),k=require("../../../community/components/sections/Comments.vue.cjs"),f=require("../../../constructor/components/elements/Image.vue.cjs"),y=require("../../store/events.cjs"),_=require("../../store/tickets.cjs"),o=require("../../../auth/store/auth.cjs"),B=require("vue-router"),h={class:"pd-thin"},C={__name:"Event",setup(T){const l=B.useRoute(),c=({ticket:n,hasTicket:u,targetId:r})=>{_.mutations.handleTicketUpdate(t.value,n,u,r)},i={Textarea:"p",H2:"h2",Bullets:"p",Caption:"p",ImageUpload:f.default};function d(n){return n.type==="Textarea"?{innerHTML:n.content,class:"p-medium"}:n.type==="H2"?{innerHTML:n.content,class:"h3"}:n.type==="Caption"?{innerHTML:n.content}:n.type==="ImageUpload"?{src:n.content}:{}}const t=e.ref(null),a=e.ref(!0);return e.onMounted(async()=>{a.value=!0;const n=await y.read({user:o.state.user._id,url:l.params.url});t.value=n[0],a.value=!1}),(n,u)=>(e.openBlock(),e.createElementBlock("section",h,[e.createVNode(e.TransitionGroup,{tag:"ul",name:"fade",class:"o-hidden bg-grey radius-big"},{default:e.withCtx(()=>[a.value?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},e.renderList(3,r=>e.createVNode(v.default,{key:r})),64)):e.createCommentVNode("",!0)]),_:1}),e.createVNode(e.Transition,{name:"fade"},{default:e.withCtx(()=>[!a.value&&!t.value?(e.openBlock(),e.createBlock(m.default,{key:0,title:"No Event Found",description:"Currently, there are no events available. Please check back later.",class:"pd-medium mn-thin bg-grey radius-big"})):e.createCommentVNode("",!0)]),_:1}),e.createVNode(e.TransitionGroup,{tag:"ul",name:"fade",class:"container"},{default:e.withCtx(()=>[!a.value&&t.value?(e.openBlock(),e.createBlock(p.default,{key:0,onClick:u[0]||(u[0]=r=>n.$router.push({name:"Event",params:{url:t.value.url}})),event:t.value,owner:t.value.owner,user:o.state.user._id,type:"normal",class:"mn-medium bg-grey radius-big"},{default:e.withCtx(()=>[o.state.user._id?(e.openBlock(),e.createBlock(g.default,{key:0,type:"event",hasTicket:t.value.hasTicket,targetId:t.value._id,userId:o.state.user._id,class:"mn-small w-100 pd-medium mn-auto",onUpdateTicket:c},null,8,["hasTicket","targetId","userId"])):e.createCommentVNode("",!0),e.createElementVNode("section",null,[t.value&&t.value.content?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(t.value.content,(r,s)=>(e.openBlock(),e.createBlock(e.resolveDynamicComponent(i[r.type]),e.mergeProps({key:s,index:s,component:r,prop:r,class:r.class,content:"content"},d(r),{class:"mn-regular"}),null,16,["index","component","prop","class"]))),128)):e.createCommentVNode("",!0)])]),_:1},8,["event","owner","user"])):e.createCommentVNode("",!0),!a.value&&t.value?(e.openBlock(),e.createBlock(k.default,{key:1,type:"event",target:t.value._id,owner:o.state.user._id},null,8,["target","owner"])):e.createCommentVNode("",!0)]),_:1})]))}};exports.default=C;
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue");require("../../../../components/Loader/Loader.vue.cjs");const m=require("../../../../components/EmptyState/EmptyState.vue.cjs"),p=require("../blocks/CardEvent.vue.cjs"),v=require("../../../icons/skeletons/SkeletonEvent.vue.cjs"),g=require("../elements/ButtonJoin.vue.cjs"),k=require("../../../community/components/sections/Comments.vue.cjs"),f=require("../../../constructor/components/elements/Image.vue.cjs"),y=require("../../store/events.cjs"),_=require("../../store/tickets.cjs"),o=require("../../../auth/store/auth.cjs"),B=require("vue-router"),h={class:"pd-thin"},C={__name:"Event",setup(T){const l=B.useRoute(),c=({ticket:n,hasTicket:u,targetId:r})=>{_.mutations.handleTicketUpdate(t.value,n,u,r)},i={Textarea:"p",H2:"h2",Bullets:"p",Caption:"p",ImageUpload:f.default};function d(n){return n.type==="Textarea"?{innerHTML:n.content,class:"p-medium"}:n.type==="H2"?{innerHTML:n.content,class:"h3"}:n.type==="Caption"?{innerHTML:n.content}:n.type==="ImageUpload"?{src:n.content}:{}}const t=e.ref(null),a=e.ref(!0);return e.onMounted(async()=>{a.value=!0;const n=await y.read({user:o.state.user._id,url:l.params.url});t.value=n[0],a.value=!1}),(n,u)=>(e.openBlock(),e.createElementBlock("section",h,[e.createVNode(e.TransitionGroup,{tag:"ul",name:"fade",class:"o-hidden bg-grey radius-big"},{default:e.withCtx(()=>[a.value?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},e.renderList(3,r=>e.createVNode(v.default,{key:r})),64)):e.createCommentVNode("",!0)]),_:1}),e.createVNode(e.Transition,{name:"fade"},{default:e.withCtx(()=>[!a.value&&!t.value?(e.openBlock(),e.createBlock(m.default,{key:0,title:"No Event Found",description:"Currently, there are no events available. Please check back later.",class:"pd-medium mn-b-thin bg-grey radius-big"})):e.createCommentVNode("",!0)]),_:1}),e.createVNode(e.TransitionGroup,{tag:"ul",name:"fade",class:"container"},{default:e.withCtx(()=>[!a.value&&t.value?(e.openBlock(),e.createBlock(p.default,{key:0,onClick:u[0]||(u[0]=r=>n.$router.push({name:"Event",params:{url:t.value.url}})),event:t.value,owner:t.value.owner,user:o.state.user._id,type:"normal",class:"mn-b-medium bg-grey radius-big"},{default:e.withCtx(()=>[o.state.user._id?(e.openBlock(),e.createBlock(g.default,{key:0,type:"event",hasTicket:t.value.hasTicket,targetId:t.value._id,userId:o.state.user._id,class:"mn-b-small w-100 pd-medium mn-auto",onUpdateTicket:c},null,8,["hasTicket","targetId","userId"])):e.createCommentVNode("",!0),e.createElementVNode("section",null,[t.value&&t.value.content?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(t.value.content,(r,s)=>(e.openBlock(),e.createBlock(e.resolveDynamicComponent(i[r.type]),e.mergeProps({key:s,index:s,component:r,prop:r,class:r.class,content:"content"},d(r),{class:"mn-b-regular"}),null,16,["index","component","prop","class"]))),128)):e.createCommentVNode("",!0)])]),_:1},8,["event","owner","user"])):e.createCommentVNode("",!0),!a.value&&t.value?(e.openBlock(),e.createBlock(k.default,{key:1,type:"event",target:t.value._id,owner:o.state.user._id},null,8,["target","owner"])):e.createCommentVNode("",!0)]),_:1})]))}};exports.default=C;
|
@@ -10,7 +10,7 @@ import { read as U } from "../../store/events.js";
|
|
10
10
|
import { mutations as N } from "../../store/tickets.js";
|
11
11
|
import { state as s } from "../../../auth/store/auth.js";
|
12
12
|
import { useRoute as P } from "vue-router";
|
13
|
-
const V = { class: "pd-thin" },
|
13
|
+
const V = { class: "pd-thin" }, Q = {
|
14
14
|
__name: "Event",
|
15
15
|
setup(F) {
|
16
16
|
const g = P(), y = ({ ticket: t, hasTicket: i, targetId: n }) => {
|
@@ -47,7 +47,7 @@ const V = { class: "pd-thin" }, W = {
|
|
47
47
|
key: 0,
|
48
48
|
title: "No Event Found",
|
49
49
|
description: "Currently, there are no events available. Please check back later.",
|
50
|
-
class: "pd-medium mn-thin bg-grey radius-big"
|
50
|
+
class: "pd-medium mn-b-thin bg-grey radius-big"
|
51
51
|
})) : o("", !0)
|
52
52
|
]),
|
53
53
|
_: 1
|
@@ -65,7 +65,7 @@ const V = { class: "pd-thin" }, W = {
|
|
65
65
|
owner: e.value.owner,
|
66
66
|
user: s.user._id,
|
67
67
|
type: "normal",
|
68
|
-
class: "mn-medium bg-grey radius-big"
|
68
|
+
class: "mn-b-medium bg-grey radius-big"
|
69
69
|
}, {
|
70
70
|
default: m(() => [
|
71
71
|
s.user._id ? (r(), u(H, {
|
@@ -74,7 +74,7 @@ const V = { class: "pd-thin" }, W = {
|
|
74
74
|
hasTicket: e.value.hasTicket,
|
75
75
|
targetId: e.value._id,
|
76
76
|
userId: s.user._id,
|
77
|
-
class: "mn-small w-100 pd-medium mn-auto",
|
77
|
+
class: "mn-b-small w-100 pd-medium mn-auto",
|
78
78
|
onUpdateTicket: y
|
79
79
|
}, null, 8, ["hasTicket", "targetId", "userId"])) : o("", !0),
|
80
80
|
C("section", null, [
|
@@ -85,7 +85,7 @@ const V = { class: "pd-thin" }, W = {
|
|
85
85
|
prop: n,
|
86
86
|
class: n.class,
|
87
87
|
content: "content"
|
88
|
-
}, T(n), { class: "mn-regular" }), null, 16, ["index", "component", "prop", "class"]))), 128)) : o("", !0)
|
88
|
+
}, T(n), { class: "mn-b-regular" }), null, 16, ["index", "component", "prop", "class"]))), 128)) : o("", !0)
|
89
89
|
])
|
90
90
|
]),
|
91
91
|
_: 1
|
@@ -103,5 +103,5 @@ const V = { class: "pd-thin" }, W = {
|
|
103
103
|
}
|
104
104
|
};
|
105
105
|
export {
|
106
|
-
|
106
|
+
Q as default
|
107
107
|
};
|
@@ -1 +1 @@
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue");require("../../../../components/Loader/Loader.vue.cjs");const g=require("../../../../components/EmptyState/EmptyState.vue.cjs"),m=require("../blocks/CardEvent.vue.cjs"),v=require("../../../icons/skeletons/SkeletonEvent.vue.cjs"),c=require("../../store/events.cjs"),f={class:"feed"},y={__name:"Feed",props:{category:{type:String,default:null},selectedDate:{type:String,default:null},organization:{type:String,default:null},owner:{type:String,default:null},creator:{type:String,default:null},user:{type:[String,Number],default:null},sortOrder:{type:String,default:"desc"},sortParam:{type:String,default:"date.start"},participant:{type:String,default:null},period:{type:String,default:null},phase:{type:String,default:null}},setup(i){const t=i,a=e.ref([]),n=e.ref(!1),l=e.ref(!0),u=e.ref(0),s=e.ref(20),d=async()=>{if(n.value){u.value+=s.value;const r=await c.read({skip:u.value,limit:s.value,category:t.category,sortOrder:t.sortOrder,sortParam:t.sortParam,participant:t.participant,creator:t.creator,user:t.user,date:t.selectedDate,owner:t.owner,organization:t.organization,period:t.period,phase:t.phase});r.length===0?n.value=!1:n.value=!0,a.value=[...a.value,...r]}};return e.onMounted(async()=>{l.value=!0,console.log(t.selectedDate);const r=await c.read({skip:u.value,limit:s.value,category:t.category,participant:t.participant,sortOrder:t.sortOrder,sortParam:t.sortParam,user:t.user,owner:t.owner,creator:t.creator,date:t.selectedDate,organization:t.organization,period:t.period,phase:t.phase});r.length===0?n.value=!1:n.value=!0,a.value=r,l.value=!1}),(r,k)=>(e.openBlock(),e.createElementBlock("section",f,[e.createVNode(e.TransitionGroup,{tag:"ul",name:"scaleTransition",class:"o-hidden bg-grey radius-big"},{default:e.withCtx(()=>[l.value?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(s.value,o=>(e.openBlock(),e.createBlock(v.default,{key:o}))),128)):e.createCommentVNode("",!0)]),_:1}),e.createVNode(e.Transition,{name:"scaleTransition"},{default:e.withCtx(()=>[!l.value&&a.value.length<1?(e.openBlock(),e.createBlock(g.default,{key:0,title:"No Events Found",description:"Currently, there are no events available. Please check back later.",class:"pd-medium mn-thin bg-grey radius-big"})):e.createCommentVNode("",!0)]),_:1}),e.createVNode(e.TransitionGroup,{tag:"ul",name:"scaleTransition",class:"container"},{default:e.withCtx(()=>[!l.value&&a.value.length>0?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(a.value,(o,p)=>(e.openBlock(),e.createBlock(m.default,{onClick:h=>r.$router.push({name:"Event",params:{url:o.url}}),key:o._id,event:o,user:i.user,type:"normal",class:e.normalizeClass(["bg-grey radius-big mn-medium",{"br-b br-solid br-black-transp-10":p!==a.value.length-1}])},null,8,["onClick","event","user","class"]))),128)):e.createCommentVNode("",!0),n.value&&a.value.length>0?(e.openBlock(),e.createElementBlock("button",{key:1,onClick:d,class:"w-100 bg-main button"},"Load more")):e.createCommentVNode("",!0)]),_:1})]))}};exports.default=y;
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue");require("../../../../components/Loader/Loader.vue.cjs");const g=require("../../../../components/EmptyState/EmptyState.vue.cjs"),m=require("../blocks/CardEvent.vue.cjs"),v=require("../../../icons/skeletons/SkeletonEvent.vue.cjs"),c=require("../../store/events.cjs"),f={class:"feed"},y={__name:"Feed",props:{category:{type:String,default:null},selectedDate:{type:String,default:null},organization:{type:String,default:null},owner:{type:String,default:null},creator:{type:String,default:null},user:{type:[String,Number],default:null},sortOrder:{type:String,default:"desc"},sortParam:{type:String,default:"date.start"},participant:{type:String,default:null},period:{type:String,default:null},phase:{type:String,default:null}},setup(i){const t=i,a=e.ref([]),n=e.ref(!1),l=e.ref(!0),u=e.ref(0),s=e.ref(20),d=async()=>{if(n.value){u.value+=s.value;const r=await c.read({skip:u.value,limit:s.value,category:t.category,sortOrder:t.sortOrder,sortParam:t.sortParam,participant:t.participant,creator:t.creator,user:t.user,date:t.selectedDate,owner:t.owner,organization:t.organization,period:t.period,phase:t.phase});r.length===0?n.value=!1:n.value=!0,a.value=[...a.value,...r]}};return e.onMounted(async()=>{l.value=!0,console.log(t.selectedDate);const r=await c.read({skip:u.value,limit:s.value,category:t.category,participant:t.participant,sortOrder:t.sortOrder,sortParam:t.sortParam,user:t.user,owner:t.owner,creator:t.creator,date:t.selectedDate,organization:t.organization,period:t.period,phase:t.phase});r.length===0?n.value=!1:n.value=!0,a.value=r,l.value=!1}),(r,k)=>(e.openBlock(),e.createElementBlock("section",f,[e.createVNode(e.TransitionGroup,{tag:"ul",name:"scaleTransition",class:"o-hidden bg-grey radius-big"},{default:e.withCtx(()=>[l.value?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(s.value,o=>(e.openBlock(),e.createBlock(v.default,{key:o}))),128)):e.createCommentVNode("",!0)]),_:1}),e.createVNode(e.Transition,{name:"scaleTransition"},{default:e.withCtx(()=>[!l.value&&a.value.length<1?(e.openBlock(),e.createBlock(g.default,{key:0,title:"No Events Found",description:"Currently, there are no events available. Please check back later.",class:"pd-medium mn-b-thin bg-grey radius-big"})):e.createCommentVNode("",!0)]),_:1}),e.createVNode(e.TransitionGroup,{tag:"ul",name:"scaleTransition",class:"container"},{default:e.withCtx(()=>[!l.value&&a.value.length>0?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(a.value,(o,p)=>(e.openBlock(),e.createBlock(m.default,{onClick:h=>r.$router.push({name:"Event",params:{url:o.url}}),key:o._id,event:o,user:i.user,type:"normal",class:e.normalizeClass(["bg-grey radius-big mn-b-medium",{"br-b br-solid br-black-transp-10":p!==a.value.length-1}])},null,8,["onClick","event","user","class"]))),128)):e.createCommentVNode("",!0),n.value&&a.value.length>0?(e.openBlock(),e.createElementBlock("button",{key:1,onClick:d,class:"w-100 bg-main button"},"Load more")):e.createCommentVNode("",!0)]),_:1})]))}};exports.default=y;
|
@@ -3,7 +3,7 @@ import "../../../../components/Loader/Loader.vue.js";
|
|
3
3
|
import z from "../../../../components/EmptyState/EmptyState.vue.js";
|
4
4
|
import E from "../blocks/CardEvent.vue.js";
|
5
5
|
import P from "../../../icons/skeletons/SkeletonEvent.vue.js";
|
6
|
-
import { read as
|
6
|
+
import { read as b } from "../../store/events.js";
|
7
7
|
const O = { class: "feed" }, x = {
|
8
8
|
__name: "Feed",
|
9
9
|
props: {
|
@@ -53,10 +53,10 @@ const O = { class: "feed" }, x = {
|
|
53
53
|
}
|
54
54
|
},
|
55
55
|
setup(v) {
|
56
|
-
const e = v, t = s([]), n = s(!1), l = s(!0), d = s(0), i = s(20),
|
56
|
+
const e = v, t = s([]), n = s(!1), l = s(!0), d = s(0), i = s(20), k = async () => {
|
57
57
|
if (n.value) {
|
58
58
|
d.value += i.value;
|
59
|
-
const a = await
|
59
|
+
const a = await b({
|
60
60
|
skip: d.value,
|
61
61
|
limit: i.value,
|
62
62
|
category: e.category,
|
@@ -76,7 +76,7 @@ const O = { class: "feed" }, x = {
|
|
76
76
|
};
|
77
77
|
return S(async () => {
|
78
78
|
l.value = !0, console.log(e.selectedDate);
|
79
|
-
const a = await
|
79
|
+
const a = await b({
|
80
80
|
skip: d.value,
|
81
81
|
limit: i.value,
|
82
82
|
category: e.category,
|
@@ -109,7 +109,7 @@ const O = { class: "feed" }, x = {
|
|
109
109
|
key: 0,
|
110
110
|
title: "No Events Found",
|
111
111
|
description: "Currently, there are no events available. Please check back later.",
|
112
|
-
class: "pd-medium mn-thin bg-grey radius-big"
|
112
|
+
class: "pd-medium mn-b-thin bg-grey radius-big"
|
113
113
|
})) : c("", !0)
|
114
114
|
]),
|
115
115
|
_: 1
|
@@ -126,13 +126,13 @@ const O = { class: "feed" }, x = {
|
|
126
126
|
event: o,
|
127
127
|
user: v.user,
|
128
128
|
type: "normal",
|
129
|
-
class: C(["bg-grey radius-big mn-medium", {
|
129
|
+
class: C(["bg-grey radius-big mn-b-medium", {
|
130
130
|
"br-b br-solid br-black-transp-10": _ !== t.value.length - 1
|
131
131
|
}])
|
132
132
|
}, null, 8, ["onClick", "event", "user", "class"]))), 128)) : c("", !0),
|
133
133
|
n.value && t.value.length > 0 ? (r(), u("button", {
|
134
134
|
key: 1,
|
135
|
-
onClick:
|
135
|
+
onClick: k,
|
136
136
|
class: "w-100 bg-main button"
|
137
137
|
}, "Load more")) : c("", !0)
|
138
138
|
]),
|
@@ -1 +1 @@
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue");require("../../../../components/Loader/Loader.vue.cjs");const c=require("../../../../components/EmptyState/EmptyState.vue.cjs"),d=require("../blocks/CardEvent.vue.cjs"),p=require("../../../icons/skeletons/SkeletonEventShort.vue.cjs"),m=require("../../store/events.cjs");require("./List.vue2.cjs");const g={class:"today-events"},k={__name:"List",props:{category:{type:String,default:null},organization:{type:String,default:null},owner:{type:String,default:null},user:{type:[String,Number],default:null},period:{type:String,default:null},phase:{type:String,default:null}},setup(l){const t=l,r=e.ref([]),n=e.ref(!0),s=e.ref(0),u=e.ref(5);return e.onMounted(async()=>{const o=await m.read({skip:s.value,limit:u.value,sortOrder:"desc",category:t.category,user:t.user,owner:t.owner,organization:t.organization,period:t.period,phase:t.phase});r.value=o,n.value=!1}),(o,v)=>(e.openBlock(),e.createElementBlock("section",g,[e.createVNode(e.TransitionGroup,{tag:"ul",name:"fade",class:"o-hidden bg-grey radius-big"},{default:e.withCtx(()=>[n.value?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(u.value,a=>(e.openBlock(),e.createBlock(p.default,{key:a}))),128)):e.createCommentVNode("",!0)]),_:1}),e.createVNode(e.Transition,{name:"fade"},{default:e.withCtx(()=>[!n.value&&r.value.length<1?(e.openBlock(),e.createBlock(c.default,{key:0,title:"No Events Today",description:"Today, are no events available. Please check back later.",class:"pd-medium mn-thin bg-grey radius-big"})):e.createCommentVNode("",!0)]),_:1}),e.createVNode(e.TransitionGroup,{tag:"ul",name:"fade",class:"container"},{default:e.withCtx(()=>[!n.value&&r.value.length>0?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(r.value,(a,i)=>(e.openBlock(),e.createBlock(d.default,{onClick:f=>o.$router.push({name:"Event",params:{url:a.url}}),key:a._id,event:a,owner:l.user,type:"short",class:e.normalizeClass(["pd-medium",{"br-b br-solid br-black-transp-10":i!==r.value.length-1}])},null,8,["onClick","event","owner","class"]))),128)):e.createCommentVNode("",!0)]),_:1})]))}};exports.default=k;
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue");require("../../../../components/Loader/Loader.vue.cjs");const c=require("../../../../components/EmptyState/EmptyState.vue.cjs"),d=require("../blocks/CardEvent.vue.cjs"),p=require("../../../icons/skeletons/SkeletonEventShort.vue.cjs"),m=require("../../store/events.cjs");require("./List.vue2.cjs");const g={class:"today-events"},k={__name:"List",props:{category:{type:String,default:null},organization:{type:String,default:null},owner:{type:String,default:null},user:{type:[String,Number],default:null},period:{type:String,default:null},phase:{type:String,default:null}},setup(l){const t=l,r=e.ref([]),n=e.ref(!0),s=e.ref(0),u=e.ref(5);return e.onMounted(async()=>{const o=await m.read({skip:s.value,limit:u.value,sortOrder:"desc",category:t.category,user:t.user,owner:t.owner,organization:t.organization,period:t.period,phase:t.phase});r.value=o,n.value=!1}),(o,v)=>(e.openBlock(),e.createElementBlock("section",g,[e.createVNode(e.TransitionGroup,{tag:"ul",name:"fade",class:"o-hidden bg-grey radius-big"},{default:e.withCtx(()=>[n.value?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(u.value,a=>(e.openBlock(),e.createBlock(p.default,{key:a}))),128)):e.createCommentVNode("",!0)]),_:1}),e.createVNode(e.Transition,{name:"fade"},{default:e.withCtx(()=>[!n.value&&r.value.length<1?(e.openBlock(),e.createBlock(c.default,{key:0,title:"No Events Today",description:"Today, are no events available. Please check back later.",class:"pd-medium mn-b-thin bg-grey radius-big"})):e.createCommentVNode("",!0)]),_:1}),e.createVNode(e.TransitionGroup,{tag:"ul",name:"fade",class:"container"},{default:e.withCtx(()=>[!n.value&&r.value.length>0?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(r.value,(a,i)=>(e.openBlock(),e.createBlock(d.default,{onClick:f=>o.$router.push({name:"Event",params:{url:a.url}}),key:a._id,event:a,owner:l.user,type:"short",class:e.normalizeClass(["pd-medium",{"br-b br-solid br-black-transp-10":i!==r.value.length-1}])},null,8,["onClick","event","owner","class"]))),128)):e.createCommentVNode("",!0)]),_:1})]))}};exports.default=k;
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { ref as o, onMounted as h, openBlock as t, createElementBlock as i, createVNode as s, TransitionGroup as g, withCtx as u, Fragment as f, renderList as y, createBlock as c, createCommentVNode as d, Transition as
|
1
|
+
import { ref as o, onMounted as h, openBlock as t, createElementBlock as i, createVNode as s, TransitionGroup as g, withCtx as u, Fragment as f, renderList as y, createBlock as c, createCommentVNode as d, Transition as b, normalizeClass as _ } from "vue";
|
2
2
|
import "../../../../components/Loader/Loader.vue.js";
|
3
3
|
import S from "../../../../components/EmptyState/EmptyState.vue.js";
|
4
4
|
import w from "../blocks/CardEvent.vue.js";
|
@@ -59,13 +59,13 @@ const E = { class: "today-events" }, M = {
|
|
59
59
|
]),
|
60
60
|
_: 1
|
61
61
|
}),
|
62
|
-
s(
|
62
|
+
s(b, { name: "fade" }, {
|
63
63
|
default: u(() => [
|
64
64
|
!n.value && a.value.length < 1 ? (t(), c(S, {
|
65
65
|
key: 0,
|
66
66
|
title: "No Events Today",
|
67
67
|
description: "Today, are no events available. Please check back later.",
|
68
|
-
class: "pd-medium mn-thin bg-grey radius-big"
|
68
|
+
class: "pd-medium mn-b-thin bg-grey radius-big"
|
69
69
|
})) : d("", !0)
|
70
70
|
]),
|
71
71
|
_: 1
|
@@ -82,7 +82,7 @@ const E = { class: "today-events" }, M = {
|
|
82
82
|
event: r,
|
83
83
|
owner: m.user,
|
84
84
|
type: "short",
|
85
|
-
class:
|
85
|
+
class: _(["pd-medium", {
|
86
86
|
"br-b br-solid br-black-transp-10": k !== a.value.length - 1
|
87
87
|
}])
|
88
88
|
}, null, 8, ["onClick", "event", "owner", "class"]))), 128)) : d("", !0)
|
package/dist/prometheus-framework/src/modules/gallery/components/sections/BackofficeGallery.vue.cjs
CHANGED
@@ -1 +1 @@
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),I=require("../../../../components/Field/Field.vue2.cjs"),q=require("../../../../components/Button/Button.vue2.cjs"),M=require("../../../../components/Select/Select.vue2.cjs"),s=require("../../store/gallery.cjs"),P=require("../../../../components/EditImages/EditImages.vue.cjs");require("./BackofficeGallery.vue2.cjs");const j=require("../../../../../../_virtual/_plugin-vue_export-helper.cjs"),c=i=>(e.pushScopeId("data-v-
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),I=require("../../../../components/Field/Field.vue2.cjs"),q=require("../../../../components/Button/Button.vue2.cjs"),M=require("../../../../components/Select/Select.vue2.cjs"),s=require("../../store/gallery.cjs"),P=require("../../../../components/EditImages/EditImages.vue.cjs");require("./BackofficeGallery.vue2.cjs");const j=require("../../../../../../_virtual/_plugin-vue_export-helper.cjs"),c=i=>(e.pushScopeId("data-v-c506f5e5"),i=i(),e.popScopeId(),i),G={class:"pos-relative w-100"},D={class:"mn-b-semi flex-v-center flex-nowrap flex"},T=c(()=>e.createElementVNode("h1",{class:"mn-r-small"},"Manage Gallery",-1)),U=["data-id"],$=["src","onClick"],F={key:1,class:"radius-small bg-white"},O=["src","onClick"],L={class:"t-black p-small mn-b-thin"},A=c(()=>e.createElementVNode("span",{class:"uppercase t-transp"},"Size",-1)),H=c(()=>e.createElementVNode("br",null,null,-1)),R={class:"pd-2px radius-big d-inline-block bg-grey"},J={class:"t-black p-small mn-b-small uppe"},K=c(()=>e.createElementVNode("span",{class:"uppercase t-transp"},"Categories",-1)),Q=c(()=>e.createElementVNode("br",null,null,-1)),W={class:"pd-2px radius-big d-inline-block bg-grey t-semi"},X={class:"flex-nowrap flex"},Y=["onClick"],Z={class:"modal pd-thin"},ee={class:"modal-content radius-big"},te={class:""},le=["src"],oe={key:0,class:"flex-v-center flex m modal pd-big"},ae={class:"modal-content radius-small pd-medium bg-white"},se=["src"],ne=["src"],y=10,ce={__name:"BackofficeGallery",setup(i){const r=e.ref(!0),h=e.ref(null);let v=1,f=e.ref(null),_=e.ref(!1);const d=e.ref([]),E=o=>{d.value=o},w=e.computed(()=>k.value==="all"?s.state.gallery:s.state.gallery.filter(o=>o.categories.includes(k.value))),V=async()=>{_.value=!0,await s.actions.fetchGallery(v,y),_.value=!1},u=e.ref(null),t=e.ref({categories:"",size:"",image:!1}),m=e.ref(null),g=o=>{console.log(r.value),r.value?N(o):(u.value="modal",t.value.image=o,b())},N=o=>{u.value="edit-modal",t.value=o||{categories:"",size:"",image:null},b()},n=()=>{t.value={categories:"",size:"",image:!1},m.value=null,B()},b=()=>{document.body.style.overflow="hidden",document.documentElement.style.overflow="hidden"},B=()=>{document.body.style.overflow="",document.documentElement.style.overflow=""},C=[{name:"Small",value:""},{name:"Regular",value:"grid-item--width1 grid-item--height1"},{name:"Medium",value:"grid-item--width2 grid-item--height2"},{name:"Big",value:"grid-item--width3 grid-item--height3"}],x=async o=>{await s.actions.deletePhoto(o)},S=async()=>{await s.actions.updatePhoto(t.value),n()},z=async o=>{if(d.length<1||!t.value.categories||!t.value.size){console.error("All fields are required.");return}await s.actions.createPhoto({images:d.value,size:t.value.size,categories:typeof t.value.categories=="string"?t.value.categories.split(",").map(a=>a.trim()):t.value.categories}),n()};let k=e.ref("all");return e.onMounted(async()=>{await s.actions.fetchGallery(v,y),typeof window<"u"&&new IntersectionObserver(a=>{a.some(l=>l.isIntersecting)&&(v+=1,V())}).observe(f.value)}),(o,a)=>(e.openBlock(),e.createElementBlock("div",G,[e.createElementVNode("div",D,[T,r.value?(e.openBlock(),e.createElementBlock("button",{key:0,onClick:a[0]||(a[0]=l=>g(null)),class:"t-white t-black bg-second i-big radius-extra"},"+")):e.createCommentVNode("",!0)]),e.createElementVNode("div",{ref_key:"grid",ref:h,class:"cols-4 gap-thin"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(w.value,(l,re)=>(e.openBlock(),e.createElementBlock("div",{key:l.id,"data-id":l.id},[e.createVNode(e.Transition,{name:"scaleIn",mode:"in-out"},{default:e.withCtx(()=>[!r.value&&h.value?(e.openBlock(),e.createElementBlock("img",{key:0,src:"https://thecommunephuket.com/photos/"+l.cover,class:"w-100 h-100 o-hidden radius-medium object-fit-cover",onClick:p=>g(l.image)},null,8,$)):(e.openBlock(),e.createElementBlock("div",F,[e.createElementVNode("img",{src:"https://thecommunephuket.com/photos/"+l.cover,class:"w-100 radius-small mn-b-small h-10r object-fit-cover",onClick:p=>g(l)},null,8,O),e.createElementVNode("p",L,[A,H,e.createElementVNode("span",R,e.toDisplayString(l.size.name),1)]),e.createElementVNode("p",J,[K,Q,(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.categories,p=>(e.openBlock(),e.createElementBlock("span",W,e.toDisplayString(p),1))),256))]),e.createElementVNode("div",X,[e.createElementVNode("button",{class:"button-small w-100 button",onClick:p=>x(l._id)},"Delete",8,Y)])]))]),_:2},1024)],8,U))),128)),e.createElementVNode("div",{ref_key:"sentinel",ref:f,class:"sentinel"},null,512),e.createVNode(e.Transition,{name:"modal"},{default:e.withCtx(()=>[e.withDirectives(e.createElementVNode("div",Z,[e.createElementVNode("div",ee,[e.createElementVNode("div",te,[e.createElementVNode("span",{class:"close",onClick:n},"×"),e.createElementVNode("img",{src:"https://thecommunephuket.com/photos/"+t.value.image},null,8,le)])])],512),[[e.vShow,t.value.image!==!1&&u.value==="modal"]])]),_:1}),e.createVNode(e.Transition,{name:"modal"},{default:e.withCtx(()=>[t.value.image!==!1&&u.value==="edit-modal"?(e.openBlock(),e.createElementBlock("div",oe,[e.createElementVNode("div",ae,[e.createElementVNode("span",{class:"close",onClick:n},"×"),typeof m.value=="string"?(e.openBlock(),e.createElementBlock("img",{key:0,src:m.value,class:"radius-small w-100 mn-b-small h-20r object-fit-cover"},null,8,se)):e.createCommentVNode("",!0),typeof m.value=="object"&&t.value.image!==null?(e.openBlock(),e.createElementBlock("img",{key:1,class:"radius-small w-100 mn-b-small h-20r object-fit-cover",src:"/photos/"+t.value.cover},null,8,ne)):e.createCommentVNode("",!0),e.createVNode(M.default,{options:C,label:"Size",select:t.value.size,"onUpdate:select":a[1]||(a[1]=l=>t.value.size=l),placeholder:"Select Size",class:"bg-grey pd-thin radius-small mn-b-thin t-black"},null,8,["select"]),e.createVNode(I.default,{field:t.value.categories,"onUpdate:field":a[2]||(a[2]=l=>t.value.categories=l),type:"text",label:"Categories",placeholder:"Enter categories for image (comma separated)",class:"bg-grey pd-thin radius-small mn-b-medium t-black"},null,8,["field"]),e.createVNode(P.default,{images:d.value,"onUpdate:images":E,uploadPath:"photos",class:"mn-b-semi"},null,8,["images"]),e.createVNode(q.default,{submit:t.value._id?S:z,callback:n,class:"mn-b-thin"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(t.value._id?"Update":"Create"),1)]),_:1},8,["submit"])])])):e.createCommentVNode("",!0)]),_:1})],512)]))}},ie=j.default(ce,[["__scopeId","data-v-c506f5e5"]]);exports.default=ie;
|
package/dist/prometheus-framework/src/modules/gallery/components/sections/BackofficeGallery.vue.js
CHANGED
@@ -6,10 +6,10 @@ import { state as G, actions as d } from "../../store/gallery.js";
|
|
6
6
|
import Y from "../../../../components/EditImages/EditImages.vue.js";
|
7
7
|
import "./BackofficeGallery.vue2.js";
|
8
8
|
import Z from "../../../../../../_virtual/_plugin-vue_export-helper.js";
|
9
|
-
const u = (m) => (J("data-v-
|
9
|
+
const u = (m) => (J("data-v-c506f5e5"), m = m(), K(), m), ee = { class: "pos-relative w-100" }, te = { class: "mn-b-semi flex-v-center flex-nowrap flex" }, le = /* @__PURE__ */ u(() => /* @__PURE__ */ t("h1", { class: "mn-r-small" }, "Manage Gallery", -1)), se = ["data-id"], ae = ["src", "onClick"], oe = {
|
10
10
|
key: 1,
|
11
11
|
class: "radius-small bg-white"
|
12
|
-
}, ie = ["src", "onClick"], ne = { class: "t-black p-small mn-thin" }, ce = /* @__PURE__ */ u(() => /* @__PURE__ */ t("span", { class: "uppercase t-transp" }, "Size", -1)), re = /* @__PURE__ */ u(() => /* @__PURE__ */ t("br", null, null, -1)), de = { class: "pd-2px radius-big d-inline-block bg-grey" }, ue = { class: "t-black p-small mn-small uppe" }, me = /* @__PURE__ */ u(() => /* @__PURE__ */ t("span", { class: "uppercase t-transp" }, "Categories", -1)), pe = /* @__PURE__ */ u(() => /* @__PURE__ */ t("br", null, null, -1)), ve = { class: "pd-2px radius-big d-inline-block bg-grey t-semi" }, ge = { class: "flex-nowrap flex" }, he = ["onClick"], _e = { class: "modal pd-thin" }, fe = { class: "modal-content radius-big" }, be = { class: "" }, ye = ["src"], ke = {
|
12
|
+
}, ie = ["src", "onClick"], ne = { class: "t-black p-small mn-b-thin" }, ce = /* @__PURE__ */ u(() => /* @__PURE__ */ t("span", { class: "uppercase t-transp" }, "Size", -1)), re = /* @__PURE__ */ u(() => /* @__PURE__ */ t("br", null, null, -1)), de = { class: "pd-2px radius-big d-inline-block bg-grey" }, ue = { class: "t-black p-small mn-b-small uppe" }, me = /* @__PURE__ */ u(() => /* @__PURE__ */ t("span", { class: "uppercase t-transp" }, "Categories", -1)), pe = /* @__PURE__ */ u(() => /* @__PURE__ */ t("br", null, null, -1)), ve = { class: "pd-2px radius-big d-inline-block bg-grey t-semi" }, ge = { class: "flex-nowrap flex" }, he = ["onClick"], _e = { class: "modal pd-thin" }, fe = { class: "modal-content radius-big" }, be = { class: "" }, ye = ["src"], ke = {
|
13
13
|
key: 0,
|
14
14
|
class: "flex-v-center flex m modal pd-big"
|
15
15
|
}, we = { class: "modal-content radius-small pd-medium bg-white" }, xe = ["src"], Ce = ["src"], $ = 10, ze = {
|
@@ -99,7 +99,7 @@ const u = (m) => (J("data-v-d6a1c805"), m = m(), K(), m), ee = { class: "pos-rel
|
|
99
99
|
}, null, 8, ae)) : (a(), o("div", oe, [
|
100
100
|
t("img", {
|
101
101
|
src: "https://thecommunephuket.com/photos/" + l.cover,
|
102
|
-
class: "w-100 radius-small mn-small h-10r object-fit-cover",
|
102
|
+
class: "w-100 radius-small mn-b-small h-10r object-fit-cover",
|
103
103
|
onClick: (_) => k(l)
|
104
104
|
}, null, 8, ie),
|
105
105
|
t("p", ne, [
|
@@ -159,11 +159,11 @@ const u = (m) => (J("data-v-d6a1c805"), m = m(), K(), m), ee = { class: "pos-rel
|
|
159
159
|
typeof h.value == "string" ? (a(), o("img", {
|
160
160
|
key: 0,
|
161
161
|
src: h.value,
|
162
|
-
class: "radius-small w-100 mn-small h-20r object-fit-cover"
|
162
|
+
class: "radius-small w-100 mn-b-small h-20r object-fit-cover"
|
163
163
|
}, null, 8, xe)) : f("", !0),
|
164
164
|
typeof h.value == "object" && e.value.image !== null ? (a(), o("img", {
|
165
165
|
key: 1,
|
166
|
-
class: "radius-small w-100 mn-small h-20r object-fit-cover",
|
166
|
+
class: "radius-small w-100 mn-b-small h-20r object-fit-cover",
|
167
167
|
src: "/photos/" + e.value.cover
|
168
168
|
}, null, 8, Ce)) : f("", !0),
|
169
169
|
c(X, {
|
@@ -172,7 +172,7 @@ const u = (m) => (J("data-v-d6a1c805"), m = m(), K(), m), ee = { class: "pos-rel
|
|
172
172
|
select: e.value.size,
|
173
173
|
"onUpdate:select": i[1] || (i[1] = (l) => e.value.size = l),
|
174
174
|
placeholder: "Select Size",
|
175
|
-
class: "bg-grey pd-thin radius-small mn-thin t-black"
|
175
|
+
class: "bg-grey pd-thin radius-small mn-b-thin t-black"
|
176
176
|
}, null, 8, ["select"]),
|
177
177
|
c(Q, {
|
178
178
|
field: e.value.categories,
|
@@ -180,18 +180,18 @@ const u = (m) => (J("data-v-d6a1c805"), m = m(), K(), m), ee = { class: "pos-rel
|
|
180
180
|
type: "text",
|
181
181
|
label: "Categories",
|
182
182
|
placeholder: "Enter categories for image (comma separated)",
|
183
|
-
class: "bg-grey pd-thin radius-small mn-medium t-black"
|
183
|
+
class: "bg-grey pd-thin radius-small mn-b-medium t-black"
|
184
184
|
}, null, 8, ["field"]),
|
185
185
|
c(Y, {
|
186
186
|
images: v.value,
|
187
187
|
"onUpdate:images": j,
|
188
188
|
uploadPath: "photos",
|
189
|
-
class: "mn-semi"
|
189
|
+
class: "mn-b-semi"
|
190
190
|
}, null, 8, ["images"]),
|
191
191
|
c(W, {
|
192
192
|
submit: e.value._id ? O : T,
|
193
193
|
callback: r,
|
194
|
-
class: "mn-thin"
|
194
|
+
class: "mn-b-thin"
|
195
195
|
}, {
|
196
196
|
default: b(() => [
|
197
197
|
H(x(e.value._id ? "Update" : "Create"), 1)
|
@@ -206,7 +206,7 @@ const u = (m) => (J("data-v-d6a1c805"), m = m(), K(), m), ee = { class: "pos-rel
|
|
206
206
|
], 512)
|
207
207
|
]));
|
208
208
|
}
|
209
|
-
}, Ue = /* @__PURE__ */ Z(ze, [["__scopeId", "data-v-
|
209
|
+
}, Ue = /* @__PURE__ */ Z(ze, [["__scopeId", "data-v-c506f5e5"]]);
|
210
210
|
export {
|
211
211
|
Ue as default
|
212
212
|
};
|
@@ -1 +1 @@
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),x=require("vue-router"),z=require("../../../../components/Field/Field.vue2.cjs"),S=require("../../../../components/Button/Button.vue2.cjs"),q=require("../../../../components/Select/Select.vue2.cjs"),M=require("../../../../components/Upload/Upload.vue.cjs"),s=require("../../store/gallery.cjs");require("./GalleryWithCategories.vue2.cjs");const F=require("../../../../../../_virtual/_plugin-vue_export-helper.cjs"),I={class:"pd-medium flex-nowrap flex pd-t-thin pd-b-thin o-scroll"},P=["onClick"],j=["data-id"],G=["src","onClick"],R={class:"modal pd-thin"},T={class:"modal-content radius-big"},U={class:""},D=["src"],L={key:0,class:"flex-v-center flex m modal pd-big"},O={class:"modal-content radius-small pd-medium bg-white"},$=["src"],A=["src"],W=!1,
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),x=require("vue-router"),z=require("../../../../components/Field/Field.vue2.cjs"),S=require("../../../../components/Button/Button.vue2.cjs"),q=require("../../../../components/Select/Select.vue2.cjs"),M=require("../../../../components/Upload/Upload.vue.cjs"),s=require("../../store/gallery.cjs");require("./GalleryWithCategories.vue2.cjs");const F=require("../../../../../../_virtual/_plugin-vue_export-helper.cjs"),I={class:"pd-medium flex-nowrap flex pd-t-thin pd-b-thin o-scroll"},P=["onClick"],j=["data-id"],G=["src","onClick"],R={class:"modal pd-thin"},T={class:"modal-content radius-big"},U={class:""},D=["src"],L={key:0,class:"flex-v-center flex m modal pd-big"},O={class:"modal-content radius-small pd-medium bg-white"},$=["src"],A=["src"],W=!1,f=10,H={__name:"GalleryWithCategories",setup(K){x.useRoute();const m=e.ref(null),h=["all","place","drinks","people","events"];let d=1,v=e.ref(null),g=e.ref(!1);const _=e.computed(()=>c.value==="all"?s.state.gallery:s.state.gallery.filter(a=>a.categories.includes(c.value))),k=async()=>{g.value=!0,await s.actions.fetchGallery(d,f),g.value=!1},r=e.ref(null),t=e.ref({categories:"",size:"",image:!1}),i=e.ref(null),y=a=>{W.value?b(a):(r.value="modal",t.value.image=a,p())},b=a=>{r.value="edit-modal",t.value=a||{categories:"",size:"",image:null},p()},n=()=>{t.value={categories:"",size:"",image:!1},i.value=null,w()},p=()=>{document.body.style.overflow="hidden",document.documentElement.style.overflow="hidden"},w=()=>{document.body.style.overflow="",document.documentElement.style.overflow=""},V=[{name:"Small",value:""},{name:"Regular",value:"grid-item--width1 grid-item--height1"},{name:"Medium",value:"grid-item--width2 grid-item--height2"},{name:"Big",value:"grid-item--width3 grid-item--height3"}],C=async()=>{await s.actions.updatePhoto(t.value),n()},E=a=>{const o=a.files;if(t.value.image=o,o&&o.length>0){const l=new FileReader;l.onload=u=>{i.value=u.target.result},l.readAsDataURL(o[0])}},N=async a=>{if(!t.value.image||!t.value.categories||!t.value.size){console.error("All fields are required.");return}await s.actions.createPhoto({...t.value,size:t.value.size,categories:typeof t.value.categories=="string"?t.value.categories.split(",").map(o=>o.trim()):t.value.categories}),n()};let c=e.ref("all");const B=a=>{c.value=a};return e.onMounted(async()=>{await s.actions.fetchGallery(d,f),typeof window<"u"&&new IntersectionObserver(o=>{o.some(l=>l.isIntersecting)&&(d+=1,k())}).observe(v.value)}),(a,o)=>(e.openBlock(),e.createElementBlock("div",null,[e.createElementVNode("div",I,[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(h,l=>e.createElementVNode("a",{key:l,onClick:u=>B(l),class:e.normalizeClass(["h3 uppercase mn-r-big",{"t-transp":e.unref(c)!==l}])},e.toDisplayString(a.$t("gallery.categories."+l)),11,P)),64)),e.createCommentVNode("",!0)]),e.createElementVNode("div",{ref_key:"grid",ref:m,class:"pd-medium cols-4 gap-thin"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(_.value,(l,u)=>(e.openBlock(),e.createElementBlock("div",{key:l.id,"data-id":l.id},[e.createVNode(e.Transition,{name:"scaleIn",mode:"in-out"},{default:e.withCtx(()=>[m.value?(e.openBlock(),e.createElementBlock("img",{key:0,src:"https://thecommunephuket.com/photos/"+l.cover,class:"w-100 h-100 o-hidden radius-medium object-fit-cover",onClick:Q=>y(l.image)},null,8,G)):e.createCommentVNode("",!0)]),_:2},1024)],8,j))),128)),e.createElementVNode("div",{ref_key:"sentinel",ref:v,class:"sentinel"},null,512),e.createVNode(e.Transition,{name:"modal"},{default:e.withCtx(()=>[e.withDirectives(e.createElementVNode("div",R,[e.createElementVNode("div",T,[e.createElementVNode("div",U,[e.createElementVNode("span",{class:"close",onClick:n},"×"),e.createElementVNode("img",{src:"https://thecommunephuket.com/photos/"+t.value.image},null,8,D)])])],512),[[e.vShow,t.value.image!==!1&&r.value==="modal"]])]),_:1}),e.createVNode(e.Transition,{name:"modal"},{default:e.withCtx(()=>[t.value.image!==!1&&r.value==="edit-modal"?(e.openBlock(),e.createElementBlock("div",L,[e.createElementVNode("div",O,[e.createElementVNode("span",{class:"close",onClick:n},"×"),typeof i.value=="string"?(e.openBlock(),e.createElementBlock("img",{key:0,src:i.value,class:"radius-small w-100 mn-b-small h-20r object-fit-cover"},null,8,$)):e.createCommentVNode("",!0),typeof i.value=="object"&&t.value.image!==null?(e.openBlock(),e.createElementBlock("img",{key:1,class:"radius-small w-100 mn-b-small h-20r object-fit-cover",src:"/photos/"+t.value.cover},null,8,A)):e.createCommentVNode("",!0),t.value._id?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(M.default,{key:2,id:"photo",name:"photo",type:"file",class:"t-black bg-grey pd-thin radius-small mn-b-thin",onFileChange:E,multiple:"true"})),e.createVNode(q.default,{options:V,label:"Size",select:t.value.size,"onUpdate:select":o[1]||(o[1]=l=>t.value.size=l),placeholder:"Select Size",class:"bg-grey pd-thin radius-small mn-b-thin t-black"},null,8,["select"]),e.createVNode(z.default,{field:t.value.categories,"onUpdate:field":o[2]||(o[2]=l=>t.value.categories=l),type:"text",label:"Categories",placeholder:"Enter categories for image (comma separated)",class:"bg-grey pd-thin radius-small mn-b-medium t-black"},null,8,["field"]),e.createVNode(S.default,{submit:t.value._id?C:N,callback:n,class:"mn-b-thin"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(t.value._id?"Update":"Create"),1)]),_:1},8,["submit"])])])):e.createCommentVNode("",!0)]),_:1})],512)]))}},J=F.default(H,[["__scopeId","data-v-9df3ef50"]]);exports.default=J;
|