@ozdao/prometheus-framework 0.2.111 → 0.2.113
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 -0
- package/dist/prometheus-framework/src/components/Marquee/Marquee.vue.js +121 -0
- package/dist/prometheus-framework/src/components/Marquee/Marquee.vue2.cjs +1 -0
- package/dist/prometheus-framework/src/components/Marquee/Marquee.vue2.js +1 -0
- 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 +1 -45
- package/dist/prometheus-framework/src/components/Tooltip/Tooltip.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/components/Tooltip/Tooltip.vue2.js +45 -1
- 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 +45 -45
- 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/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/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 +213 -213
- 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 +13 -1
- 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 +1 -13
- 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/blocks/CardUser.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/users/components/blocks/CardUser.vue.js +6 -6
- 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 -0
- package/dist/prometheus-framework/src/modules/users/components/sections/FeaturedUsers.vue.js +102 -0
- package/dist/prometheus-framework/src/modules/users/components/sections/FeaturedUsers.vue2.cjs +1 -0
- package/dist/prometheus-framework/src/modules/users/components/sections/FeaturedUsers.vue2.js +1 -0
- package/dist/prometheus-framework/src/modules/users/users.client.cjs +1 -1
- package/dist/prometheus-framework/src/modules/users/users.client.js +8 -6
- 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/blocks/CardUser.vue +3 -3
- 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 +76 -14
- package/src/modules/users/users.client.js +5 -0
- 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
@@ -1,21 +1,21 @@
|
|
1
1
|
<template>
|
2
2
|
<div>
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
3
|
+
<div class=" pd-medium flex-v-center gap-big flex-nowrap flex pd-t-thin pd-b-thin o-scroll">
|
4
|
+
<a
|
5
|
+
v-for="category in categories"
|
6
|
+
:key="category"
|
7
|
+
@click="filter(category)"
|
8
|
+
class="h3 uppercase"
|
9
|
+
:class="{
|
10
|
+
't-transp': selectedCategory !== category,
|
11
|
+
'pd-thin bg-main radius-small': selectedCategory === category
|
12
|
+
}"
|
13
|
+
>
|
14
|
+
{{ $t('gallery.categories.' + category) }}
|
15
|
+
</a>
|
16
|
+
|
17
|
+
<button v-if="isEditablePath" @click="openModal(null)" class="t-black bg-second button-small button">+</button>
|
18
|
+
</div>
|
19
19
|
|
20
20
|
<div ref="grid" class="pd-medium cols-4 gap-thin">
|
21
21
|
<div
|
@@ -37,74 +37,18 @@
|
|
37
37
|
<!-- Loader -->
|
38
38
|
<!-- <div v-show="loading" class="loader">Loading...</div> -->
|
39
39
|
<!-- Sentinel -->
|
40
|
-
<div ref="sentinel" class="sentinel"
|
41
|
-
|
42
|
-
<transition name="modal">
|
43
|
-
<div v-show="selectedImage.image !== false && modal === 'modal'" class="modal pd-thin">
|
44
|
-
<div class="modal-content radius-big">
|
45
|
-
<div class="">
|
46
|
-
<span class="close" @click="closeModal">×</span>
|
47
|
-
<img :src="'https://thecommunephuket.com/photos/' + selectedImage.image">
|
48
|
-
</div>
|
49
|
-
</div>
|
50
|
-
</div>
|
51
|
-
</transition>
|
52
|
-
|
53
|
-
<transition name="modal">
|
40
|
+
<div ref="sentinel" class="sentinel"/>
|
54
41
|
|
55
|
-
<div v-
|
56
|
-
<div class="modal-content radius-
|
42
|
+
<div v-show="selectedImage.image !== false && modal === 'modal'" class="modal pd-thin">
|
43
|
+
<div class="modal-content radius-big">
|
44
|
+
<div class="">
|
57
45
|
<span class="close" @click="closeModal">×</span>
|
58
|
-
<img
|
59
|
-
|
60
|
-
|
61
|
-
<Upload
|
62
|
-
id="photo"
|
63
|
-
name="photo"
|
64
|
-
type="file"
|
65
|
-
class="t-black bg-grey pd-thin radius-small mn-b-thin"
|
66
|
-
@file-change="onFileChange"
|
67
|
-
multiple="true"
|
68
|
-
v-if="!selectedImage._id"
|
69
|
-
/>
|
70
|
-
|
71
|
-
|
72
|
-
<Select
|
73
|
-
:options="sizeOptions"
|
74
|
-
label="Size"
|
75
|
-
v-model:select="selectedImage.size"
|
76
|
-
placeholder="Select Size"
|
77
|
-
class="
|
78
|
-
bg-grey
|
79
|
-
pd-thin
|
80
|
-
radius-small
|
81
|
-
mn-b-thin
|
82
|
-
t-black
|
83
|
-
"
|
84
|
-
/>
|
85
|
-
|
86
|
-
<Field
|
87
|
-
v-model:field="selectedImage.categories"
|
88
|
-
type="text"
|
89
|
-
label="Categories"
|
90
|
-
placeholder="Enter categories for image (comma separated)"
|
91
|
-
class="
|
92
|
-
bg-grey
|
93
|
-
pd-thin
|
94
|
-
radius-small
|
95
|
-
mn-b-medium
|
96
|
-
t-black
|
97
|
-
"
|
98
|
-
/>
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
<Button :submit="selectedImage._id ? updatePhoto : createPhoto" :callback="closeModal" class="mn-b-thin">
|
103
|
-
{{selectedImage._id ? 'Update' : 'Create'}}
|
104
|
-
</Button>
|
46
|
+
<img :src="'https://thecommunephuket.com/photos/' + selectedImage.image">
|
47
|
+
</div>
|
105
48
|
</div>
|
106
49
|
</div>
|
107
|
-
|
50
|
+
|
51
|
+
|
108
52
|
</div>
|
109
53
|
</div>
|
110
54
|
</template>
|
@@ -118,7 +62,8 @@ import Button from '@pf/src/components/Button/Button.vue'
|
|
118
62
|
import Select from '@pf/src/components/Select/Select.vue'
|
119
63
|
import Upload from '@pf/src/components/Upload/Upload.vue'
|
120
64
|
|
121
|
-
import
|
65
|
+
import gallery from '@pf/src/modules/gallery/store/gallery';
|
66
|
+
|
122
67
|
|
123
68
|
const route = useRoute()
|
124
69
|
|
@@ -204,62 +149,6 @@ const enableScroll = () => {
|
|
204
149
|
}
|
205
150
|
|
206
151
|
|
207
|
-
|
208
|
-
const sizeOptions = [
|
209
|
-
{ name: 'Small', value: '' },
|
210
|
-
{ name: 'Regular',value: 'grid-item--width1 grid-item--height1' },
|
211
|
-
{ name: 'Medium', value: 'grid-item--width2 grid-item--height2' },
|
212
|
-
{ name: 'Big', value: 'grid-item--width3 grid-item--height3' },
|
213
|
-
];
|
214
|
-
|
215
|
-
|
216
|
-
const deletePhoto = async (id) => {
|
217
|
-
await actions.deletePhoto(id);
|
218
|
-
};
|
219
|
-
|
220
|
-
const editPhoto = (photo) => {
|
221
|
-
openModal(photo);
|
222
|
-
};
|
223
|
-
|
224
|
-
const updatePhoto = async () => {
|
225
|
-
await actions.updatePhoto(selectedImage.value)
|
226
|
-
closeModal()
|
227
|
-
}
|
228
|
-
|
229
|
-
|
230
|
-
// To handle file input change
|
231
|
-
const onFileChange = (e) => {
|
232
|
-
const files = e.files;
|
233
|
-
selectedImage.value.image = files; // Assign the files array to the image property
|
234
|
-
|
235
|
-
// Show a preview of the first image if multiple files are selected
|
236
|
-
if (files && files.length > 0) {
|
237
|
-
const reader = new FileReader()
|
238
|
-
reader.onload = e => {
|
239
|
-
previewImage.value = e.target.result;
|
240
|
-
}
|
241
|
-
reader.readAsDataURL(files[0]);
|
242
|
-
}
|
243
|
-
}
|
244
|
-
|
245
|
-
// Function to create photo
|
246
|
-
const createPhoto = async (e) => {
|
247
|
-
// Your function body
|
248
|
-
if (!selectedImage.value.image || !selectedImage.value.categories || !selectedImage.value.size) {
|
249
|
-
console.error('All fields are required.')
|
250
|
-
return
|
251
|
-
}
|
252
|
-
|
253
|
-
await actions.createPhoto({
|
254
|
-
...selectedImage.value,
|
255
|
-
size: selectedImage.value.size,
|
256
|
-
categories: typeof selectedImage.value.categories === 'string' ? selectedImage.value.categories.split(',').map(item => item.trim()) : selectedImage.value.categories
|
257
|
-
})
|
258
|
-
closeModal()
|
259
|
-
}
|
260
|
-
|
261
|
-
|
262
|
-
|
263
152
|
let selectedCategory = ref('all')
|
264
153
|
|
265
154
|
const filter = (category) => {
|
@@ -284,111 +173,4 @@ onMounted(async () => {
|
|
284
173
|
</script>
|
285
174
|
|
286
175
|
<style scoped>
|
287
|
-
.grid {
|
288
|
-
width: 100%;
|
289
|
-
}
|
290
|
-
.grid-item {
|
291
|
-
width: 33%;
|
292
|
-
height: 33vh;
|
293
|
-
}
|
294
|
-
|
295
|
-
.grid-item--width1 {
|
296
|
-
width: 50%;
|
297
|
-
}
|
298
|
-
.grid-item--height1 {
|
299
|
-
height: 50vh;
|
300
|
-
}
|
301
|
-
|
302
|
-
.grid-item--width2 {
|
303
|
-
width: 66%;
|
304
|
-
}
|
305
|
-
.grid-item--height2 {
|
306
|
-
height: 66vh;
|
307
|
-
}
|
308
|
-
|
309
|
-
.grid-item--width3 {
|
310
|
-
width: 100%;
|
311
|
-
}
|
312
|
-
.grid-item--height3 {
|
313
|
-
height: 100vh;
|
314
|
-
}
|
315
|
-
|
316
|
-
.modal {
|
317
|
-
position: fixed;
|
318
|
-
z-index: 1;
|
319
|
-
left: 0;
|
320
|
-
top: 0;
|
321
|
-
width: 100%;
|
322
|
-
height: 100%;
|
323
|
-
overflow: auto;
|
324
|
-
background-color: rgba(0,0,0,0.9);
|
325
|
-
z-index: 50;
|
326
|
-
}
|
327
|
-
|
328
|
-
.modal-content {
|
329
|
-
margin: auto;
|
330
|
-
/* display: flex;*/
|
331
|
-
z-index: 5;
|
332
|
-
width: 100%;
|
333
|
-
height: 100%;
|
334
|
-
overflow: scroll;
|
335
|
-
}
|
336
|
-
|
337
|
-
.close {
|
338
|
-
position: fixed;
|
339
|
-
top: 3rem;
|
340
|
-
right: 4rem;
|
341
|
-
|
342
|
-
color: #f1f1f1;
|
343
|
-
font-size: 40px;
|
344
|
-
font-weight: bold;
|
345
|
-
transition: 0.3s;
|
346
|
-
z-index: 10;
|
347
|
-
}
|
348
|
-
|
349
|
-
.close:hover,
|
350
|
-
.close:focus {
|
351
|
-
color: #bbb;
|
352
|
-
text-decoration: none;
|
353
|
-
cursor: pointer;
|
354
|
-
}
|
355
|
-
|
356
|
-
/* Transitions */
|
357
|
-
.modal-enter-active, .modal-leave-active {
|
358
|
-
transition: opacity .5s;
|
359
|
-
}
|
360
|
-
.modal-enter, .modal-leave-to {
|
361
|
-
opacity: 0;
|
362
|
-
}
|
363
|
-
|
364
|
-
@media screen and (max-width: 1024px) {
|
365
|
-
.grid {
|
366
|
-
width: 100%;
|
367
|
-
}
|
368
|
-
.grid-item {
|
369
|
-
width: 50%;
|
370
|
-
height: 25vh;
|
371
|
-
}
|
372
|
-
|
373
|
-
.grid-item--width1 {
|
374
|
-
width: 50%;
|
375
|
-
}
|
376
|
-
.grid-item--height1 {
|
377
|
-
height: 25vh;
|
378
|
-
}
|
379
|
-
|
380
|
-
.grid-item--width2 {
|
381
|
-
width: 100%;
|
382
|
-
}
|
383
|
-
.grid-item--height2 {
|
384
|
-
height: 50vh;
|
385
|
-
}
|
386
|
-
|
387
|
-
.grid-item--width3 {
|
388
|
-
width: 100%;
|
389
|
-
}
|
390
|
-
.grid-item--height3 {
|
391
|
-
height: 50vh;
|
392
|
-
}
|
393
|
-
}
|
394
176
|
</style>
|
@@ -1,7 +1,8 @@
|
|
1
|
+
const path = require('path');
|
1
2
|
// --------------------------------------------------
|
2
3
|
// DEPENENCY
|
3
4
|
// --------------------------------------------------
|
4
|
-
const
|
5
|
+
const queryProcessorGlobals = require('@pf/src/modules/globals/controllers/utils/queryProcessor');
|
5
6
|
// --------------------------------------------------
|
6
7
|
// METHODS
|
7
8
|
// --------------------------------------------------
|
@@ -9,68 +10,86 @@ const controllerFactory = (db) => {
|
|
9
10
|
const Photo = db.photo;
|
10
11
|
|
11
12
|
const read = async (req, res) => {
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
13
|
+
|
14
|
+
let stages = [
|
15
|
+
...queryProcessorGlobals.getBasicOptions(
|
16
|
+
req.query
|
17
|
+
),
|
18
|
+
// For creator
|
19
|
+
queryProcessorGlobals.getCreatorUserLookupStage(),
|
20
|
+
queryProcessorGlobals.getCreatorOrganizationLookupStage(),
|
21
|
+
queryProcessorGlobals.getCreatorCustomerLookupStage(),
|
22
|
+
// For owner
|
23
|
+
queryProcessorGlobals.getOwnerUserLookupStage(),
|
24
|
+
queryProcessorGlobals.getOwnerOrganizationLookupStage(),
|
25
|
+
queryProcessorGlobals.getAddFieldsCreatorOwnerStage(),
|
26
|
+
queryProcessorGlobals.removeTempPropeties(),
|
27
|
+
// Pagination
|
28
|
+
...queryProcessorGlobals.getSortingOptions(
|
29
|
+
req.query.sortParam,
|
30
|
+
req.query.sortOrder,
|
31
|
+
),
|
32
|
+
...queryProcessorGlobals.getPaginationOptions(
|
33
|
+
req.query.skip,
|
34
|
+
req.query.limit
|
35
|
+
)
|
36
|
+
];
|
37
|
+
|
38
|
+
try {
|
39
|
+
const photos = await Photo.aggregate(stages);
|
18
40
|
|
19
|
-
|
20
|
-
const skipValue = (parseInt(page) - 1) * (limit ? parseInt(limit) : 10);
|
21
|
-
query = query.skip(skipValue);
|
22
|
-
}
|
41
|
+
console.log(photos)
|
23
42
|
|
24
|
-
|
25
|
-
|
26
|
-
|
43
|
+
if (!photos) {
|
44
|
+
return res.status(404).send({ errorCode: "PHOTOS_NOT_FOUND", message: "Photos not found." });
|
45
|
+
}
|
27
46
|
|
28
|
-
|
29
|
-
const photos = await query;
|
47
|
+
res.status(200).send(photos);
|
30
48
|
|
31
|
-
|
32
|
-
|
49
|
+
} catch (err) {
|
50
|
+
console.log(err);
|
51
|
+
res.status(500).send({ errorCode: "GET_PHOTOS_FAILED", message: "Error occurred while fetching photos.", error: err });
|
33
52
|
}
|
34
|
-
|
35
|
-
res.status(200).send(photos);
|
36
|
-
} catch (err) {
|
37
|
-
res.status(500).send({ message: err.message || "An error occurred." });
|
38
|
-
}
|
39
|
-
};
|
53
|
+
};
|
40
54
|
|
41
55
|
const create = async (req, res) => {
|
42
56
|
try {
|
43
|
-
|
44
|
-
const { categories, size, images } = req.body;
|
57
|
+
const { tags, creator, owner, images } = req.body;
|
45
58
|
|
46
|
-
|
47
|
-
if (!categories || !size || !images || images.length === 0) {
|
59
|
+
if (!creator || !owner || !images || images.length === 0) {
|
48
60
|
return res.status(400).send({ message: "All fields are required." });
|
49
61
|
}
|
50
62
|
|
51
|
-
// Проход по всем изображениям и их создание
|
52
63
|
const photos = [];
|
53
64
|
|
54
|
-
for (let
|
55
|
-
const filename = path.basename(
|
65
|
+
for (let image of images) {
|
66
|
+
const filename = path.basename(image);
|
67
|
+
const directory = path.dirname(image);
|
56
68
|
|
57
69
|
const newPhoto = {
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
70
|
+
tags,
|
71
|
+
creator,
|
72
|
+
owner,
|
73
|
+
image,
|
74
|
+
cover: path.join(directory, 'thumbnail_' + filename) // создаем путь для миниатюры
|
62
75
|
};
|
63
76
|
|
64
|
-
|
77
|
+
let photo = await Photo.create(newPhoto);
|
78
|
+
|
65
79
|
if (!photo) {
|
66
|
-
return res.status(404).send({ message: `Photo with link ${
|
80
|
+
return res.status(404).send({ message: `Photo with link ${image} is not created.` });
|
67
81
|
}
|
82
|
+
|
83
|
+
photo = await Photo.findOne({ _id: photo._id }).populate('creator.target').populate('owner.target')
|
84
|
+
|
85
|
+
console.log(photo)
|
86
|
+
|
68
87
|
photos.push(photo);
|
69
88
|
}
|
70
89
|
|
71
90
|
res.status(200).send(photos);
|
72
91
|
} catch (error) {
|
73
|
-
console.log(error)
|
92
|
+
console.log(error)
|
74
93
|
res.status(500).send({ message: error });
|
75
94
|
}
|
76
95
|
}
|
@@ -1,26 +1,35 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
type: Object,
|
8
|
-
},
|
1
|
+
const applyCommonSchema = require('@pf/src/modules/globals/models/common.schema.js');
|
2
|
+
const applyEngagementSchema = require('@pf/src/modules/globals/models/engagement.schema.js');
|
3
|
+
const applyOwnershipSchema = require('@pf/src/modules/globals/models/ownership.schema.js');
|
4
|
+
|
5
|
+
module.exports = (db) => {
|
6
|
+
const PhotoSchema = new db.mongoose.Schema({
|
9
7
|
cover: {
|
10
8
|
type: String,
|
11
9
|
required: true
|
12
10
|
},
|
11
|
+
tags: {
|
12
|
+
type: Array
|
13
|
+
},
|
13
14
|
image: {
|
14
15
|
type: String,
|
15
16
|
required: true
|
16
17
|
},
|
17
18
|
}, {
|
18
19
|
timestamps: {
|
19
|
-
|
20
|
+
currentTime: () => Date.now()
|
20
21
|
}
|
21
|
-
})
|
22
|
+
})
|
23
|
+
|
24
|
+
applyCommonSchema(PhotoSchema,db);
|
25
|
+
applyEngagementSchema(PhotoSchema,db);
|
26
|
+
applyOwnershipSchema(PhotoSchema,db);
|
27
|
+
|
28
|
+
const Photo = db.mongoose.model("Photo", PhotoSchema);
|
22
29
|
|
23
|
-
|
30
|
+
Photo.collection.dropIndexes(function (err, results) {
|
31
|
+
// Handle errors
|
32
|
+
});
|
24
33
|
|
25
34
|
return Photo;
|
26
35
|
};
|
@@ -9,7 +9,7 @@ module.exports = function(app, db, origins) {
|
|
9
9
|
const { authJwt } = middlewareFactoryGlobal(db);
|
10
10
|
|
11
11
|
app.get(
|
12
|
-
"/api/gallery",
|
12
|
+
"/api/gallery/read",
|
13
13
|
controller.read
|
14
14
|
);
|
15
15
|
|
@@ -19,13 +19,13 @@ module.exports = function(app, db, origins) {
|
|
19
19
|
controller.create
|
20
20
|
);
|
21
21
|
|
22
|
-
app.
|
22
|
+
app.put(
|
23
23
|
"/api/gallery/update",
|
24
24
|
[authJwt.verifyToken],
|
25
25
|
controller.update
|
26
26
|
);
|
27
27
|
|
28
|
-
app.
|
28
|
+
app.delete(
|
29
29
|
"/api/gallery/delete/:_id",
|
30
30
|
[authJwt.verifyToken],
|
31
31
|
controller.delete
|
@@ -1,80 +1,5 @@
|
|
1
|
-
|
2
|
-
import axios from 'axios';
|
3
|
-
import { reactive } from "vue";
|
1
|
+
import Store from '@pf/src/modules/globals/services/globals.store.js'
|
4
2
|
|
5
|
-
const
|
3
|
+
const gallery = new Store(`${process.env.API_URL}/api/gallery`)
|
6
4
|
|
7
|
-
|
8
|
-
|
9
|
-
// State
|
10
|
-
const state = reactive({
|
11
|
-
gallery: [],
|
12
|
-
});
|
13
|
-
|
14
|
-
const actions = {
|
15
|
-
async fetchGallery(page, limit) {
|
16
|
-
const params = [];
|
17
|
-
if (page) params.push(`page=${page}`);
|
18
|
-
if (limit) params.push(`limit=${limit}`);
|
19
|
-
const url = `/api/gallery${params.length ? `?${params.join('&')}` : ''}`;
|
20
|
-
|
21
|
-
try {
|
22
|
-
const response = await $axios.get(url);
|
23
|
-
|
24
|
-
console.log(response)
|
25
|
-
|
26
|
-
if (response && response.data) {
|
27
|
-
state.gallery = [...state.gallery, ...response.data];
|
28
|
-
return response.data; // Optionally return the fetched data
|
29
|
-
}
|
30
|
-
} catch (error) {
|
31
|
-
console.error('Error fetching gallery:', error);
|
32
|
-
throw error; // Re-throwing the error allows the caller to handle it, if needed
|
33
|
-
}
|
34
|
-
},
|
35
|
-
|
36
|
-
async createPhoto(photos) {
|
37
|
-
try {
|
38
|
-
const response = await $axios.post('/api/gallery/create', photos)
|
39
|
-
console.log(response.data)
|
40
|
-
state.gallery = [...response.data, ...state.gallery];
|
41
|
-
} catch (error) {
|
42
|
-
console.error(error);
|
43
|
-
}
|
44
|
-
},
|
45
|
-
|
46
|
-
async updatePhoto (photo) {
|
47
|
-
try {
|
48
|
-
const updatedPhoto = {
|
49
|
-
...photo,
|
50
|
-
categories: typeof photo.categories === 'string' ? photo.categories.split(',').map(item => item.trim()) : photo.categories,
|
51
|
-
};
|
52
|
-
const response = await axios.post(`/api/gallery/update`, updatedPhoto);
|
53
|
-
const index = state.gallery.findIndex(p => p._id === photo._id);
|
54
|
-
if (index !== -1) {
|
55
|
-
state.gallery[index] = response.data;
|
56
|
-
}
|
57
|
-
} catch (error) {
|
58
|
-
console.error(error);
|
59
|
-
}
|
60
|
-
},
|
61
|
-
|
62
|
-
|
63
|
-
async deletePhoto (photoId) {
|
64
|
-
try {
|
65
|
-
|
66
|
-
const response = await $axios.post(`/api/gallery/delete/${photoId}`);
|
67
|
-
const index = state.gallery.findIndex(p => p._id === photoId);
|
68
|
-
if (index !== -1) {
|
69
|
-
state.gallery.splice(index, 1);
|
70
|
-
}
|
71
|
-
} catch (error) {
|
72
|
-
console.error(error);
|
73
|
-
}
|
74
|
-
},
|
75
|
-
};
|
76
|
-
|
77
|
-
export {
|
78
|
-
state,
|
79
|
-
actions
|
80
|
-
};
|
5
|
+
export default gallery
|
@@ -24,7 +24,7 @@ const updateSearch = (search) => {
|
|
24
24
|
</script>
|
25
25
|
|
26
26
|
<template>
|
27
|
-
<div class="flex-v-center flex-nowrap flex pd-small bg-
|
27
|
+
<div class="flex-v-center flex-nowrap flex pd-small bg-light w-100 radius-big">
|
28
28
|
<IconSearch class="i-medium t-transp mn-r-thin" />
|
29
29
|
|
30
30
|
<Field
|
@@ -0,0 +1,77 @@
|
|
1
|
+
<script setup>
|
2
|
+
import { ref } from 'vue';
|
3
|
+
|
4
|
+
import Radio from "@pf/src/components/Radio/Radio.vue";
|
5
|
+
|
6
|
+
import ButtonSort from '@pf/src/modules/globals/components/elements/ButtonSort.vue'
|
7
|
+
import IconSort from '@pf/src/modules/icons/navigation/IconSort.vue'
|
8
|
+
|
9
|
+
const props = defineProps({
|
10
|
+
title: {
|
11
|
+
type: String,
|
12
|
+
default: 'Sorting Options'
|
13
|
+
},
|
14
|
+
options: {
|
15
|
+
type: Array,
|
16
|
+
default: [{
|
17
|
+
label: 'Date',
|
18
|
+
value: 'createdAt'
|
19
|
+
},{
|
20
|
+
label: 'Popularity',
|
21
|
+
value: 'popularity'
|
22
|
+
},{
|
23
|
+
label: 'Creator',
|
24
|
+
value: 'creator'
|
25
|
+
}]
|
26
|
+
}
|
27
|
+
});
|
28
|
+
|
29
|
+
const param = defineModel('param')
|
30
|
+
const order = defineModel('order')
|
31
|
+
</script>
|
32
|
+
|
33
|
+
<template>
|
34
|
+
<div class="w-100 o-hidden">
|
35
|
+
<h4 class="mn-b-thin">{{title}}</h4>
|
36
|
+
|
37
|
+
<Radio
|
38
|
+
v-for="option in options"
|
39
|
+
v-model:radio="param"
|
40
|
+
:label="option.label"
|
41
|
+
:value="option.value"
|
42
|
+
class="w-100 mn-b-thin"
|
43
|
+
/>
|
44
|
+
|
45
|
+
<div class="w-100 flex-nowrap flex gap-micro">
|
46
|
+
<button
|
47
|
+
@click.stop="() => order = 'asc'"
|
48
|
+
:class="{
|
49
|
+
'bg-white t-black': order === 'asc'
|
50
|
+
}"
|
51
|
+
class="radius-semi flex-center w-100 uppercase p-small flex-nowrap flex gap-thin pd-thin br-solid br-1px br-grey-transp-25 w-100"
|
52
|
+
>
|
53
|
+
<IconSort
|
54
|
+
:order="'asc'"
|
55
|
+
:fill="order === 'asc' ? 'rgb(var(--black))' : 'rgb(var(--white))'"
|
56
|
+
class="i-small"
|
57
|
+
/>
|
58
|
+
Ascending
|
59
|
+
</button>
|
60
|
+
|
61
|
+
<button
|
62
|
+
@click.stop="() => order = 'desc'"
|
63
|
+
:class="{
|
64
|
+
'bg-white t-black': order === 'desc'
|
65
|
+
}"
|
66
|
+
class="radius-semi flex-center w-100 uppercase p-small flex-nowrap flex gap-thin pd-thin br-solid br-1px br-grey-transp-25 w-100"
|
67
|
+
>
|
68
|
+
<IconSort
|
69
|
+
:order="'desc'"
|
70
|
+
:fill="order === 'desc' ? 'rgb(var(--black))' : 'rgb(var(--white))'"
|
71
|
+
class="i-small"
|
72
|
+
/>
|
73
|
+
Descending
|
74
|
+
</button>
|
75
|
+
</div>
|
76
|
+
</div>
|
77
|
+
</template>
|