@ozdao/prometheus-framework 0.2.112 → 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 +4 -4
- 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/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 +10 -10
- 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 +4 -4
- 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/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 +9 -9
- 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 +16 -16
- 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 +34 -34
- 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 +13 -10
- 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
@@ -0,0 +1,12 @@
|
|
1
|
+
"use strict";
|
2
|
+
var common_schema = function applyCommonSchema(schema, db) {
|
3
|
+
schema.add({
|
4
|
+
status: {
|
5
|
+
type: String,
|
6
|
+
enum: ["draft", "published", "featured", "archived", "removed"],
|
7
|
+
default: "draft",
|
8
|
+
required: true
|
9
|
+
}
|
10
|
+
});
|
11
|
+
};
|
12
|
+
exports.common_schema = common_schema;
|
@@ -0,0 +1,13 @@
|
|
1
|
+
var common_schema = function applyCommonSchema(schema, db) {
|
2
|
+
schema.add({
|
3
|
+
status: {
|
4
|
+
type: String,
|
5
|
+
enum: ["draft", "published", "featured", "archived", "removed"],
|
6
|
+
default: "draft",
|
7
|
+
required: true
|
8
|
+
}
|
9
|
+
});
|
10
|
+
};
|
11
|
+
export {
|
12
|
+
common_schema as c
|
13
|
+
};
|
package/dist/community.server.js
CHANGED
@@ -1,12 +1,14 @@
|
|
1
1
|
"use strict";
|
2
2
|
const _commonjsHelpers = require("./_commonjsHelpers-DHfMLFPC.js");
|
3
3
|
const require$$0 = require("mongoose");
|
4
|
-
const queryProcessor$3 = require("./queryProcessor-
|
4
|
+
const queryProcessor$3 = require("./queryProcessor-DWf9tsis.js");
|
5
5
|
require("util");
|
6
6
|
require("uuid");
|
7
7
|
const index = require("./index-BCCiEK_u.js");
|
8
|
-
const
|
8
|
+
const common_schema = require("./common.schema-BFhpUXUt.js");
|
9
|
+
const engagement_schema = require("./engagement.schema-fdLNO2_6.js");
|
9
10
|
const ownership_schema = require("./ownership.schema-DN0SlQL6.js");
|
11
|
+
const metadata_schema = require("./metadata.schema-6slGhpQS.js");
|
10
12
|
function getPeriodConditions(period) {
|
11
13
|
const currentDate = /* @__PURE__ */ new Date();
|
12
14
|
const startDate = /* @__PURE__ */ new Date();
|
@@ -594,8 +596,8 @@ var reactions_routes = function(app, db) {
|
|
594
596
|
controller.delete
|
595
597
|
);
|
596
598
|
};
|
597
|
-
const applyCommonSchema =
|
598
|
-
const applyEngagementSchema =
|
599
|
+
const applyCommonSchema = common_schema.common_schema;
|
600
|
+
const applyEngagementSchema = engagement_schema.engagement_schema;
|
599
601
|
const applyOwnershipSchema = ownership_schema.ownership_schema;
|
600
602
|
const applyMetadataSchema = metadata_schema.metadata_schema;
|
601
603
|
var blogpost_model = (db) => {
|
@@ -1,11 +1,13 @@
|
|
1
1
|
import { g as getDefaultExportFromCjs } from "./_commonjsHelpers-CUmg6egw.mjs";
|
2
2
|
import require$$0 from "mongoose";
|
3
|
-
import { q as queryProcessor$3 } from "./queryProcessor-
|
3
|
+
import { q as queryProcessor$3 } from "./queryProcessor-BJoJAetd.mjs";
|
4
4
|
import "util";
|
5
5
|
import "uuid";
|
6
6
|
import { s as server$1 } from "./index-B6a1mPgp.mjs";
|
7
|
-
import { c as common_schema
|
7
|
+
import { c as common_schema } from "./common.schema-ChBVARrs.mjs";
|
8
|
+
import { e as engagement_schema } from "./engagement.schema-CI2ifjXN.mjs";
|
8
9
|
import { o as ownership_schema } from "./ownership.schema-oyx6eNkZ.mjs";
|
10
|
+
import { m as metadata_schema } from "./metadata.schema-CK5e2O3f.mjs";
|
9
11
|
function getPeriodConditions(period) {
|
10
12
|
const currentDate = /* @__PURE__ */ new Date();
|
11
13
|
const startDate = /* @__PURE__ */ new Date();
|
@@ -0,0 +1,28 @@
|
|
1
|
+
var engagement_schema = function applyEngagementSchema(schema, db) {
|
2
|
+
schema.add({ views: { type: Number, default: 0 } });
|
3
|
+
schema.post("aggregate", async function(docs) {
|
4
|
+
if (docs.length === 0)
|
5
|
+
return;
|
6
|
+
console.log("Post-aggregate hook in engagement schema triggered");
|
7
|
+
const model = this._model;
|
8
|
+
if (!model) {
|
9
|
+
console.error("No model is associated with this schema!");
|
10
|
+
return;
|
11
|
+
}
|
12
|
+
try {
|
13
|
+
await updateDocumentViews(docs, model);
|
14
|
+
} catch (error) {
|
15
|
+
console.error("Error updating views:", error);
|
16
|
+
}
|
17
|
+
});
|
18
|
+
async function updateDocumentViews(docs, model) {
|
19
|
+
const updateViewsPromises = docs.map((doc) => model.findOneAndUpdate(
|
20
|
+
{ _id: doc._id },
|
21
|
+
{ $inc: { views: 1 } }
|
22
|
+
).exec());
|
23
|
+
await Promise.all(updateViewsPromises);
|
24
|
+
}
|
25
|
+
};
|
26
|
+
export {
|
27
|
+
engagement_schema as e
|
28
|
+
};
|
@@ -0,0 +1,27 @@
|
|
1
|
+
"use strict";
|
2
|
+
var engagement_schema = function applyEngagementSchema(schema, db) {
|
3
|
+
schema.add({ views: { type: Number, default: 0 } });
|
4
|
+
schema.post("aggregate", async function(docs) {
|
5
|
+
if (docs.length === 0)
|
6
|
+
return;
|
7
|
+
console.log("Post-aggregate hook in engagement schema triggered");
|
8
|
+
const model = this._model;
|
9
|
+
if (!model) {
|
10
|
+
console.error("No model is associated with this schema!");
|
11
|
+
return;
|
12
|
+
}
|
13
|
+
try {
|
14
|
+
await updateDocumentViews(docs, model);
|
15
|
+
} catch (error) {
|
16
|
+
console.error("Error updating views:", error);
|
17
|
+
}
|
18
|
+
});
|
19
|
+
async function updateDocumentViews(docs, model) {
|
20
|
+
const updateViewsPromises = docs.map((doc) => model.findOneAndUpdate(
|
21
|
+
{ _id: doc._id },
|
22
|
+
{ $inc: { views: 1 } }
|
23
|
+
).exec());
|
24
|
+
await Promise.all(updateViewsPromises);
|
25
|
+
}
|
26
|
+
};
|
27
|
+
exports.engagement_schema = engagement_schema;
|
package/dist/events.server.js
CHANGED
@@ -2,11 +2,13 @@
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
3
3
|
const _commonjsHelpers = require("./_commonjsHelpers-DHfMLFPC.js");
|
4
4
|
const require$$0 = require("mongoose");
|
5
|
-
const queryProcessor$2 = require("./queryProcessor-
|
6
|
-
const metadata_schema = require("./metadata.schema-
|
5
|
+
const queryProcessor$2 = require("./queryProcessor-DWf9tsis.js");
|
6
|
+
const metadata_schema = require("./metadata.schema-6slGhpQS.js");
|
7
7
|
const require$$1 = require("stripe");
|
8
8
|
const index = require("./index-BCCiEK_u.js");
|
9
9
|
const tickets_controller = require("./tickets.controller-WaQ4qMpv.js");
|
10
|
+
const common_schema = require("./common.schema-BFhpUXUt.js");
|
11
|
+
const engagement_schema = require("./engagement.schema-fdLNO2_6.js");
|
10
12
|
const ownership_schema = require("./ownership.schema-DN0SlQL6.js");
|
11
13
|
const ObjectId = require$$0.Types.ObjectId;
|
12
14
|
function getDateConditions(date) {
|
@@ -693,8 +695,8 @@ var tickets_routes = function(app, db, origins, publicPath) {
|
|
693
695
|
);
|
694
696
|
};
|
695
697
|
const tickets_routes$1 = /* @__PURE__ */ _commonjsHelpers.getDefaultExportFromCjs(tickets_routes);
|
696
|
-
const applyCommonSchema =
|
697
|
-
const applyEngagementSchema =
|
698
|
+
const applyCommonSchema = common_schema.common_schema;
|
699
|
+
const applyEngagementSchema = engagement_schema.engagement_schema;
|
698
700
|
const applyOwnershipSchema = ownership_schema.ownership_schema;
|
699
701
|
const applyMetadataSchema = metadata_schema.metadata_schema;
|
700
702
|
var event_model = (db) => {
|
package/dist/events.server.mjs
CHANGED
@@ -1,10 +1,12 @@
|
|
1
1
|
import { g as getDefaultExportFromCjs } from "./_commonjsHelpers-CUmg6egw.mjs";
|
2
2
|
import require$$0 from "mongoose";
|
3
|
-
import { q as queryProcessor$2 } from "./queryProcessor-
|
4
|
-
import { s as seoFriendlyUrl,
|
3
|
+
import { q as queryProcessor$2 } from "./queryProcessor-BJoJAetd.mjs";
|
4
|
+
import { s as seoFriendlyUrl, m as metadata_schema } from "./metadata.schema-CK5e2O3f.mjs";
|
5
5
|
import require$$1 from "stripe";
|
6
6
|
import { s as server$1 } from "./index-B6a1mPgp.mjs";
|
7
7
|
import { t as tickets_controller } from "./tickets.controller-ByZ33N6_.mjs";
|
8
|
+
import { c as common_schema } from "./common.schema-ChBVARrs.mjs";
|
9
|
+
import { e as engagement_schema } from "./engagement.schema-CI2ifjXN.mjs";
|
8
10
|
import { o as ownership_schema } from "./ownership.schema-oyx6eNkZ.mjs";
|
9
11
|
const ObjectId = require$$0.Types.ObjectId;
|
10
12
|
function getDateConditions(date) {
|
package/dist/files.server.js
CHANGED
@@ -6,18 +6,18 @@ const require$$0$1 = require("sharp");
|
|
6
6
|
const require$$1 = require("fs");
|
7
7
|
const require$$2 = require("fs/promises");
|
8
8
|
const require$$4 = require("busboy");
|
9
|
-
const path = require$$0;
|
10
9
|
const controllerFactory$1 = (db, publicPath) => {
|
11
10
|
const uploadMultipleFileController = async (req, res, next) => {
|
12
|
-
console.log("uploadMultipleFileController called");
|
13
|
-
console.log("Files received:", req.files ? req.files.length : 0);
|
14
11
|
if (!req.files || req.files.length === 0) {
|
15
12
|
return res.status(400).send({ message: "No files uploaded." });
|
16
13
|
}
|
17
|
-
const convertToRelativePath = (absolutePath
|
18
|
-
|
14
|
+
const convertToRelativePath = (absolutePath) => {
|
15
|
+
if (!absolutePath.startsWith("/")) {
|
16
|
+
absolutePath = "/" + absolutePath;
|
17
|
+
}
|
18
|
+
return absolutePath;
|
19
19
|
};
|
20
|
-
req.files = req.files.map((file) => convertToRelativePath(file
|
20
|
+
req.files = req.files.map((file) => convertToRelativePath(file));
|
21
21
|
try {
|
22
22
|
const fileResponses = req.files.map((file) => ({
|
23
23
|
message: "File uploaded successfully.",
|
@@ -43,12 +43,22 @@ function requireMiddlewareBusboy() {
|
|
43
43
|
const sharp = require$$0$1;
|
44
44
|
const fs = require$$1;
|
45
45
|
const fsp = require$$2;
|
46
|
-
const
|
46
|
+
const path = require$$0;
|
47
47
|
const busboy = require$$4;
|
48
|
+
const convertToJpg = async (filePath) => {
|
49
|
+
const metadata = await sharp(filePath).metadata();
|
50
|
+
if (metadata.format === "heic" || metadata.format === "heif" || metadata.format === "tiff" || metadata.format === "bmp") {
|
51
|
+
const jpgPath = filePath.replace(/\.[^.]+$/, ".jpg");
|
52
|
+
await sharp(filePath).toFormat("jpeg").toFile(jpgPath);
|
53
|
+
await fsp.unlink(filePath);
|
54
|
+
filePath = jpgPath;
|
55
|
+
}
|
56
|
+
return filePath;
|
57
|
+
};
|
48
58
|
const createThumbnail = async (originalPath) => {
|
49
|
-
const thumbnailPath =
|
50
|
-
|
51
|
-
"thumbnail_" +
|
59
|
+
const thumbnailPath = path.join(
|
60
|
+
path.dirname(originalPath),
|
61
|
+
"thumbnail_" + path.basename(originalPath)
|
52
62
|
);
|
53
63
|
try {
|
54
64
|
const metadata = await sharp(originalPath).metadata();
|
@@ -63,12 +73,10 @@ function requireMiddlewareBusboy() {
|
|
63
73
|
}
|
64
74
|
};
|
65
75
|
const handleFileUpload = (req, res, next, publicPath, { folderNameDefault = "unsorted", maxSize = 10 * 1024 * 1024, allowedTypes = null }) => {
|
66
|
-
console.log("handleFileUpload middleware called");
|
67
|
-
console.log("Options:" + folderNameDefault + maxSize + allowedTypes);
|
68
76
|
let folderName = req.query.folderName || folderNameDefault;
|
69
77
|
folderName = decodeURIComponent(folderName);
|
70
78
|
folderName = folderName.startsWith("/") ? folderName : "/" + folderName;
|
71
|
-
const filePath =
|
79
|
+
const filePath = path.join(publicPath, folderName);
|
72
80
|
let files = [];
|
73
81
|
let filesWrongSize = [];
|
74
82
|
let filesWrongType = [];
|
@@ -90,11 +98,11 @@ function requireMiddlewareBusboy() {
|
|
90
98
|
return filename.replace(/\s/g, "_").replace(/[^a-zA-Z0-9-_\.]/g, "").slice(0, 80);
|
91
99
|
};
|
92
100
|
const fileName = `${Math.floor(Math.random() * 1e4)}-${normalizeFileName(info.filename)}`;
|
93
|
-
|
94
|
-
const fileProcess = fsp.mkdir(
|
101
|
+
let fileFullPath = path.join(filePath, fileName);
|
102
|
+
const fileProcess = fsp.mkdir(path.dirname(fileFullPath), { recursive: true }).then(() => new Promise((resolve, reject) => {
|
95
103
|
const stream = file.pipe(fs.createWriteStream(fileFullPath));
|
96
|
-
stream.on("finish", () => {
|
97
|
-
files.push(
|
104
|
+
stream.on("finish", async () => {
|
105
|
+
files.push(path.relative(publicPath, fileFullPath));
|
98
106
|
resolve();
|
99
107
|
});
|
100
108
|
stream.on("error", reject);
|
@@ -130,37 +138,79 @@ function requireMiddlewareBusboy() {
|
|
130
138
|
const middlewareFactory = (db, publicPath) => {
|
131
139
|
const generatePreviewMiddleware = async (req, res, next) => {
|
132
140
|
const files = req.files;
|
141
|
+
if (!files || files.length === 0) {
|
142
|
+
return next();
|
143
|
+
}
|
133
144
|
try {
|
134
|
-
await Promise.all(files.map((file) => createThumbnail(
|
145
|
+
await Promise.all(files.map((file) => createThumbnail(path.join(publicPath, file))));
|
135
146
|
} catch (error) {
|
136
147
|
console.error("Error generating previews:", error);
|
137
148
|
return res.status(500).json({ message: "Internal server error while generating previews." });
|
138
149
|
}
|
139
150
|
next();
|
140
151
|
};
|
152
|
+
const convertImagesMiddleware = async (req, res, next) => {
|
153
|
+
const files = req.files;
|
154
|
+
if (!files || files.length === 0) {
|
155
|
+
return next();
|
156
|
+
}
|
157
|
+
try {
|
158
|
+
req.files = await Promise.all(files.map(async (file) => {
|
159
|
+
const convertedPath = await convertToJpg(path.join(publicPath, file));
|
160
|
+
return path.relative(publicPath, convertedPath);
|
161
|
+
}));
|
162
|
+
next();
|
163
|
+
} catch (error) {
|
164
|
+
console.error("Error converting images or generating previews:", error);
|
165
|
+
return res.status(500).json({ message: "Internal server error while processing images." });
|
166
|
+
}
|
167
|
+
};
|
141
168
|
const uploadFilesMiddleware = (req, res, next) => {
|
142
169
|
const allowedTypes = [
|
143
170
|
"image/png",
|
144
171
|
"image/jpeg",
|
145
172
|
"image/jpg",
|
146
173
|
"image/gif",
|
174
|
+
"image/heic",
|
175
|
+
"image/heif",
|
176
|
+
"image/webp",
|
177
|
+
"image/tiff",
|
178
|
+
"image/bmp",
|
147
179
|
"application/pdf",
|
148
180
|
"image/svg+xml",
|
149
181
|
"video/mp4",
|
150
182
|
"video/quicktime",
|
151
|
-
// MOV
|
152
183
|
"video/webm"
|
153
184
|
];
|
154
|
-
handleFileUpload(req, res, next, publicPath, {
|
185
|
+
handleFileUpload(req, res, next, publicPath, {
|
186
|
+
folderNameDefault: "unsorted",
|
187
|
+
maxSize: 100 * 1024 * 1024,
|
188
|
+
allowedTypes
|
189
|
+
});
|
155
190
|
};
|
156
191
|
const uploadImagesMiddleware = (req, res, next) => {
|
157
|
-
const allowedTypes = [
|
158
|
-
|
192
|
+
const allowedTypes = [
|
193
|
+
"image/png",
|
194
|
+
"image/jpeg",
|
195
|
+
"image/jpg",
|
196
|
+
"image/gif",
|
197
|
+
"image/heic",
|
198
|
+
"image/heif",
|
199
|
+
"image/webp",
|
200
|
+
"image/tiff",
|
201
|
+
"image/bmp"
|
202
|
+
];
|
203
|
+
handleFileUpload(req, res, next, publicPath, {
|
204
|
+
folderNameDefault: "unsorted",
|
205
|
+
maxSize: 10 * 1024 * 1024,
|
206
|
+
allowedTypes
|
207
|
+
});
|
159
208
|
};
|
160
209
|
return {
|
161
210
|
uploadImagesMiddleware,
|
162
211
|
uploadFilesMiddleware,
|
163
|
-
generatePreviewMiddleware
|
212
|
+
generatePreviewMiddleware,
|
213
|
+
convertImagesMiddleware
|
164
214
|
};
|
165
215
|
};
|
166
216
|
middlewareBusboy = middlewareFactory;
|
@@ -177,29 +227,31 @@ const controllerFactory = files_controller;
|
|
177
227
|
const middlewareFactoryGlobal = index.server;
|
178
228
|
const middlewareFactoryFiles = server;
|
179
229
|
var files_routes = function(app, db, origins, publicPath) {
|
180
|
-
const controller = controllerFactory(
|
230
|
+
const controller = controllerFactory();
|
181
231
|
middlewareFactoryGlobal(db);
|
182
232
|
const { middlewareBusboy: middlewareBusboy2 } = middlewareFactoryFiles(db, publicPath);
|
183
233
|
app.post(
|
184
234
|
"/api/upload/image",
|
185
235
|
[
|
186
236
|
middlewareBusboy2.uploadImagesMiddleware,
|
237
|
+
middlewareBusboy2.convertImagesMiddleware,
|
187
238
|
middlewareBusboy2.generatePreviewMiddleware
|
188
239
|
],
|
189
240
|
controller.uploadMultipleFileController
|
190
241
|
);
|
191
242
|
app.post(
|
192
|
-
"/api/upload/
|
243
|
+
"/api/upload/multiple",
|
193
244
|
[
|
194
|
-
middlewareBusboy2.
|
245
|
+
middlewareBusboy2.uploadImagesMiddleware,
|
246
|
+
middlewareBusboy2.convertImagesMiddleware,
|
247
|
+
middlewareBusboy2.generatePreviewMiddleware
|
195
248
|
],
|
196
249
|
controller.uploadMultipleFileController
|
197
250
|
);
|
198
251
|
app.post(
|
199
|
-
"/api/upload/
|
252
|
+
"/api/upload/file",
|
200
253
|
[
|
201
|
-
middlewareBusboy2.
|
202
|
-
middlewareBusboy2.generatePreviewMiddleware
|
254
|
+
middlewareBusboy2.uploadFilesMiddleware
|
203
255
|
],
|
204
256
|
controller.uploadMultipleFileController
|
205
257
|
);
|
package/dist/files.server.mjs
CHANGED
@@ -5,18 +5,18 @@ import require$$0$1 from "sharp";
|
|
5
5
|
import require$$1 from "fs";
|
6
6
|
import require$$2 from "fs/promises";
|
7
7
|
import require$$4 from "busboy";
|
8
|
-
const path = require$$0;
|
9
8
|
const controllerFactory$1 = (db, publicPath) => {
|
10
9
|
const uploadMultipleFileController = async (req, res, next) => {
|
11
|
-
console.log("uploadMultipleFileController called");
|
12
|
-
console.log("Files received:", req.files ? req.files.length : 0);
|
13
10
|
if (!req.files || req.files.length === 0) {
|
14
11
|
return res.status(400).send({ message: "No files uploaded." });
|
15
12
|
}
|
16
|
-
const convertToRelativePath = (absolutePath
|
17
|
-
|
13
|
+
const convertToRelativePath = (absolutePath) => {
|
14
|
+
if (!absolutePath.startsWith("/")) {
|
15
|
+
absolutePath = "/" + absolutePath;
|
16
|
+
}
|
17
|
+
return absolutePath;
|
18
18
|
};
|
19
|
-
req.files = req.files.map((file) => convertToRelativePath(file
|
19
|
+
req.files = req.files.map((file) => convertToRelativePath(file));
|
20
20
|
try {
|
21
21
|
const fileResponses = req.files.map((file) => ({
|
22
22
|
message: "File uploaded successfully.",
|
@@ -42,12 +42,22 @@ function requireMiddlewareBusboy() {
|
|
42
42
|
const sharp = require$$0$1;
|
43
43
|
const fs = require$$1;
|
44
44
|
const fsp = require$$2;
|
45
|
-
const
|
45
|
+
const path = require$$0;
|
46
46
|
const busboy = require$$4;
|
47
|
+
const convertToJpg = async (filePath) => {
|
48
|
+
const metadata = await sharp(filePath).metadata();
|
49
|
+
if (metadata.format === "heic" || metadata.format === "heif" || metadata.format === "tiff" || metadata.format === "bmp") {
|
50
|
+
const jpgPath = filePath.replace(/\.[^.]+$/, ".jpg");
|
51
|
+
await sharp(filePath).toFormat("jpeg").toFile(jpgPath);
|
52
|
+
await fsp.unlink(filePath);
|
53
|
+
filePath = jpgPath;
|
54
|
+
}
|
55
|
+
return filePath;
|
56
|
+
};
|
47
57
|
const createThumbnail = async (originalPath) => {
|
48
|
-
const thumbnailPath =
|
49
|
-
|
50
|
-
"thumbnail_" +
|
58
|
+
const thumbnailPath = path.join(
|
59
|
+
path.dirname(originalPath),
|
60
|
+
"thumbnail_" + path.basename(originalPath)
|
51
61
|
);
|
52
62
|
try {
|
53
63
|
const metadata = await sharp(originalPath).metadata();
|
@@ -62,12 +72,10 @@ function requireMiddlewareBusboy() {
|
|
62
72
|
}
|
63
73
|
};
|
64
74
|
const handleFileUpload = (req, res, next, publicPath, { folderNameDefault = "unsorted", maxSize = 10 * 1024 * 1024, allowedTypes = null }) => {
|
65
|
-
console.log("handleFileUpload middleware called");
|
66
|
-
console.log("Options:" + folderNameDefault + maxSize + allowedTypes);
|
67
75
|
let folderName = req.query.folderName || folderNameDefault;
|
68
76
|
folderName = decodeURIComponent(folderName);
|
69
77
|
folderName = folderName.startsWith("/") ? folderName : "/" + folderName;
|
70
|
-
const filePath =
|
78
|
+
const filePath = path.join(publicPath, folderName);
|
71
79
|
let files = [];
|
72
80
|
let filesWrongSize = [];
|
73
81
|
let filesWrongType = [];
|
@@ -89,11 +97,11 @@ function requireMiddlewareBusboy() {
|
|
89
97
|
return filename.replace(/\s/g, "_").replace(/[^a-zA-Z0-9-_\.]/g, "").slice(0, 80);
|
90
98
|
};
|
91
99
|
const fileName = `${Math.floor(Math.random() * 1e4)}-${normalizeFileName(info.filename)}`;
|
92
|
-
|
93
|
-
const fileProcess = fsp.mkdir(
|
100
|
+
let fileFullPath = path.join(filePath, fileName);
|
101
|
+
const fileProcess = fsp.mkdir(path.dirname(fileFullPath), { recursive: true }).then(() => new Promise((resolve, reject) => {
|
94
102
|
const stream = file.pipe(fs.createWriteStream(fileFullPath));
|
95
|
-
stream.on("finish", () => {
|
96
|
-
files.push(
|
103
|
+
stream.on("finish", async () => {
|
104
|
+
files.push(path.relative(publicPath, fileFullPath));
|
97
105
|
resolve();
|
98
106
|
});
|
99
107
|
stream.on("error", reject);
|
@@ -129,37 +137,79 @@ function requireMiddlewareBusboy() {
|
|
129
137
|
const middlewareFactory = (db, publicPath) => {
|
130
138
|
const generatePreviewMiddleware = async (req, res, next) => {
|
131
139
|
const files = req.files;
|
140
|
+
if (!files || files.length === 0) {
|
141
|
+
return next();
|
142
|
+
}
|
132
143
|
try {
|
133
|
-
await Promise.all(files.map((file) => createThumbnail(
|
144
|
+
await Promise.all(files.map((file) => createThumbnail(path.join(publicPath, file))));
|
134
145
|
} catch (error) {
|
135
146
|
console.error("Error generating previews:", error);
|
136
147
|
return res.status(500).json({ message: "Internal server error while generating previews." });
|
137
148
|
}
|
138
149
|
next();
|
139
150
|
};
|
151
|
+
const convertImagesMiddleware = async (req, res, next) => {
|
152
|
+
const files = req.files;
|
153
|
+
if (!files || files.length === 0) {
|
154
|
+
return next();
|
155
|
+
}
|
156
|
+
try {
|
157
|
+
req.files = await Promise.all(files.map(async (file) => {
|
158
|
+
const convertedPath = await convertToJpg(path.join(publicPath, file));
|
159
|
+
return path.relative(publicPath, convertedPath);
|
160
|
+
}));
|
161
|
+
next();
|
162
|
+
} catch (error) {
|
163
|
+
console.error("Error converting images or generating previews:", error);
|
164
|
+
return res.status(500).json({ message: "Internal server error while processing images." });
|
165
|
+
}
|
166
|
+
};
|
140
167
|
const uploadFilesMiddleware = (req, res, next) => {
|
141
168
|
const allowedTypes = [
|
142
169
|
"image/png",
|
143
170
|
"image/jpeg",
|
144
171
|
"image/jpg",
|
145
172
|
"image/gif",
|
173
|
+
"image/heic",
|
174
|
+
"image/heif",
|
175
|
+
"image/webp",
|
176
|
+
"image/tiff",
|
177
|
+
"image/bmp",
|
146
178
|
"application/pdf",
|
147
179
|
"image/svg+xml",
|
148
180
|
"video/mp4",
|
149
181
|
"video/quicktime",
|
150
|
-
// MOV
|
151
182
|
"video/webm"
|
152
183
|
];
|
153
|
-
handleFileUpload(req, res, next, publicPath, {
|
184
|
+
handleFileUpload(req, res, next, publicPath, {
|
185
|
+
folderNameDefault: "unsorted",
|
186
|
+
maxSize: 100 * 1024 * 1024,
|
187
|
+
allowedTypes
|
188
|
+
});
|
154
189
|
};
|
155
190
|
const uploadImagesMiddleware = (req, res, next) => {
|
156
|
-
const allowedTypes = [
|
157
|
-
|
191
|
+
const allowedTypes = [
|
192
|
+
"image/png",
|
193
|
+
"image/jpeg",
|
194
|
+
"image/jpg",
|
195
|
+
"image/gif",
|
196
|
+
"image/heic",
|
197
|
+
"image/heif",
|
198
|
+
"image/webp",
|
199
|
+
"image/tiff",
|
200
|
+
"image/bmp"
|
201
|
+
];
|
202
|
+
handleFileUpload(req, res, next, publicPath, {
|
203
|
+
folderNameDefault: "unsorted",
|
204
|
+
maxSize: 10 * 1024 * 1024,
|
205
|
+
allowedTypes
|
206
|
+
});
|
158
207
|
};
|
159
208
|
return {
|
160
209
|
uploadImagesMiddleware,
|
161
210
|
uploadFilesMiddleware,
|
162
|
-
generatePreviewMiddleware
|
211
|
+
generatePreviewMiddleware,
|
212
|
+
convertImagesMiddleware
|
163
213
|
};
|
164
214
|
};
|
165
215
|
middlewareBusboy = middlewareFactory;
|
@@ -176,29 +226,31 @@ const controllerFactory = files_controller;
|
|
176
226
|
const middlewareFactoryGlobal = server$1;
|
177
227
|
const middlewareFactoryFiles = server;
|
178
228
|
var files_routes = function(app, db, origins, publicPath) {
|
179
|
-
const controller = controllerFactory(
|
229
|
+
const controller = controllerFactory();
|
180
230
|
middlewareFactoryGlobal(db);
|
181
231
|
const { middlewareBusboy: middlewareBusboy2 } = middlewareFactoryFiles(db, publicPath);
|
182
232
|
app.post(
|
183
233
|
"/api/upload/image",
|
184
234
|
[
|
185
235
|
middlewareBusboy2.uploadImagesMiddleware,
|
236
|
+
middlewareBusboy2.convertImagesMiddleware,
|
186
237
|
middlewareBusboy2.generatePreviewMiddleware
|
187
238
|
],
|
188
239
|
controller.uploadMultipleFileController
|
189
240
|
);
|
190
241
|
app.post(
|
191
|
-
"/api/upload/
|
242
|
+
"/api/upload/multiple",
|
192
243
|
[
|
193
|
-
middlewareBusboy2.
|
244
|
+
middlewareBusboy2.uploadImagesMiddleware,
|
245
|
+
middlewareBusboy2.convertImagesMiddleware,
|
246
|
+
middlewareBusboy2.generatePreviewMiddleware
|
194
247
|
],
|
195
248
|
controller.uploadMultipleFileController
|
196
249
|
);
|
197
250
|
app.post(
|
198
|
-
"/api/upload/
|
251
|
+
"/api/upload/file",
|
199
252
|
[
|
200
|
-
middlewareBusboy2.
|
201
|
-
middlewareBusboy2.generatePreviewMiddleware
|
253
|
+
middlewareBusboy2.uploadFilesMiddleware
|
202
254
|
],
|
203
255
|
controller.uploadMultipleFileController
|
204
256
|
);
|