@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
@@ -4,7 +4,7 @@ const puppeteer = require("puppeteer");
|
|
4
4
|
const QRCode = require("qrcode");
|
5
5
|
const Mustache = require("mustache");
|
6
6
|
|
7
|
-
const { sendEmail } = require('@pf/src/modules/globals/utils/mailing');
|
7
|
+
const { sendEmail } = require('@pf/src/modules/globals/controllers/utils/mailing');
|
8
8
|
|
9
9
|
const { renderTemplate: renderTicketTemplate } = require('./utils/templateTicket');
|
10
10
|
const { renderTemplate: renderEmailTemplate } = require('./utils/templateEmail');
|
@@ -1,7 +1,7 @@
|
|
1
|
-
const applyCommonSchema = require('@pf/src/modules/globals/models/common.schema.js');
|
2
|
-
const applyEngagementSchema = require('@pf/src/modules/globals/models/engagement.schema.js');
|
3
|
-
const applyOwnershipSchema = require('@pf/src/modules/globals/models/ownership.schema.js');
|
4
|
-
const applyMetadataSchema = require('@pf/src/modules/globals/models/metadata.schema.js');
|
1
|
+
const applyCommonSchema = require('@pf/src/modules/globals/models/schemas/common.schema.js');
|
2
|
+
const applyEngagementSchema = require('@pf/src/modules/globals/models/schemas/engagement.schema.js');
|
3
|
+
const applyOwnershipSchema = require('@pf/src/modules/globals/models/schemas/ownership.schema.js');
|
4
|
+
const applyMetadataSchema = require('@pf/src/modules/globals/models/schemas/metadata.schema.js');
|
5
5
|
|
6
6
|
module.exports = (db) => {
|
7
7
|
|
@@ -5,7 +5,7 @@ const $axios = axios.create({baseURL: process.env.API_URL, withCredentials: true
|
|
5
5
|
// Vue modules
|
6
6
|
import { reactive, ref, computed, toRefs, watch } from "vue";
|
7
7
|
// Globals
|
8
|
-
import { setError } from '@pf/src/modules/globals/store/globals'
|
8
|
+
import { setError } from '@pf/src/modules/globals/views/store/globals'
|
9
9
|
// State
|
10
10
|
const state = reactive({
|
11
11
|
all: [],
|
@@ -5,7 +5,7 @@ import axios from 'axios';
|
|
5
5
|
import { reactive, watch } from "vue";
|
6
6
|
|
7
7
|
// Globals
|
8
|
-
import { setError } from '@pf/src/modules/globals/store/globals';
|
8
|
+
import { setError } from '@pf/src/modules/globals/views/store/globals';
|
9
9
|
|
10
10
|
// Setup Axios
|
11
11
|
const $axios = axios.create({
|
@@ -62,13 +62,13 @@
|
|
62
62
|
<script setup>
|
63
63
|
import { ref, onMounted, reactive, computed } from 'vue'
|
64
64
|
|
65
|
-
import Title from '@pf/src/modules/globals/components/sections/Title.vue';
|
65
|
+
import Title from '@pf/src/modules/globals/views/components/sections/Title.vue';
|
66
66
|
|
67
67
|
import Feed from '@pf/src/components/Feed/Feed.vue'
|
68
68
|
import Popup from '@pf/src/components/Popup/Popup.vue'
|
69
69
|
import PhotoViewer from '@pf/src/components/PhotoViewer/PhotoViewer.vue'
|
70
70
|
|
71
|
-
import SectionPageTitle from '@pf/src/modules/globals/components/sections/SectionPageTitle.vue'
|
71
|
+
import SectionPageTitle from '@pf/src/modules/globals/views/components/sections/SectionPageTitle.vue'
|
72
72
|
|
73
73
|
import gallery from '@pf/src/modules/gallery/store/gallery';
|
74
74
|
|
@@ -162,8 +162,8 @@ import * as organizations from '@pf/src/modules/organizations/store/organization
|
|
162
162
|
|
163
163
|
import gallery from '@pf/src/modules/gallery/store/gallery';
|
164
164
|
|
165
|
-
import CardHeader from '@pf/src/modules/globals/components/blocks/CardHeader.vue'
|
166
|
-
import SectionPageTitle from '@pf/src/modules/globals/components/sections/SectionPageTitle.vue'
|
165
|
+
import CardHeader from '@pf/src/modules/globals/views/components/blocks/CardHeader.vue'
|
166
|
+
import SectionPageTitle from '@pf/src/modules/globals/views/components/sections/SectionPageTitle.vue'
|
167
167
|
|
168
168
|
|
169
169
|
|
@@ -1,6 +1,6 @@
|
|
1
|
-
const applyCommonSchema = require('@pf/src/modules/globals/models/common.schema.js');
|
2
|
-
const applyEngagementSchema = require('@pf/src/modules/globals/models/engagement.schema.js');
|
3
|
-
const applyOwnershipSchema = require('@pf/src/modules/globals/models/ownership.schema.js');
|
1
|
+
const applyCommonSchema = require('@pf/src/modules/globals/models/schemas/common.schema.js');
|
2
|
+
const applyEngagementSchema = require('@pf/src/modules/globals/models/schemas/engagement.schema.js');
|
3
|
+
const applyOwnershipSchema = require('@pf/src/modules/globals/models/schemas/ownership.schema.js');
|
4
4
|
|
5
5
|
module.exports = (db) => {
|
6
6
|
const PhotoSchema = new db.mongoose.Schema({
|
@@ -1,7 +1,7 @@
|
|
1
1
|
const globalsQuery = require('@pf/src/modules/globals/controllers/utils/queryProcessor');
|
2
2
|
|
3
|
-
const Cache = require('@pf/src/modules/globals/
|
4
|
-
const Logger = require('@pf/src/modules/globals/
|
3
|
+
const Cache = require('@pf/src/modules/globals/controllers/classes/globals.cache');
|
4
|
+
const Logger = require('@pf/src/modules/globals/controllers/classes/globals.logger');
|
5
5
|
|
6
6
|
class CRUD {
|
7
7
|
constructor(basePath, app, db, model) {
|
@@ -1,19 +1,94 @@
|
|
1
1
|
// Components
|
2
2
|
// import Client from "./components/layouts/Client.vue"
|
3
3
|
|
4
|
-
import getBrowserLocale from './localization/get-browser-locale.js';
|
5
|
-
import
|
6
|
-
import scrollBehavior from './router/scrollBehavior.js';
|
4
|
+
import getBrowserLocale from './views/localization/get-browser-locale.js';
|
5
|
+
import scrollBehavior from './views/router/scrollBehavior.js';
|
7
6
|
|
8
|
-
import
|
9
|
-
import
|
7
|
+
import layoutApp from './views/components/layouts/App.vue'
|
8
|
+
import layoutClient from './views/components/layouts/Client.vue'
|
9
|
+
|
10
|
+
import * as mixins from './views/mixins/mixins.js'
|
11
|
+
import * as storeGlobals from './views/store/globals.js';
|
10
12
|
|
11
13
|
export {
|
12
14
|
// Client,
|
13
15
|
mixins,
|
14
|
-
routerGuards,
|
15
16
|
scrollBehavior,
|
16
17
|
getBrowserLocale,
|
17
|
-
|
18
|
-
|
18
|
+
// Store
|
19
|
+
storeGlobals,
|
20
|
+
// Components
|
21
|
+
layoutClient,
|
22
|
+
layoutApp
|
19
23
|
};
|
24
|
+
|
25
|
+
// Пример функции инициализации для модуля заказов
|
26
|
+
function initializeGlobals(app, store, router, options = {}) {
|
27
|
+
const route = options.route || 'Home';
|
28
|
+
|
29
|
+
const envVariables = [
|
30
|
+
'NODE_ENV',
|
31
|
+
'PORT',
|
32
|
+
'APP_NAME',
|
33
|
+
'DOMAIN_URL',
|
34
|
+
'API_URL',
|
35
|
+
'WSS_URL',
|
36
|
+
'FILE_SERVER_URL',
|
37
|
+
'WDT_TOKEN',
|
38
|
+
'WDM_URL_PROD',
|
39
|
+
'GOOGLE_MAPS_API_KEY',
|
40
|
+
'MOBILE_APP'
|
41
|
+
];
|
42
|
+
|
43
|
+
app.config.globalProperties.DOMAIN_URL = process.env.DOMAIN_URL;
|
44
|
+
app.config.globalProperties.API_URL = process.env.API_URL;
|
45
|
+
app.config.globalProperties.MOBILE_APP = process.env.MOBILE_APP;
|
46
|
+
app.config.globalProperties.FILE_SERVER_URL = process.env.FILE_SERVER_URL;
|
47
|
+
app.config.globalProperties.GOOGLE_MAPS_API_KEY = process.env.GOOGLE_MAPS_API_KEY;
|
48
|
+
|
49
|
+
app
|
50
|
+
.mixin(mixins.globalMixins);
|
51
|
+
|
52
|
+
// Change Locale to Route Locale if available
|
53
|
+
router.beforeEach((to, from, next) => {
|
54
|
+
const locale = to.params.locale;
|
55
|
+
|
56
|
+
if (locale) {
|
57
|
+
if (!app.config.globalProperties.$i18n.availableLocales.includes(locale)) {
|
58
|
+
return next({ path: '/404' });
|
59
|
+
} else {
|
60
|
+
app.config.globalProperties.$i18n.locale = locale;
|
61
|
+
return next();
|
62
|
+
}
|
63
|
+
}
|
64
|
+
|
65
|
+
return next();
|
66
|
+
|
67
|
+
});
|
68
|
+
|
69
|
+
store.addStore('globals', storeGlobals);
|
70
|
+
|
71
|
+
router.addRoute(route, { path: '/404', name: 'notfound', component: () => import('@pf/src/modules/globals/views/components/pages/404.vue') });
|
72
|
+
router.addRoute(route, { path: '/401', name: 'unauthorized', component: () => import('@pf/src/modules/globals/views/components/pages/401.vue') });
|
73
|
+
router.addRoute(route, { path: '/:pathMatch(.*)*', name: 'NotFound', redirect: { name: 'notfound' } });
|
74
|
+
|
75
|
+
}
|
76
|
+
|
77
|
+
const ModuleGlobals = {
|
78
|
+
initialize: initializeGlobals,
|
79
|
+
views: {
|
80
|
+
store: {
|
81
|
+
storeGlobals,
|
82
|
+
},
|
83
|
+
router: {
|
84
|
+
// routerOrders
|
85
|
+
},
|
86
|
+
components: {
|
87
|
+
// Pages
|
88
|
+
layoutClient,
|
89
|
+
layoutApp
|
90
|
+
}
|
91
|
+
}
|
92
|
+
}
|
93
|
+
|
94
|
+
export default ModuleGlobals
|
@@ -1,7 +1,7 @@
|
|
1
1
|
// Importing utils
|
2
|
-
const sitemap = require('./utils/sitemap.js');
|
3
|
-
const mailing = require('./utils/mailing.js');
|
4
|
-
const parseCookie = require('./utils/parseCookie.js');
|
2
|
+
const sitemap = require('./controllers/utils/sitemap.js');
|
3
|
+
const mailing = require('./controllers//utils/mailing.js');
|
4
|
+
const parseCookie = require('./controllers/utils/parseCookie.js');
|
5
5
|
|
6
6
|
// Since controllers and routes are not specified in your folder structure, they are not imported here.
|
7
7
|
|
@@ -1,5 +1,5 @@
|
|
1
1
|
// Utils
|
2
|
-
const createFriendlyURL = require('@pf/src/modules/globals/utils/seo-friendly-url');
|
2
|
+
const createFriendlyURL = require('@pf/src/modules/globals/controllers/utils/seo-friendly-url');
|
3
3
|
|
4
4
|
module.exports = function applyMetadataSchema(schema,db) {
|
5
5
|
schema.add({
|
@@ -3,7 +3,7 @@ import { ref } from 'vue';
|
|
3
3
|
|
4
4
|
import Radio from "@pf/src/components/Radio/Radio.vue";
|
5
5
|
|
6
|
-
import ButtonSort from '@pf/src/modules/globals/components/elements/ButtonSort.vue'
|
6
|
+
import ButtonSort from '@pf/src/modules/globals/views/components/elements/ButtonSort.vue'
|
7
7
|
import IconSort from '@pf/src/modules/icons/navigation/IconSort.vue'
|
8
8
|
|
9
9
|
const props = defineProps({
|
@@ -0,0 +1,104 @@
|
|
1
|
+
<template>
|
2
|
+
<transition name="moveFromTop" mode="out-in" appear>
|
3
|
+
<router-view
|
4
|
+
v-if="!MOBILE_APP"
|
5
|
+
name="Header"
|
6
|
+
ref="header"
|
7
|
+
class="transition-ease-in-out pos-relative br-b br-solid br-grey-transp-10 pos-t-0"
|
8
|
+
:theme="headerTheme"
|
9
|
+
:logotype="logotype"
|
10
|
+
:class="{
|
11
|
+
'pos-l-70': globals.state.isOpenSidebar,
|
12
|
+
'pos-l-0': !globals.state.isOpenSidebar,
|
13
|
+
}"
|
14
|
+
>
|
15
|
+
</router-view>
|
16
|
+
</transition>
|
17
|
+
|
18
|
+
<router-view v-slot="{ Component }">
|
19
|
+
<component :is="Component"/>
|
20
|
+
</router-view>
|
21
|
+
</template>
|
22
|
+
|
23
|
+
<script setup>
|
24
|
+
import { useHead } from '@unhead/vue'
|
25
|
+
import { useI18n } from 'vue-i18n'
|
26
|
+
import { useRoute } from 'vue-router'
|
27
|
+
import { computed } from 'vue'
|
28
|
+
|
29
|
+
import * as globals from '@pf/src/modules/globals/views/store/globals'
|
30
|
+
|
31
|
+
const props = defineProps({
|
32
|
+
messages: {
|
33
|
+
type: Object,
|
34
|
+
required: true
|
35
|
+
},
|
36
|
+
logotype: {
|
37
|
+
type: Object
|
38
|
+
}
|
39
|
+
})
|
40
|
+
|
41
|
+
const { t, locale } = useI18n({
|
42
|
+
messages: props.messages
|
43
|
+
})
|
44
|
+
|
45
|
+
const current_url = computed(() => removeTrailingSlash(`${base_url}${route.path}`));
|
46
|
+
|
47
|
+
const route = useRoute();
|
48
|
+
|
49
|
+
const languages = ['en', 'ru'];
|
50
|
+
const base_url = 'https://weeder.delivery';
|
51
|
+
|
52
|
+
|
53
|
+
function removeTrailingSlash(url) {
|
54
|
+
return url.endsWith('/') ? url.slice(0, -1) : url;
|
55
|
+
}
|
56
|
+
|
57
|
+
// Используйте эту функцию, чтобы удалить слэш в конце URL
|
58
|
+
const metadata = computed(() => {return {
|
59
|
+
title: t('meta.title'),
|
60
|
+
description: t('meta.description'),
|
61
|
+
meta: [
|
62
|
+
{ charset: 'utf-8' },
|
63
|
+
{ name: 'viewport', content: 'width=device-width, initial-scale=1, shrink-to-fit=no' },
|
64
|
+
{ hid: 'description', name: 'description', content: t('meta.description') },
|
65
|
+
{ hid: 'keywords', name: 'keywords', content: t('meta.keywords') },
|
66
|
+
{ hid: 'og:title', property: 'og:title', content: t('meta.og.title') },
|
67
|
+
{ hid: 'og:description', property: 'og:description', content: t('meta.og.description') },
|
68
|
+
{ hid: 'og:image', property: 'og:image', content: base_url + '/favicon/cover.jpg' },
|
69
|
+
{ hid: 'og:url', property: 'og:url', content: current_url.value },
|
70
|
+
{ hid: 'twitter:title', name: 'twitter:title', content: t('meta.twitter.title') },
|
71
|
+
{ hid: 'twitter:description', name: 'twitter:description', content: t('meta.twitter.description') },
|
72
|
+
{ hid: 'twitter:image', name: 'twitter:image', content: base_url + '/favicon/cover.jpg' },
|
73
|
+
{ hid: 'twitter:card', name: 'twitter:card', content: t('meta.twitter.card') },
|
74
|
+
],
|
75
|
+
link: [
|
76
|
+
{ hid: 'canonical', rel: 'canonical', href: current_url.value },
|
77
|
+
...generateAlternateLinks.value,
|
78
|
+
],
|
79
|
+
htmlAttrs: { lang: t('meta.htmlAttrs.lang')}
|
80
|
+
}});
|
81
|
+
|
82
|
+
const generateAlternateLinks = computed(() => {
|
83
|
+
return languages.map(lang => {
|
84
|
+
let newPath = route.path;
|
85
|
+
|
86
|
+
console.log(route)
|
87
|
+
|
88
|
+
if (route.params.locale) {
|
89
|
+
newPath = newPath.replace(`/${route.params.locale}`, `/${lang}`);
|
90
|
+
} else {
|
91
|
+
newPath = `/${lang}${newPath}`;
|
92
|
+
}
|
93
|
+
const href = removeTrailingSlash(`${base_url}${newPath}`);
|
94
|
+
return {
|
95
|
+
hid: 'alternate',
|
96
|
+
rel: 'alternate',
|
97
|
+
hreflang: lang,
|
98
|
+
href: href
|
99
|
+
};
|
100
|
+
});
|
101
|
+
});
|
102
|
+
|
103
|
+
useHead(metadata.value)
|
104
|
+
</script>
|
@@ -21,38 +21,18 @@
|
|
21
21
|
</section>
|
22
22
|
</transition>
|
23
23
|
|
24
|
-
<transition name="moveFromTop" mode="out-in" appear>
|
25
|
-
<Header
|
26
|
-
v-if="!MOBILE_APP"
|
27
|
-
ref="header"
|
28
|
-
class="transition-ease-in-out pos-relative br-b br-solid br-grey-transp-10 pos-t-0"
|
29
|
-
:theme="headerTheme"
|
30
|
-
:class="{
|
31
|
-
'pos-l-70': store.globals.state.isOpenSidebar,
|
32
|
-
'pos-l-0': !store.globals.state.isOpenSidebar,
|
33
|
-
}"
|
34
|
-
/>
|
35
|
-
</transition>
|
36
|
-
|
37
|
-
<transition name="moveFromTop" mode="out-in" appear>
|
38
|
-
<NavigationBar
|
39
|
-
v-if="MOBILE_APP"
|
40
|
-
:style="MOBILE_APP === 'ios' ?'padding-top: 6rem;':''"
|
41
|
-
/>
|
42
|
-
</transition>
|
43
|
-
|
44
24
|
<transition name="moveFromTop" mode="out-in" appear>
|
45
25
|
<Sidebar
|
46
|
-
v-if="show &&
|
47
|
-
:stateSidebar="
|
26
|
+
v-if="show && globals.state.isOpenSidebar"
|
27
|
+
:stateSidebar="globals.state.isOpenSidebar"
|
48
28
|
@closeSidebar="() => {
|
49
|
-
|
29
|
+
globals.state.isOpenSidebar = !globals.state.isOpenSidebar
|
50
30
|
}"
|
51
31
|
|
52
32
|
class="transition-ease-in-out pos-absolute w-70 z-index-0 bg-light"
|
53
33
|
:class="{
|
54
|
-
'pos-l-70-negative': !
|
55
|
-
'pos-l-0':
|
34
|
+
'pos-l-70-negative': !globals.state.isOpenSidebar,
|
35
|
+
'pos-l-0': globals.state.isOpenSidebar
|
56
36
|
}"
|
57
37
|
>
|
58
38
|
<Navigation class="h3 pd-big cols-1" />
|
@@ -61,7 +41,7 @@
|
|
61
41
|
|
62
42
|
<Popup
|
63
43
|
@close-popup="closeLocationPopup"
|
64
|
-
:isPopupOpen="
|
44
|
+
:isPopupOpen="globals.state.isOpenLocationPopup"
|
65
45
|
class="bg-white pd-semi w-m-33r radius-big"
|
66
46
|
>
|
67
47
|
<LocationSelection />
|
@@ -72,22 +52,22 @@
|
|
72
52
|
id="screen"
|
73
53
|
ref="screen"
|
74
54
|
@scroll="handleScroll"
|
75
|
-
@click="
|
55
|
+
@click="globals.state.isOpenSidebar
|
76
56
|
?
|
77
|
-
a =>
|
57
|
+
a => globals.state.isOpenSidebar = false
|
78
58
|
:
|
79
59
|
a => {console.log('not succes')}"
|
80
60
|
class="transition-ease-in-out h-min-100 w-100 bg-white pos-relative o-scroll"
|
81
61
|
:class="{
|
82
|
-
'pos-l-70':
|
83
|
-
'pos-l-0': !
|
62
|
+
'pos-l-70': globals.state.isOpenSidebar,
|
63
|
+
'pos-l-0': !globals.state.isOpenSidebar
|
84
64
|
}"
|
85
65
|
>
|
86
66
|
<ShopCart />
|
87
67
|
|
88
68
|
<Status
|
89
|
-
v-if="
|
90
|
-
:data="
|
69
|
+
v-if="globals.state.error.show"
|
70
|
+
:data="globals.state.error"
|
91
71
|
class="z-index-7"
|
92
72
|
/>
|
93
73
|
|
@@ -98,7 +78,7 @@
|
|
98
78
|
/>
|
99
79
|
</section> -->
|
100
80
|
|
101
|
-
|
81
|
+
<Suspense>
|
102
82
|
<router-view v-slot="{ Component, route }">
|
103
83
|
<transition @before-enter="scrollTop" name="scaleIn" mode="out-in" appear>
|
104
84
|
<component
|
@@ -108,7 +88,7 @@
|
|
108
88
|
/>
|
109
89
|
</transition>
|
110
90
|
</router-view>
|
111
|
-
|
91
|
+
</Suspense>
|
112
92
|
<!-- <Footer /> -->
|
113
93
|
</section>
|
114
94
|
|
@@ -125,7 +105,7 @@
|
|
125
105
|
// Router
|
126
106
|
import { useRoute, useRouter } from 'vue-router'
|
127
107
|
// Store
|
128
|
-
import
|
108
|
+
import * as globals from '@pf/src/modules/globals/views/store/globals'
|
129
109
|
// Partials
|
130
110
|
import Loader from '@pf/src/components/Loader/Loader.vue'
|
131
111
|
import Status from '@pf/src/components/Status/Status.vue'
|
@@ -134,11 +114,9 @@
|
|
134
114
|
import Breadcrumbs from '@pf/src/components/Breadcrumbs/Breadcrumbs.vue'
|
135
115
|
import LocationSelection from '@pf/src/components/LocationSelection/LocationSelection.vue'
|
136
116
|
|
137
|
-
import
|
138
|
-
import
|
139
|
-
|
140
|
-
import NavigationBar from '@pf/src/modules/globals/components/partials/NavigationBar.vue';
|
141
|
-
import BottomNavigation from '@pf/src/modules/globals/components/partials/BottomNavigation.vue';
|
117
|
+
import Navigation from '@pf/src/modules/globals/views/components/partials/Navigation.vue'
|
118
|
+
import Footer from '@pf/src/modules/globals/views/components/partials/Footer.vue'
|
119
|
+
import BottomNavigation from '@pf/src/modules/globals/views/components/partials/BottomNavigation.vue';
|
142
120
|
|
143
121
|
import ShopCart from '@pf/src/modules/orders/components/partials/ShopCart.vue'
|
144
122
|
// Walkthrough
|
@@ -146,7 +124,7 @@
|
|
146
124
|
|
147
125
|
if (__MOBILE_APP__) {
|
148
126
|
Walkthrough = defineAsyncComponent(() =>
|
149
|
-
import('@pf/src/modules/globals/components/sections/Walkthrough.vue').then(_ => _.default)
|
127
|
+
import('@pf/src/modules/globals/views/components/sections/Walkthrough.vue').then(_ => _.default)
|
150
128
|
);
|
151
129
|
} else {
|
152
130
|
Walkthrough = null;
|
@@ -171,7 +149,6 @@
|
|
171
149
|
/////////////////////////////
|
172
150
|
const route = useRoute()
|
173
151
|
const router = useRouter()
|
174
|
-
const store = useStore();
|
175
152
|
// State
|
176
153
|
let show = ref(false)
|
177
154
|
// Preloader
|
@@ -179,6 +156,16 @@
|
|
179
156
|
const screen = ref(null)
|
180
157
|
// Ref Code
|
181
158
|
const referalCode = ref(route.query.referalCode);
|
159
|
+
|
160
|
+
/////////////////////////////
|
161
|
+
// Methods
|
162
|
+
/////////////////////////////
|
163
|
+
function closeLocationPopup() {
|
164
|
+
globals.state.isOpenLocationPopup = false;
|
165
|
+
}
|
166
|
+
function scrollTop(){
|
167
|
+
document.getElementById('app').scrollIntoView();
|
168
|
+
}
|
182
169
|
// Scrolling header
|
183
170
|
const scrollOffset = ref(0)
|
184
171
|
let isScrolled = false
|
@@ -191,15 +178,6 @@
|
|
191
178
|
return route.meta.header_theme || 'light'
|
192
179
|
}
|
193
180
|
})
|
194
|
-
/////////////////////////////
|
195
|
-
// Methods
|
196
|
-
/////////////////////////////
|
197
|
-
function closeLocationPopup() {
|
198
|
-
store.globals.state.isOpenLocationPopup = false;
|
199
|
-
}
|
200
|
-
function scrollTop(){
|
201
|
-
document.getElementById('app').scrollIntoView();
|
202
|
-
}
|
203
181
|
const handleScroll = () => {
|
204
182
|
scrollOffset.value = event.target.scrollTop
|
205
183
|
|
@@ -259,9 +237,9 @@
|
|
259
237
|
const savedPosition = localStorage.getItem('position');
|
260
238
|
|
261
239
|
if (savedPosition) {
|
262
|
-
|
240
|
+
globals.state.position = JSON.parse(savedPosition);
|
263
241
|
} else {
|
264
|
-
|
242
|
+
globals.state.isOpenLocationPopup = true;
|
265
243
|
}
|
266
244
|
|
267
245
|
if (referalCode.value) {
|
@@ -63,12 +63,10 @@
|
|
63
63
|
/////////////////////////////
|
64
64
|
import { ref,computed } from 'vue';
|
65
65
|
import { useRouter, useRoute } from 'vue-router';
|
66
|
-
import { useStore } from '@/store';
|
67
66
|
|
68
67
|
/////////////////////////////
|
69
68
|
// CREATED
|
70
69
|
/////////////////////////////
|
71
|
-
const store = useStore();
|
72
70
|
const router = useRouter();
|
73
71
|
const route = useRoute();
|
74
72
|
const navRef = ref(null);
|
@@ -6,13 +6,12 @@
|
|
6
6
|
import { useStore } from '@/store';
|
7
7
|
|
8
8
|
// Globasls Component
|
9
|
-
import Navigation from '@pf/src/modules/globals/components/partials/Navigation.vue'
|
9
|
+
import Navigation from '@pf/src/modules/globals/views/components/partials/Navigation.vue'
|
10
10
|
// Prometheus Component
|
11
11
|
import Button from '@pf/src/components/Button/Button.vue'
|
12
12
|
import Select from '@pf/src/components/Select/Select.vue'
|
13
13
|
import Checkbox from '@pf/src/components/Checkbox/Checkbox.vue'
|
14
14
|
// Icons module
|
15
|
-
import Logotype from '@pf/src/modules/icons/logos/Logotype.vue'
|
16
15
|
import IconShopcart from '@pf/src/modules/icons/entities/IconShopcart.vue'
|
17
16
|
import IconProfile from '@pf/src/modules/icons/entities/IconProfile.vue'
|
18
17
|
|
@@ -21,7 +20,10 @@
|
|
21
20
|
theme: {
|
22
21
|
type: String,
|
23
22
|
default: "light"
|
24
|
-
}
|
23
|
+
},
|
24
|
+
logotype: {
|
25
|
+
type: Object
|
26
|
+
}
|
25
27
|
});
|
26
28
|
// Accessing state
|
27
29
|
const router = useRouter()
|
@@ -82,14 +84,16 @@
|
|
82
84
|
</button>
|
83
85
|
|
84
86
|
<!-- LOGO -->
|
85
|
-
<
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
87
|
+
<component
|
88
|
+
v-if="props.logotype"
|
89
|
+
:is="props.logotype"
|
90
|
+
@click="router.push({ path: '/' })"
|
91
|
+
:theme="theme"
|
92
|
+
class="
|
93
|
+
h-2r
|
94
|
+
w-auto
|
95
|
+
cursor-pointer
|
96
|
+
"
|
93
97
|
/>
|
94
98
|
|
95
99
|
<button
|
@@ -2,7 +2,7 @@
|
|
2
2
|
<ul class="t-semi gap-small flex-nowrap flex-center flex">
|
3
3
|
<li>
|
4
4
|
<router-link
|
5
|
-
:to="getMarketplaceLink(null,
|
5
|
+
:to="getMarketplaceLink(null,globals.state.position?.country,globals.state.position?.state,globals.state.position?.city)"
|
6
6
|
class="font-second"
|
7
7
|
>
|
8
8
|
{{ t('HEADER.MENU.MARKETPLACE') }}
|
@@ -11,7 +11,7 @@
|
|
11
11
|
<li>
|
12
12
|
<router-link
|
13
13
|
class="font-second"
|
14
|
-
:to="getSpotsLink(
|
14
|
+
:to="getSpotsLink(globals.state.position?.country,globals.state.position?.state,globals.state.position?.city)"
|
15
15
|
>
|
16
16
|
{{ t('HEADER.MENU.DISPENSARIES') }}
|
17
17
|
</router-link>
|
@@ -61,7 +61,8 @@
|
|
61
61
|
import { computed, } from 'vue';
|
62
62
|
import { useRoute,useRouter } from 'vue-router'
|
63
63
|
import { useI18n } from 'vue-i18n'
|
64
|
-
|
64
|
+
|
65
|
+
import * as globals from '@pf/src/modules/globals/views/store/globals'
|
65
66
|
|
66
67
|
/////////////////////////////
|
67
68
|
// HELPERS
|
@@ -71,7 +72,6 @@ import { useStore } from '@/store';
|
|
71
72
|
// CREATED
|
72
73
|
/////////////////////////////
|
73
74
|
const route = useRoute()
|
74
|
-
const store = useStore()
|
75
75
|
// Compoted Vars
|
76
76
|
const text = {
|
77
77
|
messages: {
|