@ozdao/prometheus-framework 0.2.188 → 0.2.190
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/builder.js +6 -3
- package/dist/builder.mjs +6 -3
- package/dist/node_modules/@unhead/vue/dist/shared/vue.cf295fb1.cjs +1 -0
- package/dist/node_modules/@unhead/vue/dist/shared/vue.cf295fb1.js +26 -0
- package/dist/node_modules/@unhead/vue/dist/shared/vue.f36acd1f.cjs +1 -0
- package/dist/node_modules/@unhead/vue/dist/shared/vue.f36acd1f.js +26 -0
- package/dist/node_modules/unhead/dist/index.cjs +1 -0
- package/dist/node_modules/unhead/dist/index.js +7 -0
- package/dist/prometheus-framework/src/components/Feed/Feed.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/Feed/Feed.vue.js +6 -6
- package/dist/prometheus-framework/src/components/LocationSelection/LocationSelection.vue.cjs +1 -0
- package/dist/prometheus-framework/src/components/LocationSelection/LocationSelection.vue.js +96 -0
- package/dist/prometheus-framework/src/components/Sidebar/Sidebar.vue.cjs +1 -0
- package/dist/prometheus-framework/src/components/Sidebar/Sidebar.vue.js +74 -0
- package/dist/prometheus-framework/src/components/Status/Status.vue.cjs +1 -0
- package/dist/prometheus-framework/src/components/Status/Status.vue.js +29 -0
- package/dist/prometheus-framework/src/modules/auth/views/components/pages/EnterCode.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/auth/views/components/pages/EnterCode.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/auth/views/store/auth.cjs +1 -1
- package/dist/prometheus-framework/src/modules/auth/views/store/auth.js +1 -1
- package/dist/prometheus-framework/src/modules/auth/views/store/twofa.cjs +1 -1
- package/dist/prometheus-framework/src/modules/auth/views/store/twofa.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 +2 -2
- 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 +73 -42
- 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 +1 -1
- 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 +1 -1
- package/dist/prometheus-framework/src/modules/community/components/sections/Comment.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/community/components/sections/Comment.vue.js +1 -1
- 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 +1 -1
- package/dist/prometheus-framework/src/modules/community/store/blogposts.cjs +1 -1
- package/dist/prometheus-framework/src/modules/community/store/blogposts.js +1 -1
- package/dist/prometheus-framework/src/modules/community/store/reactions.cjs +1 -1
- package/dist/prometheus-framework/src/modules/community/store/reactions.js +1 -1
- 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 +2 -2
- 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/pages/EditEvent.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/events/components/pages/EditEvent.vue.js +1 -1
- 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 +1 -1
- package/dist/prometheus-framework/src/modules/events/store/events.cjs +1 -1
- package/dist/prometheus-framework/src/modules/events/store/events.js +1 -1
- package/dist/prometheus-framework/src/modules/events/store/tickets.cjs +1 -1
- package/dist/prometheus-framework/src/modules/events/store/tickets.js +1 -1
- package/dist/prometheus-framework/src/modules/gallery/components/pages/Gallery.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/gallery/components/pages/Gallery.vue.js +2 -2
- 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 +5 -5
- package/dist/prometheus-framework/src/modules/gallery/store/gallery.cjs +1 -1
- package/dist/prometheus-framework/src/modules/gallery/store/gallery.js +1 -1
- package/dist/prometheus-framework/src/modules/globals/globals.client.cjs +1 -1
- package/dist/prometheus-framework/src/modules/globals/globals.client.js +37 -10
- package/dist/prometheus-framework/src/modules/globals/views/classes/globals.store.cjs +1 -0
- package/dist/prometheus-framework/src/modules/globals/views/classes/globals.store.js +72 -0
- package/dist/prometheus-framework/src/modules/globals/views/components/blocks/BlockFilter.vue.cjs +1 -0
- package/dist/prometheus-framework/src/modules/globals/views/components/blocks/BlockFilter.vue.js +57 -0
- package/dist/prometheus-framework/src/modules/globals/views/components/blocks/BlockSearch.vue.cjs +1 -0
- package/dist/prometheus-framework/src/modules/globals/views/components/blocks/BlockSearch.vue.js +35 -0
- package/dist/prometheus-framework/src/modules/globals/views/components/blocks/BlockSorting.vue.cjs +1 -0
- package/dist/prometheus-framework/src/modules/globals/views/components/blocks/BlockSorting.vue.js +75 -0
- package/dist/prometheus-framework/src/modules/globals/views/components/blocks/CardHeader.vue.cjs +1 -0
- package/dist/prometheus-framework/src/modules/globals/views/components/blocks/CardHeader.vue.js +194 -0
- package/dist/prometheus-framework/src/modules/globals/views/components/elements/ButtonDate.vue.cjs +1 -0
- package/dist/prometheus-framework/src/modules/globals/views/components/elements/ButtonDate.vue.js +38 -0
- package/dist/prometheus-framework/src/modules/globals/views/components/elements/ButtonSort.vue.cjs +1 -0
- package/dist/prometheus-framework/src/modules/globals/views/components/elements/ButtonSort.vue.js +31 -0
- package/dist/prometheus-framework/src/modules/globals/views/components/layouts/App.vue.cjs +1 -0
- package/dist/prometheus-framework/src/modules/globals/views/components/layouts/App.vue.js +92 -0
- package/dist/prometheus-framework/src/modules/globals/views/components/layouts/Client.vue.cjs +1 -0
- package/dist/prometheus-framework/src/modules/globals/views/components/layouts/Client.vue.js +197 -0
- package/dist/prometheus-framework/src/modules/globals/views/components/layouts/Empty.vue.cjs +1 -0
- package/dist/prometheus-framework/src/modules/globals/views/components/layouts/Empty.vue.js +16 -0
- package/dist/prometheus-framework/src/modules/globals/views/components/pages/401.vue.cjs +1 -0
- package/dist/prometheus-framework/src/modules/globals/views/components/pages/401.vue.js +10 -0
- package/dist/prometheus-framework/src/modules/globals/views/components/pages/404.vue.cjs +1 -0
- package/dist/prometheus-framework/src/modules/globals/views/components/pages/404.vue.js +10 -0
- package/dist/prometheus-framework/src/modules/globals/views/components/partials/BottomNavigation.vue.cjs +1 -0
- package/dist/prometheus-framework/src/modules/globals/views/components/partials/BottomNavigation.vue.js +157 -0
- package/dist/prometheus-framework/src/modules/globals/views/components/partials/Navigation.vue.cjs +1 -0
- package/dist/prometheus-framework/src/modules/globals/views/components/partials/Navigation.vue.js +95 -0
- package/dist/prometheus-framework/src/modules/globals/views/components/sections/SectionPageTitle.vue.cjs +1 -0
- package/dist/prometheus-framework/src/modules/globals/views/components/sections/SectionPageTitle.vue.js +54 -0
- package/dist/prometheus-framework/src/modules/globals/views/components/sections/Walkthrough.vue.cjs +1 -0
- package/dist/prometheus-framework/src/modules/globals/views/components/sections/Walkthrough.vue.js +126 -0
- package/dist/prometheus-framework/src/modules/globals/views/localization/get-browser-locale.cjs +1 -0
- package/dist/prometheus-framework/src/modules/globals/views/localization/get-browser-locale.js +7 -0
- package/dist/prometheus-framework/src/modules/globals/views/mixins/mixins.cjs +1 -0
- package/dist/prometheus-framework/src/modules/globals/views/mixins/mixins.js +47 -0
- package/dist/prometheus-framework/src/modules/globals/views/router/scrollBehavior.cjs +1 -0
- package/dist/prometheus-framework/src/modules/globals/views/router/scrollBehavior.js +18 -0
- package/dist/prometheus-framework/src/modules/globals/views/store/globals.cjs +1 -0
- package/dist/prometheus-framework/src/modules/globals/views/store/globals.js +83 -0
- package/dist/prometheus-framework/src/modules/landing/components/sections/SubscribeNewsletter.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/landing/components/sections/SubscribeNewsletter.vue.js +11 -11
- package/dist/prometheus-framework/src/modules/orders/components/pages/Order.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/orders/components/pages/Order.vue.js +3 -3
- package/dist/prometheus-framework/src/modules/orders/components/pages/OrderBackoffice.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/orders/components/pages/OrderBackoffice.vue.js +4 -4
- package/dist/prometheus-framework/src/modules/orders/components/pages/OrderCreate.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/orders/components/pages/OrderCreate.vue.js +1 -1
- 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/pages/Orders.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/orders/components/pages/Orders.vue.js +2 -2
- 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 +1 -1
- 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 +3 -3
- 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/orders/router/orders.backoffice.router.cjs +1 -1
- package/dist/prometheus-framework/src/modules/orders/router/orders.backoffice.router.js +1 -1
- package/dist/prometheus-framework/src/modules/orders/router/orders.router.cjs +1 -1
- package/dist/prometheus-framework/src/modules/orders/router/orders.router.js +1 -1
- package/dist/prometheus-framework/src/modules/orders/store/applications.cjs +1 -1
- package/dist/prometheus-framework/src/modules/orders/store/applications.js +1 -1
- package/dist/prometheus-framework/src/modules/orders/store/customers.store.cjs +1 -1
- package/dist/prometheus-framework/src/modules/orders/store/customers.store.js +1 -1
- package/dist/prometheus-framework/src/modules/orders/store/orders.cjs +1 -1
- package/dist/prometheus-framework/src/modules/orders/store/orders.js +1 -1
- package/dist/prometheus-framework/src/modules/orders/store/shopcart.cjs +1 -1
- package/dist/prometheus-framework/src/modules/orders/store/shopcart.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 +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 +5 -5
- 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 +3 -3
- package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationEdit.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationEdit.vue.js +2 -2
- 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 +2 -2
- 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 +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/sections/MembersAdd.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/sections/MembersAdd.vue.js +2 -2
- 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 +4 -4
- package/dist/prometheus-framework/src/modules/organizations/router/backoffice.router.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/router/backoffice.router.js +1 -1
- package/dist/prometheus-framework/src/modules/organizations/router/organizations.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/router/organizations.js +1 -1
- package/dist/prometheus-framework/src/modules/organizations/store/departments.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/store/departments.js +1 -1
- package/dist/prometheus-framework/src/modules/organizations/store/invites.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/store/invites.js +1 -1
- package/dist/prometheus-framework/src/modules/organizations/store/memberships.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/store/memberships.js +1 -1
- package/dist/prometheus-framework/src/modules/organizations/store/organizations.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/store/organizations.js +1 -1
- package/dist/prometheus-framework/src/modules/pages/views/components/pages/Page.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/pages/views/components/pages/Page.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/pages/views/components/pages/PageEdit.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/pages/views/components/pages/PageEdit.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/pages/views/components/pages/Pages.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/pages/views/components/pages/Pages.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/pages/views/components/partials/SidebarPages.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/pages/views/components/partials/SidebarPages.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/pages/views/router/pages.backoffice.router.cjs +1 -1
- package/dist/prometheus-framework/src/modules/pages/views/router/pages.backoffice.router.js +1 -1
- package/dist/prometheus-framework/src/modules/pages/views/router/pages.router.cjs +1 -1
- package/dist/prometheus-framework/src/modules/pages/views/router/pages.router.js +1 -1
- package/dist/prometheus-framework/src/modules/pages/views/store/pages.cjs +1 -1
- package/dist/prometheus-framework/src/modules/pages/views/store/pages.js +1 -1
- package/dist/prometheus-framework/src/modules/products/components/blocks/CardLeftover.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/blocks/CardLeftover.vue.js +3 -3
- 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 +1 -1
- package/dist/prometheus-framework/src/modules/products/components/blocks/ImagesThumbnails.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/blocks/ImagesThumbnails.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/products/components/pages/CategoryEdit.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/pages/CategoryEdit.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/products/components/pages/EditLeftover.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/pages/EditLeftover.vue.js +3 -3
- 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/Products.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/pages/Products.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 +1 -1
- package/dist/prometheus-framework/src/modules/products/store/categories.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/store/categories.js +1 -1
- package/dist/prometheus-framework/src/modules/products/store/leftovers.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/store/leftovers.js +1 -1
- package/dist/prometheus-framework/src/modules/products/store/products.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/store/products.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/reports/store/reports.cjs +1 -1
- package/dist/prometheus-framework/src/modules/reports/store/reports.js +1 -1
- 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 +1 -1
- package/dist/prometheus-framework/src/modules/spots/components/blocks/SpotMemberModify.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/spots/components/blocks/SpotMemberModify.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/spots/components/layouts/Spots.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/spots/components/layouts/Spots.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/spots/components/pages/Map.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/spots/components/pages/Map.vue.js +3 -3
- package/dist/prometheus-framework/src/modules/spots/components/pages/SpotEdit.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/spots/components/pages/SpotEdit.vue.js +4 -4
- package/dist/prometheus-framework/src/modules/spots/router/spots.cjs +1 -1
- package/dist/prometheus-framework/src/modules/spots/router/spots.js +1 -1
- package/dist/prometheus-framework/src/modules/spots/store/spots.cjs +1 -1
- package/dist/prometheus-framework/src/modules/spots/store/spots.js +1 -1
- 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 +1 -1
- package/dist/prometheus-framework/src/modules/wallet/views/components/blocks/CryptoDeposit.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/wallet/views/components/blocks/CryptoDeposit.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/wallet/views/components/pages/Payments.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/wallet/views/components/pages/Payments.vue.js +1 -1
- 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 +4 -4
- package/dist/prometheus-framework/src/modules/wallet/views/store/payments.store.cjs +1 -1
- package/dist/prometheus-framework/src/modules/wallet/views/store/payments.store.js +1 -1
- package/dist/prometheus-framework/src/modules/wallet/views/store/wallet.store.cjs +1 -1
- package/dist/prometheus-framework/src/modules/wallet/views/store/wallet.store.js +1 -1
- package/dist/style.css +1 -1
- package/package.json +1 -1
- package/src/builder/modes/ssr.dev.js +4 -1
- package/src/builder/templates/page.js +1 -1
- package/src/builder/webpack/webpack.config.base.js +2 -1
- package/src/builder/webpack/webpack.config.spa.js +0 -1
- package/src/components/Feed/Feed.vue +5 -5
- package/src/components/LocationSelection/LocationSelection.vue +5 -6
- package/src/components/Sidebar/Sidebar.vue +1 -1
- package/src/modules/auth/controllers/services/twofa.service.js +1 -1
- package/src/modules/auth/views/components/pages/EnterCode.vue +1 -1
- package/src/modules/auth/views/store/auth.js +1 -1
- package/src/modules/auth/views/store/twofa.js +1 -1
- package/src/modules/auth/views/validations/inputs.validation.js +1 -1
- package/src/modules/backoffice/router/backoffice.js +1 -1
- package/src/modules/chats/controllers/chats.controller.js +1 -1
- package/src/modules/community/components/blocks/CardBlogpost.vue +1 -1
- package/src/modules/community/components/pages/BlogPost.vue +63 -2
- package/src/modules/community/components/sections/Comment.vue +1 -1
- package/src/modules/community/models/blogpost.model.js +4 -4
- package/src/modules/community/store/blogposts.js +1 -1
- package/src/modules/community/store/reactions.js +1 -1
- package/src/modules/events/components/blocks/CardEvent.vue +2 -2
- package/src/modules/events/controllers/events.controller.js +1 -1
- package/src/modules/events/controllers/tickets.controller.js +1 -1
- package/src/modules/events/models/event.model.js +4 -4
- package/src/modules/events/store/events.js +1 -1
- package/src/modules/events/store/tickets.js +1 -1
- package/src/modules/gallery/components/pages/Gallery.vue +2 -2
- package/src/modules/gallery/components/sections/BackofficeGallery.vue +2 -2
- package/src/modules/gallery/models/photo.model.js +3 -3
- package/src/modules/gallery/store/gallery.js +1 -1
- package/src/modules/globals/{services → controllers/classes}/globals.crud.js +2 -2
- package/src/modules/globals/globals.client.js +83 -8
- package/src/modules/globals/globals.server.js +3 -3
- package/src/modules/globals/models/{metadata.schema.js → schemas/metadata.schema.js} +1 -1
- package/src/modules/globals/{services → views/classes}/globals.store.js +1 -1
- package/src/modules/globals/{components → views/components}/blocks/BlockSorting.vue +1 -1
- package/src/modules/globals/views/components/layouts/App.vue +104 -0
- package/src/modules/globals/{components → views/components}/layouts/Client.vue +31 -53
- package/src/modules/globals/{components → views/components}/partials/BottomNavigation.vue +0 -2
- package/src/modules/globals/{components → views/components}/partials/Header.vue +15 -11
- package/src/modules/globals/{components → views/components}/partials/Navigation.vue +4 -4
- package/src/modules/globals/{components → views/components}/sections/Walkthrough.vue +1 -1
- package/src/modules/globals/views/middlewares/localization.js +16 -0
- package/src/modules/integrations/stripe/controllers/webhooks/stripe.webhook.js +2 -2
- package/src/modules/landing/components/sections/SubscribeNewsletter.vue +1 -1
- package/src/modules/marketplace/components/layouts/Marketplace.vue +1 -1
- package/src/modules/marketplace/router/marketplace.js +1 -1
- package/src/modules/orders/components/pages/Order.vue +1 -1
- package/src/modules/orders/components/pages/OrderBackoffice.vue +2 -2
- package/src/modules/orders/components/pages/OrderCreate.vue +1 -1
- package/src/modules/orders/components/pages/OrderCreateBackoffice.vue +2 -2
- package/src/modules/orders/components/pages/Orders.vue +2 -2
- package/src/modules/orders/components/sections/FormAddCustomer.vue +2 -2
- package/src/modules/orders/components/sections/FormDelivery.vue +1 -1
- package/src/modules/orders/controllers/applications.controller.js +1 -1
- package/src/modules/orders/controllers/orders.controller.js +1 -1
- package/src/modules/orders/models/customer.model.js +3 -3
- package/src/modules/orders/models/order.model.js +1 -1
- package/src/modules/orders/orders.server.js +1 -1
- package/src/modules/orders/router/orders.backoffice.router.js +1 -1
- package/src/modules/orders/router/orders.router.js +1 -1
- package/src/modules/orders/store/applications.js +1 -1
- package/src/modules/orders/store/customers.store.js +1 -1
- package/src/modules/orders/store/orders.js +1 -1
- package/src/modules/orders/store/shopcart.js +1 -1
- package/src/modules/organizations/components/pages/DepartmentEdit.vue +1 -1
- package/src/modules/organizations/components/pages/Members.vue +2 -2
- package/src/modules/organizations/components/sections/MembersAdd.vue +1 -1
- package/src/modules/organizations/controllers/invites.controller.js +1 -1
- package/src/modules/organizations/controllers/organizations.controller.js +1 -1
- package/src/modules/organizations/models/invite.model.js +2 -2
- package/src/modules/organizations/models/organization.model.js +1 -1
- package/src/modules/organizations/router/backoffice.router.js +1 -1
- package/src/modules/organizations/router/organizations.js +1 -1
- package/src/modules/organizations/store/departments.js +1 -1
- package/src/modules/organizations/store/invites.js +1 -1
- package/src/modules/organizations/store/memberships.js +1 -1
- package/src/modules/organizations/store/organizations.js +1 -1
- package/src/modules/pages/pages.server.js +1 -1
- package/src/modules/pages/views/components/pages/Page.vue +1 -1
- package/src/modules/pages/views/components/pages/PageEdit.vue +1 -1
- package/src/modules/pages/views/components/pages/Pages.vue +2 -2
- package/src/modules/pages/views/components/partials/SidebarPages.vue +1 -1
- package/src/modules/pages/views/router/pages.backoffice.router.js +1 -1
- package/src/modules/pages/views/router/pages.router.js +1 -1
- package/src/modules/pages/views/store/pages.js +1 -1
- package/src/modules/pages/views/store/pages.store.js +1 -1
- package/src/modules/products/components/blocks/CardLeftover.vue +1 -1
- package/src/modules/products/components/pages/EditLeftover.vue +1 -1
- package/src/modules/products/components/pages/ProductEdit.vue +1 -1
- package/src/modules/products/components/pages/Products.vue +1 -1
- package/src/modules/products/models/leftover.model.js +1 -1
- package/src/modules/products/store/categories.js +1 -1
- package/src/modules/products/store/leftovers.js +1 -1
- package/src/modules/products/store/products.js +1 -1
- package/src/modules/projects/store/projects.js +1 -1
- package/src/modules/reports/store/reports.js +1 -1
- package/src/modules/spots/components/layouts/Spots.vue +1 -1
- package/src/modules/spots/components/pages/Map.vue +1 -1
- package/src/modules/spots/router/spots.js +1 -1
- package/src/modules/spots/spots.server.js +1 -1
- package/src/modules/spots/store/spots.js +1 -1
- package/src/modules/users/models/user.model.js +3 -3
- package/src/modules/wallet/controllers/routes/payments.routes.js +1 -1
- package/src/modules/wallet/views/components/pages/Payments.vue +1 -1
- package/src/modules/wallet/views/store/payments.store.js +1 -1
- package/src/modules/wallet/views/store/wallet.store.js +1 -1
- package/src/modules/globals/router/routerGuards.js +0 -29
- /package/src/modules/globals/{services → controllers/classes}/globals.cache.js +0 -0
- /package/src/modules/globals/{services → controllers/classes}/globals.logger.js +0 -0
- /package/src/modules/globals/{services → controllers/classes}/globals.observer.js +0 -0
- /package/src/modules/globals/{services → controllers/classes}/globals.webhook.js +0 -0
- /package/src/modules/globals/{utils → controllers/utils}/mailing.js +0 -0
- /package/src/modules/globals/{utils → controllers/utils}/parseCookie.js +0 -0
- /package/src/modules/globals/{utils → controllers/utils}/seo-friendly-url.js +0 -0
- /package/src/modules/globals/{utils → controllers/utils}/sitemap.js +0 -0
- /package/src/modules/globals/models/{common.schema.js → schemas/common.schema.js} +0 -0
- /package/src/modules/globals/models/{credentials.schema.js → schemas/credentials.schema.js} +0 -0
- /package/src/modules/globals/models/{engagement.schema.js → schemas/engagement.schema.js} +0 -0
- /package/src/modules/globals/models/{ownership.schema.js → schemas/ownership.schema.js} +0 -0
- /package/src/modules/globals/models/{profile.schema.js → schemas/profile.schema.js} +0 -0
- /package/src/modules/globals/models/{socials.schema.js → schemas/socials.schema.js} +0 -0
- /package/src/modules/globals/{components → views/components}/blocks/BlockFilter.vue +0 -0
- /package/src/modules/globals/{components → views/components}/blocks/BlockSearch.vue +0 -0
- /package/src/modules/globals/{components → views/components}/blocks/CardFooter.vue +0 -0
- /package/src/modules/globals/{components → views/components}/blocks/CardHeader.vue +0 -0
- /package/src/modules/globals/{components → views/components}/elements/ButtonDate.vue +0 -0
- /package/src/modules/globals/{components → views/components}/elements/ButtonSort.vue +0 -0
- /package/src/modules/globals/{components → views/components}/layouts/Empty.vue +0 -0
- /package/src/modules/globals/{components → views/components}/pages/401.vue +0 -0
- /package/src/modules/globals/{components → views/components}/pages/404.vue +0 -0
- /package/src/modules/globals/{components → views/components}/partials/Footer.vue +0 -0
- /package/src/modules/globals/{components → views/components}/partials/NavigationBar.vue +0 -0
- /package/src/modules/globals/{components → views/components}/sections/SectionPageTitle.vue +0 -0
- /package/src/modules/globals/{components → views/components}/sections/Title.vue +0 -0
- /package/src/modules/globals/{localization → views/localization}/get-browser-locale.js +0 -0
- /package/src/modules/globals/{mixins → views/mixins}/mixins.js +0 -0
- /package/src/modules/globals/{router → views/router}/scrollBehavior.js +0 -0
- /package/src/modules/globals/{store → views/store}/globals.js +0 -0
package/dist/prometheus-framework/src/modules/events/components/pages/EditEventTickets.vue.js
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
import { ref as p, onMounted as B, unref as _, openBlock as i, createElementBlock as o, createElementVNode as r, createVNode as l, withCtx as u, Fragment as $, renderList as q, createTextVNode as v, toDisplayString as f, createBlock as P, createCommentVNode as b } from "vue";
|
2
2
|
import V from "../../../../components/Feed/Feed.vue.js";
|
3
3
|
import F from "../../../../components/Block/Block.vue.js";
|
4
|
-
import O from "../../../../components/Popup/Popup.
|
4
|
+
import O from "../../../../components/Popup/Popup.vue.js";
|
5
5
|
import g from "../../../../components/Field/Field.vue2.js";
|
6
6
|
import w from "../../../../components/Button/Button.vue2.js";
|
7
7
|
import S from "../elements/ButtonCheck.vue.js";
|
@@ -1 +1 @@
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("axios"),u=require("vue"),s=require("../../globals/store/globals.cjs"),n=o.create({baseURL:process.env.API_URL,withCredentials:!0}),r=u.reactive({all:[],filter:{tags:[],period:"",date:null},pagination:{page:1,perPage:18},sort:{current:"popularity",ascending:!1},current:{_id:"",special:!1,specialData:{},cover:"",url:"",status:"",name:"",tags:[],date:{start:null,false:null},views:0,content:[]}});async function l(t={}){try{const e=await n.get("/api/events/read",{params:t});return t.url?a(e.data,"current"):a(e.data,"all"),Promise.resolve(e.data)}catch(e){return s.setError(e),Promise.reject(e)}}async function d(t){return n.post("/api/events/create",t).then(e=>(a(e.data,"current"),Promise.resolve(e.data)),e=>(s.setError(e),Promise.reject(e)))}async function p(t){return n.post("/api/events/update",t).then(e=>(a(e.data,"current"),Promise.resolve(e.data)),e=>(s.setError(e),Promise.reject(e)))}async function g(t){return await n.post("/api/events/delete",{_id:t}).then(e=>{const i=r.all.findIndex(c=>c._id===t);return i!==-1&&r.all.splice(i,1),Promise.resolve(e.data)},e=>(s.setError(e),Promise.reject(e)))}function a(t,e){r[e]=t}function v(){r.current={_id:"",cover:"",url:"",phase:"",name:"",special:!1,specialData:{subtitle:"",logos:[],video:"",ticketImage:"",ticketLinkStripe:"",ticketPrice:"",guestTitle:"",guestDescription:"",guestFacebook:"",guestInstagram:"",guestTwitter:"",guestTelegram:"",guestSoundcloud:"",guestSpotify:"",guestVideo:"",guests:[],lineup:[],lineupBackground:"",previousVideo:""},tags:[],date:{start:null,false:null},views:0,content:[]}}u.watch(r,(t,e)=>{});exports.clean=v;exports.create=d;exports.read=l;exports.remove=g;exports.set=a;exports.state=r;exports.update=p;
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("axios"),u=require("vue"),s=require("../../globals/views/store/globals.cjs"),n=o.create({baseURL:process.env.API_URL,withCredentials:!0}),r=u.reactive({all:[],filter:{tags:[],period:"",date:null},pagination:{page:1,perPage:18},sort:{current:"popularity",ascending:!1},current:{_id:"",special:!1,specialData:{},cover:"",url:"",status:"",name:"",tags:[],date:{start:null,false:null},views:0,content:[]}});async function l(t={}){try{const e=await n.get("/api/events/read",{params:t});return t.url?a(e.data,"current"):a(e.data,"all"),Promise.resolve(e.data)}catch(e){return s.setError(e),Promise.reject(e)}}async function d(t){return n.post("/api/events/create",t).then(e=>(a(e.data,"current"),Promise.resolve(e.data)),e=>(s.setError(e),Promise.reject(e)))}async function p(t){return n.post("/api/events/update",t).then(e=>(a(e.data,"current"),Promise.resolve(e.data)),e=>(s.setError(e),Promise.reject(e)))}async function g(t){return await n.post("/api/events/delete",{_id:t}).then(e=>{const i=r.all.findIndex(c=>c._id===t);return i!==-1&&r.all.splice(i,1),Promise.resolve(e.data)},e=>(s.setError(e),Promise.reject(e)))}function a(t,e){r[e]=t}function v(){r.current={_id:"",cover:"",url:"",phase:"",name:"",special:!1,specialData:{subtitle:"",logos:[],video:"",ticketImage:"",ticketLinkStripe:"",ticketPrice:"",guestTitle:"",guestDescription:"",guestFacebook:"",guestInstagram:"",guestTwitter:"",guestTelegram:"",guestSoundcloud:"",guestSpotify:"",guestVideo:"",guests:[],lineup:[],lineupBackground:"",previousVideo:""},tags:[],date:{start:null,false:null},views:0,content:[]}}u.watch(r,(t,e)=>{});exports.clean=v;exports.create=d;exports.read=l;exports.remove=g;exports.set=a;exports.state=r;exports.update=p;
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import u from "axios";
|
2
2
|
import { reactive as c, watch as l } from "vue";
|
3
|
-
import { setError as s } from "../../globals/store/globals.js";
|
3
|
+
import { setError as s } from "../../globals/views/store/globals.js";
|
4
4
|
const n = u.create({ baseURL: process.env.API_URL, withCredentials: !0 }), a = c({
|
5
5
|
all: [],
|
6
6
|
filter: {
|
@@ -1 +1 @@
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const d=require("axios"),l=require("vue"),n=require("../../globals/store/globals.cjs"),c=d.create({baseURL:process.env.API_URL,withCredentials:!0}),s=l.reactive({tickets:[],error:null}),m={async read({user:r,type:e,target:a,role:t,skip:o,limit:u,search:p}){try{const i=await c.get("/api/tickets",{params:{user:r,type:e,target:a,role:t,skip:o,limit:u,search:p}});return s.error=null,s.tickets=i.data,Promise.resolve(i.data)}catch(i){return n.setError(i),Promise.reject(i)}},async create(r){try{const e=await c.post("/api/tickets/create",r);return s.error=null,Promise.resolve(e.data)}catch(e){return n.setError(e),Promise.reject(e)}},async update(r){try{const e=await c.post("/api/tickets/update",r);return s.error=null,Promise.resolve(e.data)}catch(e){return n.setError(e),Promise.reject(e)}},async delete(r){try{const e=await c.post("/api/tickets/delete",r);return s.error=null,Promise.resolve(e.data)}catch(e){return n.setError(e),Promise.reject(e)}}},y={handleTicketUpdate(r,e,a){let t;if(Array.isArray(r)?t=r.find(o=>o._id===e.target):typeof r=="object"&&r._id===e.target&&(t=r),t)if(t.hasTicket=a,a)t.tickets.push(e),t.numberOfTickets+=1;else{const o=t.tickets.findIndex(u=>u._id===e._id);o!==-1&&(t.tickets.splice(o,1),t.numberOfTickets-=1)}}};l.watch(s,r=>{});exports.actions=m;exports.mutations=y;exports.state=s;
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const d=require("axios"),l=require("vue"),n=require("../../globals/views/store/globals.cjs"),c=d.create({baseURL:process.env.API_URL,withCredentials:!0}),s=l.reactive({tickets:[],error:null}),m={async read({user:r,type:e,target:a,role:t,skip:o,limit:u,search:p}){try{const i=await c.get("/api/tickets",{params:{user:r,type:e,target:a,role:t,skip:o,limit:u,search:p}});return s.error=null,s.tickets=i.data,Promise.resolve(i.data)}catch(i){return n.setError(i),Promise.reject(i)}},async create(r){try{const e=await c.post("/api/tickets/create",r);return s.error=null,Promise.resolve(e.data)}catch(e){return n.setError(e),Promise.reject(e)}},async update(r){try{const e=await c.post("/api/tickets/update",r);return s.error=null,Promise.resolve(e.data)}catch(e){return n.setError(e),Promise.reject(e)}},async delete(r){try{const e=await c.post("/api/tickets/delete",r);return s.error=null,Promise.resolve(e.data)}catch(e){return n.setError(e),Promise.reject(e)}}},y={handleTicketUpdate(r,e,a){let t;if(Array.isArray(r)?t=r.find(o=>o._id===e.target):typeof r=="object"&&r._id===e.target&&(t=r),t)if(t.hasTicket=a,a)t.tickets.push(e),t.numberOfTickets+=1;else{const o=t.tickets.findIndex(u=>u._id===e._id);o!==-1&&(t.tickets.splice(o,1),t.numberOfTickets-=1)}}};l.watch(s,r=>{});exports.actions=m;exports.mutations=y;exports.state=s;
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import u from "axios";
|
2
2
|
import { reactive as m, watch as d } from "vue";
|
3
|
-
import { setError as c } from "../../globals/store/globals.js";
|
3
|
+
import { setError as c } from "../../globals/views/store/globals.js";
|
4
4
|
const n = u.create({
|
5
5
|
baseURL: process.env.API_URL,
|
6
6
|
withCredentials: !0
|
@@ -1 +1 @@
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),v=require("../../../../components/Feed/Feed.vue.cjs"),f=require("../../../../components/Popup/Popup.
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),v=require("../../../../components/Feed/Feed.vue.cjs"),f=require("../../../../components/Popup/Popup.vue.cjs"),m=require("../../../../components/PhotoViewer/PhotoViewer.vue.cjs"),b=require("../../../globals/views/components/sections/SectionPageTitle.vue.cjs"),g=require("../../store/gallery.cjs"),h={class:"cols-1 gap-thin pd-thin"},P={class:"w-100 h-100 h-min-10r pos-relative"},_=["src","onClick"],k={__name:"Gallery",setup(w){const d=e.ref([]),o=e.ref("all");let r=e.ref({param:"createdAt",order:"desc",options:[{label:"Date",value:"createdAt"},{label:"Popularity",value:"views"},{label:"Creator",value:"creator"}]}),s=e.ref({start:null,end:null});const n=e.ref(null),u=e.ref(!1);function p(a){u.value=!0,n.value=a}function c(){u.value=!1,n.value=null}return(a,l)=>(e.openBlock(),e.createElementBlock("div",h,[e.createVNode(b.default,{title:a.$t("gallery.title"),"onUpdate:tabs_current":l[0]||(l[0]=t=>o.value=t),tabs_current:o.value,tabs:[{name:"All",value:"all"},{name:"Place",value:"place"},{name:"Drinks",value:"drinks"},{name:"People",value:"people"},{name:"Events",value:"events"}],class:"mn-b-small bg-light bg-light radius-big"},null,8,["title","tabs_current"]),e.createVNode(f.default,{onClosePopup:c,isPopupOpen:u.value,class:"bg-black o-hidden w-100 h-100 radius-big"},{default:e.withCtx(()=>[e.createVNode(m.default,{photoUrl:(a.FILE_SERVER_URL||"")+n.value.image},null,8,["photoUrl"])]),_:1},8,["isPopupOpen"]),e.createVNode(v.default,{items:d.value,"onUpdate:items":l[1]||(l[1]=t=>d.value=t),sort:e.unref(r),"onUpdate:sort":l[2]||(l[2]=t=>e.isRef(r)?r.value=t:r=t),date:e.unref(s),"onUpdate:date":l[3]||(l[3]=t=>e.isRef(s)?s.value=t:s=t),showLoadMore:!1,states:{empty:{title:"No Photos Found",description:"Currently, there are no photos in gallery."}},store:{read:t=>e.unref(g.default).read(t)},options:{limit:15,status:"published",...o.value!=="all"&&{tags:o.value}},class:"cols-4 gap-thin"},{default:e.withCtx(({items:t})=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t,i=>(e.openBlock(),e.createElementBlock("div",{key:i._id,class:"bg-light radius-medium o-hidden flex-column pos-relative flex-wrap"},[e.createElementVNode("div",P,[e.createElementVNode("img",{src:(a.FILE_SERVER_URL||"")+i.cover,class:"w-100 h-100 object-fit-cover bg-black",onClick:E=>p(i)},null,8,_)])]))),128))]),_:1},8,["items","sort","date","store","options"])]))}};exports.default=k;
|
@@ -1,8 +1,8 @@
|
|
1
1
|
import { ref as t, openBlock as d, createElementBlock as m, createVNode as n, withCtx as f, unref as c, isRef as _, Fragment as P, renderList as w, createElementVNode as b } from "vue";
|
2
2
|
import k from "../../../../components/Feed/Feed.vue.js";
|
3
|
-
import E from "../../../../components/Popup/Popup.
|
3
|
+
import E from "../../../../components/Popup/Popup.vue.js";
|
4
4
|
import y from "../../../../components/PhotoViewer/PhotoViewer.vue.js";
|
5
|
-
import U from "../../../globals/components/sections/SectionPageTitle.vue.js";
|
5
|
+
import U from "../../../globals/views/components/sections/SectionPageTitle.vue.js";
|
6
6
|
import R from "../../store/gallery.js";
|
7
7
|
const C = { class: "cols-1 gap-thin pd-thin" }, L = { class: "w-100 h-100 h-min-10r pos-relative" }, F = ["src", "onClick"], I = {
|
8
8
|
__name: "Gallery",
|
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"),C=require("vue-router");;/* empty css */const w=require("../../../../components/Button/Button.vue2.cjs");;/* empty css
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),C=require("vue-router");;/* empty css */const w=require("../../../../components/Button/Button.vue2.cjs");;/* empty css */const B=require("../../../../components/Chips/Chips.vue2.cjs");;/* empty css */const _=require("../../../../components/Popup/Popup.vue.cjs"),E=require("../../../../components/Feed/Feed.vue.cjs"),U=require("../../../../components/PhotoViewer/PhotoViewer.vue.cjs"),k=require("../../../auth/views/store/auth.cjs");require("../../../organizations/store/organizations.cjs");const o=require("../../store/gallery.cjs"),A=require("../../../globals/views/components/blocks/CardHeader.vue.cjs"),I=require("../../../globals/views/components/sections/SectionPageTitle.vue.cjs"),O=require("../../../../components/EditImages/EditImages.vue.cjs"),T=require("../../../../components/FieldTags/BlockTags.vue.cjs"),R={class:"cols-1 gap-thin pd-thin"},S={class:"pos-relative"},D=["src","onClick"],F={class:"pos-absolute pos-t-0 pos-r-0 pd-micro t-white uppercase t-semi p-small flex-center flex pd-r-small pd-l-small mn-r-small mn-t-small w-min bg-second radius-extra"},j={class:"pd-small"},L=["src"],G={class:"flex-nowrap flex gap-thin"},M={__name:"BackofficeGallery",setup(z){const h=C.useRoute(),i=e.ref("all");let c=e.ref({param:"createdAt",order:"desc",options:[{label:"Date",value:"createdAt"},{label:"Popularity",value:"views"},{label:"Creator",value:"creator"}]}),p=e.ref({start:null,end:null});const f=e.ref(!1);function x(a){f.value=!0,u.value=a}function y(){f.value=!1,u.value=null}const m=e.ref(!1);function V(a){m.value=!0,u.value=a}function v(){m.value=!1,u.value=null,n.value=[],r.value={tags:null,image:null}}const u=e.ref(null);e.ref("all");const r=e.ref({tags:null,image:null}),n=e.ref([]),N=a=>{n.value=a},d=e.ref([]),q=async a=>{await o.default.delete(a._id),o.default.removeItem(a,d.value)},g=async(a,s)=>{a.status=s,await o.default.update(a),o.default.updateItem(a,d.value)},b=async a=>{if(n.length<1){alert("Upload at least 1 image");return}let s=await o.default.create({images:n.value,tags:r.value.tags,status:a,owner:{type:"Organization",target:h.params._id},creator:{type:"User",target:k.state.user._id}});for(let t of s)o.default.addItem(t,d.value)};return(a,s)=>(e.openBlock(),e.createElementBlock("div",R,[e.createVNode(I.default,{title:"Gallery","onUpdate:tabs_current":s[0]||(s[0]=t=>i.value=t),tabs_current:i.value,tabs:[{name:"All",value:"all"},{name:"Featured",value:"featured"},{name:"Published",value:"published"},{name:"Draft",value:"draft"},{name:"Archived",value:"archived"}],actions:[{method:()=>V(null),label:"Add Photo"}],class:"mn-b-small bg-light bg-light radius-big"},null,8,["tabs_current","actions"]),e.createVNode(E.default,{items:d.value,"onUpdate:items":s[1]||(s[1]=t=>d.value=t),sort:e.unref(c),"onUpdate:sort":s[2]||(s[2]=t=>e.isRef(c)?c.value=t:c=t),date:e.unref(p),"onUpdate:date":s[3]||(s[3]=t=>e.isRef(p)?p.value=t:p=t),states:{empty:{title:"No Photos Found",description:"Currently, there are no photos in gallery."}},store:{read:t=>e.unref(o.default).read(t)},options:{limit:15,owner:e.unref(h).params._id,...i.value!=="all"&&{status:i.value}},class:"cols-3 gap-thin"},{default:e.withCtx(({items:t})=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t,l=>{var P;return e.openBlock(),e.createElementBlock("div",{key:l._id,class:"bg-light radius-small flex-column pos-relative flex-wrap"},[e.createVNode(A.default,{entity:l,entityType:"photo",user:k.state.user._id,owner:l.creator,creator:l.creator,date:l.createdAt,actions:[{method:()=>q(l),label:"Delete"},{method:()=>g(l,"archived"),label:"Archive"},l.status==="draft"?{method:()=>g(l,"published"),label:"Publish"}:{method:()=>g(l,"draft"),label:"Draft"}],class:"pd-small mn-b-small"},null,8,["entity","user","owner","creator","date","actions"]),e.createElementVNode("div",S,[e.createElementVNode("img",{src:(a.FILE_SERVER_URL||"")+l.cover,class:"w-100 h-20r object-fit-contain bg-black",onClick:H=>x(l)},null,8,D),e.createElementVNode("div",F,e.toDisplayString(l.status),1)]),e.createElementVNode("div",j,[((P=l.tags)==null?void 0:P.length)>0?(e.openBlock(),e.createBlock(B.default,{key:0,chips:l.tags},null,8,["chips"])):e.createCommentVNode("",!0)])])}),128))]),_:1},8,["items","sort","date","store","options"]),e.createVNode(_.default,{onClosePopup:y,isPopupOpen:f.value,class:"bg-black o-hidden w-100 h-100 radius-big"},{default:e.withCtx(()=>[e.createVNode(U.default,{photoUrl:u.value.image},null,8,["photoUrl"])]),_:1},8,["isPopupOpen"]),e.createVNode(_.default,{title:"Add Photo",onClosePopup:v,isPopupOpen:m.value,class:"bg-white w-max-30r radius-big pd-big"},{default:e.withCtx(()=>[r.value.cover?(e.openBlock(),e.createElementBlock("img",{key:0,src:r.value.cover,class:"radius-small w-100 mn-b-small h-20r object-fit-cover"},null,8,L)):e.createCommentVNode("",!0),e.createVNode(O.default,{images:n.value,uploadPath:"/photos","onUpdate:images":N,class:"mn-b-semi bg-light radius-medium"},null,8,["images"]),e.createVNode(T.default,{onTagsChanged:s[4]||(s[4]=t=>r.value.tags=t),tags:r.value.tags,tagsSuggested:[{text:"people"},{text:"events"},{text:"place"},{text:"food"},{text:"drinks"},{text:"special"}],class:"mn-b-semi"},null,8,["tags"]),e.createElementVNode("div",G,[e.createVNode(w.default,{submit:()=>b("draft"),callback:v,class:"t-nowrap bg-second w-100"},{default:e.withCtx(()=>[e.createTextVNode(" To drafts ")]),_:1},8,["submit"]),e.createVNode(w.default,{submit:()=>b("published"),callback:v,class:"bg-main w-100"},{default:e.withCtx(()=>[e.createTextVNode(" Publish ")]),_:1},8,["submit"])])]),_:1},8,["isPopupOpen"])]))}};exports.default=M;
|
package/dist/prometheus-framework/src/modules/gallery/components/sections/BackofficeGallery.vue.js
CHANGED
@@ -2,17 +2,17 @@ import { ref as s, openBlock as d, createElementBlock as h, createVNode as o, un
|
|
2
2
|
import { useRoute as j } from "vue-router";
|
3
3
|
/* empty css */
|
4
4
|
import I from "../../../../components/Button/Button.vue2.js";
|
5
|
-
/* empty css
|
6
|
-
import G from "../../../../components/Chips/Chips.
|
5
|
+
/* empty css */
|
6
|
+
import G from "../../../../components/Chips/Chips.vue2.js";
|
7
7
|
/* empty css */
|
8
|
-
import O from "../../../../components/Popup/Popup.
|
8
|
+
import O from "../../../../components/Popup/Popup.vue.js";
|
9
9
|
import z from "../../../../components/Feed/Feed.vue.js";
|
10
10
|
import q from "../../../../components/PhotoViewer/PhotoViewer.vue.js";
|
11
11
|
import { state as D } from "../../../auth/views/store/auth.js";
|
12
12
|
import "../../../organizations/store/organizations.js";
|
13
13
|
import r from "../../store/gallery.js";
|
14
|
-
import H from "../../../globals/components/blocks/CardHeader.vue.js";
|
15
|
-
import J from "../../../globals/components/sections/SectionPageTitle.vue.js";
|
14
|
+
import H from "../../../globals/views/components/blocks/CardHeader.vue.js";
|
15
|
+
import J from "../../../globals/views/components/sections/SectionPageTitle.vue.js";
|
16
16
|
import K from "../../../../components/EditImages/EditImages.vue.js";
|
17
17
|
import M from "../../../../components/FieldTags/BlockTags.vue.js";
|
18
18
|
const Q = { class: "cols-1 gap-thin pd-thin" }, W = { class: "pos-relative" }, X = ["src", "onClick"], Y = { class: "pos-absolute pos-t-0 pos-r-0 pd-micro t-white uppercase t-semi p-small flex-center flex pd-r-small pd-l-small mn-r-small mn-t-small w-min bg-second radius-extra" }, Z = { class: "pd-small" }, ee = ["src"], te = { class: "flex-nowrap flex gap-thin" }, we = {
|
@@ -1 +1 @@
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("../../globals/
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("../../globals/views/classes/globals.store.cjs"),l=new e.default(`${process.env.API_URL}/api/gallery`);exports.default=l;
|
@@ -1 +1 @@
|
|
1
|
-
"use strict";Object.
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const f=require("./views/localization/get-browser-locale.cjs"),g=require("./views/router/scrollBehavior.cjs"),n=require("./views/components/layouts/App.vue.cjs"),s=require("./views/components/layouts/Client.vue.cjs"),a=require("./views/mixins/mixins.cjs"),i=require("./views/store/globals.cjs");function P(e,c,o,u={}){const l=u.route||"Home";e.config.globalProperties.DOMAIN_URL=process.env.DOMAIN_URL,e.config.globalProperties.API_URL=process.env.API_URL,e.config.globalProperties.MOBILE_APP=process.env.MOBILE_APP,e.config.globalProperties.FILE_SERVER_URL=process.env.FILE_SERVER_URL,e.config.globalProperties.GOOGLE_MAPS_API_KEY=process.env.GOOGLE_MAPS_API_KEY,e.mixin(a.globalMixins),o.beforeEach((d,_,r)=>{const t=d.params.locale;return t?e.config.globalProperties.$i18n.availableLocales.includes(t)?(e.config.globalProperties.$i18n.locale=t,r()):r({path:"/404"}):r()}),c.addStore("globals",i),o.addRoute(l,{path:"/404",name:"notfound",component:()=>Promise.resolve().then(()=>require("./views/components/pages/404.vue.cjs"))}),o.addRoute(l,{path:"/401",name:"unauthorized",component:()=>Promise.resolve().then(()=>require("./views/components/pages/401.vue.cjs"))}),o.addRoute(l,{path:"/:pathMatch(.*)*",name:"NotFound",redirect:{name:"notfound"}})}const b={initialize:P,views:{store:{storeGlobals:i},router:{},components:{layoutClient:s.default,layoutApp:n.default}}};exports.getBrowserLocale=f.default;exports.scrollBehavior=g.default;exports.layoutApp=n.default;exports.layoutClient=s.default;exports.mixins=a;exports.storeGlobals=i;exports.default=b;
|
@@ -1,12 +1,39 @@
|
|
1
|
-
import { default as
|
2
|
-
import { default as
|
3
|
-
import
|
4
|
-
import
|
5
|
-
import
|
1
|
+
import { default as R } from "./views/localization/get-browser-locale.js";
|
2
|
+
import { default as I } from "./views/router/scrollBehavior.js";
|
3
|
+
import c from "./views/components/layouts/App.vue.js";
|
4
|
+
import m from "./views/components/layouts/Client.vue.js";
|
5
|
+
import { globalMixins as f } from "./views/mixins/mixins.js";
|
6
|
+
import * as P from "./views/mixins/mixins.js";
|
7
|
+
import * as a from "./views/store/globals.js";
|
8
|
+
function p(o, i, e, s = {}) {
|
9
|
+
const t = s.route || "Home";
|
10
|
+
o.config.globalProperties.DOMAIN_URL = process.env.DOMAIN_URL, o.config.globalProperties.API_URL = process.env.API_URL, o.config.globalProperties.MOBILE_APP = process.env.MOBILE_APP, o.config.globalProperties.FILE_SERVER_URL = process.env.FILE_SERVER_URL, o.config.globalProperties.GOOGLE_MAPS_API_KEY = process.env.GOOGLE_MAPS_API_KEY, o.mixin(f), e.beforeEach((n, u, r) => {
|
11
|
+
const l = n.params.locale;
|
12
|
+
return l ? o.config.globalProperties.$i18n.availableLocales.includes(l) ? (o.config.globalProperties.$i18n.locale = l, r()) : r({ path: "/404" }) : r();
|
13
|
+
}), i.addStore("globals", a), e.addRoute(t, { path: "/404", name: "notfound", component: () => import("./views/components/pages/404.vue.js") }), e.addRoute(t, { path: "/401", name: "unauthorized", component: () => import("./views/components/pages/401.vue.js") }), e.addRoute(t, { path: "/:pathMatch(.*)*", name: "NotFound", redirect: { name: "notfound" } });
|
14
|
+
}
|
15
|
+
const b = {
|
16
|
+
initialize: p,
|
17
|
+
views: {
|
18
|
+
store: {
|
19
|
+
storeGlobals: a
|
20
|
+
},
|
21
|
+
router: {
|
22
|
+
// routerOrders
|
23
|
+
},
|
24
|
+
components: {
|
25
|
+
// Pages
|
26
|
+
layoutClient: m,
|
27
|
+
layoutApp: c
|
28
|
+
}
|
29
|
+
}
|
30
|
+
};
|
6
31
|
export {
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
32
|
+
b as default,
|
33
|
+
R as getBrowserLocale,
|
34
|
+
c as layoutApp,
|
35
|
+
m as layoutClient,
|
36
|
+
P as mixins,
|
37
|
+
I as scrollBehavior,
|
38
|
+
a as storeGlobals
|
12
39
|
};
|
@@ -0,0 +1 @@
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const c=require("vue"),d=require("../store/globals.cjs");class u{constructor(e){this.state=c.reactive({items:[],current:{}}),this.apiUrl=e}async request(e,t={}){const a=e.startsWith("http")?e:`${this.apiUrl}${e}`,s={...{credentials:"include",headers:{}},...t};!s.headers["Content-Type"]&&t.body&&(s.headers["Content-Type"]="application/json",s.body=JSON.stringify(t.body));try{const r=await fetch(a,s);if(!r.ok){const i=await r.json(),o=new Error(i.message||"Unknown error");throw o.errorCode=i.errorCode||"UNKNOWN_ERROR",o}return await r.json()}catch(r){throw console.error(r),d.setError(r),r}}async create(e){return await this.request("/create",{method:"POST",body:e})}async read(e={}){const t=new URLSearchParams(e).toString();return await this.request(`/read?${t}`)}async update(e){return await this.request("/update",{method:"PUT",body:e})}async delete(e){return await this.request(`/delete/${e}`,{method:"DELETE"})}setItems(e,t){t||this.state.items,t.splice(0,t.length,...e)}addItem(e,t,a="_id"){const n=t||this.state.items,s=n.findIndex(r=>r[a]===e[a]);s===-1?n.splice(0,0,e):Object.assign(n[s],e)}updateItem(e,t,a="_id"){const n=t||this.state.items,s=n.findIndex(r=>r[a]===e[a]);s!==-1&&n.splice(s,1,e)}removeItem(e,t,a="_id"){const n=t||this.state.items,s=n.findIndex(r=>r[a]===e[a]);s!==-1&&n.splice(s,1)}}exports.default=u;
|
@@ -0,0 +1,72 @@
|
|
1
|
+
import { reactive as c } from "vue";
|
2
|
+
import { setError as d } from "../store/globals.js";
|
3
|
+
class m {
|
4
|
+
constructor(t) {
|
5
|
+
this.state = c({
|
6
|
+
items: [],
|
7
|
+
current: {}
|
8
|
+
}), this.apiUrl = t;
|
9
|
+
}
|
10
|
+
// Simplified request method to avoid repetition and enhance maintainability
|
11
|
+
async request(t, e = {}) {
|
12
|
+
const a = t.startsWith("http") ? t : `${this.apiUrl}${t}`, s = {
|
13
|
+
...{
|
14
|
+
credentials: "include",
|
15
|
+
// Assumes credentials needed for each request
|
16
|
+
headers: {}
|
17
|
+
},
|
18
|
+
...e
|
19
|
+
};
|
20
|
+
!s.headers["Content-Type"] && e.body && (s.headers["Content-Type"] = "application/json", s.body = JSON.stringify(e.body));
|
21
|
+
try {
|
22
|
+
const r = await fetch(a, s);
|
23
|
+
if (!r.ok) {
|
24
|
+
const i = await r.json(), o = new Error(i.message || "Unknown error");
|
25
|
+
throw o.errorCode = i.errorCode || "UNKNOWN_ERROR", o;
|
26
|
+
}
|
27
|
+
return await r.json();
|
28
|
+
} catch (r) {
|
29
|
+
throw console.error(r), d(r), r;
|
30
|
+
}
|
31
|
+
}
|
32
|
+
async create(t) {
|
33
|
+
return await this.request("/create", {
|
34
|
+
method: "POST",
|
35
|
+
body: t
|
36
|
+
});
|
37
|
+
}
|
38
|
+
async read(t = {}) {
|
39
|
+
const e = new URLSearchParams(t).toString();
|
40
|
+
return await this.request(`/read?${e}`);
|
41
|
+
}
|
42
|
+
async update(t) {
|
43
|
+
return await this.request("/update", {
|
44
|
+
method: "PUT",
|
45
|
+
body: t
|
46
|
+
});
|
47
|
+
}
|
48
|
+
async delete(t) {
|
49
|
+
return await this.request(`/delete/${t}`, {
|
50
|
+
method: "DELETE"
|
51
|
+
});
|
52
|
+
}
|
53
|
+
// Enhanced Mutations utilizing Vue reactivity system efficiently
|
54
|
+
setItems(t, e) {
|
55
|
+
e || this.state.items, e.splice(0, e.length, ...t);
|
56
|
+
}
|
57
|
+
addItem(t, e, a = "_id") {
|
58
|
+
const n = e || this.state.items, s = n.findIndex((r) => r[a] === t[a]);
|
59
|
+
s === -1 ? n.splice(0, 0, t) : Object.assign(n[s], t);
|
60
|
+
}
|
61
|
+
updateItem(t, e, a = "_id") {
|
62
|
+
const n = e || this.state.items, s = n.findIndex((r) => r[a] === t[a]);
|
63
|
+
s !== -1 && n.splice(s, 1, t);
|
64
|
+
}
|
65
|
+
removeItem(t, e, a = "_id") {
|
66
|
+
const n = e || this.state.items, s = n.findIndex((r) => r[a] === t[a]);
|
67
|
+
s !== -1 && n.splice(s, 1);
|
68
|
+
}
|
69
|
+
}
|
70
|
+
export {
|
71
|
+
m as default
|
72
|
+
};
|
package/dist/prometheus-framework/src/modules/globals/views/components/blocks/BlockFilter.vue.cjs
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),i=require("../../../../../components/Checkbox/Checkbox.vue.cjs"),c=require("../../../../../components/Spoiler/Spoiler.vue2.cjs"),u=require("../../../../icons/navigation/IconChevronBottom.vue.cjs"),d={class:"w-100 o-scroll"},m={class:"cursor-pointer w-100 flex-v-center flex-nowrap flex"},p={class:"w-100"},b={__name:"BlockFilter",props:e.mergeModels({title:{type:String,default:"Sorting Options"},options:{type:Array}},{filter:{},filterModifiers:{}}),emits:["update:filter"],setup(o){const r=e.useModel(o,"filter");return(g,s)=>(e.openBlock(),e.createElementBlock("div",d,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.options,t=>(e.openBlock(),e.createBlock(c.default,{class:"o-hidden bg-white pd-medium radius-big mn-b-small",status:!0},{header:e.withCtx(({isOpen:l})=>[e.createElementVNode("div",m,[e.createElementVNode("h4",p,e.toDisplayString(t.title),1),e.createVNode(u.default,{class:e.normalizeClass([{"rotate-180":l},"radius-big pd-micro bg-light i-semi"]),fill:"rgb(var(--black))"},null,8,["class"])])]),content:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.options,(l,a)=>(e.openBlock(),e.createBlock(i.default,{key:a,label:l.label,value:l.value,class:"w-100 mn-t-small mn-b-small br-1px br-solid br-light radius-small pd-small",radio:r.value.selected[t.value],"onUpdate:radio":n=>r.value.selected[t.value]=n},null,8,["label","value","radio","onUpdate:radio"]))),128))]),_:2},1024))),256)),e.createElementVNode("button",{onClick:s[0]||(s[0]=()=>r.value.selected={}),class:"bg-main w-100 button"},"Reset Filters")]))}};exports.default=b;
|
package/dist/prometheus-framework/src/modules/globals/views/components/blocks/BlockFilter.vue.js
ADDED
@@ -0,0 +1,57 @@
|
|
1
|
+
import { mergeModels as b, useModel as f, openBlock as e, createElementBlock as s, Fragment as n, renderList as d, createBlock as c, withCtx as m, createElementVNode as a, toDisplayString as g, createVNode as v, normalizeClass as _ } from "vue";
|
2
|
+
import h from "../../../../../components/Checkbox/Checkbox.vue.js";
|
3
|
+
import w from "../../../../../components/Spoiler/Spoiler.vue2.js";
|
4
|
+
import k from "../../../../icons/navigation/IconChevronBottom.vue.js";
|
5
|
+
const x = { class: "w-100 o-scroll" }, y = { class: "cursor-pointer w-100 flex-v-center flex-nowrap flex" }, B = { class: "w-100" }, N = {
|
6
|
+
__name: "BlockFilter",
|
7
|
+
props: /* @__PURE__ */ b({
|
8
|
+
title: {
|
9
|
+
type: String,
|
10
|
+
default: "Sorting Options"
|
11
|
+
},
|
12
|
+
options: {
|
13
|
+
type: Array
|
14
|
+
}
|
15
|
+
}, {
|
16
|
+
filter: {},
|
17
|
+
filterModifiers: {}
|
18
|
+
}),
|
19
|
+
emits: ["update:filter"],
|
20
|
+
setup(o) {
|
21
|
+
const r = f(o, "filter");
|
22
|
+
return (C, i) => (e(), s("div", x, [
|
23
|
+
(e(!0), s(n, null, d(o.options, (t) => (e(), c(w, {
|
24
|
+
class: "o-hidden bg-white pd-medium radius-big mn-b-small",
|
25
|
+
status: !0
|
26
|
+
}, {
|
27
|
+
header: m(({ isOpen: l }) => [
|
28
|
+
a("div", y, [
|
29
|
+
a("h4", B, g(t.title), 1),
|
30
|
+
v(k, {
|
31
|
+
class: _([{ "rotate-180": l }, "radius-big pd-micro bg-light i-semi"]),
|
32
|
+
fill: "rgb(var(--black))"
|
33
|
+
}, null, 8, ["class"])
|
34
|
+
])
|
35
|
+
]),
|
36
|
+
content: m(() => [
|
37
|
+
(e(!0), s(n, null, d(t.options, (l, u) => (e(), c(h, {
|
38
|
+
key: u,
|
39
|
+
label: l.label,
|
40
|
+
value: l.value,
|
41
|
+
class: "w-100 mn-t-small mn-b-small br-1px br-solid br-light radius-small pd-small",
|
42
|
+
radio: r.value.selected[t.value],
|
43
|
+
"onUpdate:radio": (p) => r.value.selected[t.value] = p
|
44
|
+
}, null, 8, ["label", "value", "radio", "onUpdate:radio"]))), 128))
|
45
|
+
]),
|
46
|
+
_: 2
|
47
|
+
}, 1024))), 256)),
|
48
|
+
a("button", {
|
49
|
+
onClick: i[0] || (i[0] = () => r.value.selected = {}),
|
50
|
+
class: "bg-main w-100 button"
|
51
|
+
}, "Reset Filters")
|
52
|
+
]));
|
53
|
+
}
|
54
|
+
};
|
55
|
+
export {
|
56
|
+
N as default
|
57
|
+
};
|
package/dist/prometheus-framework/src/modules/globals/views/components/blocks/BlockSearch.vue.cjs
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),s=require("../../../../icons/navigation/IconSearch.vue.cjs"),u=require("../../../../../components/Field/Field.vue2.cjs"),d={class:"flex-v-center flex-nowrap flex pd-small bg-light w-100 radius-big"},i={__name:"BlockSearch",props:{placeholder:{type:String,default:"Enter shop or product name"},button:{type:String,default:"Search"}},emits:["search"],setup(l,{emit:a}){const c=a;e.ref(null);const o=t=>{c("search",t)};return(t,r)=>(e.openBlock(),e.createElementBlock("div",d,[e.createVNode(s.default,{class:"i-medium t-transp mn-r-thin"}),e.createVNode(u.default,{placeholder:l.placeholder,"onUpdate:field":r[0]||(r[0]=n=>o(n)),class:"w-100"},null,8,["placeholder"])]))}};exports.default=i;
|
package/dist/prometheus-framework/src/modules/globals/views/components/blocks/BlockSearch.vue.js
ADDED
@@ -0,0 +1,35 @@
|
|
1
|
+
import { ref as s, openBlock as p, createElementBlock as i, createVNode as r } from "vue";
|
2
|
+
import d from "../../../../icons/navigation/IconSearch.vue.js";
|
3
|
+
import m from "../../../../../components/Field/Field.vue2.js";
|
4
|
+
const f = { class: "flex-v-center flex-nowrap flex pd-small bg-light w-100 radius-big" }, g = {
|
5
|
+
__name: "BlockSearch",
|
6
|
+
props: {
|
7
|
+
placeholder: {
|
8
|
+
type: String,
|
9
|
+
default: "Enter shop or product name"
|
10
|
+
},
|
11
|
+
button: {
|
12
|
+
type: String,
|
13
|
+
default: "Search"
|
14
|
+
}
|
15
|
+
},
|
16
|
+
emits: ["search"],
|
17
|
+
setup(l, { emit: o }) {
|
18
|
+
const a = o;
|
19
|
+
s(null);
|
20
|
+
const c = (e) => {
|
21
|
+
a("search", e);
|
22
|
+
};
|
23
|
+
return (e, t) => (p(), i("div", f, [
|
24
|
+
r(d, { class: "i-medium t-transp mn-r-thin" }),
|
25
|
+
r(m, {
|
26
|
+
placeholder: l.placeholder,
|
27
|
+
"onUpdate:field": t[0] || (t[0] = (n) => c(n)),
|
28
|
+
class: "w-100"
|
29
|
+
}, null, 8, ["placeholder"])
|
30
|
+
]));
|
31
|
+
}
|
32
|
+
};
|
33
|
+
export {
|
34
|
+
g as default
|
35
|
+
};
|
package/dist/prometheus-framework/src/modules/globals/views/components/blocks/BlockSorting.vue.cjs
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),n=require("../../../../../components/Radio/Radio.vue.cjs"),s=require("../../../../icons/navigation/IconSort.vue.cjs"),d={class:"w-100 o-hidden"},c={class:"mn-b-thin"},u={class:"w-100 flex-nowrap flex gap-micro"},p={__name:"BlockSorting",props:e.mergeModels({title:{type:String,default:"Sorting Options"},options:{type:Array,default:[{label:"Date",value:"createdAt"},{label:"Popularity",value:"popularity"},{label:"Creator",value:"creator"}]}},{param:{},paramModifiers:{},order:{},orderModifiers:{}}),emits:["update:param","update:order"],setup(r){const t=e.useModel(r,"param"),l=e.useModel(r,"order");return(b,a)=>(e.openBlock(),e.createElementBlock("div",d,[e.createElementVNode("h4",c,e.toDisplayString(r.title),1),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(r.options,o=>(e.openBlock(),e.createBlock(n.default,{radio:t.value,"onUpdate:radio":a[0]||(a[0]=i=>t.value=i),label:o.label,value:o.value,class:"w-100 mn-b-thin"},null,8,["radio","label","value"]))),256)),e.createElementVNode("div",u,[e.createElementVNode("button",{onClick:a[1]||(a[1]=e.withModifiers(()=>l.value="asc",["stop"])),class:e.normalizeClass([{"bg-white t-black":l.value==="asc"},"radius-semi flex-center w-100 uppercase p-small flex-nowrap flex gap-thin pd-thin br-solid br-1px br-grey-transp-25 w-100"])},[e.createVNode(s.default,{order:"asc",fill:l.value==="asc"?"rgb(var(--black))":"rgb(var(--white))",class:"i-small"},null,8,["fill"]),e.createTextVNode(" Ascending ")],2),e.createElementVNode("button",{onClick:a[2]||(a[2]=e.withModifiers(()=>l.value="desc",["stop"])),class:e.normalizeClass([{"bg-white t-black":l.value==="desc"},"radius-semi flex-center w-100 uppercase p-small flex-nowrap flex gap-thin pd-thin br-solid br-1px br-grey-transp-25 w-100"])},[e.createVNode(s.default,{order:"desc",fill:l.value==="desc"?"rgb(var(--black))":"rgb(var(--white))",class:"i-small"},null,8,["fill"]),e.createTextVNode(" Descending ")],2)])]))}};exports.default=p;
|
package/dist/prometheus-framework/src/modules/globals/views/components/blocks/BlockSorting.vue.js
ADDED
@@ -0,0 +1,75 @@
|
|
1
|
+
import { mergeModels as f, useModel as o, openBlock as t, createElementBlock as n, createElementVNode as r, toDisplayString as v, Fragment as g, renderList as w, createBlock as x, withModifiers as d, normalizeClass as c, createVNode as p, createTextVNode as u } from "vue";
|
2
|
+
import h from "../../../../../components/Radio/Radio.vue.js";
|
3
|
+
import m from "../../../../icons/navigation/IconSort.vue.js";
|
4
|
+
const k = { class: "w-100 o-hidden" }, y = { class: "mn-b-thin" }, M = { class: "w-100 flex-nowrap flex gap-micro" }, A = {
|
5
|
+
__name: "BlockSorting",
|
6
|
+
props: /* @__PURE__ */ f({
|
7
|
+
title: {
|
8
|
+
type: String,
|
9
|
+
default: "Sorting Options"
|
10
|
+
},
|
11
|
+
options: {
|
12
|
+
type: Array,
|
13
|
+
default: [{
|
14
|
+
label: "Date",
|
15
|
+
value: "createdAt"
|
16
|
+
}, {
|
17
|
+
label: "Popularity",
|
18
|
+
value: "popularity"
|
19
|
+
}, {
|
20
|
+
label: "Creator",
|
21
|
+
value: "creator"
|
22
|
+
}]
|
23
|
+
}
|
24
|
+
}, {
|
25
|
+
param: {},
|
26
|
+
paramModifiers: {},
|
27
|
+
order: {},
|
28
|
+
orderModifiers: {}
|
29
|
+
}),
|
30
|
+
emits: ["update:param", "update:order"],
|
31
|
+
setup(a) {
|
32
|
+
const s = o(a, "param"), e = o(a, "order");
|
33
|
+
return (B, l) => (t(), n("div", k, [
|
34
|
+
r("h4", y, v(a.title), 1),
|
35
|
+
(t(!0), n(g, null, w(a.options, (i) => (t(), x(h, {
|
36
|
+
radio: s.value,
|
37
|
+
"onUpdate:radio": l[0] || (l[0] = (b) => s.value = b),
|
38
|
+
label: i.label,
|
39
|
+
value: i.value,
|
40
|
+
class: "w-100 mn-b-thin"
|
41
|
+
}, null, 8, ["radio", "label", "value"]))), 256)),
|
42
|
+
r("div", M, [
|
43
|
+
r("button", {
|
44
|
+
onClick: l[1] || (l[1] = d(() => e.value = "asc", ["stop"])),
|
45
|
+
class: c([{
|
46
|
+
"bg-white t-black": e.value === "asc"
|
47
|
+
}, "radius-semi flex-center w-100 uppercase p-small flex-nowrap flex gap-thin pd-thin br-solid br-1px br-grey-transp-25 w-100"])
|
48
|
+
}, [
|
49
|
+
p(m, {
|
50
|
+
order: "asc",
|
51
|
+
fill: e.value === "asc" ? "rgb(var(--black))" : "rgb(var(--white))",
|
52
|
+
class: "i-small"
|
53
|
+
}, null, 8, ["fill"]),
|
54
|
+
u(" Ascending ")
|
55
|
+
], 2),
|
56
|
+
r("button", {
|
57
|
+
onClick: l[2] || (l[2] = d(() => e.value = "desc", ["stop"])),
|
58
|
+
class: c([{
|
59
|
+
"bg-white t-black": e.value === "desc"
|
60
|
+
}, "radius-semi flex-center w-100 uppercase p-small flex-nowrap flex gap-thin pd-thin br-solid br-1px br-grey-transp-25 w-100"])
|
61
|
+
}, [
|
62
|
+
p(m, {
|
63
|
+
order: "desc",
|
64
|
+
fill: e.value === "desc" ? "rgb(var(--black))" : "rgb(var(--white))",
|
65
|
+
class: "i-small"
|
66
|
+
}, null, 8, ["fill"]),
|
67
|
+
u(" Descending ")
|
68
|
+
], 2)
|
69
|
+
])
|
70
|
+
]));
|
71
|
+
}
|
72
|
+
};
|
73
|
+
export {
|
74
|
+
A as default
|
75
|
+
};
|
package/dist/prometheus-framework/src/modules/globals/views/components/blocks/CardHeader.vue.cjs
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),x=require("vue-router"),C=require("../../../../icons/placeholders/PlaceholderUserpic.vue.cjs"),V=require("../../../../reports/components/sections/FormReport.vue.cjs"),N=require("../../../../../components/Tooltip/Tooltip.vue2.cjs"),v=require("../../../../../components/Dropdown/Dropdown.vue2.cjs");;/* empty css */;/* empty css */require("../../../../auth/views/store/auth.cjs");require("../../../../organizations/store/memberships.cjs");const $=require("../../../../icons/navigation/IconEllipsis.vue.cjs"),S={key:0,class:"pd-b-zero"},z={class:"w-100 flex-v-center flex-nojustify flex"},D={class:"w-100 flex-nowrap flex-v-center flex"},M=["src"],q={key:2,class:"t-semi"},R={key:1,class:"mn-l-micro mn-r-micro"},F={key:2,class:"pos-relative"},P={key:3},T={class:"d-block mn-l-auto flex-nowrap flex flex-v-center"},U={key:0,class:"w-4r pos-relative i-thin"},L={style:{position:"absolute",top:"0px",right:"0px"},class:"br-solid br-2px br-white z-index-1 radius-big i-thin bg-second flex flex-center t-white p-small t-semi"},I=["src"],O={class:"bg-black flex-column flex gap-thin pd-thin radius-small"},j=e.createElementVNode("button",{class:"w-100 bg-black br-solid br-1px br-white-transp-20 t-white button-small button"}," Report ",-1),A=["onClick"],H={__name:"CardHeader",props:["user","entity","entityType","date","dateFormatted","owner","creator","members","membersPhotos","type","actions"],setup(t){x.useRouter();function E(n){const r=new Date,d=new Date(n),m=Math.abs(r-d),u=Math.floor(m/1e3),a=Math.floor(u/60),s=Math.floor(a/60),i=Math.floor(s/24),c=Math.floor(i/7);return c>0?`${c} week${c>1?"s":""} ago`:i>0?`${i} day${i>1?"s":""} ago`:s>0?`${s} hour${s>1?"s":""} ago`:a>0?`${a} minute${a>1?"s":""} ago`:"Just now"}return(n,r)=>{var m,u,a,s,i,c,k,h,g,b,f,y,w,B,p;const d=e.resolveComponent("router-link");return t.owner?(e.openBlock(),e.createElementBlock("header",S,[e.createElementVNode("div",z,[e.createElementVNode("div",D,[((a=(u=(m=t.owner.target)==null?void 0:m.profile)==null?void 0:u.photo)==null?void 0:a.length)>0&&t.type!=="short"?(e.openBlock(),e.createElementBlock("img",{key:0,src:(n.FILE_SERVER_URL||"")+t.owner.target.profile.photo,class:"radius-medium object-fit-cover mn-r-thin i-thin",onClick:r[0]||(r[0]=e.withModifiers(o=>n.$router.push({name:t.owner.type==="user"?"User Profile":"Organization",params:{_id:t.owner.target._id}}),["stop"]))},null,8,M)):e.createCommentVNode("",!0),!((i=(s=t.owner.target)==null?void 0:s.profile)!=null&&i.photo)&&t.type!=="short"?(e.openBlock(),e.createBlock(C.default,{key:1,class:"radius-medium mn-r-thin i-thin",onClick:r[1]||(r[1]=e.withModifiers(o=>n.$router.push({name:t.owner.type==="user"?"User Profile":"Organization",params:{_id:t.owner.target._id}}),["stop"]))})):e.createCommentVNode("",!0),t.type!=="short"?(e.openBlock(),e.createElementBlock("span",q,[e.createElementVNode("span",{onClick:r[2]||(r[2]=e.withModifiers(o=>n.$router.push({name:t.owner.type==="user"?"User Profile":"Organization",params:{_id:t.owner.target._id}}),["stop"]))},e.toDisplayString(((k=(c=t.owner.target)==null?void 0:c.profile)==null?void 0:k.name)||((h=t.creator.target)==null?void 0:h.username)||"Anonymous"),1),!t.creator.hidden&&((b=(g=t.owner.target)==null?void 0:g.profile)==null?void 0:b.name)!==((y=(f=t.creator.target)==null?void 0:f.profile)==null?void 0:y.name)?(e.openBlock(),e.createElementBlock("span",{key:0,onClick:r[3]||(r[3]=e.withModifiers(o=>{var l;return n.$router.push({name:"User Profile",params:{_id:(l=t.creator.target)==null?void 0:l._id}})},["stop"]))}," · by "+e.toDisplayString(((B=(w=t.creator.target)==null?void 0:w.profile)==null?void 0:B.name)||((p=t.creator.target)==null?void 0:p.username)||"Anonymous"),1)):e.createCommentVNode("",!0),t.date?(e.openBlock(),e.createElementBlock("span",R,"·")):e.createCommentVNode("",!0),t.date?(e.openBlock(),e.createElementBlock("span",F,[t.date?(e.openBlock(),e.createBlock(N.default,{key:0,text:n.formatDate(t.date)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(E(t.date)),1)]),_:1},8,["text"])):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),t.dateFormatted?(e.openBlock(),e.createElementBlock("span",P," · "+e.toDisplayString(t.dateFormatted),1)):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),e.createElementVNode("div",T,[t.members?(e.openBlock(),e.createElementBlock("div",U,[e.createElementVNode("span",L,e.toDisplayString(t.members),1),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.membersPhotos.slice(0,2),(o,l)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[o?(e.openBlock(),e.createElementBlock("img",{key:l,src:(n.FILE_SERVER_URL||"")+o,style:e.normalizeStyle({position:"absolute",top:"0px",right:l*20+20+"%",zIndex:1-l}),class:"br-solid br-2px br-white i-thin bg-light radius-big"},null,12,I)):(e.openBlock(),e.createBlock(C.default,{key:1,style:e.normalizeStyle({position:"absolute",top:"0px",right:l*20+20+"%",zIndex:1-l}),class:"br-solid br-2px br-white i-thin bg-light radius-big"},null,8,["style"]))],64))),256))])):e.createCommentVNode("",!0)]),t.type!=="short"&&t.user?(e.openBlock(),e.createBlock(v.default,{key:3,label:{component:$.default,class:"t-transp i-regular"},align:"right",class:"cursor-pointer z-index-2"},{default:e.withCtx(()=>[e.createElementVNode("section",O,[t.user!==t.creator.target._id?(e.openBlock(),e.createBlock(V.default,{key:0,user:t.user,type:t.entityType,target:t.entity._id,text:"Report",class:"w-100"},{default:e.withCtx(()=>[j]),_:1},8,["user","type","target"])):e.createCommentVNode("",!0),t.actions&&t.actions.length>0?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:1},e.renderList(t.actions,o=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[o.to?(e.openBlock(),e.createBlock(d,{key:o.to,to:o.to,class:e.normalizeClass(o.class||"w-100 bg-black br-solid br-1px br-white-transp-20 t-white button-small button")},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(o.label),1)]),_:2},1032,["to","class"])):e.createCommentVNode("",!0),o.method?(e.openBlock(),e.createElementBlock("button",{key:1,onClick:o.method,class:e.normalizeClass(o.class||"w-100 bg-black br-solid br-1px br-white-transp-20 t-white button-small button")},e.toDisplayString(o.label),11,A)):e.createCommentVNode("",!0)],64))),256)):e.createCommentVNode("",!0)])]),_:1},8,["label"])):e.createCommentVNode("",!0)])])])):e.createCommentVNode("",!0)}}};exports.default=H;
|