@ozdao/prometheus-framework 0.2.112 → 0.2.114
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/common.schema-BFhpUXUt.js +12 -0
- package/dist/common.schema-ChBVARrs.mjs +13 -0
- package/dist/community.server.js +6 -4
- package/dist/community.server.mjs +4 -2
- package/dist/engagement.schema-CI2ifjXN.mjs +28 -0
- package/dist/engagement.schema-fdLNO2_6.js +27 -0
- package/dist/events.server.js +6 -4
- package/dist/events.server.mjs +4 -2
- package/dist/files.server.js +81 -29
- package/dist/files.server.mjs +81 -29
- package/dist/gallery.server.js +66 -39
- package/dist/gallery.server.mjs +66 -39
- package/dist/main-8APITHuW.mjs +14201 -0
- package/dist/main-8N2Jmsuk.js +2 -2
- package/dist/main-BJvlNekm.mjs +5 -5
- package/dist/main-BQisDfLk.js +2 -2
- package/dist/main-BV1Yv9Hy.js +2 -2
- package/dist/main-Bw0PvTs-.mjs +5 -5
- package/dist/main-ByCtZbHD.mjs +5 -5
- package/dist/main-CX2ISR43.mjs +5 -5
- package/dist/main-CXObXjv-.js +2 -2
- package/dist/main-CkeuHuCY.mjs +5 -5
- package/dist/main-CnfcBov2.mjs +5 -5
- package/dist/main-D50VqYhy.js +2 -2
- package/dist/main-D8gNZLSa.js +2 -2
- package/dist/main-DPsHxX0l.mjs +5 -5
- package/dist/main-DTlUA63C.mjs +5 -5
- package/dist/main-DfD5hLQo.mjs +5 -5
- package/dist/main-Dh6Zfei9.js +2 -2
- package/dist/main-DmNP-t33.mjs +5 -5
- package/dist/main-DwyUYWFX.js +2 -2
- package/dist/main-VcxO-jAt.js +92 -0
- package/dist/main-cffh4bbv.js +2 -2
- package/dist/main-pGo7JpSP.js +2 -2
- package/dist/main.css +1 -1
- package/dist/metadata.schema-6slGhpQS.js +40 -0
- package/dist/metadata.schema-CK5e2O3f.mjs +41 -0
- package/dist/node_modules/embla-carousel/esm/embla-carousel.esm.cjs +1 -1
- package/dist/node_modules/embla-carousel/esm/embla-carousel.esm.js +410 -407
- package/dist/node_modules/vue-qrcode-reader/dist/vue-qrcode-reader.cjs +3 -3
- package/dist/node_modules/vue-qrcode-reader/dist/vue-qrcode-reader.js +469 -456
- package/dist/node_modules/web3/lib/esm/accounts.cjs +1 -1
- package/dist/node_modules/web3/lib/esm/accounts.js +5 -2
- package/dist/node_modules/web3/lib/esm/index.cjs +1 -1
- package/dist/node_modules/web3/lib/esm/index.js +45 -42
- package/dist/node_modules/web3/lib/esm/version.cjs +1 -1
- package/dist/node_modules/web3/lib/esm/version.js +1 -1
- package/dist/node_modules/web3/lib/esm/web3.cjs +1 -1
- package/dist/node_modules/web3/lib/esm/web3.js +40 -37
- package/dist/node_modules/web3-core/lib/esm/web3_config.cjs +1 -1
- package/dist/node_modules/web3-core/lib/esm/web3_config.js +28 -18
- package/dist/node_modules/web3-core/lib/esm/web3_context.cjs +1 -1
- package/dist/node_modules/web3-core/lib/esm/web3_context.js +56 -53
- package/dist/node_modules/web3-core/lib/esm/web3_request_manager.cjs +1 -1
- package/dist/node_modules/web3-core/lib/esm/web3_request_manager.js +100 -87
- package/dist/node_modules/web3-errors/lib/esm/error_codes.cjs +1 -1
- package/dist/node_modules/web3-errors/lib/esm/error_codes.js +97 -95
- package/dist/node_modules/web3-errors/lib/esm/errors/contract_errors.cjs +1 -1
- package/dist/node_modules/web3-errors/lib/esm/errors/contract_errors.js +8 -8
- package/dist/node_modules/web3-errors/lib/esm/errors/response_errors.cjs +1 -1
- package/dist/node_modules/web3-errors/lib/esm/errors/response_errors.js +20 -20
- package/dist/node_modules/web3-errors/lib/esm/errors/transaction_errors.cjs +4 -4
- package/dist/node_modules/web3-errors/lib/esm/errors/transaction_errors.js +2 -2
- package/dist/node_modules/web3-errors/lib/esm/errors/utils_errors.cjs +1 -1
- package/dist/node_modules/web3-errors/lib/esm/errors/utils_errors.js +33 -27
- package/dist/node_modules/web3-errors/lib/esm/web3_error_base.cjs +1 -1
- package/dist/node_modules/web3-errors/lib/esm/web3_error_base.js +33 -12
- package/dist/node_modules/web3-eth/lib/esm/rpc_method_wrappers.cjs +1 -1
- package/dist/node_modules/web3-eth/lib/esm/rpc_method_wrappers.js +183 -179
- package/dist/node_modules/web3-eth/lib/esm/utils/get_revert_reason.cjs +1 -1
- package/dist/node_modules/web3-eth/lib/esm/utils/get_revert_reason.js +10 -10
- package/dist/node_modules/web3-eth/lib/esm/utils/get_transaction_gas_pricing.cjs +1 -1
- package/dist/node_modules/web3-eth/lib/esm/utils/get_transaction_gas_pricing.js +45 -44
- package/dist/node_modules/web3-eth/lib/esm/utils/send_tx_helper.cjs +1 -1
- package/dist/node_modules/web3-eth/lib/esm/utils/send_tx_helper.js +59 -57
- package/dist/node_modules/web3-eth/lib/esm/utils/transaction_builder.cjs +1 -1
- package/dist/node_modules/web3-eth/lib/esm/utils/transaction_builder.js +43 -43
- package/dist/node_modules/web3-eth/lib/esm/utils/wait_for_transaction_receipt.cjs +1 -1
- package/dist/node_modules/web3-eth/lib/esm/utils/wait_for_transaction_receipt.js +31 -31
- package/dist/node_modules/web3-eth/lib/esm/utils/watch_transaction_by_polling.cjs +1 -1
- package/dist/node_modules/web3-eth/lib/esm/utils/watch_transaction_by_polling.js +26 -26
- package/dist/node_modules/web3-eth/lib/esm/utils/watch_transaction_by_subscription.cjs +1 -1
- package/dist/node_modules/web3-eth/lib/esm/utils/watch_transaction_by_subscription.js +53 -51
- package/dist/node_modules/web3-eth/lib/esm/utils/watch_transaction_for_confirmations.cjs +1 -1
- package/dist/node_modules/web3-eth/lib/esm/utils/watch_transaction_for_confirmations.js +25 -23
- package/dist/node_modules/web3-eth/lib/esm/web3_eth.cjs +1 -1
- package/dist/node_modules/web3-eth/lib/esm/web3_eth.js +103 -101
- package/dist/node_modules/web3-eth-contract/lib/esm/contract.cjs +2 -2
- package/dist/node_modules/web3-eth-contract/lib/esm/contract.js +159 -156
- package/dist/node_modules/web3-eth-contract/lib/esm/encoding.cjs +1 -1
- package/dist/node_modules/web3-eth-contract/lib/esm/encoding.js +11 -8
- package/dist/node_modules/web3-eth-contract/lib/esm/index.cjs +1 -1
- package/dist/node_modules/web3-eth-contract/lib/esm/index.js +3 -0
- package/dist/node_modules/web3-eth-contract/lib/esm/log_subscription.cjs +1 -1
- package/dist/node_modules/web3-eth-contract/lib/esm/log_subscription.js +5 -2
- package/dist/node_modules/web3-eth-ens/lib/esm/ens.cjs +1 -1
- package/dist/node_modules/web3-eth-ens/lib/esm/ens.js +19 -16
- package/dist/node_modules/web3-eth-ens/lib/esm/registry.cjs +1 -1
- package/dist/node_modules/web3-eth-ens/lib/esm/registry.js +5 -2
- package/dist/node_modules/web3-eth-personal/lib/esm/rpc_method_wrappers.cjs +1 -1
- package/dist/node_modules/web3-eth-personal/lib/esm/rpc_method_wrappers.js +50 -47
- package/dist/node_modules/web3-net/lib/esm/net.cjs +1 -1
- package/dist/node_modules/web3-net/lib/esm/net.js +27 -27
- package/dist/node_modules/web3-utils/lib/esm/converters.cjs +1 -1
- package/dist/node_modules/web3-utils/lib/esm/converters.js +100 -83
- package/dist/node_modules/web3-utils/lib/esm/formatter.cjs +1 -1
- package/dist/node_modules/web3-utils/lib/esm/formatter.js +123 -104
- package/dist/node_modules/web3-validator/lib/esm/utils.cjs +1 -1
- package/dist/node_modules/web3-validator/lib/esm/utils.js +21 -21
- package/dist/node_modules/web3-validator/lib/esm/validation/bytes.cjs +1 -1
- package/dist/node_modules/web3-validator/lib/esm/validation/bytes.js +10 -10
- package/dist/node_modules/web3-validator/lib/esm/validation/numbers.cjs +1 -1
- package/dist/node_modules/web3-validator/lib/esm/validation/numbers.js +30 -28
- package/dist/orders.server.js +1 -1
- package/dist/orders.server.mjs +1 -1
- package/dist/organizations.server.js +56 -59
- package/dist/organizations.server.mjs +56 -59
- package/dist/products.server.js +1 -1
- package/dist/products.server.mjs +1 -1
- package/dist/prometheus-framework/src/components/Address/Address.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/components/Address/Address.vue2.js +17 -17
- package/dist/prometheus-framework/src/components/Block/Block.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/Block/Block.vue.js +5 -5
- package/dist/prometheus-framework/src/components/Checkbox/Checkbox.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/Checkbox/Checkbox.vue.js +33 -30
- package/dist/prometheus-framework/src/components/Chips/Chips.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/Chips/Chips.vue.js +9 -9
- package/dist/prometheus-framework/src/components/DatePicker/Calendar.vue.cjs +1 -0
- package/dist/prometheus-framework/src/components/DatePicker/Calendar.vue.js +1 -0
- package/dist/prometheus-framework/src/components/DatePicker/Calendar.vue2.cjs +1 -0
- package/dist/prometheus-framework/src/components/DatePicker/Calendar.vue2.js +165 -0
- package/dist/prometheus-framework/src/components/Dropdown/Dropdown.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/Dropdown/Dropdown.vue.js +22 -19
- package/dist/prometheus-framework/src/components/Feed/Feed.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/Feed/Feed.vue.js +132 -64
- package/dist/prometheus-framework/src/components/Feed/Feed.vue2.cjs +1 -0
- package/dist/prometheus-framework/src/components/Feed/Feed.vue2.js +1 -0
- package/dist/prometheus-framework/src/components/FieldTags/BlockTags.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/FieldTags/BlockTags.vue.js +9 -9
- package/dist/prometheus-framework/src/components/FieldTags/FieldTags.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/FieldTags/FieldTags.vue.js +12 -12
- package/dist/prometheus-framework/src/components/LocationMarker/LocationMarker.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/components/LocationMarker/LocationMarker.vue2.js +16 -16
- package/dist/prometheus-framework/src/components/Map/Map.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/Map/Map.vue.js +14 -13
- package/dist/prometheus-framework/src/components/Marquee/Marquee.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/Marquee/Marquee.vue.js +8 -8
- package/dist/prometheus-framework/src/components/Radio/Radio.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/Radio/Radio.vue.js +29 -36
- package/dist/prometheus-framework/src/components/Tooltip/Tooltip.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/Tooltip/Tooltip.vue.js +45 -1
- package/dist/prometheus-framework/src/components/Tooltip/Tooltip.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/components/Tooltip/Tooltip.vue2.js +1 -45
- package/dist/prometheus-framework/src/modules/auth/components/layouts/Auth.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/auth/components/layouts/Auth.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/auth/components/pages/EnterCode.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/auth/components/pages/EnterCode.vue.js +6 -6
- package/dist/prometheus-framework/src/modules/auth/components/pages/EnterPassword.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/auth/components/pages/EnterPassword.vue.js +17 -17
- package/dist/prometheus-framework/src/modules/auth/components/pages/Invite.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/auth/components/pages/Invite.vue.js +6 -6
- package/dist/prometheus-framework/src/modules/auth/components/pages/ResetPassword.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/auth/components/pages/ResetPassword.vue.js +3 -3
- package/dist/prometheus-framework/src/modules/auth/components/pages/SignIn.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/auth/components/pages/SignIn.vue.js +24 -24
- package/dist/prometheus-framework/src/modules/auth/components/pages/SignUp.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/auth/components/pages/SignUp.vue.js +24 -24
- package/dist/prometheus-framework/src/modules/backoffice/components/pages/Dashboard.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/backoffice/components/pages/Dashboard.vue.js +11 -11
- 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 +26 -26
- 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 +14 -14
- 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 +6 -6
- 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 +46 -46
- package/dist/prometheus-framework/src/modules/community/components/sections/Comments.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/community/components/sections/Comments.vue.js +13 -13
- package/dist/prometheus-framework/src/modules/community/components/sections/Feed.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/community/components/sections/Feed.vue.js +5 -5
- 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 +19 -16
- package/dist/prometheus-framework/src/modules/constructor/components/elements/Image.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/constructor/components/elements/Image.vue.js +3 -3
- package/dist/prometheus-framework/src/modules/constructor/components/elements/Textarea.vue.cjs +1 -5
- package/dist/prometheus-framework/src/modules/constructor/components/elements/Textarea.vue.js +0 -66
- package/dist/prometheus-framework/src/modules/constructor/components/elements/Textarea.vue2.cjs +5 -1
- package/dist/prometheus-framework/src/modules/constructor/components/elements/Textarea.vue2.js +66 -0
- package/dist/prometheus-framework/src/modules/constructor/components/elements/Video.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/constructor/components/elements/Video.vue.js +13 -13
- package/dist/prometheus-framework/src/modules/constructor/components/sections/Constructor.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/constructor/components/sections/Constructor.vue.js +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 +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 +214 -214
- 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 +8 -8
- package/dist/prometheus-framework/src/modules/events/components/pages/Event.vue.cjs +2 -2
- package/dist/prometheus-framework/src/modules/events/components/pages/Event.vue.js +23 -23
- package/dist/prometheus-framework/src/modules/events/components/pages/Events.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/events/components/pages/Events.vue.js +9 -9
- package/dist/prometheus-framework/src/modules/events/components/sections/Feed.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/events/components/sections/Feed.vue.js +3 -3
- package/dist/prometheus-framework/src/modules/events/components/sections/List.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/events/components/sections/List.vue.js +9 -9
- package/dist/prometheus-framework/src/modules/gallery/components/pages/Gallery.vue.js +8 -8
- 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 +167 -202
- package/dist/prometheus-framework/src/modules/gallery/components/sections/GalleryWithCategories.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/gallery/components/sections/GalleryWithCategories.vue.js +73 -165
- package/dist/prometheus-framework/src/modules/gallery/store/gallery.cjs +1 -1
- package/dist/prometheus-framework/src/modules/gallery/store/gallery.js +3 -47
- package/dist/prometheus-framework/src/modules/globals/components/blocks/BlockSearch.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/globals/components/blocks/BlockSearch.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/globals/components/blocks/BlockSorting.vue.cjs +1 -0
- package/dist/prometheus-framework/src/modules/globals/components/blocks/BlockSorting.vue.js +75 -0
- package/dist/prometheus-framework/src/modules/globals/components/blocks/CardHeader.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/globals/components/blocks/CardHeader.vue.js +96 -77
- package/dist/prometheus-framework/src/modules/globals/components/elements/ButtonDate.vue.cjs +1 -0
- package/dist/prometheus-framework/src/modules/globals/components/elements/ButtonDate.vue.js +1 -0
- package/dist/prometheus-framework/src/modules/globals/components/elements/ButtonDate.vue2.cjs +1 -0
- package/dist/prometheus-framework/src/modules/globals/components/elements/ButtonDate.vue2.js +27 -0
- package/dist/prometheus-framework/src/modules/globals/components/elements/ButtonSort.vue.cjs +1 -0
- package/dist/prometheus-framework/src/modules/globals/components/elements/ButtonSort.vue.js +31 -0
- package/dist/prometheus-framework/src/modules/globals/services/globals.store.cjs +1 -1
- package/dist/prometheus-framework/src/modules/globals/services/globals.store.js +21 -19
- package/dist/prometheus-framework/src/modules/globals/store/globals.cjs +1 -1
- package/dist/prometheus-framework/src/modules/globals/store/globals.js +10 -4
- package/dist/prometheus-framework/src/modules/icons/navigation/IconCalendar.vue.cjs +1 -0
- package/dist/prometheus-framework/src/modules/icons/navigation/IconCalendar.vue.js +31 -0
- package/dist/prometheus-framework/src/modules/icons/navigation/IconFilter.vue.cjs +1 -0
- package/dist/prometheus-framework/src/modules/icons/navigation/IconFilter.vue.js +31 -0
- package/dist/prometheus-framework/src/modules/icons/navigation/IconSort.vue.cjs +1 -0
- package/dist/prometheus-framework/src/modules/icons/navigation/IconSort.vue.js +59 -0
- package/dist/prometheus-framework/src/modules/landing/components/sections/SubscribeNewsletter.vue.cjs +1 -0
- package/dist/prometheus-framework/src/modules/landing/components/sections/SubscribeNewsletter.vue.js +80 -0
- package/dist/prometheus-framework/src/modules/landing/components/sections/SubscribeNewsletter.vue2.cjs +1 -0
- package/dist/prometheus-framework/src/modules/landing/components/sections/SubscribeNewsletter.vue2.js +1 -0
- package/dist/prometheus-framework/src/modules/landing/landing.client.cjs +1 -1
- package/dist/prometheus-framework/src/modules/landing/landing.client.js +8 -6
- package/dist/prometheus-framework/src/modules/legal/components/pages/Legal.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/legal/components/pages/Legal.vue.js +5 -5
- package/dist/prometheus-framework/src/modules/legal/components/pages/legal/Cookies.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/legal/components/pages/legal/Cookies.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/legal/components/pages/legal/EULA.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/legal/components/pages/legal/EULA.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/legal/components/pages/legal/Privacy.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/legal/components/pages/legal/Privacy.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/legal/components/pages/legal/Terms.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/legal/components/pages/legal/Terms.vue.js +30 -30
- package/dist/prometheus-framework/src/modules/marketplace/store/marketplace.cjs +1 -1
- package/dist/prometheus-framework/src/modules/marketplace/store/marketplace.js +21 -45
- package/dist/prometheus-framework/src/modules/mobile/components/Menu/Menu.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/mobile/components/Menu/Menu.vue.js +1 -13
- package/dist/prometheus-framework/src/modules/mobile/components/Menu/Menu.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/modules/mobile/components/Menu/Menu.vue2.js +13 -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.js +36 -36
- package/dist/prometheus-framework/src/modules/orders/components/blocks/StatusHistory.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/orders/components/blocks/StatusHistory.vue.js +1 -1
- 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 +53 -53
- 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 +33 -33
- 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 +10 -10
- 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 +5 -5
- package/dist/prometheus-framework/src/modules/orders/components/partials/ShopCart.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/orders/components/partials/ShopCart.vue.js +1 -1
- 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 +24 -24
- 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 +5 -5
- package/dist/prometheus-framework/src/modules/orders/store/applications.cjs +1 -0
- package/dist/prometheus-framework/src/modules/orders/store/applications.js +37 -0
- 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 +5 -5
- package/dist/prometheus-framework/src/modules/organizations/components/blocks/Contacts.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/blocks/Contacts.vue.js +11 -11
- package/dist/prometheus-framework/src/modules/organizations/components/blocks/DepartmentMemberModify.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/blocks/DepartmentMemberModify.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/pages/Department.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/pages/Department.vue.js +16 -16
- 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 +41 -41
- 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 +11 -11
- package/dist/prometheus-framework/src/modules/organizations/components/pages/Organization.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/pages/Organization.vue.js +17 -17
- 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 +36 -36
- package/dist/prometheus-framework/src/modules/organizations/components/pages/Organizations.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/pages/Organizations.vue.js +8 -8
- 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/Feed.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/sections/Feed.vue.js +20 -20
- 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 +12 -12
- package/dist/prometheus-framework/src/modules/organizations/components/sections/Publics.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/sections/Publics.vue.js +13 -13
- package/dist/prometheus-framework/src/modules/organizations/store/organizations.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/store/organizations.js +33 -34
- 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 +16 -16
- package/dist/prometheus-framework/src/modules/products/components/blocks/LeftoverPositions.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/blocks/LeftoverPositions.vue.js +15 -15
- 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 +8 -8
- 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 +8 -8
- package/dist/prometheus-framework/src/modules/products/components/pages/Leftovers.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/pages/Leftovers.vue.js +9 -9
- package/dist/prometheus-framework/src/modules/products/components/pages/Product.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/pages/Product.vue.js +1 -1
- 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 +22 -22
- 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 +6 -6
- 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 +8 -8
- package/dist/prometheus-framework/src/modules/products/components/sections/FilterProducts.vue.js +14 -14
- package/dist/prometheus-framework/src/modules/products/components/sections/HeroRecommendation.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/sections/HeroRecommendation.vue.js +51 -56
- package/dist/prometheus-framework/src/modules/products/components/sections/PopularProducts.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/sections/PopularProducts.vue.js +4 -4
- package/dist/prometheus-framework/src/modules/products/components/sections/SectionProduct.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/sections/SectionProduct.vue.js +32 -32
- package/dist/prometheus-framework/src/modules/products/components/sections/SortProducts.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/sections/SortProducts.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/products/products.client.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/products.client.js +28 -30
- package/dist/prometheus-framework/src/modules/reports/components/pages/BackofficeReports.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/reports/components/pages/BackofficeReports.vue.js +12 -12
- 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 +30 -26
- 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 +35 -35
- package/dist/prometheus-framework/src/modules/users/components/pages/ProfileBlogposts.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/users/components/pages/ProfileBlogposts.vue.js +11 -11
- package/dist/prometheus-framework/src/modules/users/components/pages/ProfileEdit.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/users/components/pages/ProfileEdit.vue.js +41 -41
- package/dist/prometheus-framework/src/modules/users/components/pages/ProfileEvents.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/users/components/pages/ProfileEvents.vue.js +13 -13
- package/dist/prometheus-framework/src/modules/users/components/sections/FeaturedUsers.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/users/components/sections/FeaturedUsers.vue.js +19 -19
- 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 +8 -8
- 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 +14 -11
- package/dist/prometheus-framework.cjs.js +1 -1
- package/dist/prometheus-framework.es.js +1 -1
- package/dist/queryProcessor-BJoJAetd.mjs +162 -0
- package/dist/queryProcessor-DWf9tsis.js +161 -0
- package/dist/style.css +1 -1
- package/dist/wallet.server.js +1 -1
- package/dist/wallet.server.mjs +1 -1
- package/dist/web-TGdVOTnw.js +1 -0
- package/dist/web-_W9a_nWD.mjs +54 -0
- package/package.json +1 -1
- package/src/components/Address/Address.vue +1 -1
- package/src/components/AskToLogin/AskToLogin.vue +1 -1
- package/src/components/Block/Block.vue +1 -1
- package/src/components/Checkbox/Checkbox.vue +40 -43
- package/src/components/Chips/Chips.vue +2 -2
- package/src/components/DatePicker/Calendar.vue +29 -31
- package/src/components/Dropdown/Dropdown.vue +5 -11
- package/src/components/Feed/Feed.vue +98 -15
- package/src/components/FieldTags/BlockTags.vue +3 -3
- package/src/components/FieldTags/FieldTags.vue +1 -1
- package/src/components/FieldTags/vue-tags-input.scss +1 -1
- package/src/components/LocationMarker/LocationMarker.vue +1 -1
- package/src/components/LocationSelection/LocationSelection.vue +5 -30
- package/src/components/Map/LoaderGMaps.js +66 -0
- package/src/components/Map/Map.vue +2 -1
- package/src/components/Marquee/Marquee.vue +1 -1
- package/src/components/Radio/Radio.vue +36 -13
- package/src/configurator/components/pages/Styles.vue +1 -1
- package/src/modules/auth/components/layouts/Auth.vue +1 -1
- package/src/modules/auth/components/pages/EnterCode.vue +4 -4
- package/src/modules/auth/components/pages/EnterPassword.vue +2 -2
- package/src/modules/auth/components/pages/Invite.vue +2 -2
- package/src/modules/auth/components/pages/ResetPassword.vue +3 -3
- package/src/modules/auth/components/pages/SignIn.vue +4 -4
- package/src/modules/auth/components/pages/SignUp.vue +3 -3
- package/src/modules/backoffice/components/admin/Backcalls.vue +1 -1
- package/src/modules/backoffice/components/admin/FastOrders.vue +1 -1
- package/src/modules/backoffice/components/admin/Pages.vue +1 -1
- package/src/modules/backoffice/components/admin/ProductEdit.vue +1 -1
- package/src/modules/backoffice/components/admin/UserEdit.vue +1 -1
- package/src/modules/backoffice/components/admin/Users.vue +1 -1
- package/src/modules/backoffice/components/pages/Dashboard.vue +3 -3
- package/src/modules/community/components/blocks/CardBlogpost.vue +1 -1
- package/src/modules/community/components/layouts/Community.vue +2 -2
- package/src/modules/community/components/pages/BlogPost.vue +2 -2
- package/src/modules/community/components/pages/CreateBlogPost.vue +4 -4
- package/src/modules/community/components/sections/Comments.vue +2 -2
- package/src/modules/community/components/sections/Feed.vue +1 -1
- package/src/modules/community/components/sections/HotPosts.vue +1 -1
- package/src/modules/constructor/components/elements/Image.vue +1 -1
- package/src/modules/constructor/components/elements/Video.vue +2 -2
- package/src/modules/events/components/blocks/CardEvent.vue +1 -1
- package/src/modules/events/components/pages/EditEvent.vue +32 -32
- package/src/modules/events/components/pages/EditEventTickets.vue +1 -1
- package/src/modules/events/components/pages/Event.vue +3 -3
- package/src/modules/events/components/pages/Events.vue +4 -3
- package/src/modules/events/components/sections/Feed.vue +3 -3
- package/src/modules/events/components/sections/List.vue +2 -2
- package/src/modules/files/controllers/files.controller.js +8 -6
- package/src/modules/files/middlewares/server/middlewareBusboy.js +79 -14
- package/src/modules/files/routes/files.routes.js +11 -9
- package/src/modules/gallery/components/sections/BackofficeGallery.vue +158 -355
- package/src/modules/gallery/components/sections/GalleryWithCategories.vue +26 -244
- package/src/modules/gallery/controllers/gallery.controller.js +57 -38
- package/src/modules/gallery/models/photo.model.js +20 -11
- package/src/modules/gallery/routes/gallery.routes.js +3 -3
- package/src/modules/gallery/store/gallery.js +3 -78
- package/src/modules/globals/components/blocks/BlockSearch.vue +1 -1
- package/src/modules/globals/components/blocks/BlockSorting.vue +77 -0
- package/src/modules/globals/components/blocks/CardHeader.vue +27 -25
- package/src/modules/globals/components/elements/ButtonDate.vue +66 -0
- package/src/modules/globals/components/elements/ButtonSort.vue +41 -0
- package/src/modules/globals/components/layouts/Client.vue +273 -0
- package/src/{components/Footer → modules/globals/components/partials}/Footer.vue +1 -1
- package/src/{components/Header → modules/globals/components/partials}/Header.vue +98 -84
- package/src/modules/globals/controllers/utils/queryProcessor.js +3 -3
- package/src/modules/globals/models/common.schema.js +1 -1
- package/src/modules/globals/services/globals.store.js +11 -6
- package/src/modules/globals/store/globals.js +12 -10
- package/src/modules/icons/logos/Logotype.vue +23 -19
- package/src/modules/icons/navigation/IconCalendar.vue +18 -0
- package/src/modules/icons/navigation/IconFilter.vue +18 -0
- package/src/modules/icons/navigation/IconSearch.vue +1 -3
- package/src/modules/icons/navigation/IconSort.vue +21 -0
- package/src/modules/landing/components/pages/Home.vue +4 -4
- package/src/modules/landing/components/sections/FeatureSection.vue +5 -5
- package/src/modules/landing/components/sections/HowToBuyWDR.vue +2 -2
- package/src/modules/landing/components/sections/SectionFeature.vue +2 -2
- package/src/modules/landing/components/sections/SectionFeaturesImages.vue +2 -2
- package/src/modules/landing/components/sections/SectionsSection.vue +4 -4
- package/src/modules/{orders → landing}/components/sections/SubscribeNewsletter.vue +0 -2
- package/src/modules/landing/components/sections/WhatIsWDRSection.vue +6 -6
- package/src/modules/landing/landing.client.js +2 -0
- package/src/modules/landing/router/landing.js +1 -1
- package/src/modules/legal/components/pages/Legal.vue +2 -2
- package/src/modules/legal/components/pages/legal/Cookies.vue +1 -1
- package/src/modules/legal/components/pages/legal/EULA.vue +1 -1
- package/src/modules/legal/components/pages/legal/Privacy.vue +1 -1
- package/src/modules/legal/components/pages/legal/Terms.vue +1 -1
- package/src/modules/marketplace/components/layouts/Marketplace.vue +37 -49
- package/src/modules/marketplace/components/pages/Catalog.vue +43 -131
- package/src/modules/marketplace/components/sections/Filters.vue +63 -115
- package/src/modules/marketplace/store/marketplace.js +22 -167
- package/src/modules/mobile/components/Walkthrough/Walkthrough.vue +1 -1
- package/src/modules/orders/components/blocks/CardOrderItem.vue +6 -6
- package/src/modules/orders/components/blocks/CardOrderVar1.vue +1 -1
- package/src/modules/orders/components/blocks/StatusHistory.vue +1 -1
- package/src/modules/orders/components/pages/Order.vue +8 -8
- package/src/modules/orders/components/pages/OrderBackoffice.vue +7 -7
- package/src/modules/orders/components/pages/OrderCreate.vue +1 -1
- package/src/modules/orders/components/pages/OrderCreateBackoffice.vue +3 -3
- package/src/modules/orders/components/pages/Orders.vue +3 -5
- package/src/modules/orders/components/partials/ShopCart.vue +5 -1
- package/src/modules/orders/components/sections/FormAddCustomer.vue +2 -2
- package/src/modules/orders/components/sections/FormDelivery.vue +1 -1
- package/src/modules/orders/store/applications.js +1 -1
- package/src/modules/organizations/components/blocks/CardOrganization.vue +1 -1
- package/src/modules/organizations/components/blocks/Contacts.vue +4 -4
- package/src/modules/organizations/components/pages/Department.vue +3 -3
- package/src/modules/organizations/components/pages/DepartmentEdit.vue +6 -6
- package/src/modules/organizations/components/pages/Members.vue +4 -4
- package/src/modules/organizations/components/pages/Organization.vue +3 -3
- package/src/modules/organizations/components/pages/OrganizationCreate.vue +2 -2
- package/src/modules/organizations/components/pages/OrganizationDetails.vue +1 -1
- package/src/modules/organizations/components/pages/OrganizationDocuments.vue +1 -1
- package/src/modules/organizations/components/pages/OrganizationEdit.vue +9 -9
- package/src/modules/organizations/components/pages/OrganizationPeople.vue +1 -1
- package/src/modules/organizations/components/pages/Organizations.vue +1 -1
- package/src/modules/organizations/components/sections/DetailsTab.vue +4 -4
- package/src/modules/organizations/components/sections/Feed.vue +2 -2
- package/src/modules/organizations/components/sections/MembersAdd.vue +2 -2
- package/src/modules/organizations/components/sections/Publics.vue +1 -1
- package/src/modules/organizations/controllers/organizations.controller.js +103 -93
- package/src/modules/organizations/models/organization.model.js +10 -7
- package/src/modules/organizations/store/organizations.js +3 -34
- package/src/modules/products/components/blocks/CardPosition.vue +2 -2
- package/src/modules/products/components/blocks/LeftoverPositions.vue +2 -2
- package/src/modules/products/components/pages/Categories.vue +1 -1
- package/src/modules/products/components/pages/EditLeftover.vue +1 -1
- package/src/modules/products/components/pages/Leftovers.vue +4 -4
- package/src/modules/products/components/pages/Product.vue +1 -5
- package/src/modules/products/components/pages/ProductEdit.vue +1 -1
- package/src/modules/products/components/pages/Products.vue +2 -2
- package/src/modules/products/components/sections/EditProductInfo.vue +1 -1
- package/src/modules/products/components/sections/FilterProducts.vue +1 -1
- package/src/modules/products/components/sections/HeroRecommendation.vue +67 -74
- package/src/modules/products/components/sections/MenuSection.vue +2 -2
- package/src/modules/products/components/sections/PopularProducts.vue +2 -2
- package/src/modules/products/components/sections/SectionProduct.vue +3 -3
- package/src/modules/products/products.client.js +0 -2
- package/src/modules/reports/components/pages/BackofficeReports.vue +4 -4
- package/src/modules/spots/components/blocks/CardSpot.vue +9 -1
- package/src/modules/spots/components/blocks/SpotMemberModify.vue +2 -2
- package/src/modules/spots/components/layouts/Spots.vue +0 -2
- package/src/modules/spots/components/pages/Spot.vue +4 -4
- package/src/modules/spots/components/pages/SpotEdit.vue +1 -1
- package/src/modules/spots/components/sections/PlaceModify.vue +1 -1
- package/src/modules/spots/components/sections/Places.vue +1 -1
- package/src/modules/users/components/pages/Profile.vue +5 -5
- package/src/modules/users/components/pages/ProfileBlogposts.vue +1 -1
- package/src/modules/users/components/pages/ProfileComments.vue +1 -1
- package/src/modules/users/components/pages/ProfileEdit.vue +11 -11
- package/src/modules/users/components/pages/ProfileEvents.vue +1 -1
- package/src/modules/users/components/pages/ProfileLikes.vue +1 -1
- package/src/modules/users/components/sections/FeaturedUsers.vue +3 -3
- package/src/modules/wallet/views/components/pages/Payments.vue +2 -2
- package/src/modules/wallet/views/components/pages/Wallet.vue +3 -3
- package/src/styles/base/borders.scss +4 -0
- package/src/styles/base/shadow_transitions_hover_refactor.scss +4 -0
- package/src/styles/config.scss +15 -9
- package/src/styles/layout.scss +37 -8
- package/src/styles/typography.scss +24 -24
- package/src/modules/products/components/sections/SortProducts.vue +0 -74
- /package/src/{components/Navigation → modules/globals/components/partials}/Navigation.vue +0 -0
@@ -18,28 +18,30 @@ const controllerFactory = (db) => {
|
|
18
18
|
const Role = db.role;
|
19
19
|
|
20
20
|
const read = async (req, res) => {
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
const User = db.user;
|
25
|
-
const Role = db.role;
|
26
|
-
|
21
|
+
//////////////////////////////////////
|
22
|
+
// 1. Sorting Condition
|
23
|
+
//////////////////////////////////////
|
27
24
|
const sortParam = req.query.sortParam || 'numberOfProducts';
|
28
25
|
const sortOrder = req.query.sortOrder || 'desc';
|
29
|
-
|
26
|
+
|
30
27
|
const sort = {
|
28
|
+
...(sortParam === 'distance' ? { 'distanceExist': -1 } : {}),
|
31
29
|
'numberOfProducts': -1,
|
32
30
|
[sortParam]: sortOrder === 'desc' ? -1 : 1,
|
33
31
|
"_id": 1
|
34
32
|
};
|
35
|
-
|
36
|
-
|
33
|
+
console.log(sort)
|
34
|
+
// if (sortParam === 'distance') sort.numberOfSpots = -1
|
35
|
+
//////////////////////////////////////
|
36
|
+
// 2. Pagination Condition
|
37
|
+
//////////////////////////////////////
|
38
|
+
const pagination = {
|
37
39
|
skip: parseInt(req.query.skip) || 0,
|
38
40
|
limit: parseInt(req.query.limit) || 20
|
39
|
-
}
|
40
|
-
|
41
|
-
|
42
|
-
|
41
|
+
}
|
42
|
+
//////////////////////////////////////
|
43
|
+
// 3. Prices Condition
|
44
|
+
//////////////////////////////////////
|
43
45
|
const prices = req.query.prices?.split(',') || [];
|
44
46
|
|
45
47
|
let priceConditions = prices.map(priceRange => {
|
@@ -48,16 +50,18 @@ const controllerFactory = (db) => {
|
|
48
50
|
const [min, max] = priceRange.split('-').map(Number);
|
49
51
|
return { "products.price": { $gte: min, $lte: max } };
|
50
52
|
});
|
51
|
-
|
53
|
+
//////////////////////////////////////
|
54
|
+
// 4. Organization Contain (blogpost, events, photos, etc...) Condition
|
55
|
+
//////////////////////////////////////
|
52
56
|
let containConditions = []
|
53
|
-
|
54
|
-
|
55
57
|
if (req.query.contain) {
|
56
58
|
containConditions = req.query.contain.map(property => ({
|
57
59
|
[property]: { $exists: true, $not: { $size: 0 } }
|
58
60
|
}));
|
59
61
|
}
|
60
|
-
|
62
|
+
//////////////////////////////////////
|
63
|
+
// MATCH CONDITIONS
|
64
|
+
//////////////////////////////////////
|
61
65
|
const matchConditions = [
|
62
66
|
...(req.query._id ? [{ _id: new ObjectId(req.query._id) }] : []),
|
63
67
|
...(req.query.owner ? [{ owner: new ObjectId(req.query.owner) }] : []),
|
@@ -67,15 +71,42 @@ const controllerFactory = (db) => {
|
|
67
71
|
...(req.query.types ? [{ types: { $in: req.query.types } }] : []), // Если req.query.types - строка
|
68
72
|
// to remove
|
69
73
|
...(req.query.onlyuser ? [{ "memberships.user": new ObjectId(req.query.onlyuser) }] : []),
|
70
|
-
...(categories.length > 0 ? [{ "products.category": { $in: categories } }] : []),
|
71
|
-
...(delivery.length > 0 ? [{ "spots.delivery": { $all: delivery } }] : []),
|
74
|
+
...(req.query.categories?.split(',').length > 0 ? [{ "products.category": { $in: req.query.categories?.split(',') } }] : []),
|
75
|
+
...(req.query.delivery?.split(',').length > 0 ? [{ "spots.delivery": { $all: req.query.delivery?.split(',') } }] : []),
|
72
76
|
...(priceConditions.length > 0 ? [{ $or: priceConditions }] : []),
|
73
77
|
...(req.query.contain ? containConditions : []),
|
74
78
|
];
|
79
|
+
//////////////////////////////////////
|
80
|
+
// 5. Search Condition
|
81
|
+
//////////////////////////////////////
|
82
|
+
const search = req.query.search;
|
75
83
|
|
84
|
+
if (search) {
|
85
|
+
const parts = search.split('.');
|
86
|
+
|
87
|
+
let regexPattern = '';
|
88
|
+
|
89
|
+
if (parts.length === 2) {
|
90
|
+
// Создаем паттерн, который допускает замену одного символа в каждой части
|
91
|
+
regexPattern = parts.map(part => part.substr(0, part.length - 1) + '.{1}').join('\\.');
|
92
|
+
} else {
|
93
|
+
// Если нет точки, применяем аналогичный подход к всей строке
|
94
|
+
regexPattern = search.substr(0, search.length - 1) + '.{1}';
|
95
|
+
}
|
96
|
+
|
97
|
+
matchConditions.push({
|
98
|
+
$or: [
|
99
|
+
{ "profile.name": { $regex: regexPattern, $options: 'i' } },
|
100
|
+
{ "products.name": { $regex: regexPattern, $options: 'i' } }
|
101
|
+
]
|
102
|
+
});
|
103
|
+
}
|
104
|
+
//////////////////////////////////////
|
105
|
+
// 6. LOCATION CONDITION
|
106
|
+
//////////////////////////////////////
|
76
107
|
let { location, address, locationRadius, city, state, country } = req.query;
|
77
108
|
|
78
|
-
let userLocation = { coordinates:[0,0] }
|
109
|
+
let userLocation = { coordinates: [0,0] }
|
79
110
|
|
80
111
|
if (!location && (address || city || state || country)) {
|
81
112
|
let geoLocation;
|
@@ -124,57 +155,35 @@ const controllerFactory = (db) => {
|
|
124
155
|
});
|
125
156
|
}
|
126
157
|
|
127
|
-
const search = req.query.search;
|
128
|
-
|
129
|
-
if (search) {
|
130
|
-
const parts = search.split('.');
|
131
|
-
|
132
|
-
let regexPattern = '';
|
133
|
-
|
134
|
-
if (parts.length === 2) {
|
135
|
-
// Создаем паттерн, который допускает замену одного символа в каждой части
|
136
|
-
regexPattern = parts.map(part => part.substr(0, part.length - 1) + '.{1}').join('\\.');
|
137
|
-
} else {
|
138
|
-
// Если нет точки, применяем аналогичный подход к всей строке
|
139
|
-
regexPattern = search.substr(0, search.length - 1) + '.{1}';
|
140
|
-
}
|
141
|
-
|
142
|
-
matchConditions.push({
|
143
|
-
$or: [
|
144
|
-
{ "profile.name": { $regex: regexPattern, $options: 'i' } },
|
145
|
-
{ "products.name": { $regex: regexPattern, $options: 'i' } }
|
146
|
-
]
|
147
|
-
});
|
148
|
-
}
|
149
|
-
|
150
158
|
if (location) {
|
151
159
|
|
152
160
|
console.log(location)
|
153
161
|
|
154
|
-
if (typeof location === 'string') {
|
155
|
-
location = JSON.parse(location);
|
156
|
-
}
|
162
|
+
if (typeof location === 'string') { location = JSON.parse(location); }
|
157
163
|
|
158
|
-
|
164
|
+
let lng
|
159
165
|
let lat
|
160
166
|
|
161
167
|
if (location.lng) {
|
162
168
|
lng = location.lng
|
163
169
|
lat = location.lat
|
164
|
-
|
170
|
+
|
171
|
+
userLocation.coordinates = [lng,lat]
|
165
172
|
} else {
|
166
173
|
lng = location.coordinates[0]
|
167
174
|
lat = location.coordinates[1]
|
175
|
+
|
168
176
|
userLocation.coordinates = [lng,lat]
|
169
177
|
}
|
170
178
|
|
171
|
-
// Determine the search radius based on the level of specificity
|
172
179
|
const earthRadiusKm = 6378.1;
|
173
180
|
|
181
|
+
|
182
|
+
// Determine the search radius based on the level of specificity
|
174
183
|
let radius = null;
|
175
184
|
|
176
185
|
if (locationRadius) {
|
177
|
-
|
186
|
+
radius = parseFloat(locationRadius) / earthRadiusKm;
|
178
187
|
} else if (city) {
|
179
188
|
radius = 500 / earthRadiusKm;
|
180
189
|
} else if (state) {
|
@@ -187,8 +196,8 @@ const controllerFactory = (db) => {
|
|
187
196
|
"spots.location.coordinates": {
|
188
197
|
$geoWithin: {
|
189
198
|
$centerSphere: [
|
190
|
-
|
191
|
-
|
199
|
+
[parseFloat(lng), parseFloat(lat)],
|
200
|
+
radius
|
192
201
|
]
|
193
202
|
}
|
194
203
|
}
|
@@ -200,7 +209,9 @@ const controllerFactory = (db) => {
|
|
200
209
|
}
|
201
210
|
|
202
211
|
const matchStage = matchConditions.length > 0 ? { $match: { $and: matchConditions } } : null;
|
203
|
-
|
212
|
+
//////////////////////////////////////
|
213
|
+
// AGGREGATION PIPELINE
|
214
|
+
//////////////////////////////////////
|
204
215
|
const stages = [
|
205
216
|
{
|
206
217
|
$lookup: {
|
@@ -210,6 +221,11 @@ const controllerFactory = (db) => {
|
|
210
221
|
as: "products"
|
211
222
|
}
|
212
223
|
},
|
224
|
+
{
|
225
|
+
$addFields: {
|
226
|
+
numberOfProducts: { $size: '$products' }
|
227
|
+
}
|
228
|
+
},
|
213
229
|
{
|
214
230
|
$lookup: {
|
215
231
|
from: "blogposts",
|
@@ -218,11 +234,6 @@ const controllerFactory = (db) => {
|
|
218
234
|
as: "blogposts"
|
219
235
|
}
|
220
236
|
},
|
221
|
-
{
|
222
|
-
$addFields: {
|
223
|
-
numberOfProducts: { $size: '$products' }
|
224
|
-
}
|
225
|
-
},
|
226
237
|
{
|
227
238
|
$lookup: {
|
228
239
|
from: "departments",
|
@@ -286,7 +297,14 @@ const controllerFactory = (db) => {
|
|
286
297
|
},
|
287
298
|
{
|
288
299
|
$addFields: {
|
289
|
-
distance: { $min: "$spots.distance" }
|
300
|
+
distance: { $min: "$spots.distance" },
|
301
|
+
}
|
302
|
+
},
|
303
|
+
{
|
304
|
+
$addFields: {
|
305
|
+
distanceExist: {
|
306
|
+
$cond: { if: { $eq: [{ $type: "$distance" }, "double"] }, then: true, else: false }
|
307
|
+
}
|
290
308
|
}
|
291
309
|
},
|
292
310
|
{
|
@@ -299,21 +317,15 @@ const controllerFactory = (db) => {
|
|
299
317
|
},
|
300
318
|
addMembersQuantity(),
|
301
319
|
addUserStatusFields(req.query.user),
|
302
|
-
{
|
303
|
-
$addFields: {
|
304
|
-
numberOfProducts: { $size: '$products' }
|
305
|
-
}
|
306
|
-
},
|
307
320
|
...(matchStage != null ? [matchStage] : []),
|
308
321
|
{ $sort: sort },
|
309
|
-
{ $skip:
|
310
|
-
{ $limit:
|
322
|
+
{ $skip: pagination.skip },
|
323
|
+
{ $limit: pagination.limit }
|
311
324
|
];
|
312
325
|
|
313
326
|
try {
|
314
327
|
console.log(stages)
|
315
328
|
const organizations = await Organization.aggregate(stages);
|
316
|
-
console.log(organizations)
|
317
329
|
res.status(200).send(organizations);
|
318
330
|
} catch(err) {
|
319
331
|
console.log(err)
|
@@ -361,33 +373,31 @@ const controllerFactory = (db) => {
|
|
361
373
|
}
|
362
374
|
};
|
363
375
|
|
364
|
-
const create = async (req, res) => {
|
365
|
-
|
366
|
-
|
367
|
-
|
368
|
-
|
369
|
-
try {
|
370
|
-
const organization = new Organization(req.body);
|
371
|
-
const savedOrganization = await organization.save();
|
372
|
-
|
373
|
-
const membership = new Membership({
|
374
|
-
user: savedOrganization.owner,
|
375
|
-
type: 'organization',
|
376
|
-
target: savedOrganization._id,
|
377
|
-
role: 'owner',
|
378
|
-
label: 'owner',
|
379
|
-
});
|
380
|
-
|
381
|
-
const savedMembership = await membership.save();
|
382
|
-
|
383
|
-
res.status(201).json(savedOrganization);
|
384
|
-
} catch (error) {
|
385
|
-
console.error('Error:', error);
|
386
|
-
res.status(500).send(error);
|
387
|
-
}
|
388
|
-
};
|
376
|
+
const create = async (req, res) => {
|
377
|
+
if(req.body._id === null) {
|
378
|
+
delete req.body._id;
|
379
|
+
}
|
389
380
|
|
381
|
+
try {
|
382
|
+
const organization = new Organization(req.body);
|
383
|
+
const savedOrganization = await organization.save();
|
384
|
+
|
385
|
+
const membership = new Membership({
|
386
|
+
user: savedOrganization.owner,
|
387
|
+
type: 'organization',
|
388
|
+
target: savedOrganization._id,
|
389
|
+
role: 'owner',
|
390
|
+
label: 'owner',
|
391
|
+
});
|
392
|
+
|
393
|
+
const savedMembership = await membership.save();
|
390
394
|
|
395
|
+
res.status(201).json(savedOrganization);
|
396
|
+
} catch (error) {
|
397
|
+
console.error('Error:', error);
|
398
|
+
res.status(500).send(error);
|
399
|
+
}
|
400
|
+
};
|
391
401
|
|
392
402
|
const update = async (req, res) => {
|
393
403
|
try {
|
@@ -418,7 +428,7 @@ const create = async (req, res) => {
|
|
418
428
|
}
|
419
429
|
|
420
430
|
// Удаление всех memberships, связанных с этой организацией
|
421
|
-
Membership.deleteMany({
|
431
|
+
Membership.deleteMany({ target: req.params._id })
|
422
432
|
.then(() => {
|
423
433
|
const newToken = jwt.sign({
|
424
434
|
_id: user._id,
|
@@ -1,10 +1,10 @@
|
|
1
|
-
const
|
1
|
+
const applyEngagementSchema = require('@pf/src/modules/globals/models/engagement.schema.js');
|
2
2
|
|
3
|
-
module.exports = (
|
4
|
-
const OrganizationSchema = new mongoose.Schema({
|
3
|
+
module.exports = (db) => {
|
4
|
+
const OrganizationSchema = new db.mongoose.Schema({
|
5
5
|
// Creator and owner of organizations
|
6
6
|
owner: {
|
7
|
-
type: ObjectId,
|
7
|
+
type: db.mongoose.Schema.Types.ObjectId,
|
8
8
|
ref: 'User',
|
9
9
|
required: true,
|
10
10
|
},
|
@@ -14,8 +14,8 @@ module.exports = (mongoose) => {
|
|
14
14
|
},
|
15
15
|
// Types of organizations
|
16
16
|
types: {
|
17
|
-
|
18
|
-
|
17
|
+
type: Array,
|
18
|
+
required: true,
|
19
19
|
},
|
20
20
|
// Information for profile
|
21
21
|
profile: {
|
@@ -65,6 +65,9 @@ module.exports = (mongoose) => {
|
|
65
65
|
}, {
|
66
66
|
timestamps: true
|
67
67
|
});
|
68
|
+
|
69
|
+
applyEngagementSchema(OrganizationSchema,db);
|
70
|
+
|
68
71
|
// const Testimonial = require('./testimonial.model');
|
69
72
|
|
70
73
|
// OrganizationSchema.methods.calculateRating = async function() {
|
@@ -105,6 +108,6 @@ module.exports = (mongoose) => {
|
|
105
108
|
// await this.save();
|
106
109
|
// }
|
107
110
|
|
108
|
-
const Organization = mongoose.model('Organization', OrganizationSchema);
|
111
|
+
const Organization = db.mongoose.model('Organization', OrganizationSchema);
|
109
112
|
return Organization
|
110
113
|
}
|
@@ -48,51 +48,20 @@ const actions = {
|
|
48
48
|
organization.owner = owner
|
49
49
|
try {
|
50
50
|
const response = await $axios.post('/api/organizations/create', organization);
|
51
|
-
console.log('Organization created successfully');
|
52
51
|
state.current = response.data;
|
53
52
|
return response.data;
|
54
53
|
} catch (error) {
|
55
|
-
console.log(
|
54
|
+
console.log(error);
|
56
55
|
setError(error);
|
57
56
|
throw error;
|
58
57
|
}
|
59
58
|
},
|
60
59
|
async read(options = {}) {
|
61
60
|
|
62
|
-
|
61
|
+
console.log(options)
|
63
62
|
|
64
|
-
if (options._id) params._id = options._id;
|
65
|
-
if (options.owner) params.owner = options.owner;
|
66
|
-
if (options.user) params.user = options.user;
|
67
|
-
if (options.member) params.member = options.member;
|
68
|
-
if (options.subscriber) params.subscriber = options.subscriber;
|
69
|
-
if (options.postable) params.postable = options.postable;
|
70
|
-
if (options.location) params.location = options.location;
|
71
|
-
if (options.search) params.search = options.search;
|
72
|
-
|
73
|
-
if (options.location) params.location = options.location;
|
74
|
-
if (options.locationRadius) params.locationRadius = options.locationRadius;
|
75
|
-
|
76
|
-
if (options.country) params.country = options.country;
|
77
|
-
if (options.state) params.state = options.state;
|
78
|
-
if (options.city) params.city = options.city;
|
79
|
-
if (options.categories) params.categories = options.categories;
|
80
|
-
if (options.prices) params.prices = options.prices;
|
81
|
-
if (options.delivery) params.delivery = options.delivery;
|
82
|
-
if (options.types) params.types = options.types;
|
83
|
-
if (options.skip) params.skip = options.skip;
|
84
|
-
if (options.limit) params.limit = options.limit;
|
85
|
-
|
86
|
-
|
87
|
-
params.contain = options.contain || [];
|
88
|
-
|
89
|
-
|
90
|
-
params.sortParam = options.sortParam;
|
91
|
-
params.sortOrder = options.sortOrder;
|
92
|
-
|
93
|
-
console.log(params)
|
94
63
|
try {
|
95
|
-
const response = await $axios.get('/api/organizations', { params:
|
64
|
+
const response = await $axios.get('/api/organizations', { params: options });
|
96
65
|
|
97
66
|
if (options._id) {
|
98
67
|
Object.assign(state.current || {}, response.data[0])
|
@@ -29,7 +29,7 @@
|
|
29
29
|
'g',
|
30
30
|
'ml'
|
31
31
|
]"
|
32
|
-
class="bg-
|
32
|
+
class="bg-light pd-r-thin pd-l-thin pd-t-nano pd-b-nano radius-thin"
|
33
33
|
/>
|
34
34
|
|
35
35
|
</Field>
|
@@ -71,7 +71,7 @@
|
|
71
71
|
'g',
|
72
72
|
'ml'
|
73
73
|
]"
|
74
|
-
class="bg-
|
74
|
+
class="bg-light pd-r-thin pd-l-thin pd-t-nano pd-b-nano radius-thin"
|
75
75
|
/>
|
76
76
|
|
77
77
|
</Field>
|
@@ -26,14 +26,14 @@
|
|
26
26
|
type="number"
|
27
27
|
label="Price"
|
28
28
|
:symbol="returnCurrency()"
|
29
|
-
class="bg-
|
29
|
+
class="bg-light pd-medium radius-small"
|
30
30
|
/>
|
31
31
|
|
32
32
|
<Field
|
33
33
|
v-model:field="product.quantity"
|
34
34
|
type="number"
|
35
35
|
label="Quantity"
|
36
|
-
class="bg-
|
36
|
+
class="bg-light pd-medium radius-small"
|
37
37
|
:symbol="product.type"
|
38
38
|
/>
|
39
39
|
|
@@ -20,7 +20,7 @@
|
|
20
20
|
:isPopupOpen="isOpenProductsPopup"
|
21
21
|
class="bg-white w-min-30r w-max-30r radius-big pd-medium"
|
22
22
|
>
|
23
|
-
<div class="bg-
|
23
|
+
<div class="bg-light mn-b-thin h-min-20r h-max-20r o-scroll pd-medium radius-big">
|
24
24
|
<Feed
|
25
25
|
:search="true"
|
26
26
|
:states="{
|
@@ -11,14 +11,14 @@
|
|
11
11
|
</button>
|
12
12
|
</header>
|
13
13
|
|
14
|
-
<section class="mn-b-semi pd-medium bg-
|
14
|
+
<section class="mn-b-semi pd-medium bg-light radius-big">
|
15
15
|
<p class="mn-b-thin">Balance:</p>
|
16
16
|
<h3>{{formatPrice(totalPrice)}}</h3>
|
17
17
|
</section>
|
18
18
|
|
19
19
|
<!-- <h3>Low Stock</h3>
|
20
20
|
|
21
|
-
<section class="mn-b-semi pd-medium bg-
|
21
|
+
<section class="mn-b-semi pd-medium bg-light radius-big">
|
22
22
|
<div>
|
23
23
|
Name: Code Red
|
24
24
|
Left: 3
|
@@ -43,7 +43,7 @@
|
|
43
43
|
{ name: 'Stock-In', value: 'stock-in' },
|
44
44
|
{ name: 'Stock-Out', value: 'stock-out' }
|
45
45
|
]"
|
46
|
-
class="mn-b-small o-hidden h5 radius-big bg-
|
46
|
+
class="mn-b-small o-hidden h5 radius-big bg-light"
|
47
47
|
/>
|
48
48
|
|
49
49
|
<Feed
|
@@ -69,7 +69,7 @@
|
|
69
69
|
<CardLeftover
|
70
70
|
v-for="leftover in items"
|
71
71
|
:leftover="leftover"
|
72
|
-
class="bg-
|
72
|
+
class="bg-light pd-small mn-b-thin radius-small"
|
73
73
|
/>
|
74
74
|
</Feed>
|
75
75
|
</div>
|
@@ -1,6 +1,6 @@
|
|
1
1
|
<template>
|
2
2
|
<div class="flex flex-column w-100 o-hidden gap-thin pd-thin">
|
3
|
-
<!-- <Breadcrumbs class="bg-
|
3
|
+
<!-- <Breadcrumbs class="bg-light radius-big pd-small"/> -->
|
4
4
|
<!-- {{product.quantity}}
|
5
5
|
<div v-if="product.ingredients">
|
6
6
|
{{product?.ingredients[0]?._id}}
|
@@ -14,14 +14,10 @@
|
|
14
14
|
</template>
|
15
15
|
|
16
16
|
<script setup="props">
|
17
|
-
/////////////////////////////
|
18
|
-
// COMPONENT DEPENDENCIES
|
19
|
-
/////////////////////////////
|
20
17
|
// Import components
|
21
18
|
import Breadcrumbs from '@pf/src/components/Breadcrumbs/Breadcrumbs.vue'
|
22
19
|
import PopularProducts from '@pf/src/modules/products/components/sections/PopularProducts.vue'
|
23
20
|
import SectionProduct from '@pf/src/modules/products/components/sections/SectionProduct.vue'
|
24
|
-
import Footer from '@pf/src/components/Footer/Footer.vue'
|
25
21
|
// Import libs
|
26
22
|
import { computed, onMounted } from 'vue'
|
27
23
|
import { useRoute,useRouter } from 'vue-router'
|
@@ -84,7 +84,7 @@
|
|
84
84
|
:isPopupOpen="isOpenIngredientPopup"
|
85
85
|
class="bg-white w-min-30r w-max-30r radius-big pd-medium"
|
86
86
|
>
|
87
|
-
<div class="bg-
|
87
|
+
<div class="bg-light mn-b-thin h-min-20r h-max-20r o-scroll pd-medium radius-big">
|
88
88
|
<Feed
|
89
89
|
:search="{
|
90
90
|
class: 'bg-white mn-b-thin'
|
@@ -23,10 +23,10 @@
|
|
23
23
|
{ name: 'Unpublished', value: 'unpublished' },
|
24
24
|
{ name: 'Archivied', value: 'archivied' }
|
25
25
|
]"
|
26
|
-
class="mn-b-small o-hidden h5 radius-big bg-
|
26
|
+
class="mn-b-small o-hidden h5 radius-big bg-light"
|
27
27
|
/>
|
28
28
|
|
29
|
-
<div class="cols-2-1_3 bg-
|
29
|
+
<div class="cols-2-1_3 bg-light pd-thin radius-big gap-thin">
|
30
30
|
|
31
31
|
<FilterProducts
|
32
32
|
|