@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
@@ -1,6 +1,6 @@
|
|
1
1
|
import { reactive as i, watch as u } from "vue";
|
2
2
|
import c from "axios";
|
3
|
-
import { setError as a } from "../../globals/store/globals.js";
|
3
|
+
import { setError as a } from "../../globals/views/store/globals.js";
|
4
4
|
const s = c.create({ baseURL: process.env.API_URL, withCredentials: !0 }), r = i({
|
5
5
|
all: [],
|
6
6
|
current: {
|
@@ -1 +1 @@
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("vue"),p=require("axios"),s=require("../../globals/store/globals.cjs"),o=p.create({baseURL:process.env.API_URL,withCredentials:!0}),e=c.reactive({all:[],current:{organization:"",type:"",comment:null,order:null,positions:[]}}),h={async read(r){try{const t=await o.get("/leftovers",{params:r});return e.all=t.data,t.data}catch(t){throw s.setError(t),t}},async fetch(r){try{const t=await o.get("/leftovers/"+r);return e.current=t.data,t.data}catch(t){throw s.setError(t),t}},async create({organization:r,type:t,order:n,positions:l,creator:i,owner:d,comment:u}){try{const a=await o.post("/leftovers",{organization:r,type:t,order:n,positions:l,creator:i,owner:d,comment:u});return e.all.push(a.data),a.data}catch(a){throw s.setError(a),a}},async update(r){try{const t=await o.post("/leftovers/"+r._id,r);return e.current=t.data,t.data}catch(t){throw s.setError(t),t}},async delete(r){try{const t=await o.delete("/leftovers/"+r);return e.all.splice(e.all.findIndex(n=>n._id==r),1),t.data}catch(t){throw s.setError(t),t}}};c.watch(e,r=>{});exports.actions=h;exports.state=e;
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("vue"),p=require("axios"),s=require("../../globals/views/store/globals.cjs"),o=p.create({baseURL:process.env.API_URL,withCredentials:!0}),e=c.reactive({all:[],current:{organization:"",type:"",comment:null,order:null,positions:[]}}),h={async read(r){try{const t=await o.get("/leftovers",{params:r});return e.all=t.data,t.data}catch(t){throw s.setError(t),t}},async fetch(r){try{const t=await o.get("/leftovers/"+r);return e.current=t.data,t.data}catch(t){throw s.setError(t),t}},async create({organization:r,type:t,order:n,positions:l,creator:i,owner:d,comment:u}){try{const a=await o.post("/leftovers",{organization:r,type:t,order:n,positions:l,creator:i,owner:d,comment:u});return e.all.push(a.data),a.data}catch(a){throw s.setError(a),a}},async update(r){try{const t=await o.post("/leftovers/"+r._id,r);return e.current=t.data,t.data}catch(t){throw s.setError(t),t}},async delete(r){try{const t=await o.delete("/leftovers/"+r);return e.all.splice(e.all.findIndex(n=>n._id==r),1),t.data}catch(t){throw s.setError(t),t}}};c.watch(e,r=>{});exports.actions=h;exports.state=e;
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import { reactive as p, watch as h } from "vue";
|
2
2
|
import u from "axios";
|
3
|
-
import { setError as o } from "../../globals/store/globals.js";
|
3
|
+
import { setError as o } from "../../globals/views/store/globals.js";
|
4
4
|
const s = u.create({ baseURL: process.env.API_URL, withCredentials: !0 }), e = p({
|
5
5
|
all: [],
|
6
6
|
current: {
|
@@ -1 +1 @@
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("vue"),o=require("axios"),s=require("../../globals/store/globals.cjs"),i=o.create({baseURL:process.env.API_URL,withCredentials:!0}),t=n.reactive({all:[],current:{recommendation:!1,category:[],status:"unpublished",information:[],images:[],files:[],image3d:!1,name:"",sale:0,price:0,localization:[],modifications:[],quantityDiscount:[],ingredients:[],description:""}}),u={async create(e,r){const a={...r,organization:e};return await i.post("/api/products/create",a).then(c=>(l(c.data,"current"),Promise.resolve(c.data)),c=>(s.setError(c),Promise.reject(c)))},async read(e={}){let r={};e._id&&(r._id=e._id),e.category&&(r.category=e.category),e.organization&&(r.organization=e.organization),e.count&&(r.count=e.count),e.categories&&(r.categories=e.categories),e.prices&&(r.prices=e.prices),e.delivery&&(r.delivery=e.delivery),e.status&&(r.status=e.status),e.search&&(r.search=e.search),r.sort="createdAt",r.skip=e.skip,r.limit=e.limit;try{const a=await i.get("/api/products/read",{params:r});return e._id?(t.current={...a.data[0]},Promise.resolve(a.data[0])):Promise.resolve(a.data)}catch(a){return s.setError(a),Promise.reject(a)}},async update(e,r){return await i.post("/api/products/"+e,r).then(a=>Promise.resolve(a.data),a=>(s.setError(a),Promise.reject(a)))},async deleteProduct(e){return await i.delete("/api/products/"+e).then(r=>Promise.resolve(r.data),r=>(s.setError(r),Promise.reject(r)))},async submitMood(e=null){return i.post("/api/product/recommended",{mood:e}).then(r=>(t.current=r.data.product,t.current.recommendation=r.data.recommendationText,Promise.resolve(r.data)),r=>(s.setError(r),Promise.reject(r)))},async fetchProducts(){return await i.get("/api/products/read").then(e=>(t.all=e.data,Promise.resolve(e.data)),e=>(s.setError(e),Promise.reject(e)))},async fetchProductsPopular(){return await i.get("/api/products/popular").then(e=>(t.popular=e.data,Promise.resolve(e.data)),e=>(s.setError(e),Promise.reject(e)))},async fetchProductsPublished(){return await i.get("/api/products").then(e=>{let r=e.data.filter(function(a,c){return a.status!=="unpublished"});return t.all=r,t.filtered=r.slice(),t.filteredPrice=t.filtered,t.filteredPrice.sort(function(a,c){return a[t.sort.current]>c[t.sort.current]?t.sort.ascending?1:-1:a[t.sort.current]<c[t.sort.current]?t.sort.ascending?-1:1:0}),Promise.resolve(e.data)},e=>(s.setError(e),Promise.reject(e)))},async fetchProduct(e){try{const r=await i.get("/api/products/"+e);return t.current=r.data[0],Promise.resolve(r.data[0])}catch(r){return s.setError(r),Promise.reject(r)}},async fetchProductPopular(){return await i.get("/api/products").then(e=>(t.all=e.data.slice(1,5),Promise.resolve(e.data.slice(1,5))),e=>(s.setError(e),Promise.reject(e)))}},d={resetProduct(e){t.current={recommendation:!1,category:[],status:"unpublished",information:[],images:[],files:[],image3d:!1,name:"",sale:0,price:0,localization:[],modifications:[],quantityDiscount:[],ingredients:[],description:""}}};function l(e,r){t[r]=e}const m={};n.watch(t,(e,r)=>{});exports.actions=u;exports.getters=m;exports.mutations=d;exports.state=t;
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("vue"),o=require("axios"),s=require("../../globals/views/store/globals.cjs"),i=o.create({baseURL:process.env.API_URL,withCredentials:!0}),t=n.reactive({all:[],current:{recommendation:!1,category:[],status:"unpublished",information:[],images:[],files:[],image3d:!1,name:"",sale:0,price:0,localization:[],modifications:[],quantityDiscount:[],ingredients:[],description:""}}),u={async create(e,r){const a={...r,organization:e};return await i.post("/api/products/create",a).then(c=>(l(c.data,"current"),Promise.resolve(c.data)),c=>(s.setError(c),Promise.reject(c)))},async read(e={}){let r={};e._id&&(r._id=e._id),e.category&&(r.category=e.category),e.organization&&(r.organization=e.organization),e.count&&(r.count=e.count),e.categories&&(r.categories=e.categories),e.prices&&(r.prices=e.prices),e.delivery&&(r.delivery=e.delivery),e.status&&(r.status=e.status),e.search&&(r.search=e.search),r.sort="createdAt",r.skip=e.skip,r.limit=e.limit;try{const a=await i.get("/api/products/read",{params:r});return e._id?(t.current={...a.data[0]},Promise.resolve(a.data[0])):Promise.resolve(a.data)}catch(a){return s.setError(a),Promise.reject(a)}},async update(e,r){return await i.post("/api/products/"+e,r).then(a=>Promise.resolve(a.data),a=>(s.setError(a),Promise.reject(a)))},async deleteProduct(e){return await i.delete("/api/products/"+e).then(r=>Promise.resolve(r.data),r=>(s.setError(r),Promise.reject(r)))},async submitMood(e=null){return i.post("/api/product/recommended",{mood:e}).then(r=>(t.current=r.data.product,t.current.recommendation=r.data.recommendationText,Promise.resolve(r.data)),r=>(s.setError(r),Promise.reject(r)))},async fetchProducts(){return await i.get("/api/products/read").then(e=>(t.all=e.data,Promise.resolve(e.data)),e=>(s.setError(e),Promise.reject(e)))},async fetchProductsPopular(){return await i.get("/api/products/popular").then(e=>(t.popular=e.data,Promise.resolve(e.data)),e=>(s.setError(e),Promise.reject(e)))},async fetchProductsPublished(){return await i.get("/api/products").then(e=>{let r=e.data.filter(function(a,c){return a.status!=="unpublished"});return t.all=r,t.filtered=r.slice(),t.filteredPrice=t.filtered,t.filteredPrice.sort(function(a,c){return a[t.sort.current]>c[t.sort.current]?t.sort.ascending?1:-1:a[t.sort.current]<c[t.sort.current]?t.sort.ascending?-1:1:0}),Promise.resolve(e.data)},e=>(s.setError(e),Promise.reject(e)))},async fetchProduct(e){try{const r=await i.get("/api/products/"+e);return t.current=r.data[0],Promise.resolve(r.data[0])}catch(r){return s.setError(r),Promise.reject(r)}},async fetchProductPopular(){return await i.get("/api/products").then(e=>(t.all=e.data.slice(1,5),Promise.resolve(e.data.slice(1,5))),e=>(s.setError(e),Promise.reject(e)))}},d={resetProduct(e){t.current={recommendation:!1,category:[],status:"unpublished",information:[],images:[],files:[],image3d:!1,name:"",sale:0,price:0,localization:[],modifications:[],quantityDiscount:[],ingredients:[],description:""}}};function l(e,r){t[r]=e}const m={};n.watch(t,(e,r)=>{});exports.actions=u;exports.getters=m;exports.mutations=d;exports.state=t;
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import { reactive as n, watch as u } from "vue";
|
2
2
|
import o from "axios";
|
3
|
-
import { setError as i } from "../../globals/store/globals.js";
|
3
|
+
import { setError as i } from "../../globals/views/store/globals.js";
|
4
4
|
const s = o.create({ baseURL: process.env.API_URL, withCredentials: !0 }), r = n({
|
5
5
|
all: [],
|
6
6
|
current: {
|
package/dist/prometheus-framework/src/modules/reports/components/sections/FormReport.vue.cjs
CHANGED
@@ -1 +1 @@
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),c=require("../../../../components/Popup/Popup.
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),c=require("../../../../components/Popup/Popup.vue.cjs"),d=require("../../../../components/Button/Button.vue2.cjs"),m=require("../../../../components/Select/Select.vue.cjs"),f=require("../../store/reports.cjs"),b=e.createElementVNode("h3",{class:"mn-b-small"}," Report Content ",-1),g=e.createElementVNode("p",{class:"p-medium mn-b-small"}," We strive to maintain a safe and comfortable environment for all users. If you encounter content that you believe violates our guidelines, please report it: ",-1),v=e.createElementVNode("p",{class:"p-medium mn-b-small"},"Our moderators will review your report within 24 hours and take action if it violates our policies.",-1),h={__name:"FormReport",props:{user:{type:String,required:!1},type:{type:String,required:!1},reason:{type:String,required:!1},target:{type:String,required:!0},text:{type:String,default:"!"},status:{type:String,default:"new"}},setup(i){const t=i,r=e.reactive({user:t.user,type:t.type,reason:t.reason,target:t.target,status:t.status});function l(){r.user===null&&delete r.user,f.actions.create(r)}const s=e.ref(!1);function u(){s.value=!0}function a(){s.value=!1}return(p,o)=>(e.openBlock(),e.createElementBlock("div",{onClick:o[1]||(o[1]=n=>u())},[e.renderSlot(p.$slots,"default"),e.createVNode(c.default,{onClosePopup:a,isPopupOpen:s.value,class:"w-m-33r t-left pd-big bg-white radius-big"},{default:e.withCtx(()=>[b,g,e.createVNode(m.default,{select:r.reason,"onUpdate:select":o[0]||(o[0]=n=>r.reason=n),options:["harassment","spam","inappropriate","misinformation","copyright","other"],placeholder:"Select reason",class:"mn-b-small bg-white br-solid br-black-transp br-1px uppercase pd-medium t-semi bg-white t-black radius-medium"},null,8,["select"]),v,e.createVNode(d.default,{submit:l,callback:a,class:"w-100 bg-black t-white"},{default:e.withCtx(()=>[e.createTextVNode(" Report ")]),_:1})]),_:1},8,["isPopupOpen"])]))}};exports.default=h;
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import { reactive as d, ref as f, openBlock as b, createElementBlock as g, renderSlot as h, createVNode as s, withCtx as l, createTextVNode as y, createElementVNode as a } from "vue";
|
2
|
-
import _ from "../../../../components/Popup/Popup.
|
2
|
+
import _ from "../../../../components/Popup/Popup.vue.js";
|
3
3
|
import v from "../../../../components/Button/Button.vue2.js";
|
4
|
-
import w from "../../../../components/Select/Select.
|
4
|
+
import w from "../../../../components/Select/Select.vue.js";
|
5
5
|
import { actions as S } from "../../store/reports.js";
|
6
6
|
const k = /* @__PURE__ */ a("h3", { class: "mn-b-small" }, " Report Content ", -1), P = /* @__PURE__ */ a("p", { class: "p-medium mn-b-small" }, " We strive to maintain a safe and comfortable environment for all users. If you encounter content that you believe violates our guidelines, please report it: ", -1), R = /* @__PURE__ */ a("p", { class: "p-medium mn-b-small" }, "Our moderators will review your report within 24 hours and take action if it violates our policies.", -1), O = {
|
7
7
|
__name: "FormReport",
|
@@ -1 +1 @@
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("vue"),s=require("../../globals/store/globals.cjs"),l=require("axios"),a=l.create({baseURL:process.env.API_URL}),r=c.reactive({all:[],current:{_id:"",status:"",user:"",type:"",reason:"",target:""},form:{isOpen:!1,status:"",user:"",type:"",reason:"",target:""}}),i={async read(){try{const t=await a.get("/reports");return o.setAll(t.data),t.data}catch(t){throw s.setError(t),t}},async create(t){try{return console.log(t),(await a.post("/reports",t)).data}catch(e){throw s.setError(e),e}},async update(t){try{const e=await a.put("/reports/"+t._id,t);return o.updateReportInAll(e.data),e.data}catch(e){throw s.setError(e),e}},async remove(t){try{const e=await a.delete("/reports/"+t._id);return o.removeReportFromAll(t._id),e.data}catch(e){throw s.setError(e),e}}},o={setAll(t){r.all=t},setCurrent(t){r.current=t},updateReportInAll(t){const e=r.all.findIndex(n=>n._id===t._id);e!==-1&&(r.all[e]=t)},removeReportFromAll(t){const e=r.all.findIndex(n=>n._id===t);e!==-1&&r.all.splice(e,1)},toggleForm(){r.form.isOpen=!r.form.isOpen,r.form={status:"",user:"",type:"",reason:"",target:""}}};c.watch(r,(t,e)=>{});exports.actions=i;exports.mutations=o;exports.state=r;
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("vue"),s=require("../../globals/views/store/globals.cjs"),l=require("axios"),a=l.create({baseURL:process.env.API_URL}),r=c.reactive({all:[],current:{_id:"",status:"",user:"",type:"",reason:"",target:""},form:{isOpen:!1,status:"",user:"",type:"",reason:"",target:""}}),i={async read(){try{const t=await a.get("/reports");return o.setAll(t.data),t.data}catch(t){throw s.setError(t),t}},async create(t){try{return console.log(t),(await a.post("/reports",t)).data}catch(e){throw s.setError(e),e}},async update(t){try{const e=await a.put("/reports/"+t._id,t);return o.updateReportInAll(e.data),e.data}catch(e){throw s.setError(e),e}},async remove(t){try{const e=await a.delete("/reports/"+t._id);return o.removeReportFromAll(t._id),e.data}catch(e){throw s.setError(e),e}}},o={setAll(t){r.all=t},setCurrent(t){r.current=t},updateReportInAll(t){const e=r.all.findIndex(n=>n._id===t._id);e!==-1&&(r.all[e]=t)},removeReportFromAll(t){const e=r.all.findIndex(n=>n._id===t);e!==-1&&r.all.splice(e,1)},toggleForm(){r.form.isOpen=!r.form.isOpen,r.form={status:"",user:"",type:"",reason:"",target:""}}};c.watch(r,(t,e)=>{});exports.actions=i;exports.mutations=o;exports.state=r;
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import { reactive as c, watch as l } from "vue";
|
2
|
-
import { setError as a } from "../../globals/store/globals.js";
|
2
|
+
import { setError as a } from "../../globals/views/store/globals.js";
|
3
3
|
import i from "axios";
|
4
4
|
const o = i.create({ baseURL: process.env.API_URL }), r = c({
|
5
5
|
all: [],
|
@@ -1 +1 @@
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),r=require("../../../icons/navigation/IconEdit.vue.cjs"),a=require("../../../../components/Chips/Chips.
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),r=require("../../../icons/navigation/IconEdit.vue.cjs"),a=require("../../../../components/Chips/Chips.vue2.cjs"),d=require("../../../../components/Map/Map.vue.cjs");;/* empty css */const c=require("../../../../../../_virtual/_plugin-vue_export-helper.cjs"),l=t=>(e.pushScopeId("data-v-bc545dfb"),t=t(),e.popScopeId(),t),p={class:"radius-big o-hidden pos-relative cols-2-1_3"},u={class:"pd-medium w-100"},m=["innerHTML"],h={class:"d-block p-big mn-b-semi"},g=l(()=>e.createElementVNode("h4",null,"Delivery:",-1)),b=l(()=>e.createElementVNode("h4",null,"Accepted Payment:",-1)),y={__name:"CardSpot",props:{spot:Object,organization:Object},setup(t){const i=t;return(o,n)=>(e.openBlock(),e.createElementBlock("div",p,[e.createVNode(d.default,{apiKey:o.GOOGLE_MAPS_API_KEY,location:{lat:t.spot.location.coordinates[1],lng:t.spot.location.coordinates[0]},locale:o.$i18n.locale,class:""},null,8,["apiKey","location","locale"]),e.createElementVNode("div",u,[e.createVNode(r.default,{onClick:n[0]||(n[0]=s=>o.$router.push({name:"Spot Edit",params:{_id:i.organization._id,spot:t.spot._id}})),class:"z-index-2 pos-absolute pos-t-regular pos-r-regular i-regular t-transp"}),e.createElementVNode("p",{onClick:n[1]||(n[1]=s=>o.$router.push(`/app/organization/${i.organization._id}/spots/${t.spot._id}`)),class:"pd-thin bg-white radius-small mn-b-thin p-small w-max"},e.toDisplayString(t.spot.address),1),e.createElementVNode("h3",{onClick:n[2]||(n[2]=s=>o.$router.push(`/app/organization/${i.organization._id}/spots/${t.spot._id}`)),class:"mn-b-thin w-100",innerHTML:t.spot.profile.name},null,8,m),e.createElementVNode("p",h,e.toDisplayString(t.spot.profile.description),1),g,o.type!=="short"&&t.spot.delivery.length>0?(e.openBlock(),e.createBlock(a.default,{key:0,chips:t.spot.delivery},null,8,["chips"])):e.createCommentVNode("",!0),b,o.type!=="short"&&t.spot.payment.length>0?(e.openBlock(),e.createBlock(a.default,{key:1,chips:t.spot.payment},null,8,["chips"])):e.createCommentVNode("",!0)])]))}},v=c.default(y,[["__scopeId","data-v-bc545dfb"]]);exports.default=v;
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import { openBlock as n, createElementBlock as u, createVNode as l, createElementVNode as i, toDisplayString as r, createBlock as p, createCommentVNode as d, pushScopeId as h, popScopeId as g } from "vue";
|
2
2
|
import b from "../../../icons/navigation/IconEdit.vue.js";
|
3
|
-
import c from "../../../../components/Chips/Chips.
|
3
|
+
import c from "../../../../components/Chips/Chips.vue2.js";
|
4
4
|
import f from "../../../../components/Map/Map.vue.js";
|
5
5
|
/* empty css */
|
6
6
|
import y from "../../../../../../_virtual/_plugin-vue_export-helper.js";
|
package/dist/prometheus-framework/src/modules/spots/components/blocks/SpotMemberModify.vue.cjs
CHANGED
@@ -1 +1 @@
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue");;/* empty css */const _=require("../../../../../../_virtual/_plugin-vue_export-helper.cjs");;/* empty css
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue");;/* empty css */const _=require("../../../../../../_virtual/_plugin-vue_export-helper.cjs");;/* empty css */;/* empty css */const f={class:"br-grey-transp-25 radius-small mn-b-small"},k={key:1,class:"pd-small br-grey-transp-25 br-1px br-solid"},v=["disabled"],y={__name:"SpotMemberModify",props:{isPopupOpen:Boolean,spot:Number,spots:Array,mainspot:Object,allspots:Array},emits:["callback","remove"],setup(a,{emit:c}){const t=a,r=c,o=e.ref({subspot:null});t.spot!==null&&(o.value=t.spots[t.spot]);function p(u,s,n){return u.filter(l=>!(s.some(b=>b._id===l._id)||n._id===l._id))}const i=e.computed(()=>p(t.allspots,t.spots,t.mainspot));async function m(){t.spots.push(o.value.subspot),r("callback")}async function d(){t.spots.splice(t.spot,1),r("callback")}return(u,s)=>{const n=e.resolveComponent("VueSelect");return e.openBlock(),e.createElementBlock("div",null,[e.createElementVNode("div",f,[t.spot===null?(e.openBlock(),e.createBlock(n,{key:0,modelValue:o.value.subspot,"onUpdate:modelValue":s[0]||(s[0]=l=>o.value.subspot=l),options:i.value,"get-option-label":l=>l.name,class:"w-100 mn-b-small"},null,8,["modelValue","options","get-option-label"])):(e.openBlock(),e.createElementBlock("div",k,e.toDisplayString(o.value.name?o.value.name:"Безымянный"),1))]),t.spot===null?(e.openBlock(),e.createElementBlock("button",{key:0,disabled:!o.value.subspot,onClick:m,class:"w-100 button bg-second t-white"}," Добавить отдел ",8,v)):e.createCommentVNode("",!0),t.spot!==null?(e.openBlock(),e.createElementBlock("button",{key:1,onClick:d,class:"w-100 button bg-fourth t-white"}," Удалить отдел ")):e.createCommentVNode("",!0)])}}},B=_.default(y,[["__scopeId","data-v-3c991e96"]]);exports.default=B;
|
package/dist/prometheus-framework/src/modules/spots/components/blocks/SpotMemberModify.vue.js
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
import { ref as v, computed as y, resolveComponent as k, openBlock as s, createElementBlock as n, createElementVNode as g, createBlock as S, toDisplayString as V, createCommentVNode as u } from "vue";
|
2
2
|
/* empty css */
|
3
3
|
import h from "../../../../../../_virtual/_plugin-vue_export-helper.js";
|
4
|
-
/* empty css
|
4
|
+
/* empty css */
|
5
5
|
/* empty css */
|
6
6
|
const w = { class: "br-grey-transp-25 radius-small mn-b-small" }, M = {
|
7
7
|
key: 1,
|
@@ -1 +1 @@
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),y=require("vue-router"),v=require("vue-i18n");;/* empty css */;/* empty css */;/* empty css */;/* empty css
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),y=require("vue-router"),v=require("vue-i18n");;/* empty css */;/* empty css */;/* empty css */;/* empty css */const m=require("../../../globals/views/store/globals.cjs"),f=require("../../../products/store/categories.cjs"),g=require("../../../marketplace/store/marketplace.cjs"),h={class:"w-100 h-100"},k={class:"h-100 w-100 flex-nowrap flex-column flex gap-thin"},_={class:"pos-absolute z-index-2 w-100"},w={class:"bg-black-transp-25 t-white pd-small w-100 bg-blur-big mn-l-auto mn-r-auto t-center"},b=e.createElementVNode("span",{class:""},"Weed in ",-1),B={key:0},E={key:1},q={key:2},C={__name:"Spots",setup(O){const s=y.useRoute(),n=y.useRouter(),o=e.ref({city:null,state:null,country:null});function u(t){return t.replace(/-/g," ").replace(/\b\w/g,r=>r.toUpperCase())}e.onMounted(async()=>{if(s.params){let t={country:u(s.params.country),state:u(s.params.state),city:u(s.params.city)};o.value=t}if(s.query){const t=s.query,r={categories:t.categories?t.categories.split(","):[],prices:t.prices?t.prices.split(","):[],delivery:t.delivery?t.delivery.split(","):[]};g.state.filter.selected=r}await f.actions.fetchCategories()}),e.watch(()=>g.state.filter.selected,(t,r)=>{const a={...s.query};Object.keys(r).forEach(l=>{a[l]&&delete a[l]});const i=Object.fromEntries(Object.entries(t).filter(([l,c])=>Array.isArray(c)&&c.length>0).map(([l,c])=>[l,c.join(",")]));Object.assign(a,i),n.push({query:a})},{deep:!0});function p(t){return t.toLowerCase().replace(/ /g,"-").replace(/[^a-z0-9-]/g,"")}e.watch(()=>m.state.position,t=>{const r={...n.currentRoute.value};let a={country:p(t.country),state:p(t.state),city:p(t.city)};r.params=a,n.replace(r)},{deep:!0});const d={locale:"en",messages:{en:{meta:{title:"Marketplace – Shop Our Wide Selection of Quality Weed for Delivery",description:"Browse our marketplace of top-grade weed strains and choose from a variety of delivery options. Order now and have your favorite strains delivered straight to your door. Safe, fast, and reliable."},breadcrumbs:{home:"Home",store:"Marketplace"},categoriesTitle:"Category",categories:[],sort:{price:"By price",newest:"By newest",popularity:"By popularity"},filters:{title:"Filters",price:{title:"Price",from:"From",to:"To"},filters:[],reset:"Reset Filters"}},ru:{meta:{title:"Маркетплейс – Выбирайте из нашего ассортимента качественной травки для доставки",description:"Маркетплейс – Изучите наши продукты высокого качества и выбирайте из различных вариантов доставки. Закажите сейчас и получите свои любимые сорта на дом. Безопасно, быстро и надежно."},breadcrumbs:{home:"Главная",store:"Маркетплейс"},categoriesTitle:"Категория",categories:[],sort:{price:"По цене",newest:"По новизне",popularity:"По популярности"},filters:{title:"Фильтры",price:{title:"Цена",from:"От",to:"До"},filters:[],reset:"Сбросить фильтры"}}}};return f.state.all.forEach(t=>{t.localization.forEach(r=>{d.messages[r.locale].categories.push(r.text)})}),v.useI18n(d),(t,r)=>{const a=e.resolveComponent("router-view");return e.openBlock(),e.createElementBlock("div",h,[e.createElementVNode("div",k,[e.createElementVNode("div",_,[e.createElementVNode("h2",w,[b,o.value.city||o.value.state||o.value.country?(e.openBlock(),e.createElementBlock("span",{key:0,onClick:r[0]||(r[0]=i=>{m.state.isOpenLocationPopup=!0}),class:"t-semi t-main"},[o.value.city?(e.openBlock(),e.createElementBlock("span",B,e.toDisplayString(o.value.city)+", ",1)):e.createCommentVNode("",!0),o.value.state?(e.openBlock(),e.createElementBlock("span",E,e.toDisplayString(o.value.state)+", ",1)):e.createCommentVNode("",!0),o.value.country?(e.openBlock(),e.createElementBlock("span",q,e.toDisplayString(o.value.country),1)):e.createCommentVNode("",!0)])):(e.openBlock(),e.createElementBlock("span",{key:1,onClick:r[1]||(r[1]=i=>{m.state.isOpenLocationPopup=!0}),class:"t-semi t-main"}," The World "))])]),e.createVNode(a,null,{default:e.withCtx(({Component:i,route:l})=>[e.createVNode(e.Transition,{name:"scaleIn",mode:"out-in"},{default:e.withCtx(()=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(i),{ref:"page",key:l.path,localPosition:o.value,apiKey:t.GOOGLE_MAPS_API_KEY,locale:t.$i18n.locale,class:""},null,8,["localPosition","apiKey","locale"]))]),_:2},1024)]),_:1})])])}}};exports.default=C;
|
@@ -4,8 +4,8 @@ import { useI18n as j } from "vue-i18n";
|
|
4
4
|
/* empty css */
|
5
5
|
/* empty css */
|
6
6
|
/* empty css */
|
7
|
-
/* empty css
|
8
|
-
import { state as h } from "../../../globals/store/globals.js";
|
7
|
+
/* empty css */
|
8
|
+
import { state as h } from "../../../globals/views/store/globals.js";
|
9
9
|
import { actions as q, state as R } from "../../../products/store/categories.js";
|
10
10
|
import { state as b } from "../../../marketplace/store/marketplace.js";
|
11
11
|
const T = { class: "w-100 h-100" }, V = { class: "h-100 w-100 flex-nowrap flex-column flex gap-thin" }, z = { class: "pos-absolute z-index-2 w-100" }, A = { class: "bg-black-transp-25 t-white pd-small w-100 bg-blur-big mn-l-auto mn-r-auto t-center" }, F = /* @__PURE__ */ p("span", { class: "" }, "Weed in ", -1), L = { key: 0 }, M = { key: 1 }, W = { key: 2 }, X = {
|
@@ -1 +1 @@
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const o=require("vue"),I=require("vue-router"),V=require("../../../../../../node_modules/@googlemaps/js-api-loader/dist/index.cjs"),j=require("../../../../components/Button/Button.vue2.cjs"),b=require("../../../organizations/store/organizations.cjs"),p=require("../../../globals/store/globals.cjs"),h=require("../../../marketplace/store/marketplace.cjs");;/* empty css */const K=require("../../../../../../_virtual/_plugin-vue_export-helper.cjs"),F=y=>(o.pushScopeId("data-v-
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const o=require("vue"),I=require("vue-router"),V=require("../../../../../../node_modules/@googlemaps/js-api-loader/dist/index.cjs"),j=require("../../../../components/Button/Button.vue2.cjs"),b=require("../../../organizations/store/organizations.cjs"),p=require("../../../globals/views/store/globals.cjs"),h=require("../../../marketplace/store/marketplace.cjs");;/* empty css */const K=require("../../../../../../_virtual/_plugin-vue_export-helper.cjs"),F=y=>(o.pushScopeId("data-v-3b081dcc"),y=y(),o.popScopeId(),y),G={class:"h-100 w-100 pos-relative"},Z={class:"w-100 pos-absolute z-index-2 pos-b-10"},H=F(()=>o.createElementVNode("div",{id:"map",class:"h-100 w-100 pos-relative o-hidden"},null,-1)),U={__name:"Map",props:{localPosition:Object,location:{type:Object,default:()=>({lat:15.87,lng:100.9925})},address:{type:String,default:null},apiKey:String,locale:{type:String,default:"en"}},setup(y){const w=I.useRouter(),e=I.useRoute(),E=y;let n=o.ref(null),c=o.ref([]),O=o.ref(0),L=o.ref(50),u=o.ref({lat:0,lng:0}),_=o.ref(null);async function C(){try{const a=await(await fetch("https://ip2c.org/s")).text();if(!a||a[0]!=="1")throw new Error("Unable to fetch the country");const t=a.split(";");if(t.length<4)throw new Error("Invalid response format");return console.log(t[3]),t[3]}catch(s){throw console.error(s),s}}o.onMounted(async()=>{var m,g,v,T,d,k,q,x;let s=parseFloat(e.query.lat||((g=(m=p.state.position)==null?void 0:m.location)==null?void 0:g.lat)),a=parseFloat(e.query.lng||((T=(v=p.state.position)==null?void 0:v.location)==null?void 0:T.lng)),t;e.params.location||(d=p.state.position)!=null&&d.location?t=15:e.params.country||(k=p.state.position)!=null&&k.country?t=9:e.params.state||(q=p.state.position)!=null&&q.state?t=6:e.params.city||(x=p.state.position)!=null&&x.city?t=14:t=2,new V.Loader({apiKey:E.apiKey,version:"weekly",libraries:["places"],language:"en"}).load().then(async()=>{if(!s||!a){let r;const i=new google.maps.Geocoder;try{r=await C()}catch{r="Thailand",console.log(error)}try{const l=await i.geocode({address:r});console.log(l),l?(s=l.results[0].geometry.location.lat(),a=l.results[0].geometry.location.lng(),t=6):console.error("No results found for the country code.")}catch(l){console.error("Error getting coordinates from country code:",l)}}if(!s&&!a&&(e.params.country||e.params.state||e.params.city)){const r=new google.maps.Geocoder,i=[e.params.city,e.params.state,e.params.country].filter(Boolean).join(", ");try{const l=await r.geocode({address:i});l[0]&&(s=l[0].geometry.location.lat(),a=l[0].geometry.location.lng())}catch(l){console.error("Error getting coordinates:",l)}}O.value+=L.value;const z={country:e.params.country,state:e.params.state,city:e.params.city,categories:e.query.categories,prices:e.query.prices,delivery:e.query.delivery,sortParam:e.query.sortParam||h.state.sort.param,sortOrder:e.query.sortOrder||h.state.sort.order,location:{coordinates:[a,s]},locationRadius:1e3,limit:500};console.log(z);const P=await b.actions.read(z);b.state.all=[...b.state.all,...P],n.value=new google.maps.Map(document.getElementById("map"),{mapTypeControl:!1,fullscreenControl:!1,styles:[{elementType:"geometry",stylers:[{color:"#212121"}]},{elementType:"labels.icon",stylers:[{visibility:"off"}]},{elementType:"labels.text.fill",stylers:[{color:"#757575"}]},{elementType:"labels.text.stroke",stylers:[{color:"#212121"}]},{featureType:"administrative",elementType:"geometry",stylers:[{color:"#757575"},{visibility:"off"}]},{featureType:"administrative.country",elementType:"labels.text.fill",stylers:[{color:"#9e9e9e"}]},{featureType:"administrative.land_parcel",stylers:[{visibility:"off"}]},{featureType:"administrative.locality",elementType:"labels.text.fill",stylers:[{color:"#bdbdbd"}]},{featureType:"administrative.neighborhood",stylers:[]},{featureType:"poi",stylers:[{visibility:"off"}]},{featureType:"poi",elementType:"labels.text.fill",stylers:[{color:"#757575"}]},{featureType:"poi.park",elementType:"geometry",stylers:[{color:"#181818"}]},{featureType:"poi.park",elementType:"labels.text.fill",stylers:[{color:"#616161"}]},{featureType:"poi.park",elementType:"labels.text.stroke",stylers:[{color:"#1b1b1b"}]},{featureType:"road",elementType:"geometry.fill",stylers:[{color:"#2c2c2c"}]},{featureType:"road",elementType:"labels",stylers:[{visibility:"off"}]},{featureType:"road",elementType:"labels.icon",stylers:[{visibility:"off"}]},{featureType:"road",elementType:"labels.text.fill",stylers:[{color:"#8a8a8a"}]},{featureType:"road.arterial",elementType:"geometry",stylers:[{color:"#373737"}]},{featureType:"road.arterial",elementType:"labels",stylers:[]},{featureType:"road.highway",elementType:"geometry",stylers:[{color:"#3c3c3c"}]},{featureType:"road.highway",elementType:"labels",stylers:[{visibility:"off"}]},{featureType:"road.highway.controlled_access",elementType:"geometry",stylers:[{color:"#4e4e4e"}]},{featureType:"road.local",stylers:[]},{featureType:"road.local",elementType:"labels.text.fill",stylers:[{color:"#616161"}]},{featureType:"transit",stylers:[{visibility:"off"}]},{featureType:"transit",elementType:"labels.text.fill",stylers:[{color:"#757575"}]},{featureType:"water",elementType:"geometry",stylers:[{color:"#000000"}]},{featureType:"water",elementType:"labels.text",stylers:[{visibility:"off"}]},{featureType:"water",elementType:"labels.text.fill",stylers:[{color:"#3d3d3d"}]}],center:{lat:s,lng:a},zoom:parseInt(e.query.zoom||t||"12")});for(let r of c.value)r.setMap(null);c.value=[],c.value=P.map(r=>{var l;let i=(l=r.spots[0])==null?void 0:l.location;if(i&&i.type==="Point"){let[N,R]=i.coordinates,S="/marker_2.png";r.products&&r.products.length===0&&(S="/marker.png");const M=new google.maps.Marker({position:{lng:N,lat:R},map:n.value,icon:{url:S,scaledSize:new google.maps.Size(32,48),origin:new google.maps.Point(0,0),anchor:new google.maps.Point(16,48)}});return M.addListener("click",()=>{w.push({name:"Organization",params:{_id:r._id}})}),M}return null}).filter(r=>r!==null),google.maps.event.addListener(n.value,"center_changed",()=>{let r=n.value.getCenter();u.value={lat:r.lat(),lng:r.lng()}}),google.maps.event.addListener(n.value,"zoom_changed",()=>{_.value=n.value.getZoom()})})});const B=async()=>{const s={country:e.params.country,state:e.params.state,city:e.params.city,categories:e.query.categories,prices:e.query.prices,delivery:e.query.delivery,sortParam:e.query.sortParam||h.state.sort.param,sortOrder:e.query.sortOrder||h.state.sort.order,locationRadius:8e3/_.value,limit:100,location:{type:"Point",coordinates:[u.value.lng,u.value.lat]}};console.log([u.value.lng,u.value.lat]);try{const a=await b.actions.read(s);for(let t of c.value)t.setMap(null);c.value=[],c.value=a.map(t=>{var m;let f=(m=t.spots[0])==null?void 0:m.location;if(f&&f.type==="Point"){let[g,v]=f.coordinates,T=t.products&&t.products.length>0?"/marker_2.png":"/marker.png";const d=new google.maps.Marker({position:{lng:g,lat:v},map:n.value,icon:{url:T,scaledSize:new google.maps.Size(32,48),origin:new google.maps.Point(0,0),anchor:new google.maps.Point(16,48)}});return d.addListener("click",()=>{w.push({name:"Organization",params:{_id:t._id}})}),d}return null}).filter(t=>t!==null)}catch(a){console.error("Error fetching organizations:",a)}};return(s,a)=>(o.openBlock(),o.createElementBlock("div",G,[o.createElementVNode("div",Z,[o.createVNode(j.default,{submit:B,class:"mn-l-auto mn-r-auto bg-black t-white w-min-20 button"},{default:o.withCtx(()=>[o.createTextVNode(" Search in This Location ")]),_:1})]),H]))}},A=K.default(U,[["__scopeId","data-v-3b081dcc"]]);exports.default=A;
|
@@ -3,11 +3,11 @@ import { useRouter as D, useRoute as H } from "vue-router";
|
|
3
3
|
import { Loader as J } from "../../../../../../node_modules/@googlemaps/js-api-loader/dist/index.js";
|
4
4
|
import Q from "../../../../components/Button/Button.vue2.js";
|
5
5
|
import { actions as I, state as M } from "../../../organizations/store/organizations.js";
|
6
|
-
import { state as p } from "../../../globals/store/globals.js";
|
6
|
+
import { state as p } from "../../../globals/views/store/globals.js";
|
7
7
|
import { state as h } from "../../../marketplace/store/marketplace.js";
|
8
8
|
/* empty css */
|
9
9
|
import W from "../../../../../../_virtual/_plugin-vue_export-helper.js";
|
10
|
-
const X = (y) => (U("data-v-
|
10
|
+
const X = (y) => (U("data-v-3b081dcc"), y = y(), A(), y), Y = { class: "h-100 w-100 pos-relative" }, ee = { class: "w-100 pos-absolute z-index-2 pos-b-10" }, te = /* @__PURE__ */ X(() => /* @__PURE__ */ E("div", {
|
11
11
|
id: "map",
|
12
12
|
class: "h-100 w-100 pos-relative o-hidden"
|
13
13
|
}, null, -1)), oe = {
|
@@ -471,7 +471,7 @@ const X = (y) => (U("data-v-b8675d5a"), y = y(), A(), y), Y = { class: "h-100 w-
|
|
471
471
|
te
|
472
472
|
]));
|
473
473
|
}
|
474
|
-
}, me = /* @__PURE__ */ W(oe, [["__scopeId", "data-v-
|
474
|
+
}, me = /* @__PURE__ */ W(oe, [["__scopeId", "data-v-3b081dcc"]]);
|
475
475
|
export {
|
476
476
|
me as default
|
477
477
|
};
|
@@ -1 +1 @@
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),u=require("vue-router"),d=require("../../../../components/Block/Block.vue.cjs"),g=require("../../../../components/UploadImage/UploadImage.vue.cjs");;/* empty css */const r=require("../../../../components/Field/Field.vue2.cjs"),N=require("../../../../components/Select/Select.
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),u=require("vue-router"),d=require("../../../../components/Block/Block.vue.cjs"),g=require("../../../../components/UploadImage/UploadImage.vue.cjs");;/* empty css */const r=require("../../../../components/Field/Field.vue2.cjs"),N=require("../../../../components/Select/Select.vue.cjs"),n=require("../../../../components/Checkbox/Checkbox.vue.cjs"),w=require("../../../../components/Address/Address.vue.cjs"),V=require("../../../../components/LocationMarker/LocationMarker.vue.cjs"),m=require("../../../../components/Button/Button.vue2.cjs");require("vue-i18n");;/* empty css */const t=require("../../store/spots.cjs"),y={class:"for-transition w-100 cols-1 pd-thin gap-thin"},E={class:"mn-r-auto"},S={class:"cols-2 gap-thin"},q={class:"gap-small mn-b-small cols-2-fit-content"},k={class:"w-100"},U=e.createElementVNode("p",{class:"p-medium mn-b-small"},"Please the available delivery options:",-1),_=e.createElementVNode("p",{class:"p-medium mn-b-small"},"Please select the available payment methods:",-1),P=e.createElementVNode("p",{class:"mn-b-small p-medium"},"Options:",-1),O={__name:"SpotEdit",setup(x){const p=u.useRouter(),l=u.useRoute();e.ref("details"),e.ref(!1),e.onMounted(async()=>{await c()});async function c(){var s,o;l.params.spot&&await t.actions.readOne(l.params.spot);const i=(s=t.state.spot.location)==null?void 0:s.coordinates[0],a=(o=t.state.spot.location)==null?void 0:o.coordinates[1];t.state.spot.location={lat:a||1,lng:i||1}}async function f(){t.state.spot.location={type:"Point",coordinates:[t.state.spot.location.lng,t.state.spot.location.lat]},l.params.spot&&await t.actions.update(l.params._id,t.state.spot),l.params.spot||await t.actions.create(l.params._id,t.state.spot)}function b(){p.push({name:"Organization",params:{_id:l.params._id}})}async function h(){await t.actions.delete(l.params._id,t.state.spot)}function v(){p.push({name:"Organization",params:{_id:l.params._id}})}return(i,a)=>(e.openBlock(),e.createElementBlock("div",y,[e.createVNode(d.default,{class:"flex-nowrap flex-v-center flex"},{default:e.withCtx(()=>[e.createElementVNode("h1",E,e.toDisplayString(e.unref(l).params.spot?t.state.spot.profile.name:"Create Spot"),1),e.createVNode(m.default,{submit:f,callback:b,class:"bg-main"},{default:e.withCtx(()=>[e.createTextVNode(" Save Spot ")]),_:1})]),_:1}),e.createElementVNode("div",S,[e.createVNode(d.default,{title:"Profile",class:"mn-b-semi"},{default:e.withCtx(()=>[e.createElementVNode("div",q,[e.createVNode(g.default,{photo:t.state.spot.profile.photo,"onUpdate:photo":a[0]||(a[0]=s=>t.state.spot.profile.photo=s),uploadPath:"organizations/"+t.state.spot.name+"/avatars",class:"aspect-1x1 w-8r o-hidden radius-extra"},null,8,["photo","uploadPath"]),e.createElementVNode("div",k,[e.createVNode(r.default,{field:t.state.spot.profile.name,"onUpdate:field":a[1]||(a[1]=s=>t.state.spot.profile.name=s),label:"Name",placeholder:"Spot Name",class:"mn-b-small bg-white radius-small pd-medium",validation:i.organizationName},null,8,["field","validation"]),e.createVNode(r.default,{field:t.state.spot.profile.description,"onUpdate:field":a[2]||(a[2]=s=>t.state.spot.profile.description=s),label:"Description",placeholder:"Spot description (max 120 symbols)",class:"bg-white radius-small pd-medium",validation:i.organizationName},null,8,["field","validation"])])]),e.createVNode(N.default,{select:t.state.spot.status,"onUpdate:select":a[3]||(a[3]=s=>t.state.spot.status=s),label:"Status",options:["unpublished","published","archivied"],placeholder:"Display product",class:"pos-relative w-100 mn-b-small bg-white radius-small pd-medium"},null,8,["select"]),U,(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(["pickup","courier","post"],s=>e.createVNode(n.default,{label:s,name:"Delivery",value:s,class:"w-100 mn-b-small bg-white radius-small pd-small",radio:t.state.spot.delivery,"onUpdate:radio":a[4]||(a[4]=o=>t.state.spot.delivery=o)},null,8,["label","value","radio"])),64)),_,(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(["cash","bank transfer","crypto"],s=>e.createVNode(n.default,{label:s,name:"Payment",value:s,class:"w-100 mn-b-small bg-white radius-small pd-small",radio:t.state.spot.payment,"onUpdate:radio":a[5]||(a[5]=o=>t.state.spot.payment=o)},null,8,["label","value","radio"])),64))]),_:1}),e.createVNode(d.default,{title:"Location",class:"pos-relative"},{default:e.withCtx(()=>{var s;return[e.createVNode(w.default,{apiKey:i.GOOGLE_MAPS_API_KEY,address:t.state.spot.address,location:t.state.spot.location,locale:i.$i18n.locale,label:"Address",placeholder:"Enter delivery address",class:"bg-white pd-small radius-tl-medium radius-tr-medium","onUpdate:location":a[6]||(a[6]=o=>{t.state.spot.location=o}),"onUpdate:address":a[7]||(a[7]=o=>{t.state.spot.address=o})},null,8,["apiKey","address","location","locale"]),e.createVNode(V.default,{apiKey:i.GOOGLE_MAPS_API_KEY,address:t.state.spot.address,location:t.state.spot.location,locale:i.$i18n.locale,class:"h-20r mn-b-small radius-bl-medium radius-br-medium o-hidden","onUpdate:location":a[8]||(a[8]=o=>{t.state.spot.location=o}),"onUpdate:address":a[9]||(a[9]=o=>{t.state.spot.address=o})},null,8,["apiKey","address","location","locale"]),P,e.createVNode(n.default,{label:"Hide address",name:"address",class:"w-100 mn-r-small bg-white radius-small pd-small",radio:(s=t.state.spot.position)==null?void 0:s.hide,"onUpdate:radio":a[10]||(a[10]=o=>t.state.spot.position.hide=o)},null,8,["radio"]),e.createVNode(r.default,{field:t.state.spot.minorder,"onUpdate:field":a[11]||(a[11]=o=>t.state.spot.minorder=o),label:"Min.order",placeholder:"Enter minimum order value",class:"bg-white radius-small pd-medium",validation:i.organizationName},null,8,["field","validation"])]}),_:1})]),e.createVNode(m.default,{submit:h,callback:v,class:"w-100 bg-light"},{default:e.withCtx(()=>[e.createTextVNode("Delete Spot")]),_:1})]))}};exports.default=O;
|
@@ -4,13 +4,13 @@ import u from "../../../../components/Block/Block.vue.js";
|
|
4
4
|
import z from "../../../../components/UploadImage/UploadImage.vue.js";
|
5
5
|
/* empty css */
|
6
6
|
import c from "../../../../components/Field/Field.vue2.js";
|
7
|
-
import K from "../../../../components/Select/Select.
|
7
|
+
import K from "../../../../components/Select/Select.vue.js";
|
8
8
|
import f from "../../../../components/Checkbox/Checkbox.vue.js";
|
9
|
-
import A from "../../../../components/Address/Address.
|
10
|
-
import G from "../../../../components/LocationMarker/LocationMarker.
|
9
|
+
import A from "../../../../components/Address/Address.vue.js";
|
10
|
+
import G from "../../../../components/LocationMarker/LocationMarker.vue.js";
|
11
11
|
import _ from "../../../../components/Button/Button.vue2.js";
|
12
12
|
import "vue-i18n";
|
13
|
-
/* empty css
|
13
|
+
/* empty css */
|
14
14
|
import { actions as r, state as a } from "../../store/spots.js";
|
15
15
|
const L = { class: "for-transition w-100 cols-1 pd-thin gap-thin" }, M = { class: "mn-r-auto" }, x = { class: "cols-2 gap-thin" }, V = { class: "gap-small mn-b-small cols-2-fit-content" }, B = { class: "w-100" }, C = /* @__PURE__ */ n("p", { class: "p-medium mn-b-small" }, "Please the available delivery options:", -1), F = /* @__PURE__ */ n("p", { class: "p-medium mn-b-small" }, "Please select the available payment methods:", -1), I = /* @__PURE__ */ n("p", { class: "mn-b-small p-medium" }, "Options:", -1), la = {
|
16
16
|
__name: "SpotEdit",
|
@@ -1 +1 @@
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=require("../../globals/components/layouts/Empty.vue.cjs"),r=require("../components/layouts/Spots.vue.cjs"),e=require("../../auth/views/middlewares/auth.validation.cjs"),o={path:"spots",component:t.default,meta:{title:{en:"Spots",ru:"Места"},breadcrumbs:{hide:!0,hidden:!0}},children:[{path:":country?",component:r.default,meta:{title:{en:"Spots",ru:"Места"},header_theme:"dark",footer_theme:"dark"},children:[{path:":state?",name:"Spots tate",component:()=>Promise.resolve().then(()=>require("../components/pages/Map.vue.cjs")),children:[{path:":city?",name:"Spots City",component:()=>Promise.resolve().then(()=>require("../components/pages/Map.vue.cjs"))}]}]},{path:":_id/spots/create",name:"Spot Creation",meta:{title:"Создание точки"},beforeEnter:[e.requiresAuth],component:()=>Promise.resolve().then(()=>require("../components/pages/SpotEdit.vue.cjs"))},{path:":_id/spots/:spot",name:"Spot",meta:{title:"Точка"},beforeEnter:[e.requiresAuth],component:()=>Promise.resolve().then(()=>require("../components/pages/Spot.vue.cjs"))},{path:":_id/spots/:spot/edit",name:"Spot Edit",meta:{title:"Редактирование точки"},beforeEnter:[e.requiresAuth],component:()=>Promise.resolve().then(()=>require("../components/pages/SpotEdit.vue.cjs"))}]};exports.default=o;
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=require("../../globals/views/components/layouts/Empty.vue.cjs"),r=require("../components/layouts/Spots.vue.cjs"),e=require("../../auth/views/middlewares/auth.validation.cjs"),o={path:"spots",component:t.default,meta:{title:{en:"Spots",ru:"Места"},breadcrumbs:{hide:!0,hidden:!0}},children:[{path:":country?",component:r.default,meta:{title:{en:"Spots",ru:"Места"},header_theme:"dark",footer_theme:"dark"},children:[{path:":state?",name:"Spots tate",component:()=>Promise.resolve().then(()=>require("../components/pages/Map.vue.cjs")),children:[{path:":city?",name:"Spots City",component:()=>Promise.resolve().then(()=>require("../components/pages/Map.vue.cjs"))}]}]},{path:":_id/spots/create",name:"Spot Creation",meta:{title:"Создание точки"},beforeEnter:[e.requiresAuth],component:()=>Promise.resolve().then(()=>require("../components/pages/SpotEdit.vue.cjs"))},{path:":_id/spots/:spot",name:"Spot",meta:{title:"Точка"},beforeEnter:[e.requiresAuth],component:()=>Promise.resolve().then(()=>require("../components/pages/Spot.vue.cjs"))},{path:":_id/spots/:spot/edit",name:"Spot Edit",meta:{title:"Редактирование точки"},beforeEnter:[e.requiresAuth],component:()=>Promise.resolve().then(()=>require("../components/pages/SpotEdit.vue.cjs"))}]};exports.default=o;
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import e from "../../globals/components/layouts/Empty.vue.js";
|
1
|
+
import e from "../../globals/views/components/layouts/Empty.vue.js";
|
2
2
|
import o from "../components/layouts/Spots.vue.js";
|
3
3
|
import { requiresAuth as t } from "../../auth/views/middlewares/auth.validation.js";
|
4
4
|
const n = {
|
@@ -1 +1 @@
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("axios");require("../../../../../node_modules/js-cookie/dist/js.cookie.cjs");const i=require("vue"),a=require("../../globals/store/globals.cjs"),s=n.create({baseURL:process.env.API_URL,withCredentials:!0});s.defaults.withCredentials=!0;const o=i.reactive({spots:[],spot:{status:"unpublished",organization:"",profile:{photo:"",name:"",description:"",categories:[]},position:{address:void 0,location:void 0,hide:!1},address:void 0,location:void 0,worktime:[],delivery:[],payment:[],members:[],subspots:[]},error:null}),c={async readOne(t){try{const e=await s.get(`/api/spots/get/${t}`);o.spot=e.data}catch(e){a.setError(e)}},async read(t){try{const e=await s.get(`/api/spots/${t}`);return o.spots=e.data,e.data}catch(e){a.setError(e)}},async create(t,e){try{const r=await s.post(`/api/spots/${t}/create`,e);o.spot=r.data}catch(r){a.setError(r)}},async update(t,e){try{await s.post(`/api/spots/${t}/update`,e)}catch(r){a.setError(r)}},async delete(t,e){try{await s.delete(`/api/spots/${t}/delete`,{data:{_id:e}})}catch(r){a.setError(r)}}};i.watch(o,(t,e)=>{});exports.actions=c;exports.state=o;
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("axios");require("../../../../../node_modules/js-cookie/dist/js.cookie.cjs");const i=require("vue"),a=require("../../globals/views/store/globals.cjs"),s=n.create({baseURL:process.env.API_URL,withCredentials:!0});s.defaults.withCredentials=!0;const o=i.reactive({spots:[],spot:{status:"unpublished",organization:"",profile:{photo:"",name:"",description:"",categories:[]},position:{address:void 0,location:void 0,hide:!1},address:void 0,location:void 0,worktime:[],delivery:[],payment:[],members:[],subspots:[]},error:null}),c={async readOne(t){try{const e=await s.get(`/api/spots/get/${t}`);o.spot=e.data}catch(e){a.setError(e)}},async read(t){try{const e=await s.get(`/api/spots/${t}`);return o.spots=e.data,e.data}catch(e){a.setError(e)}},async create(t,e){try{const r=await s.post(`/api/spots/${t}/create`,e);o.spot=r.data}catch(r){a.setError(r)}},async update(t,e){try{await s.post(`/api/spots/${t}/update`,e)}catch(r){a.setError(r)}},async delete(t,e){try{await s.delete(`/api/spots/${t}/delete`,{data:{_id:e}})}catch(r){a.setError(r)}}};i.watch(o,(t,e)=>{});exports.actions=c;exports.state=o;
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import i from "axios";
|
2
2
|
import "../../../../../node_modules/js-cookie/dist/js.cookie.js";
|
3
3
|
import { reactive as n, watch as p } from "vue";
|
4
|
-
import { setError as r } from "../../globals/store/globals.js";
|
4
|
+
import { setError as r } from "../../globals/views/store/globals.js";
|
5
5
|
const s = i.create({ baseURL: process.env.API_URL, withCredentials: !0 });
|
6
6
|
s.defaults.withCredentials = !0;
|
7
7
|
const o = n({
|
@@ -1 +1 @@
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue");;/* empty css */;/* empty css */;/* empty css */const h=require("../../../../components/Dropdown/Dropdown.
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue");;/* empty css */;/* empty css */;/* empty css */const h=require("../../../../components/Dropdown/Dropdown.vue2.cjs"),g=require("../../../../components/Completion/Completion.vue.cjs"),d=require("../../../../components/Menu/Menu.vue.cjs"),l=require("../../../../components/Menu/MenuItem.vue.cjs"),p=require("../../../organizations/components/elements/ButtonToggleMembership.vue.cjs"),N=require("../../../reports/components/sections/FormReport.vue.cjs"),V=require("../../../organizations/components/blocks/Socials.vue.cjs"),B=require("../../../icons/entities/IconEvents.vue.cjs"),f=require("../../../icons/entities/IconGroups.vue.cjs"),w=require("../../../icons/entities/IconCommunity.vue.cjs"),C=require("../../../icons/navigation/IconEdit.vue.cjs"),E=require("../../../icons/placeholders/PlaceholderUserpic.vue.cjs"),_=require("vue-router"),o=require("../../../auth/views/store/auth.cjs"),t=require("../../store/users.cjs"),v=require("../../../organizations/store/memberships.cjs");require("./Profile.vue2.cjs");const x={key:0,class:"for-transition w-100"},y={key:0,class:"flex-center flex pd-medium radius-big bg-light uppercase t-semi w-100 h-100"},q={key:1,_id:"dash",class:"pd-b-extra pd-thin w-100"},S={class:"flex-center pos-relative flex flex-column t-center w-100 mn-b-semi radius-medium pd-medium bg-light"},U={class:"bg-black pd-thin radius-small"},M=e.createElementVNode("button",{class:"w-100 bg-black br-solid br-1px br-white-transp-20 t-white button-small button"}," Report ",-1),P=["src"],R={class:"mn-b-thin"},$={key:4,class:"mn-b-thin t-main t-semi"},D={class:"mn-b-small p-medium"},I={class:"mn-b-medium flex-center flex-nowrap flex"},F={class:"t-semi mn-b-small"},L={key:6,class:"mn-t-small mn-b-thin"},O=e.createElementVNode("span",null,"Events",-1),A=e.createElementVNode("span",null,"Groups",-1),j=e.createElementVNode("span",null,"Posts",-1),W=e.createElementVNode("span",null,"Wallet",-1),z=e.createElementVNode("span",null," Settings ",-1),G=e.createElementVNode("span",null," About ",-1),T=e.createElementVNode("span",{class:"t-red"}," Logout ",-1),H={__name:"Profile",setup(J){const a=_.useRoute(),n=_.useRouter(),u=e.ref(!1);e.onMounted(async()=>{await t.actions.read({_id:a.params._id,user:o.state.user._id}),u.value=!0});const m=({membership:i,status:r,target:s},c,k)=>{v.mutations.handleMembershipUpdate(t.state.current,i,r,s,c,k)};function b(){o.actions.logout(),n.push({name:"Sign In"})}return(i,r)=>u.value?(e.openBlock(),e.createElementBlock("div",x,[t.state.current.status==="removed"?(e.openBlock(),e.createElementBlock("div",y," Sorry, user has been removed. ")):(e.openBlock(),e.createElementBlock("div",q,[e.unref(a).params._id===o.state.user._id&&u.value?(e.openBlock(),e.createBlock(g.default,{key:0,user:o.state.user._id,target:t.state.current,cta:!0,text_cta:"Fill Profile",text:"Profile completed at",class:"mn-b-medium"},null,8,["user","target"])):e.createCommentVNode("",!0),e.createElementVNode("section",S,[e.unref(a).params._id&&e.unref(a).params._id!==o.state.user._id?(e.openBlock(),e.createBlock(h.default,{key:0,label:"...",align:"right",class:"cursor-pointer pos-absolute pos-r-0 pos-t-0 pd-thin radius-extra"},{default:e.withCtx(()=>[e.createElementVNode("section",U,[e.createVNode(N.default,{user:o.state.user._id,type:"user",target:t.state.current._id,text:"Report",class:"w-100"},{default:e.withCtx(()=>[M]),_:1},8,["user","target"]),o.state.user._id?(e.openBlock(),e.createBlock(p.default,{key:0,user:o.state.user._id,type:"user",role:"blocked",target:t.state.current._id,status:t.state.current.isBlocked,text:{create:"Block",remove:"Unblock"},onUpdateMembership:r[0]||(r[0]=s=>m(s,"isBlocked")),class:"t-white mn-t-thin bg-red"},null,8,["user","target","status"])):e.createCommentVNode("",!0)])]),_:1})):e.createCommentVNode("",!0),e.unref(a).params._id===o.state.user._id?(e.openBlock(),e.createBlock(C.default,{key:1,onClick:r[1]||(r[1]=s=>i.$router.push({name:"User Edit Profile",params:{_id:o.state.user._id}})),class:"cursor-pointer pos-absolute pos-t-regular pos-r-regular i-regular t-transp"})):e.createCommentVNode("",!0),t.state.current.profile.photo&&t.state.current.profile.photo.length>0?(e.openBlock(),e.createElementBlock("img",{key:2,src:(i.FILE_SERVER_URL||"")+t.state.current.profile.photo,class:"radius-extra bg-white mn-b-small object-fit-cover i-extra"},null,8,P)):(e.openBlock(),e.createBlock(E.default,{key:3,class:"radius-medium mn-b-small i-extra"})),e.createElementVNode("h3",R,e.toDisplayString(t.state.current.profile.name?t.state.current.profile.name:"Anonymous"),1),t.state.current.username?(e.openBlock(),e.createElementBlock("p",$," @"+e.toDisplayString(t.state.current.username?t.state.current.username:"Not specified"),1)):e.createCommentVNode("",!0),e.createElementVNode("p",D,e.toDisplayString(t.state.current.profile.description?t.state.current.profile.description:"Bio not specified"),1),e.createElementVNode("div",I,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.state.current.roles,(s,c)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["pd-thin radius-small t-semi bg-white",{"mn-r-thin":c!==t.state.current.roles.length-1}])},e.toDisplayString(s.icon)+" "+e.toDisplayString(s.name),3))),256))]),e.createElementVNode("p",F," 👨👨👧👧 "+e.toDisplayString(t.state.current.numberOfSubscribers)+" followers ",1),o.state.user._id&&e.unref(a).params._id&&e.unref(a).params._id!==o.state.user._id?(e.openBlock(),e.createBlock(p.default,{key:5,user:o.state.user._id,type:"user",role:"subscriber",target:t.state.current._id,status:t.state.current.isSubscriber,text:{create:"Follow",remove:"Unfollow"},onUpdateMembership:r[2]||(r[2]=s=>m(s,"isSubscriber","numberOfSubscribers")),class:"w-min mn-b-medium mn-r-auto mn-l-auto"},null,8,["user","target","status"])):e.createCommentVNode("",!0),Object.values(t.state.current.socials).some(s=>s)?(e.openBlock(),e.createElementBlock("h4",L," Find Me in Socials ")):e.createCommentVNode("",!0),e.createVNode(V.default,{telegram:t.state.current.socials.telegram,facebook:t.state.current.socials.facebook,instagram:t.state.current.socials.instagram,twitter:t.state.current.socials.twitter,class:"mn-r-auto mn-l-auto"},null,8,["telegram","facebook","instagram","twitter"])]),e.createVNode(d.default,{class:"mn-b-regular bg-light"},{default:e.withCtx(()=>[e.createVNode(l.default,{onClick:r[3]||(r[3]=s=>e.unref(n).push({name:"User Events",params:{_id:e.unref(a).params._id}})),class:"cursor-pointer"},{default:e.withCtx(()=>[e.createVNode(B.default,{class:"i-semi",icon:!0,fill:"rgb(var(--white))"}),O]),_:1}),e.createVNode(l.default,{onClick:r[4]||(r[4]=s=>e.unref(n).push({name:"User Organizations",params:{_id:e.unref(a).params._id}})),class:"cursor-pointer"},{default:e.withCtx(()=>[e.createVNode(f.default,{class:"i-semi",icon:!0}),A]),_:1}),e.createVNode(l.default,{onClick:r[5]||(r[5]=s=>e.unref(n).push({name:"User Blogposts",params:{_id:e.unref(a).params._id}})),class:"cursor-pointer"},{default:e.withCtx(()=>[e.createVNode(w.default,{class:"i-semi",icon:!0}),j]),_:1})]),_:1}),i.APP_NAME==="Weeder"?(e.openBlock(),e.createBlock(d.default,{key:1,class:"mn-b-regular bg-light"},{default:e.withCtx(()=>[e.createVNode(l.default,{onClick:r[6]||(r[6]=s=>e.unref(n).push({name:"User Wallet",params:{_id:e.unref(a).params._id}})),class:"cursor-pointer"},{default:e.withCtx(()=>[e.createVNode(f.default,{class:"i-semi",icon:!0}),W]),_:1})]),_:1})):e.createCommentVNode("",!0),o.state.user._id===e.unref(a).params._id?(e.openBlock(),e.createBlock(d.default,{key:2,class:"bg-light"},{default:e.withCtx(()=>[e.createVNode(l.default,{onClick:r[7]||(r[7]=s=>e.unref(n).push({name:"User Edit Profile",params:{_id:e.unref(a).params._id}})),class:"cursor-pointer"},{default:e.withCtx(()=>[z]),_:1}),e.createVNode(l.default,{onClick:r[8]||(r[8]=s=>e.unref(n).push({name:"Legal",params:{_id:e.unref(a).params._id}})),class:"cursor-pointer"},{default:e.withCtx(()=>[G]),_:1}),e.createVNode(l.default,{class:"cursor-pointer",onClick:r[9]||(r[9]=s=>b())},{default:e.withCtx(()=>[T]),_:1})]),_:1})):e.createCommentVNode("",!0)]))])):e.createCommentVNode("",!0)}};exports.default=H;
|
@@ -2,7 +2,7 @@ import { ref as U, onMounted as C, openBlock as i, createElementBlock as c, unre
|
|
2
2
|
/* empty css */
|
3
3
|
/* empty css */
|
4
4
|
/* empty css */
|
5
|
-
import B from "../../../../components/Dropdown/Dropdown.
|
5
|
+
import B from "../../../../components/Dropdown/Dropdown.vue2.js";
|
6
6
|
import M from "../../../../components/Completion/Completion.vue.js";
|
7
7
|
import k from "../../../../components/Menu/Menu.vue.js";
|
8
8
|
import _ from "../../../../components/Menu/MenuItem.vue.js";
|
package/dist/prometheus-framework/src/modules/wallet/views/components/blocks/CryptoDeposit.vue.cjs
CHANGED
@@ -1 +1 @@
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),b=require("vue-i18n"),c=require("../../../../../../node_modules/bignumber.js/bignumber.cjs"),t=require("../../store/wallet.store.cjs"),k=require("../../localization/wallet.json.cjs"),g=require("../../../../../components/Field/Field.vue2.cjs"),w=require("../../../../../components/Select/Select.
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),b=require("vue-i18n"),c=require("../../../../../../node_modules/bignumber.js/bignumber.cjs"),t=require("../../store/wallet.store.cjs"),k=require("../../localization/wallet.json.cjs"),g=require("../../../../../components/Field/Field.vue2.cjs"),w=require("../../../../../components/Select/Select.vue.cjs"),h={class:"mn-b-small t-center t-bold"},v={class:"t-semi"},_=["disabled"],y={__name:"CryptoDeposit",emits:["back-selection","switch-menu"],setup(N,{emit:u}){c.BigNumber.config({EXPONENTIAL_AT:[-1e3,2e4]});const r=e.ref(1),i=u,{t:s}=b.useI18n({useScope:"global",...k.default}),d=e.computed(()=>new c.BigNumber(r.value).dividedBy(process.env.TOKEN_EXCHANGE_RATE).toString()),p=e.computed(()=>{const l=[],o=Object.keys(t.state.config||{});for(const n of o)for(const a of Object.keys(t.state.config[n].tokens))l.push({name:`${n}-${a}`,value:{token:t.state.config[n].tokens[a],network:n}});return l});e.onMounted(()=>{t.actions.loadConfig()});function m(){i("back-selection")}function f(l=0){i("switch-menu",l)}return(l,o)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("h3",h,e.toDisplayString(e.unref(s)("wallet.depositWithCrypto")),1),e.unref(t.state).config?(e.openBlock(),e.createBlock(g.default,{key:0,field:r.value,"onUpdate:field":o[1]||(o[1]=n=>r.value=n),placeholder:e.unref(s)("wallet.enterAmount"),class:"mn-b-thin bg-white w-100 br-solid br-1px br-black-transp-5 pd-small radius-small"},{default:e.withCtx(()=>[e.createVNode(w.default,{options:p.value,select:e.unref(t.state).chosenNetwork,"onUpdate:select":o[0]||(o[0]=n=>e.unref(t.state).chosenNetwork=n),class:"bg-light t-nowrap pd-r-thin pd-l-thin pd-t-nano pd-b-nano radius-thin"},null,8,["options","select"])]),_:1},8,["field","placeholder"])):e.createCommentVNode("",!0),e.createElementVNode("p",v,"You will receive: "+e.toDisplayString(d.value)+" "+e.toDisplayString(e.unref(s)("wallet.token")),1),e.createElementVNode("button",{class:"uppercase w-100 bg-main t-black pd-thin radius-medium t-center br-solid br-2px br-black-transp-10 mn-t-small",onClick:o[2]||(o[2]=n=>e.unref(t.actions).requestCryptoDeposit(r.value).then(()=>f(5))),disabled:e.unref(t.state).depositRequestIsActive||!e.unref(t.state).config},e.toDisplayString(e.unref(s)("wallet.pay")),9,_),e.createElementVNode("button",{class:"uppercase w-100 t-center mn-t-small",onClick:m},e.toDisplayString(e.unref(s)("wallet.backToSelection")),1)],64))}};exports.default=y;
|
package/dist/prometheus-framework/src/modules/wallet/views/components/blocks/CryptoDeposit.vue.js
CHANGED
@@ -4,7 +4,7 @@ import { BigNumber as u } from "../../../../../../node_modules/bignumber.js/bign
|
|
4
4
|
import { state as n, actions as b } from "../../store/wallet.store.js";
|
5
5
|
import B from "../../localization/wallet.json.js";
|
6
6
|
import O from "../../../../../components/Field/Field.vue2.js";
|
7
|
-
import T from "../../../../../components/Select/Select.
|
7
|
+
import T from "../../../../../components/Select/Select.vue.js";
|
8
8
|
const D = { class: "mn-b-small t-center t-bold" }, I = { class: "t-semi" }, V = ["disabled"], G = {
|
9
9
|
__name: "CryptoDeposit",
|
10
10
|
emits: ["back-selection", "switch-menu"],
|
package/dist/prometheus-framework/src/modules/wallet/views/components/pages/Payments.vue.cjs
CHANGED
@@ -1 +1 @@
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),n=require("vue-router"),o=require("../../../../globals/components/sections/SectionPageTitle.vue.cjs"),u=require("../../../../../components/Feed/Feed.vue.cjs"),i=require("../../store/payments.store.cjs");;/* empty css */const c={class:"pd-thin"},d={class:"bg-light pos-relative pd-medium radius-big"},m={__name:"Payments",setup(p){const s=n.useRoute();n.useRouter();const a=e.ref("all");return(_,r)=>(e.openBlock(),e.createElementBlock("div",c,[e.createVNode(o.default,{title:"Payments","onUpdate:tabs_current":r[0]||(r[0]=t=>a.value=t),tabs_current:a.value,tabs:[{name:"All",value:"all"},{name:"Created",value:"created"},{name:"Proccesing",value:"processing"},{name:"Finished",value:"finished"},{name:"Canceled",value:"canceled"},{name:"Refunded",value:"refunded"}],actions:[{to:{name:"PaymentsCreate"},label:"Create Payment"}],class:"mn-b-small bg-light bg-light radius-big"},null,8,["tabs_current"]),e.createVNode(u.default,{search:!0,states:{empty:{title:"No Payments Found",description:"Currently, there are no payments."}},store:{read:t=>i.actions.read(t)},options:{limit:15,owner:e.unref(s).params._id,...a.value!=="all"&&{type:a.value}},class:"gap-thin cols-3"},{default:e.withCtx(({items:t})=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t,l=>(e.openBlock(),e.createElementBlock("div",d,e.toDisplayString(l),1))),256))]),_:1},8,["store","options"])]))}};exports.default=m;
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),n=require("vue-router"),o=require("../../../../globals/views/components/sections/SectionPageTitle.vue.cjs"),u=require("../../../../../components/Feed/Feed.vue.cjs"),i=require("../../store/payments.store.cjs");;/* empty css */const c={class:"pd-thin"},d={class:"bg-light pos-relative pd-medium radius-big"},m={__name:"Payments",setup(p){const s=n.useRoute();n.useRouter();const a=e.ref("all");return(_,r)=>(e.openBlock(),e.createElementBlock("div",c,[e.createVNode(o.default,{title:"Payments","onUpdate:tabs_current":r[0]||(r[0]=t=>a.value=t),tabs_current:a.value,tabs:[{name:"All",value:"all"},{name:"Created",value:"created"},{name:"Proccesing",value:"processing"},{name:"Finished",value:"finished"},{name:"Canceled",value:"canceled"},{name:"Refunded",value:"refunded"}],actions:[{to:{name:"PaymentsCreate"},label:"Create Payment"}],class:"mn-b-small bg-light bg-light radius-big"},null,8,["tabs_current"]),e.createVNode(u.default,{search:!0,states:{empty:{title:"No Payments Found",description:"Currently, there are no payments."}},store:{read:t=>i.actions.read(t)},options:{limit:15,owner:e.unref(s).params._id,...a.value!=="all"&&{type:a.value}},class:"gap-thin cols-3"},{default:e.withCtx(({items:t})=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t,l=>(e.openBlock(),e.createElementBlock("div",d,e.toDisplayString(l),1))),256))]),_:1},8,["store","options"])]))}};exports.default=m;
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import { ref as i, openBlock as a, createElementBlock as r, createVNode as s, unref as m, withCtx as u, Fragment as c, renderList as d, toDisplayString as p } from "vue";
|
2
2
|
import { useRoute as _, useRouter as f } from "vue-router";
|
3
|
-
import g from "../../../../globals/components/sections/SectionPageTitle.vue.js";
|
3
|
+
import g from "../../../../globals/views/components/sections/SectionPageTitle.vue.js";
|
4
4
|
import v from "../../../../../components/Feed/Feed.vue.js";
|
5
5
|
import { actions as b } from "../../store/payments.store.js";
|
6
6
|
/* empty css */
|
@@ -1 +1 @@
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),u=require("vue-i18n"),m=require("web3"),t=require("../../store/wallet.store.cjs"),p=require("../../localization/wallet.json.cjs"),b=require("../../../../../components/Popup/Popup.
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),u=require("vue-i18n"),m=require("web3"),t=require("../../store/wallet.store.cjs"),p=require("../../localization/wallet.json.cjs"),b=require("../../../../../components/Popup/Popup.vue.cjs"),k=require("../../../../../components/Button/Button.vue2.cjs");require("vue-router");;/* empty css */require("../../../../reports/store/reports.cjs");;/* empty css */;/* empty css */require("../../../../auth/views/store/auth.cjs");require("../../../../organizations/store/memberships.cjs");require("../../../../community/store/reactions.cjs");;/* empty css */const h=require("../elements/ConnectMetamask.vue.cjs"),f=require("../blocks/CashDeposit.vue.cjs"),_=require("../blocks/CardDeposit.vue.cjs"),g=require("../blocks/CryptoDeposit.vue.cjs"),w=require("../blocks/CardBalanceReplenished.vue.cjs"),N=require("../blocks/CryptoDepositProcessing.vue.cjs"),V={class:"pd-thin"},E={class:"bg-black t-white mn-b-thin radius-big pd-big"},B={class:"mn-b-medium"},v={class:"mn-b-semi t-transp p-big"},y={key:0,class:"gap-thin mn-b-thin flex-nowrap bg-black radius-extra t-white br-solid br-white-transp-10 br-1px flex-v-center flex pd-medium"},C={class:"flex-v-center flex-nowrap flex mn-r-auto"},x={key:1,class:"w-100 mn-b-semi flex-column flex pd-big radius-big bg-main t-black"},S=e.createElementVNode("p",{class:"t-transp t-medium mn-b-thin"},"You own:",-1),q={class:"h1 mn-b-small"},D=e.createElementVNode("p",{class:"t-white p-big t-medium mn-b-semi"},"of all shares",-1),M={class:"flex-v-center mn-b-small flex-nowrap flex pd-small bg-black-transp-5 radius-extra"},W={key:0,class:"t-transp t-medium"},P=e.createElementVNode("span",{class:"uppercase p-small t-medium t-transp"},"Connected Metamask",-1),R=e.createElementVNode("br",null,null,-1),T={key:0,class:"mn-b-semi cols-2 gap-thin"},$=e.createElementVNode("div",{class:"w-100 pd-medium radius-medium t-center bg-light"},[e.createElementVNode("h3",{class:"mn-b-small"},"Make first order and start earning Weeder Token"),e.createElementVNode("button",{class:"mn-l-auto mn-r-auto bg-main button"},"Explore marketplace")],-1),G={class:"w-100 pd-medium flex-center flex flex-column radius-medium t-center bg-light"},O={key:0,class:"mn-b-small"},A={key:1,class:"mn-b-small"},L={class:"cols-3 gap-thin"},F={class:"radius-medium bg-light"},I={class:"flex-nowrap br-b br-black-transp-10 br-solid flex pd-medium"},Y={class:"t-semi mn-r-auto"},j={class:"pd-t-nano pd-b-nano pd-l-thin pd-r-thin bg-main flex flex-center radius-extra t-semi p-small"},H={class:"pd-medium"},z={class:"t-regular mn-b-thin"},J={key:2,class:"mn-b-small"},K={class:"cols-3 gap-thin"},Q={class:"radius-medium bg-grey"},U={class:"flex-nowrap br-b br-black-transp-10 br-solid flex pd-medium"},X={class:"t-semi mn-r-auto"},Z={class:"pd-t-nano pd-b-nano pd-l-thin pd-r-thin bg-main flex flex-center radius-extra t-semi p-small"},ee={class:"pd-medium"},te={class:"t-regular mn-b-thin"},ne={key:0},oe=e.createElementVNode("h2",{class:"mn-b-small t-center t-bold"},"Choose the way of deposit",-1),se={__name:"Wallet",setup(le){const{t:r}=u.useI18n({useScope:"global",...p.default});window.ethereum.on("accountsChanged",a=>{a.length<1&&(t.state.account=null)}),t.state.web3=new m(window.ethereum||"http://localhost:8080"),e.onMounted(()=>{t.actions.listRewards(),t.actions.tryReconnectWallet()});const c=e.ref(!1),l=e.ref(0);function s(a){l.value=a}function d(){c.value=!0}function i(){c.value=!1,l.value=0,t.actions.stopTimer(),t.actions.disconnectWebSocket()}return(a,o)=>(e.openBlock(),e.createElementBlock("div",V,[e.createElementVNode("section",E,[e.createElementVNode("h1",B,e.toDisplayString(e.unref(r)("wallet.title")),1),e.createElementVNode("p",v,e.toDisplayString(e.unref(r)("wallet.subtitle")),1),e.unref(t.state).account?(e.openBlock(),e.createElementBlock("div",y,[e.createElementVNode("div",C,[e.createElementVNode("h2",null,e.toDisplayString(e.unref(t.state).tokenBalance)+" "+e.toDisplayString(e.unref(r)("wallet.token")),1)]),e.createElementVNode("button",{onClick:d,class:"t-nowrap w-max bg-main t-medium button"},"Get More"),e.createVNode(k.default,{submit:e.unref(t.actions).collectRewards,class:"w-max bg-white t-black t-medium button"},{default:e.withCtx(()=>[e.createTextVNode(" Withdraw ")]),_:1},8,["submit"])])):e.createCommentVNode("",!0),e.createVNode(h.default,{class:"mn-b-thin radius-extra br-solid br-white-transp-10 br-1px w-100"}),e.unref(t.state).account?(e.openBlock(),e.createElementBlock("div",x,[S,e.createElementVNode("p",q,e.toDisplayString(e.unref(t.state).share)+"%",1),D,e.createElementVNode("div",M,[e.unref(t.state).account?(e.openBlock(),e.createElementBlock("p",W,[P,R,e.createElementVNode("span",null,e.toDisplayString(e.unref(t.state).account),1)])):e.createCommentVNode("",!0),e.unref(t.state).account?(e.openBlock(),e.createElementBlock("button",{key:1,onClick:o[0]||(o[0]=(...n)=>e.unref(t.actions).disconnectWallet&&e.unref(t.actions).disconnectWallet(...n)),class:"mn-l-auto bg-red button"}," Disconnect Wallet ")):e.createCommentVNode("",!0)])])):e.createCommentVNode("",!0)]),e.unref(t.state).account?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",T,[$,e.createElementVNode("div",G,[e.unref(t.state).account?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("h3",O," Connect Metamask to withdrawal your earnings. ")),e.unref(t.state).account?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("button",{key:1,onClick:o[1]||(o[1]=(...n)=>e.unref(t.actions).connectWallet&&e.unref(t.actions).connectWallet(...n)),class:"br-solid br-2px br-black-transp-10 t-black button"}," Connect Wallet "))])])),e.unref(t.state).rewards.length>0?(e.openBlock(),e.createElementBlock("h2",A,"Latest Rewards ")):e.createCommentVNode("",!0),e.createElementVNode("section",L,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(t.state).rewards,n=>(e.openBlock(),e.createElementBlock("div",F,[e.createElementVNode("div",I,[e.createElementVNode("p",Y,e.toDisplayString(n.amount)+" WDT",1),e.createElementVNode("span",j,e.toDisplayString(n.type==="blogpost"?"Community Reward":n.type),1)]),e.createElementVNode("div",H,[e.createElementVNode("h4",z,e.toDisplayString(n.name),1)])]))),256))]),e.unref(t.state).rewards.length>0?(e.openBlock(),e.createElementBlock("h2",J,"Activity")):e.createCommentVNode("",!0),e.createElementVNode("section",K,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(t.state).rewards,n=>(e.openBlock(),e.createElementBlock("div",Q,[e.createElementVNode("div",U,[e.createElementVNode("p",X,e.toDisplayString(n.amount)+" WDT",1),e.createElementVNode("span",Z,e.toDisplayString(n.type==="blogpost"?"Community Reward":n.type),1)]),e.createElementVNode("div",ee,[e.createElementVNode("h4",te,e.toDisplayString(n.name),1)])]))),256))]),e.createVNode(b.default,{onClosePopup:i,isPopupOpen:c.value,class:"w-m-50r t-left pd-big bg-white radius-big"},{default:e.withCtx(()=>[l.value===0?(e.openBlock(),e.createElementBlock("div",ne,[oe,e.createElementVNode("button",{class:"w-100 bg-white t-black pd-thin radius-medium h3 t-center br-solid br-2px br-black-transp-10 mn-t-small",onClick:o[2]||(o[2]=n=>s(1))}," CASH "),e.createElementVNode("button",{class:"w-100 bg-white t-black pd-thin radius-medium h3 t-center br-solid br-2px br-black-transp-10 mn-t-small",onClick:o[3]||(o[3]=n=>s(2))}," CARD "),e.createElementVNode("button",{class:"w-100 bg-white t-black pd-thin radius-medium h3 t-center br-solid br-2px br-black-transp-10 mn-t-small",onClick:o[4]||(o[4]=n=>s(4))}," CRYPTO ")])):e.createCommentVNode("",!0),l.value===1?(e.openBlock(),e.createBlock(f.default,{key:1,onBackSelection:o[5]||(o[5]=n=>s(0))})):e.createCommentVNode("",!0),l.value===2?(e.openBlock(),e.createBlock(_.default,{key:2,onBackSelection:o[6]||(o[6]=n=>s(0)),onSwitchMenu:s})):e.createCommentVNode("",!0),l.value===3?(e.openBlock(),e.createBlock(w.default,{key:3,onClose:i})):e.createCommentVNode("",!0),l.value===4?(e.openBlock(),e.createBlock(g.default,{key:4,onBackSelection:o[7]||(o[7]=n=>s(0)),onSwitchMenu:s})):e.createCommentVNode("",!0),l.value===5?(e.openBlock(),e.createBlock(N.default,{key:5,onBackSelection:o[8]||(o[8]=n=>s(0)),onSwitchMenu:s})):e.createCommentVNode("",!0)]),_:1},8,["isPopupOpen"])]))}};exports.default=se;
|
@@ -3,17 +3,17 @@ import { useI18n as M } from "vue-i18n";
|
|
3
3
|
import W from "web3";
|
4
4
|
import { state as l, actions as m } from "../../store/wallet.store.js";
|
5
5
|
import $ from "../../localization/wallet.json.js";
|
6
|
-
import S from "../../../../../components/Popup/Popup.
|
6
|
+
import S from "../../../../../components/Popup/Popup.vue.js";
|
7
7
|
import P from "../../../../../components/Button/Button.vue2.js";
|
8
8
|
import "vue-router";
|
9
|
-
/* empty css
|
9
|
+
/* empty css */
|
10
10
|
import "../../../../reports/store/reports.js";
|
11
11
|
/* empty css */
|
12
|
-
/* empty css
|
12
|
+
/* empty css */
|
13
13
|
import "../../../../auth/views/store/auth.js";
|
14
14
|
import "../../../../organizations/store/memberships.js";
|
15
15
|
import "../../../../community/store/reactions.js";
|
16
|
-
/* empty css
|
16
|
+
/* empty css */
|
17
17
|
import B from "../elements/ConnectMetamask.vue.js";
|
18
18
|
import R from "../blocks/CashDeposit.vue.js";
|
19
19
|
import D from "../blocks/CardDeposit.vue.js";
|
@@ -1 +1 @@
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("vue"),n=require("axios"),r=require("../../../globals/store/globals.cjs"),s=n.create({baseURL:process.env.API_URL,withCredentials:!0}),a=o.reactive({current:{Status:""},data:{}}),c={async read(){try{const e=await s.get("/api/payments");return a.data=e.data,e.data}catch(e){throw r.setError(e),e}},async create(e){try{const t=await s.post("/api/payments",e);return a.data[t.data._id]=t.data,t.data}catch(t){throw r.setError(t),t}},async update(e){try{const t=await s.post("/api/payments",e);return a.current=t.data,t.data}catch(t){throw r.setError(t),t}},async delete(e){try{const t=await s.delete("/api/payments");return delete a.data[e],t.data}catch(t){throw r.setError(t),t}}};o.watch(a,e=>{});exports.actions=c;exports.state=a;
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("vue"),n=require("axios"),r=require("../../../globals/views/store/globals.cjs"),s=n.create({baseURL:process.env.API_URL,withCredentials:!0}),a=o.reactive({current:{Status:""},data:{}}),c={async read(){try{const e=await s.get("/api/payments");return a.data=e.data,e.data}catch(e){throw r.setError(e),e}},async create(e){try{const t=await s.post("/api/payments",e);return a.data[t.data._id]=t.data,t.data}catch(t){throw r.setError(t),t}},async update(e){try{const t=await s.post("/api/payments",e);return a.current=t.data,t.data}catch(t){throw r.setError(t),t}},async delete(e){try{const t=await s.delete("/api/payments");return delete a.data[e],t.data}catch(t){throw r.setError(t),t}}};o.watch(a,e=>{});exports.actions=c;exports.state=a;
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import { reactive as o, watch as n } from "vue";
|
2
2
|
import c from "axios";
|
3
|
-
import { setError as e } from "../../../globals/store/globals.js";
|
3
|
+
import { setError as e } from "../../../globals/views/store/globals.js";
|
4
4
|
const s = c.create({ baseURL: process.env.API_URL, withCredentials: !0 }), r = o({
|
5
5
|
current: {
|
6
6
|
Status: ""
|