@ozdao/prometheus-framework 0.2.323 → 0.2.325
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/Media-BjSScxrV.js +1 -0
- package/dist/Media-CCVndMgQ.mjs +111 -0
- package/dist/main-BBmjvE8i.js +92 -0
- package/dist/main-BCskq3d2.mjs +13068 -0
- package/dist/main.css +1 -1
- package/dist/prometheus-framework/src/components/Button/Button.vue.cjs +9 -11
- package/dist/prometheus-framework/src/components/Button/Button.vue.cjs.map +1 -1
- package/dist/prometheus-framework/src/components/Button/Button.vue.js +10 -12
- package/dist/prometheus-framework/src/components/Button/Button.vue.js.map +1 -1
- package/dist/prometheus-framework/src/components/DatePicker/Calendar.vue2.cjs +37 -9
- package/dist/prometheus-framework/src/components/DatePicker/Calendar.vue2.cjs.map +1 -1
- package/dist/prometheus-framework/src/components/DatePicker/Calendar.vue2.js +37 -9
- package/dist/prometheus-framework/src/components/DatePicker/Calendar.vue2.js.map +1 -1
- package/dist/prometheus-framework/src/components/DatePicker/DatePicker.vue.cjs +27 -18
- package/dist/prometheus-framework/src/components/DatePicker/DatePicker.vue.cjs.map +1 -1
- package/dist/prometheus-framework/src/components/DatePicker/DatePicker.vue.js +27 -18
- package/dist/prometheus-framework/src/components/DatePicker/DatePicker.vue.js.map +1 -1
- package/dist/prometheus-framework/src/components/EditImages/EditImages.vue.cjs +93 -0
- package/dist/prometheus-framework/src/components/EditImages/EditImages.vue.cjs.map +1 -1
- package/dist/prometheus-framework/src/components/EditImages/EditImages.vue.js +94 -1
- package/dist/prometheus-framework/src/components/EditImages/EditImages.vue.js.map +1 -1
- package/dist/prometheus-framework/src/components/EditImages/EditImages.vue2.cjs +0 -93
- package/dist/prometheus-framework/src/components/EditImages/EditImages.vue2.cjs.map +1 -1
- package/dist/prometheus-framework/src/components/EditImages/EditImages.vue2.js +1 -94
- package/dist/prometheus-framework/src/components/EditImages/EditImages.vue2.js.map +1 -1
- package/dist/prometheus-framework/src/components/EmptyState/EmptyState.vue.cjs +2 -2
- package/dist/prometheus-framework/src/components/EmptyState/EmptyState.vue.js +2 -2
- package/dist/prometheus-framework/src/components/Feed/Feed.vue.cjs +7 -3
- package/dist/prometheus-framework/src/components/Feed/Feed.vue.cjs.map +1 -1
- package/dist/prometheus-framework/src/components/Feed/Feed.vue.js +7 -3
- package/dist/prometheus-framework/src/components/Feed/Feed.vue.js.map +1 -1
- package/dist/prometheus-framework/src/components/Media/Media.vue.cjs +154 -0
- package/dist/prometheus-framework/src/components/Media/Media.vue.cjs.map +1 -0
- package/dist/prometheus-framework/src/components/Media/Media.vue.js +154 -0
- package/dist/prometheus-framework/src/components/Media/Media.vue.js.map +1 -0
- package/dist/prometheus-framework/src/components/Popup/Popup.vue.cjs +1 -4
- package/dist/prometheus-framework/src/components/Popup/Popup.vue.cjs.map +1 -1
- package/dist/prometheus-framework/src/components/Popup/Popup.vue.js +1 -4
- package/dist/prometheus-framework/src/components/Popup/Popup.vue.js.map +1 -1
- package/dist/prometheus-framework/src/components/Slider/Slider.vue.cjs +68 -37
- package/dist/prometheus-framework/src/components/Slider/Slider.vue.cjs.map +1 -1
- package/dist/prometheus-framework/src/components/Slider/Slider.vue.js +69 -38
- package/dist/prometheus-framework/src/components/Slider/Slider.vue.js.map +1 -1
- package/dist/prometheus-framework/src/modules/auth/views/components/pages/Profile.vue.cjs +3 -2
- package/dist/prometheus-framework/src/modules/auth/views/components/pages/Profile.vue.cjs.map +1 -1
- package/dist/prometheus-framework/src/modules/auth/views/components/pages/Profile.vue.js +3 -2
- package/dist/prometheus-framework/src/modules/auth/views/components/pages/Profile.vue.js.map +1 -1
- package/dist/prometheus-framework/src/modules/backoffice/backoffice.client.cjs +0 -2
- package/dist/prometheus-framework/src/modules/backoffice/backoffice.client.cjs.map +1 -1
- package/dist/prometheus-framework/src/modules/backoffice/backoffice.client.js +4 -6
- package/dist/prometheus-framework/src/modules/backoffice/backoffice.client.js.map +1 -1
- package/dist/prometheus-framework/src/modules/backoffice/components/pages/Dashboard.vue.cjs +118 -3
- package/dist/prometheus-framework/src/modules/backoffice/components/pages/Dashboard.vue.cjs.map +1 -1
- package/dist/prometheus-framework/src/modules/backoffice/components/pages/Dashboard.vue.js +119 -4
- package/dist/prometheus-framework/src/modules/backoffice/components/pages/Dashboard.vue.js.map +1 -1
- package/dist/prometheus-framework/src/modules/backoffice/components/partials/Sidebar.vue.cjs +112 -163
- package/dist/prometheus-framework/src/modules/backoffice/components/partials/Sidebar.vue.cjs.map +1 -1
- package/dist/prometheus-framework/src/modules/backoffice/components/partials/Sidebar.vue.js +119 -170
- package/dist/prometheus-framework/src/modules/backoffice/components/partials/Sidebar.vue.js.map +1 -1
- package/dist/prometheus-framework/src/modules/backoffice/router/backoffice.cjs +0 -17
- package/dist/prometheus-framework/src/modules/backoffice/router/backoffice.cjs.map +1 -1
- package/dist/prometheus-framework/src/modules/backoffice/router/backoffice.js +2 -19
- package/dist/prometheus-framework/src/modules/backoffice/router/backoffice.js.map +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 +1 -1
- package/dist/prometheus-framework/src/modules/community/components/layouts/Community.vue.cjs +18 -78
- package/dist/prometheus-framework/src/modules/community/components/layouts/Community.vue.cjs.map +1 -1
- package/dist/prometheus-framework/src/modules/community/components/layouts/Community.vue.js +23 -83
- package/dist/prometheus-framework/src/modules/community/components/layouts/Community.vue.js.map +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 +1 -1
- 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/HotPosts.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/community/components/sections/HotPosts.vue.js +5 -5
- package/dist/prometheus-framework/src/modules/events/components/blocks/CardEvent.vue.cjs +34 -25
- package/dist/prometheus-framework/src/modules/events/components/blocks/CardEvent.vue.cjs.map +1 -1
- package/dist/prometheus-framework/src/modules/events/components/blocks/CardEvent.vue.js +35 -26
- package/dist/prometheus-framework/src/modules/events/components/blocks/CardEvent.vue.js.map +1 -1
- package/dist/prometheus-framework/src/modules/events/components/pages/EditEvent.vue.cjs +2 -2
- package/dist/prometheus-framework/src/modules/events/components/pages/EditEvent.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/events/components/pages/EditEventTickets.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/events/components/pages/EditEventTickets.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/events/components/pages/Event.vue.cjs +45 -38
- package/dist/prometheus-framework/src/modules/events/components/pages/Event.vue.cjs.map +1 -1
- package/dist/prometheus-framework/src/modules/events/components/pages/Event.vue.js +56 -49
- package/dist/prometheus-framework/src/modules/events/components/pages/Event.vue.js.map +1 -1
- package/dist/prometheus-framework/src/modules/events/components/pages/Events.vue.cjs +221 -50
- package/dist/prometheus-framework/src/modules/events/components/pages/Events.vue.cjs.map +1 -1
- package/dist/prometheus-framework/src/modules/events/components/pages/Events.vue.js +225 -54
- package/dist/prometheus-framework/src/modules/events/components/pages/Events.vue.js.map +1 -1
- package/dist/prometheus-framework/src/modules/events/components/sections/EventsHot.vue.cjs +98 -0
- package/dist/prometheus-framework/src/modules/events/components/sections/EventsHot.vue.cjs.map +1 -0
- package/dist/prometheus-framework/src/modules/events/components/sections/EventsHot.vue.js +98 -0
- package/dist/prometheus-framework/src/modules/events/components/sections/EventsHot.vue.js.map +1 -0
- package/dist/prometheus-framework/src/modules/events/components/sections/FeaturedEvents.vue.cjs +9 -9
- package/dist/prometheus-framework/src/modules/events/components/sections/FeaturedEvents.vue.cjs.map +1 -1
- package/dist/prometheus-framework/src/modules/events/components/sections/FeaturedEvents.vue.js +9 -9
- package/dist/prometheus-framework/src/modules/events/components/sections/FeaturedEvents.vue.js.map +1 -1
- package/dist/prometheus-framework/src/modules/events/components/sections/List.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/events/components/sections/List.vue.cjs.map +1 -1
- package/dist/prometheus-framework/src/modules/events/components/sections/List.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/events/components/sections/List.vue.js.map +1 -1
- package/dist/prometheus-framework/src/modules/events/events.client.cjs +1 -0
- package/dist/prometheus-framework/src/modules/events/events.client.cjs.map +1 -1
- package/dist/prometheus-framework/src/modules/events/events.client.js +1 -0
- package/dist/prometheus-framework/src/modules/events/events.client.js.map +1 -1
- package/dist/prometheus-framework/src/modules/events/router/events.cjs.map +1 -1
- package/dist/prometheus-framework/src/modules/events/router/events.js.map +1 -1
- package/dist/prometheus-framework/src/modules/events/store/events.cjs +2 -1
- package/dist/prometheus-framework/src/modules/events/store/events.cjs.map +1 -1
- package/dist/prometheus-framework/src/modules/events/store/events.js +2 -1
- package/dist/prometheus-framework/src/modules/events/store/events.js.map +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 +1 -1
- package/dist/prometheus-framework/src/modules/gallery/components/sections/BackofficeGallery.vue.cjs +4 -4
- package/dist/prometheus-framework/src/modules/gallery/components/sections/BackofficeGallery.vue.js +4 -4
- package/dist/prometheus-framework/src/modules/globals/views/components/blocks/CardHeader.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/globals/views/components/blocks/CardHeader.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/globals/views/components/layouts/App.vue.cjs +4 -4
- package/dist/prometheus-framework/src/modules/globals/views/components/layouts/App.vue.cjs.map +1 -1
- package/dist/prometheus-framework/src/modules/globals/views/components/layouts/App.vue.js +4 -4
- package/dist/prometheus-framework/src/modules/globals/views/components/layouts/App.vue.js.map +1 -1
- package/dist/prometheus-framework/src/modules/globals/views/components/layouts/Client.vue.cjs +11 -5
- package/dist/prometheus-framework/src/modules/globals/views/components/layouts/Client.vue.cjs.map +1 -1
- package/dist/prometheus-framework/src/modules/globals/views/components/layouts/Client.vue.js +11 -5
- package/dist/prometheus-framework/src/modules/globals/views/components/layouts/Client.vue.js.map +1 -1
- package/dist/prometheus-framework/src/modules/globals/views/components/partials/CitySelection.vue.cjs +100 -0
- package/dist/prometheus-framework/src/modules/globals/views/components/partials/CitySelection.vue.cjs.map +1 -0
- package/dist/prometheus-framework/src/modules/globals/views/components/partials/CitySelection.vue.js +100 -0
- package/dist/prometheus-framework/src/modules/globals/views/components/partials/CitySelection.vue.js.map +1 -0
- package/dist/prometheus-framework/src/modules/globals/views/components/partials/Header.vue.cjs +6 -7
- package/dist/prometheus-framework/src/modules/globals/views/components/partials/Header.vue.cjs.map +1 -1
- package/dist/prometheus-framework/src/modules/globals/views/components/partials/Header.vue.js +6 -7
- package/dist/prometheus-framework/src/modules/globals/views/components/partials/Header.vue.js.map +1 -1
- package/dist/prometheus-framework/src/modules/globals/views/components/partials/Sidebar.vue.cjs +1 -6
- package/dist/prometheus-framework/src/modules/globals/views/components/partials/Sidebar.vue.cjs.map +1 -1
- package/dist/prometheus-framework/src/modules/globals/views/components/partials/Sidebar.vue.js +1 -6
- package/dist/prometheus-framework/src/modules/globals/views/components/partials/Sidebar.vue.js.map +1 -1
- package/dist/prometheus-framework/src/modules/globals/views/mixins/mixins.cjs +30 -14
- package/dist/prometheus-framework/src/modules/globals/views/mixins/mixins.cjs.map +1 -1
- package/dist/prometheus-framework/src/modules/globals/views/mixins/mixins.js +30 -14
- package/dist/prometheus-framework/src/modules/globals/views/mixins/mixins.js.map +1 -1
- package/dist/prometheus-framework/src/modules/icons/actions/IconShopcartAdd.vue.cjs +33 -0
- package/dist/prometheus-framework/src/modules/icons/actions/IconShopcartAdd.vue.cjs.map +1 -0
- package/dist/prometheus-framework/src/modules/icons/actions/IconShopcartAdd.vue.js +33 -0
- package/dist/prometheus-framework/src/modules/icons/actions/IconShopcartAdd.vue.js.map +1 -0
- package/dist/prometheus-framework/src/modules/icons/entities/IconCommunity.vue.cjs +4 -17
- package/dist/prometheus-framework/src/modules/icons/entities/IconCommunity.vue.cjs.map +1 -1
- package/dist/prometheus-framework/src/modules/icons/entities/IconCommunity.vue.js +4 -17
- package/dist/prometheus-framework/src/modules/icons/entities/IconCommunity.vue.js.map +1 -1
- package/dist/prometheus-framework/src/modules/icons/entities/IconPayments.vue.cjs +34 -0
- package/dist/prometheus-framework/src/modules/icons/entities/IconPayments.vue.cjs.map +1 -0
- package/dist/prometheus-framework/src/modules/icons/entities/IconPayments.vue.js +34 -0
- package/dist/prometheus-framework/src/modules/icons/entities/IconPayments.vue.js.map +1 -0
- package/dist/prometheus-framework/src/modules/icons/entities/IconPrice.vue.cjs +27 -17
- package/dist/prometheus-framework/src/modules/icons/entities/IconPrice.vue.cjs.map +1 -1
- package/dist/prometheus-framework/src/modules/icons/entities/IconPrice.vue.js +28 -18
- package/dist/prometheus-framework/src/modules/icons/entities/IconPrice.vue.js.map +1 -1
- package/dist/prometheus-framework/src/modules/icons/icons.client.cjs +2 -0
- package/dist/prometheus-framework/src/modules/icons/icons.client.cjs.map +1 -1
- package/dist/prometheus-framework/src/modules/icons/icons.client.js +50 -48
- package/dist/prometheus-framework/src/modules/icons/icons.client.js.map +1 -1
- package/dist/prometheus-framework/src/modules/orders/components/blocks/CardOrderItem.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/orders/components/blocks/CardOrderItem.vue.cjs.map +1 -1
- package/dist/prometheus-framework/src/modules/orders/components/blocks/CardOrderItem.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/orders/components/blocks/CardOrderItem.vue.js.map +1 -1
- 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 +1 -1
- package/dist/prometheus-framework/src/modules/orders/components/pages/OrderCreateBackoffice.vue.cjs +2 -2
- package/dist/prometheus-framework/src/modules/orders/components/pages/OrderCreateBackoffice.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 +1 -1
- 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/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/store/shopcart.cjs +67 -2
- package/dist/prometheus-framework/src/modules/orders/store/shopcart.cjs.map +1 -1
- package/dist/prometheus-framework/src/modules/orders/store/shopcart.js +67 -2
- package/dist/prometheus-framework/src/modules/orders/store/shopcart.js.map +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 +7 -7
- package/dist/prometheus-framework/src/modules/organizations/components/pages/DepartmentEdit.vue.cjs +2 -2
- package/dist/prometheus-framework/src/modules/organizations/components/pages/DepartmentEdit.vue.js +2 -2
- 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 +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationEdit.vue.cjs +2 -2
- package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationEdit.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/organizations/components/pages/Organizations.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/pages/Organizations.vue.cjs.map +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/pages/Organizations.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/pages/Organizations.vue.js.map +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/sections/DetailsTabSection.vue.cjs +2 -2
- package/dist/prometheus-framework/src/modules/organizations/components/sections/DetailsTabSection.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 +1 -1
- 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 +1 -1
- package/dist/prometheus-framework/src/modules/pages/pages.client.cjs +821 -789
- package/dist/prometheus-framework/src/modules/pages/pages.client.js +821 -789
- 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 +1 -1
- 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/CardProduct.vue.cjs +4 -15
- package/dist/prometheus-framework/src/modules/products/components/blocks/CardProduct.vue.cjs.map +1 -1
- package/dist/prometheus-framework/src/modules/products/components/blocks/CardProduct.vue.js +4 -15
- package/dist/prometheus-framework/src/modules/products/components/blocks/CardProduct.vue.js.map +1 -1
- package/dist/prometheus-framework/src/modules/products/components/blocks/ImagesThumbnails.vue.cjs +4 -4
- package/dist/prometheus-framework/src/modules/products/components/blocks/ImagesThumbnails.vue.cjs.map +1 -1
- package/dist/prometheus-framework/src/modules/products/components/blocks/ImagesThumbnails.vue.js +4 -4
- package/dist/prometheus-framework/src/modules/products/components/blocks/ImagesThumbnails.vue.js.map +1 -1
- package/dist/prometheus-framework/src/modules/products/components/elements/Price.vue.cjs +24 -30
- package/dist/prometheus-framework/src/modules/products/components/elements/Price.vue.cjs.map +1 -1
- package/dist/prometheus-framework/src/modules/products/components/elements/Price.vue.js +25 -31
- package/dist/prometheus-framework/src/modules/products/components/elements/Price.vue.js.map +1 -1
- package/dist/prometheus-framework/src/modules/products/components/pages/Categories.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/pages/Categories.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/products/components/pages/CategoryEdit.vue.cjs +2 -2
- package/dist/prometheus-framework/src/modules/products/components/pages/CategoryEdit.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/products/components/pages/EditLeftover.vue.cjs +2 -2
- package/dist/prometheus-framework/src/modules/products/components/pages/EditLeftover.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/products/components/pages/Product.vue.cjs +236 -13
- package/dist/prometheus-framework/src/modules/products/components/pages/Product.vue.cjs.map +1 -1
- package/dist/prometheus-framework/src/modules/products/components/pages/Product.vue.js +239 -16
- package/dist/prometheus-framework/src/modules/products/components/pages/Product.vue.js.map +1 -1
- package/dist/prometheus-framework/src/modules/products/components/pages/ProductEdit.vue.cjs +2 -2
- package/dist/prometheus-framework/src/modules/products/components/pages/ProductEdit.vue.js +2 -2
- 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/components/sections/SectionProduct.vue.cjs +60 -14
- package/dist/prometheus-framework/src/modules/products/components/sections/SectionProduct.vue.cjs.map +1 -1
- package/dist/prometheus-framework/src/modules/products/components/sections/SectionProduct.vue.js +67 -21
- package/dist/prometheus-framework/src/modules/products/components/sections/SectionProduct.vue.js.map +1 -1
- package/dist/prometheus-framework/src/modules/products/products.client.cjs +0 -3
- package/dist/prometheus-framework/src/modules/products/products.client.cjs.map +1 -1
- package/dist/prometheus-framework/src/modules/products/products.client.js +48 -51
- package/dist/prometheus-framework/src/modules/products/products.client.js.map +1 -1
- package/dist/prometheus-framework/src/modules/reports/components/sections/FormReport.vue.cjs +2 -2
- package/dist/prometheus-framework/src/modules/reports/components/sections/FormReport.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/spots/components/blocks/CardSpot.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/spots/components/blocks/CardSpot.vue.js +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 +1 -1
- package/dist/prometheus-framework/src/modules/spots/components/pages/SpotEdit.vue.cjs +2 -2
- package/dist/prometheus-framework/src/modules/spots/components/pages/SpotEdit.vue.js +2 -2
- 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/Wallet.vue.cjs +4 -4
- package/dist/prometheus-framework/src/modules/wallet/views/components/pages/Wallet.vue.js +4 -4
- package/dist/prometheus-framework.cjs.js +1 -92
- package/dist/prometheus-framework.es.js +36 -13005
- package/package.json +1 -1
- package/src/components/Button/Button.vue +43 -40
- package/src/components/DatePicker/Calendar.vue +15 -7
- package/src/components/DatePicker/DatePicker.vue +50 -40
- package/src/components/EmptyState/EmptyState.vue +2 -2
- package/src/components/Feed/Feed.vue +6 -2
- package/src/components/Media/Media.vue +211 -0
- package/src/components/Popup/Popup.vue +19 -21
- package/src/components/Slider/Slider.vue +57 -21
- package/src/components/index.js +1 -0
- package/src/main.js +3 -1
- package/src/modules/auth/views/components/pages/Profile.vue +2 -1
- package/src/modules/backoffice/backoffice.client.js +0 -2
- package/src/modules/backoffice/components/pages/Dashboard.vue +95 -2
- package/src/modules/backoffice/components/partials/Sidebar.vue +115 -132
- package/src/modules/backoffice/router/backoffice.js +0 -14
- package/src/modules/community/components/layouts/Community.vue +1 -52
- package/src/modules/events/components/blocks/CardEvent.vue +28 -22
- package/src/modules/events/components/pages/Event.vue +11 -8
- package/src/modules/events/components/pages/Events.vue +241 -56
- package/src/modules/events/components/sections/EventsHot.vue +93 -0
- package/src/modules/events/components/sections/FeaturedEvents.vue +17 -15
- package/src/modules/events/components/sections/List.vue +1 -1
- package/src/modules/events/events.client.js +1 -0
- package/src/modules/events/router/events.js +0 -4
- package/src/modules/events/store/events.js +1 -0
- package/src/modules/globals/views/components/layouts/App.vue +4 -5
- package/src/modules/globals/views/components/layouts/Client.vue +8 -2
- package/src/modules/globals/views/components/partials/CitySelection.vue +88 -0
- package/src/modules/globals/views/components/partials/Header.vue +3 -3
- package/src/modules/globals/views/components/partials/Navigation.vue +75 -20
- package/src/modules/globals/views/components/partials/Sidebar.vue +2 -9
- package/src/modules/globals/views/mixins/mixins.js +56 -35
- package/src/modules/governance/DESCRIPTION.MD +238 -0
- package/src/modules/governance/controllers/factories/initiatives.controller.js +3 -1
- package/src/modules/governance/controllers/routes/initiatives.routes.js +1 -1
- package/src/modules/governance/controllers/routes/tasks.routes.js +1 -1
- package/src/modules/governance/controllers/routes/votes.routes.js +1 -1
- package/src/modules/governance/controllers/routes/votings.routes.js +1 -1
- package/src/modules/governance/governance.client.js +35 -35
- package/src/modules/governance/governance.server.js +8 -8
- package/src/modules/governance/models/milestone.model.js +98 -0
- package/src/modules/governance/models/task.model.js +39 -7
- package/src/modules/governance/views/components/pages/Initiative.vue +1 -1
- package/src/modules/governance/views/components/pages/InitiativeCreate.vue +2 -2
- package/src/modules/governance/views/components/pages/Initiatives.vue +3 -2
- package/src/modules/governance/views/components/pages/Task.vue +1 -1
- package/src/modules/governance/views/components/pages/TaskCreate.vue +2 -2
- package/src/modules/governance/views/components/pages/Tasks.vue +2 -2
- package/src/modules/governance/views/components/pages/Voting.vue +3 -3
- package/src/modules/governance/views/components/pages/VotingCreate.vue +2 -2
- package/src/modules/governance/views/components/pages/Votings.vue +2 -2
- package/src/modules/governance/views/components/sections/VoteForm.vue +1 -1
- package/src/modules/governance/views/router/goverance.router.js +263 -0
- package/src/modules/icons/actions/IconShopcartAdd.vue +15 -0
- package/src/modules/icons/entities/IconCommunity.vue +4 -6
- package/src/modules/icons/entities/IconPayments.vue +14 -0
- package/src/modules/icons/entities/IconPrice.vue +12 -3
- package/src/modules/icons/icons.client.js +5 -0
- package/src/modules/icons/logos/Logotype.vue +50 -17
- package/src/modules/orders/components/blocks/CardOrderItem.vue +2 -0
- package/src/modules/orders/store/shopcart.js +100 -1
- package/src/modules/organizations/components/pages/Organizations.vue +1 -1
- package/src/modules/products/components/blocks/CardProduct.vue +5 -11
- package/src/modules/products/components/blocks/ImagesThumbnails.vue +4 -4
- package/src/modules/products/components/elements/Price.vue +33 -56
- package/src/modules/products/components/pages/Product.vue +235 -13
- package/src/modules/products/components/sections/SectionProduct.vue +50 -25
- package/src/modules/products/products.client.js +0 -4
- package/src/styles/base/all.scss +15 -16
- package/src/styles/config.scss +2 -2
- package/src/modules/backoffice/components/layouts/Backoffice.vue +0 -55
- package/src/modules/events/components/sections/SectionLineup.vue +0 -42
- package/src/modules/events/components/sections/SectionMainGuest.vue +0 -95
- package/src/modules/events/components/sections/SectionPreviousEvents.vue +0 -117
- package/src/modules/events/components/sections/SectionSpecialGuests.vue +0 -46
- package/src/modules/governance/controllers/factories/projects.controller.js +0 -65
- package/src/modules/governance/controllers/routes/projects.routes.js +0 -34
- package/src/modules/governance/models/project.model.js +0 -26
@@ -0,0 +1,263 @@
|
|
1
|
+
import { defineAsyncComponent } from 'vue'
|
2
|
+
|
3
|
+
import * as validationAuth from '@pf/src/modules/auth/views/middlewares/auth.validation';
|
4
|
+
|
5
|
+
export function createGovernanceRoutes(prefix = '', options = {}) {
|
6
|
+
const nameWithPrefix = (name) => prefix ? `${prefix}${name}` : name;
|
7
|
+
|
8
|
+
const routes = {
|
9
|
+
path: options.basePath || 'governance',
|
10
|
+
meta: {
|
11
|
+
title: {
|
12
|
+
en: 'Governance',
|
13
|
+
ru: 'Управление'
|
14
|
+
},
|
15
|
+
title_hide: true
|
16
|
+
},
|
17
|
+
children: [
|
18
|
+
// Initiatives routes
|
19
|
+
{
|
20
|
+
path: 'initiatives',
|
21
|
+
name: nameWithPrefix('Initiatives'),
|
22
|
+
meta: {
|
23
|
+
title: {
|
24
|
+
en: 'Initiatives',
|
25
|
+
ru: 'Инициативы'
|
26
|
+
},
|
27
|
+
title_hide: false
|
28
|
+
},
|
29
|
+
children: [
|
30
|
+
{
|
31
|
+
path: '',
|
32
|
+
name: nameWithPrefix('Initiatives'),
|
33
|
+
meta: {
|
34
|
+
title: {
|
35
|
+
en: 'Initiatives',
|
36
|
+
ru: 'Инициативы'
|
37
|
+
},
|
38
|
+
title_hide: false
|
39
|
+
},
|
40
|
+
component: () => import(/* webpackChunkName: 'Governance' */ '../components/pages/Initiatives.vue'),
|
41
|
+
},
|
42
|
+
{
|
43
|
+
path: 'create',
|
44
|
+
name: nameWithPrefix('Create Initiative'),
|
45
|
+
meta: {
|
46
|
+
title: {
|
47
|
+
en: 'Create Initiative',
|
48
|
+
ru: 'Создать Инициативу'
|
49
|
+
},
|
50
|
+
title_hide: false
|
51
|
+
},
|
52
|
+
beforeEnter: [
|
53
|
+
validationAuth.requiresAuth,
|
54
|
+
],
|
55
|
+
component: () => import(/* webpackChunkName: 'Governance' */ '../components/pages/InitiativeCreate.vue')
|
56
|
+
},
|
57
|
+
{
|
58
|
+
path: ':id',
|
59
|
+
name: nameWithPrefix('Initiative'),
|
60
|
+
meta: {
|
61
|
+
title: {
|
62
|
+
en: 'Initiative',
|
63
|
+
ru: 'Инициатива'
|
64
|
+
},
|
65
|
+
title_hide: false
|
66
|
+
},
|
67
|
+
component: options.page_initiative || defineAsyncComponent(() =>
|
68
|
+
import(/* webpackChunkName: 'Governance' */ '../components/pages/Initiative.vue')
|
69
|
+
)
|
70
|
+
},
|
71
|
+
{
|
72
|
+
path: ':id/edit',
|
73
|
+
name: nameWithPrefix('Edit Initiative'),
|
74
|
+
meta: {
|
75
|
+
title: {
|
76
|
+
en: 'Edit Initiative',
|
77
|
+
ru: 'Редактировать Инициативу'
|
78
|
+
},
|
79
|
+
title_hide: false
|
80
|
+
},
|
81
|
+
beforeEnter: [
|
82
|
+
validationAuth.requiresAuth,
|
83
|
+
],
|
84
|
+
component: options.page_initiative_edit || defineAsyncComponent(() =>
|
85
|
+
import(/* webpackChunkName: 'Governance' */ '../components/pages/InitiativeCreate.vue')
|
86
|
+
)
|
87
|
+
}
|
88
|
+
]
|
89
|
+
},
|
90
|
+
|
91
|
+
// Tasks routes
|
92
|
+
{
|
93
|
+
path: 'tasks',
|
94
|
+
name: nameWithPrefix('Tasks'),
|
95
|
+
meta: {
|
96
|
+
title: {
|
97
|
+
en: 'Tasks',
|
98
|
+
ru: 'Задачи'
|
99
|
+
},
|
100
|
+
title_hide: false
|
101
|
+
},
|
102
|
+
component: () => import(/* webpackChunkName: 'Governance' */ '../components/pages/Tasks.vue'),
|
103
|
+
children: [
|
104
|
+
{
|
105
|
+
path: 'create',
|
106
|
+
name: nameWithPrefix('Create Task'),
|
107
|
+
meta: {
|
108
|
+
title: {
|
109
|
+
en: 'Create Task',
|
110
|
+
ru: 'Создать Задачу'
|
111
|
+
},
|
112
|
+
title_hide: false
|
113
|
+
},
|
114
|
+
beforeEnter: [
|
115
|
+
validationAuth.requiresAuth,
|
116
|
+
],
|
117
|
+
component: () => import(/* webpackChunkName: 'Governance' */ '../components/pages/TaskCreate.vue')
|
118
|
+
},
|
119
|
+
{
|
120
|
+
path: ':id',
|
121
|
+
name: nameWithPrefix('Task'),
|
122
|
+
meta: {
|
123
|
+
title: {
|
124
|
+
en: 'Task',
|
125
|
+
ru: 'Задача'
|
126
|
+
},
|
127
|
+
title_hide: false
|
128
|
+
},
|
129
|
+
component: options.page_task || defineAsyncComponent(() =>
|
130
|
+
import(/* webpackChunkName: 'Governance' */ '../components/pages/Task.vue')
|
131
|
+
)
|
132
|
+
},
|
133
|
+
{
|
134
|
+
path: ':id/edit',
|
135
|
+
name: nameWithPrefix('Edit Task'),
|
136
|
+
meta: {
|
137
|
+
title: {
|
138
|
+
en: 'Edit Task',
|
139
|
+
ru: 'Редактировать Задачу'
|
140
|
+
},
|
141
|
+
title_hide: false
|
142
|
+
},
|
143
|
+
beforeEnter: [
|
144
|
+
validationAuth.requiresAuth,
|
145
|
+
],
|
146
|
+
component: options.page_task_edit || defineAsyncComponent(() =>
|
147
|
+
import(/* webpackChunkName: 'Governance' */ '../components/pages/TaskCreate.vue')
|
148
|
+
)
|
149
|
+
}
|
150
|
+
]
|
151
|
+
},
|
152
|
+
|
153
|
+
// Votings routes
|
154
|
+
{
|
155
|
+
path: 'votings',
|
156
|
+
name: nameWithPrefix('Votings'),
|
157
|
+
meta: {
|
158
|
+
title: {
|
159
|
+
en: 'Votings',
|
160
|
+
ru: 'Голосования'
|
161
|
+
},
|
162
|
+
title_hide: false
|
163
|
+
},
|
164
|
+
component: () => import(/* webpackChunkName: 'Governance' */ '../components/pages/Votings.vue'),
|
165
|
+
children: [
|
166
|
+
{
|
167
|
+
path: 'create',
|
168
|
+
name: nameWithPrefix('Create Voting'),
|
169
|
+
meta: {
|
170
|
+
title: {
|
171
|
+
en: 'Create Voting',
|
172
|
+
ru: 'Создать Голосование'
|
173
|
+
},
|
174
|
+
title_hide: false
|
175
|
+
},
|
176
|
+
beforeEnter: [
|
177
|
+
validationAuth.requiresAuth,
|
178
|
+
],
|
179
|
+
component: () => import(/* webpackChunkName: 'Governance' */ '../components/pages/VotingCreate.vue')
|
180
|
+
},
|
181
|
+
{
|
182
|
+
path: ':id',
|
183
|
+
name: nameWithPrefix('Voting'),
|
184
|
+
meta: {
|
185
|
+
title: {
|
186
|
+
en: 'Voting',
|
187
|
+
ru: 'Голосование'
|
188
|
+
},
|
189
|
+
title_hide: false
|
190
|
+
},
|
191
|
+
component: options.page_voting || defineAsyncComponent(() =>
|
192
|
+
import(/* webpackChunkName: 'Governance' */ '../components/pages/Voting.vue')
|
193
|
+
)
|
194
|
+
},
|
195
|
+
{
|
196
|
+
path: ':id/edit',
|
197
|
+
name: nameWithPrefix('Edit Voting'),
|
198
|
+
meta: {
|
199
|
+
title: {
|
200
|
+
en: 'Edit Voting',
|
201
|
+
ru: 'Редактировать Голосование'
|
202
|
+
},
|
203
|
+
title_hide: false
|
204
|
+
},
|
205
|
+
beforeEnter: [
|
206
|
+
validationAuth.requiresAuth,
|
207
|
+
],
|
208
|
+
component: options.page_voting_edit || defineAsyncComponent(() =>
|
209
|
+
import(/* webpackChunkName: 'Governance' */ '../components/pages/VotingCreate.vue')
|
210
|
+
)
|
211
|
+
},
|
212
|
+
]
|
213
|
+
}
|
214
|
+
]
|
215
|
+
};
|
216
|
+
|
217
|
+
return routes;
|
218
|
+
}
|
219
|
+
|
220
|
+
// Navigation guards
|
221
|
+
export function setupGovernanceNavigationGuards(router) {
|
222
|
+
// Check voting status before allowing votes or edits
|
223
|
+
router.beforeEach(async (to, from, next) => {
|
224
|
+
if (to.name?.includes('Voting') && to.params.id) {
|
225
|
+
try {
|
226
|
+
const response = await fetch(`/api/votings/${to.params.id}`);
|
227
|
+
const voting = await response.json();
|
228
|
+
|
229
|
+
// Prevent voting on closed votings
|
230
|
+
if (voting.status === 'closed' && to.name?.includes('Edit')) {
|
231
|
+
next({ name: 'Votings' });
|
232
|
+
return;
|
233
|
+
}
|
234
|
+
} catch (error) {
|
235
|
+
console.error('Error checking voting status:', error);
|
236
|
+
}
|
237
|
+
}
|
238
|
+
next();
|
239
|
+
});
|
240
|
+
|
241
|
+
// Check initiative status before allowing edits
|
242
|
+
router.beforeEach(async (to, from, next) => {
|
243
|
+
if (to.name?.includes('Initiative') && to.params.id && to.name?.includes('Edit')) {
|
244
|
+
try {
|
245
|
+
const response = await fetch(`/api/initiatives/${to.params.id}`);
|
246
|
+
const initiative = await response.json();
|
247
|
+
|
248
|
+
// Only allow editing draft initiatives
|
249
|
+
if (initiative.status !== 'draft') {
|
250
|
+
next({ name: 'Initiatives' });
|
251
|
+
return;
|
252
|
+
}
|
253
|
+
} catch (error) {
|
254
|
+
console.error('Error checking initiative status:', error);
|
255
|
+
}
|
256
|
+
}
|
257
|
+
next();
|
258
|
+
});
|
259
|
+
}
|
260
|
+
|
261
|
+
// Example usage:
|
262
|
+
// const governanceRoutes = createGovernanceRoutes('Admin', { basePath: 'admin/governance' });
|
263
|
+
// export { governanceRoutes, setupGovernanceNavigationGuards };
|
@@ -0,0 +1,15 @@
|
|
1
|
+
<template>
|
2
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="25" height="21" viewBox="0 0 25 21" fill="none">
|
3
|
+
<path d="M7.69141 15.582C6.99414 15.582 6.45638 15.3861 6.07812 14.9941C5.69987 14.6022 5.45833 14.0622 5.35352 13.374L4.02734 4.30957H1.4502C1.18587 4.30957 0.958008 4.21387 0.766602 4.02246C0.575195 3.8265 0.479492 3.59408 0.479492 3.3252C0.479492 3.05632 0.575195 2.82617 0.766602 2.63477C0.958008 2.4388 1.18587 2.34082 1.4502 2.34082H4.41699C4.93197 2.34082 5.29655 2.44564 5.51074 2.65527C5.72493 2.86035 5.86393 3.16797 5.92773 3.57812L6.05078 4.42578H14.2471C14.2288 4.5625 14.2152 4.69922 14.2061 4.83594C14.1969 4.97266 14.1924 5.10938 14.1924 5.24609C14.1924 6.04362 14.3405 6.79102 14.6367 7.48828C14.9329 8.18555 15.3454 8.80306 15.874 9.34082C16.4072 9.87858 17.0247 10.3024 17.7266 10.6123C18.4284 10.9176 19.1826 11.0771 19.9893 11.0908L19.9209 11.248C19.7432 11.5671 19.5016 11.8132 19.1963 11.9863C18.891 12.1595 18.5127 12.2461 18.0615 12.2461H7.17188L7.30859 13.1963C7.34049 13.3831 7.40885 13.5335 7.51367 13.6475C7.61849 13.7614 7.75977 13.8184 7.9375 13.8184H17.959C18.196 13.8184 18.4056 13.8981 18.5879 14.0576C18.7702 14.2171 18.8613 14.429 18.8613 14.6934C18.8613 14.9622 18.7702 15.1787 18.5879 15.3428C18.4056 15.5023 18.196 15.582 17.959 15.582H7.69141ZM6.84375 18.4873C6.84375 18.1865 6.91667 17.9108 7.0625 17.6602C7.21289 17.4141 7.41113 17.2181 7.65723 17.0723C7.90788 16.9264 8.18359 16.8535 8.48438 16.8535C8.78516 16.8535 9.05859 16.9264 9.30469 17.0723C9.55534 17.2181 9.75358 17.4141 9.89941 17.6602C10.0452 17.9108 10.1182 18.1865 10.1182 18.4873C10.1182 18.7926 10.0452 19.0684 9.89941 19.3145C9.75358 19.5651 9.55534 19.7611 9.30469 19.9023C9.05859 20.0482 8.78516 20.1211 8.48438 20.1211C8.18359 20.1211 7.90788 20.0482 7.65723 19.9023C7.41113 19.7611 7.21289 19.5651 7.0625 19.3145C6.91667 19.0684 6.84375 18.7926 6.84375 18.4873ZM14.8555 18.4873C14.8555 18.1865 14.9284 17.9108 15.0742 17.6602C15.2246 17.4141 15.4229 17.2181 15.6689 17.0723C15.9196 16.9264 16.1953 16.8535 16.4961 16.8535C16.8014 16.8535 17.0771 16.9264 17.3232 17.0723C17.5693 17.2181 17.7653 17.4141 17.9111 17.6602C18.0615 17.9108 18.1367 18.1865 18.1367 18.4873C18.1367 18.7926 18.0615 19.0684 17.9111 19.3145C17.7653 19.5651 17.5693 19.7611 17.3232 19.9023C17.0771 20.0482 16.8014 20.1211 16.4961 20.1211C16.1953 20.1211 15.9196 20.0482 15.6689 19.9023C15.4229 19.7611 15.2246 19.5651 15.0742 19.3145C14.9284 19.0684 14.8555 18.7926 14.8555 18.4873ZM20.0439 9.82617C19.415 9.82617 18.8226 9.70768 18.2666 9.4707C17.7152 9.23372 17.2275 8.90332 16.8037 8.47949C16.3799 8.05566 16.0472 7.56803 15.8057 7.0166C15.5687 6.46061 15.4502 5.86816 15.4502 5.23926C15.4502 4.61035 15.5687 4.02018 15.8057 3.46875C16.0472 2.91732 16.3799 2.42969 16.8037 2.00586C17.2275 1.58203 17.7152 1.25163 18.2666 1.01465C18.8226 0.773112 19.415 0.652344 20.0439 0.652344C20.6729 0.652344 21.263 0.773112 21.8145 1.01465C22.3704 1.25163 22.8581 1.58203 23.2773 2.00586C23.7012 2.42513 24.0316 2.91276 24.2686 3.46875C24.5055 4.02018 24.624 4.61035 24.624 5.23926C24.624 5.86361 24.5033 6.45378 24.2617 7.00977C24.0247 7.5612 23.6943 8.04883 23.2705 8.47266C22.8467 8.89648 22.3568 9.22917 21.8008 9.4707C21.2493 9.70768 20.6637 9.82617 20.0439 9.82617ZM20.0439 8.19922C20.2445 8.19922 20.404 8.13997 20.5225 8.02148C20.641 7.89844 20.7002 7.73893 20.7002 7.54297V5.89551H22.3408C22.5368 5.89551 22.694 5.83626 22.8125 5.71777C22.9355 5.59928 22.9971 5.44206 22.9971 5.24609C22.9971 5.04557 22.9355 4.88607 22.8125 4.76758C22.694 4.64453 22.5368 4.58301 22.3408 4.58301H20.7002V2.95605C20.7002 2.75553 20.641 2.59603 20.5225 2.47754C20.404 2.35905 20.2445 2.2998 20.0439 2.2998C19.8434 2.2998 19.6839 2.36133 19.5654 2.48438C19.4469 2.60286 19.3877 2.76009 19.3877 2.95605V4.58301H17.7539C17.5534 4.58301 17.3916 4.64453 17.2686 4.76758C17.1501 4.88607 17.0908 5.04557 17.0908 5.24609C17.0908 5.44206 17.1523 5.59928 17.2754 5.71777C17.3984 5.83626 17.5579 5.89551 17.7539 5.89551H19.3877V7.54297C19.3877 7.73893 19.4469 7.89844 19.5654 8.02148C19.6839 8.13997 19.8434 8.19922 20.0439 8.19922Z" :fill="fill" :class="$attrs.class"/>
|
4
|
+
</svg>
|
5
|
+
</template>
|
6
|
+
|
7
|
+
|
8
|
+
<script setup>
|
9
|
+
const props = defineProps({
|
10
|
+
fill: {
|
11
|
+
type: String,
|
12
|
+
default: 'rgb(var(--black))'
|
13
|
+
}
|
14
|
+
})
|
15
|
+
</script>
|
@@ -1,10 +1,8 @@
|
|
1
1
|
<template>
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
<path d="M36.2898 30C35.7594 30 35.2507 29.7893 34.8756 29.4142C34.5005 29.0391 34.2898 28.5304 34.2898 28C34.2898 27.4696 34.5005 26.9609 34.8756 26.5858C35.2507 26.2107 35.7594 26 36.2898 26C36.8202 26 37.3289 26.2107 37.704 26.5858C38.0791 26.9609 38.2898 27.4696 38.2898 28C38.2898 28.5304 38.0791 29.0391 37.704 29.4142C37.3289 29.7893 36.8202 30 36.2898 30Z" :fill="fill"/>
|
7
|
-
</svg>
|
2
|
+
<svg width="56" height="56" viewBox="0 0 56 56" fill="none" xmlns="http://www.w3.org/2000/svg">
|
3
|
+
<path fill-rule="evenodd" clip-rule="evenodd" d="M28.2899 50C24.4282 50.007 20.6332 48.9927 17.2899 47.06L12.5299 49.17C11.6317 49.567 10.6307 49.6695 9.67068 49.4627C8.71061 49.2558 7.84068 48.7503 7.1856 48.0186C6.53051 47.2869 6.12391 46.3666 6.02409 45.3896C5.92426 44.4126 6.13634 43.4291 6.62991 42.58L8.96991 38.58C6.65145 34.3531 5.78562 29.4816 6.50556 24.7147C7.22549 19.9478 9.49132 15.5493 12.9546 12.1956C16.418 8.84187 20.887 6.71863 25.6747 6.15233C30.4623 5.58604 35.3034 6.60805 39.4536 9.06121C43.6037 11.5144 46.8332 15.2629 48.6454 19.7303C50.4576 24.1977 50.7522 29.1367 49.4839 33.7879C48.2155 38.4391 45.4545 42.5448 41.6254 45.4739C37.7962 48.403 33.1109 49.9932 28.2899 50ZM20.2898 26C19.7594 26 19.2507 26.2107 18.8756 26.5858C18.5005 26.9609 18.2898 27.4696 18.2898 28C18.2898 28.5304 18.5005 29.0391 18.8756 29.4142C19.2507 29.7893 19.7594 30 20.2898 30C20.8202 30 21.3289 29.7893 21.704 29.4142C22.0791 29.0391 22.2898 28.5304 22.2898 28C22.2898 27.4696 22.0791 26.9609 21.704 26.5858C21.3289 26.2107 20.8202 26 20.2898 26ZM28.2898 26C27.7594 26 27.2507 26.2107 26.8756 26.5858C26.5005 26.9609 26.2898 27.4696 26.2898 28C26.2898 28.5304 26.5005 29.0391 26.8756 29.4142C27.2507 29.7893 27.7594 30 28.2898 30C28.8202 30 29.3289 29.7893 29.704 29.4142C30.0791 29.0391 30.2898 28.5304 30.2898 28C30.2898 27.4696 30.0791 26.9609 29.704 26.5858C29.3289 26.2107 28.8202 26 28.2898 26ZM36.2898 26C35.7594 26 35.2507 26.2107 34.8756 26.5858C34.5005 26.9609 34.2898 27.4696 34.2898 28C34.2898 28.5304 34.5005 29.0391 34.8756 29.4142C35.2507 29.7893 35.7594 30 36.2898 30C36.8202 30 37.3289 29.7893 37.704 29.4142C38.0791 29.0391 38.2898 27.4696 38.2898 28C38.2898 28.5304 38.0791 29.0391 37.704 29.4142C37.3289 29.7893 36.8202 30 36.2898 30Z" :fill="fill"/>
|
4
|
+
</svg>
|
5
|
+
|
8
6
|
</template>
|
9
7
|
|
10
8
|
|
@@ -0,0 +1,14 @@
|
|
1
|
+
<template>
|
2
|
+
<svg width="56" height="56" viewBox="0 0 56 56" fill="none" xmlns="http://www.w3.org/2000/svg">
|
3
|
+
<path fill-rule="evenodd" clip-rule="evenodd" d="M12 14C9.87827 14 7.84344 14.8429 6.34315 16.3431C4.84285 17.8434 4 19.8783 4 22V38C4 40.1217 4.84285 42.1566 6.34315 43.6569C7.84344 45.1571 9.87827 46 12 46H44C46.1217 46 48.1566 45.1571 49.6569 43.6569C51.1571 42.1566 52 40.1217 52 38V22C52 19.8783 51.1571 17.8434 49.6569 16.3431C48.1566 14.8429 46.1217 14 44 14H12ZM4 26H52V30H4V26ZM42 34H36V38H42V34Z" :fill="fill"/>
|
4
|
+
</svg>
|
5
|
+
</template>
|
6
|
+
|
7
|
+
<script setup>
|
8
|
+
const props = defineProps({
|
9
|
+
fill: {
|
10
|
+
type: String,
|
11
|
+
default: 'rgb(var(--black))'
|
12
|
+
}
|
13
|
+
})
|
14
|
+
</script>
|
@@ -1,5 +1,14 @@
|
|
1
1
|
<template>
|
2
|
-
<svg width="
|
3
|
-
|
2
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="27" height="27" viewBox="0 0 27 27" fill="none">
|
3
|
+
<path :fill="fill" :class="$attrs.class" d="M14.2208 24.915C13.4005 25.7295 12.5655 26.1367 11.7159 26.1367C10.8721 26.1426 10.0342 25.7324 9.20221 24.9062L1.96002 17.6816C1.13385 16.8555 0.723695 16.0176 0.729554 15.168C0.735413 14.3184 1.14557 13.4834 1.96002 12.6631L13.1221 1.53613C13.4034 1.24902 13.6583 1.04102 13.8868 0.912109C14.1153 0.783203 14.3672 0.698242 14.6426 0.657227C14.9239 0.616211 15.2755 0.595703 15.6973 0.595703H20.004C20.4024 0.595703 20.7305 0.630859 20.9883 0.701172C21.2462 0.771484 21.4864 0.891602 21.709 1.06152C21.9317 1.22559 22.1954 1.45996 22.5001 1.76465L25.1104 4.38379C25.4151 4.68262 25.6495 4.94629 25.8135 5.1748C25.9835 5.39746 26.1036 5.6377 26.1739 5.89551C26.2442 6.14746 26.2794 6.47266 26.2794 6.87109V11.1777C26.2794 11.5996 26.2589 11.9512 26.2178 12.2324C26.1827 12.5078 26.1006 12.7627 25.9717 12.9971C25.8428 13.2256 25.6348 13.4805 25.3477 13.7617L14.2208 24.915ZM18.0528 9.77148C18.4864 9.77148 18.8497 9.625 19.1426 9.33203C19.4356 9.0332 19.5821 8.66992 19.5821 8.24219C19.5821 7.81445 19.4356 7.4541 19.1426 7.16113C18.8497 6.8623 18.4864 6.71289 18.0528 6.71289C17.6192 6.71289 17.2559 6.8623 16.963 7.16113C16.67 7.4541 16.5235 7.81445 16.5235 8.24219C16.5235 8.66992 16.67 9.0332 16.963 9.33203C17.2559 9.625 17.6192 9.77148 18.0528 9.77148Z"/>
|
4
4
|
</svg>
|
5
|
-
</template>
|
5
|
+
</template>
|
6
|
+
|
7
|
+
<script setup>
|
8
|
+
const props = defineProps({
|
9
|
+
fill: {
|
10
|
+
type: String,
|
11
|
+
default: 'rgb(var(--black))'
|
12
|
+
}
|
13
|
+
})
|
14
|
+
</script>
|
@@ -5,6 +5,9 @@ import IconGroups from './entities/IconGroups.vue';
|
|
5
5
|
// Labels
|
6
6
|
import LabelGooglePlay from './labels/LabelGooglePlay.vue';
|
7
7
|
import LabelAppStore from './labels/LabelAppStore.vue';
|
8
|
+
// Actions
|
9
|
+
import IconShopcartAdd from './actions/IconShopcartAdd.vue';
|
10
|
+
// Actions
|
8
11
|
// Navigation
|
9
12
|
import IconCross from './navigation/IconCross.vue';
|
10
13
|
import IconChevronRight from './navigation/IconChevronRight.vue';
|
@@ -44,6 +47,8 @@ export {
|
|
44
47
|
// Labels
|
45
48
|
LabelGooglePlay,
|
46
49
|
LabelAppStore,
|
50
|
+
// Actions
|
51
|
+
IconShopcartAdd,
|
47
52
|
// Navigation
|
48
53
|
IconCross,
|
49
54
|
IconChevronRight,
|
@@ -1,22 +1,55 @@
|
|
1
1
|
<template>
|
2
|
-
<svg class="h-2r w-
|
3
|
-
<
|
4
|
-
<path
|
5
|
-
<path d="
|
6
|
-
<
|
7
|
-
|
2
|
+
<svg class="h-2r w-max" width="270" height="300" viewBox="0 0 270 300" fill="none" xmlns="http://www.w3.org/2000/svg">
|
3
|
+
<g clip-path="url(#clip0)">
|
4
|
+
<path fill-rule="evenodd" clip-rule="evenodd" d="M264.626 52.2791C265.531 57.2858 266 62.4066 266 67.6155C266 125.882 207.349 173.116 135 173.116C62.6507 173.116 4 125.882 4 67.6155C4 62.4066 4.46875 57.2858 5.37413 52.2791C11.0997 32.6306 21.1714 14.8341 34.4789 0C34.1621 2.17658 34 4.38345 34 6.61562C34 43.8948 79.2192 74.1156 135 74.1156C190.781 74.1156 236 43.8948 236 6.61562C236 4.38345 235.838 2.17659 235.521 5.29254e-06C248.829 14.8341 258.9 32.6306 264.626 52.2791Z" fill="#00FF88"/>
|
5
|
+
<path d="M270 165C270 239.558 209.558 300 135 300C60.4416 300 0 239.558 0 165C0 90.4416 60.4416 30 135 30C209.558 30 270 90.4416 270 165Z" fill="#00FF88"/>
|
6
|
+
<ellipse class="eye" cx="143" cy="155.5" rx="37" ry="37.5" stroke="white" fill="white" stroke-width="1.48515"/>
|
7
|
+
<g class="eye">
|
8
|
+
<path d="M215 166C215 210.849 179.07 247 135 247C90.9303 247 55 210.849 55 166C55 121.151 90.9303 85 135 85C179.07 85 215 121.151 215 166Z" stroke="white" stroke-width="11"/>
|
8
9
|
|
10
|
+
</g>
|
11
|
+
</g>
|
12
|
+
<defs>
|
13
|
+
<clipPath id="clip0">
|
14
|
+
<rect width="269.333" height="300" fill="white"/>
|
15
|
+
</clipPath>
|
16
|
+
</defs>
|
17
|
+
</svg>
|
9
18
|
</template>
|
10
19
|
|
11
20
|
<script setup>
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
21
|
+
// Здесь нет необходимости в дополнительном JavaScript
|
22
|
+
</script>
|
23
|
+
|
24
|
+
<style lang="scss" scoped>
|
25
|
+
.eye {
|
26
|
+
animation: rotateEye 10s linear infinite;
|
27
|
+
transform-origin: center 55%;
|
28
|
+
}
|
29
|
+
|
30
|
+
.mouth {
|
31
|
+
animation: rotateMouth 20s ease-in-out infinite;
|
32
|
+
transform-origin: center 55%;
|
33
|
+
}
|
34
|
+
|
35
|
+
@keyframes rotateEye {
|
36
|
+
from {
|
37
|
+
transform: rotate(0deg);
|
38
|
+
}
|
39
|
+
to {
|
40
|
+
transform: rotate(360deg);
|
41
|
+
}
|
42
|
+
}
|
43
|
+
|
44
|
+
@keyframes rotateMouth {
|
45
|
+
0% {
|
46
|
+
transform: rotate(0deg);
|
47
|
+
}
|
48
|
+
50% {
|
49
|
+
transform: rotate(180deg);
|
50
|
+
}
|
51
|
+
100% {
|
52
|
+
transform: rotate(360deg);
|
53
|
+
}
|
54
|
+
}
|
55
|
+
</style>
|
@@ -24,6 +24,8 @@
|
|
24
24
|
<div class="w-100 pos-relative">
|
25
25
|
<!-- Name -->
|
26
26
|
<p class="t-truncate t-medium">{{ product.name }}
|
27
|
+
{{product.date}}
|
28
|
+
{{product.listing}}
|
27
29
|
<span v-if="product.size" class="t-transp">, {{ product.size}}</span>
|
28
30
|
<span v-if="typeof product.color === 'string' && product.size" class="t-transp">, </span>
|
29
31
|
<span v-if="typeof product.color === 'string' " class="t-transp">{{product.color}}</span>
|
@@ -16,6 +16,104 @@ const state = reactive({
|
|
16
16
|
currentState: false
|
17
17
|
});
|
18
18
|
|
19
|
+
/////////////////////////////
|
20
|
+
// Helpers
|
21
|
+
/////////////////////////////
|
22
|
+
const helpers = {
|
23
|
+
createCartItem(product, organization, type = 'sale') {
|
24
|
+
return {
|
25
|
+
_id: product._id,
|
26
|
+
images: product.images,
|
27
|
+
name: product.name,
|
28
|
+
price: product.price,
|
29
|
+
quantity: 1,
|
30
|
+
org_id: organization,
|
31
|
+
type: type
|
32
|
+
};
|
33
|
+
},
|
34
|
+
|
35
|
+
saveToStorage() {
|
36
|
+
localStorage.setItem(CART_STORAGE_KEY, JSON.stringify({
|
37
|
+
positions: state.positions,
|
38
|
+
organization: state.organization
|
39
|
+
}));
|
40
|
+
},
|
41
|
+
|
42
|
+
async validateProduct(product) {
|
43
|
+
const serverProduct = await api.fetchProduct(product._id);
|
44
|
+
|
45
|
+
if (!serverProduct) {
|
46
|
+
return false;
|
47
|
+
}
|
48
|
+
|
49
|
+
return serverProduct.price === product.price &&
|
50
|
+
serverProduct.name === product.name &&
|
51
|
+
serverProduct.available !== false;
|
52
|
+
}
|
53
|
+
};
|
54
|
+
|
55
|
+
/////////////////////////////
|
56
|
+
// SYNC PRODUCT IN SHOPCART
|
57
|
+
/////////////////////////////
|
58
|
+
// Constants
|
59
|
+
const CART_STORAGE_KEY = 'shopcart';
|
60
|
+
const SYNC_INTERVAL = 30000; // 30 seconds in milliseconds
|
61
|
+
|
62
|
+
// API service
|
63
|
+
const api = {
|
64
|
+
async fetchProduct(productId) {
|
65
|
+
try {
|
66
|
+
const response = await fetch(`/api/products/read`, { _id: productId});
|
67
|
+
return await response.json();
|
68
|
+
} catch (error) {
|
69
|
+
console.error('Failed to fetch product:', error);
|
70
|
+
return null;
|
71
|
+
}
|
72
|
+
}
|
73
|
+
};
|
74
|
+
|
75
|
+
async function syncWithServer() {
|
76
|
+
try {
|
77
|
+
const invalidProducts = [];
|
78
|
+
|
79
|
+
for (let i = 0; i < state.positions.length; i++) {
|
80
|
+
const product = state.positions[i];
|
81
|
+
const serverProduct = await api.fetchProduct(product._id);
|
82
|
+
|
83
|
+
if (!serverProduct ||
|
84
|
+
serverProduct.price !== product.price ||
|
85
|
+
serverProduct.name !== product.name ||
|
86
|
+
serverProduct.available === false) {
|
87
|
+
invalidProducts.push(product._id);
|
88
|
+
}
|
89
|
+
}
|
90
|
+
|
91
|
+
if (invalidProducts.length > 0) {
|
92
|
+
state.positions = state.positions.filter(
|
93
|
+
product => !invalidProducts.includes(product._id)
|
94
|
+
);
|
95
|
+
helpers.saveToStorage();
|
96
|
+
setError('Some products were removed from cart due to changes on server');
|
97
|
+
}
|
98
|
+
} catch (error) {
|
99
|
+
console.error('Failed to sync with server:', error);
|
100
|
+
}
|
101
|
+
}
|
102
|
+
// Initialize periodic sync
|
103
|
+
let syncInterval;
|
104
|
+
|
105
|
+
const startPeriodicSync = () => {
|
106
|
+
syncInterval = setInterval(syncWithServer, SYNC_INTERVAL);
|
107
|
+
};
|
108
|
+
|
109
|
+
const stopPeriodicSync = () => {
|
110
|
+
if (syncInterval) {
|
111
|
+
clearInterval(syncInterval);
|
112
|
+
}
|
113
|
+
};
|
114
|
+
|
115
|
+
// Start sync when module is imported
|
116
|
+
startPeriodicSync();
|
19
117
|
/////////////////////////////
|
20
118
|
// Actions
|
21
119
|
/////////////////////////////
|
@@ -41,7 +139,7 @@ const actions = {
|
|
41
139
|
},
|
42
140
|
|
43
141
|
|
44
|
-
addProductToCart(product, organization) {
|
142
|
+
addProductToCart(product, organization, date) {
|
45
143
|
const cartItem = state.positions.find(
|
46
144
|
(item) => item._id === product._id
|
47
145
|
);
|
@@ -55,6 +153,7 @@ const actions = {
|
|
55
153
|
name: product.name,
|
56
154
|
price: product.price,
|
57
155
|
quantity: 1,
|
156
|
+
date: date,
|
58
157
|
org_id: organization, // Добавляем _id организации к каждому продукту
|
59
158
|
});
|
60
159
|
}
|