@ozdao/prometheus-framework 0.1.36 → 0.1.37
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/BackofficeGallery-568b55bb.js +1 -0
- package/dist/BackofficeGallery-b4105137.mjs +306 -0
- package/dist/BlockTags-8cddaef7.js +1 -0
- package/dist/BlockTags-ee310572.mjs +853 -0
- package/dist/Breadcrumbs.vue_vue_type_style_index_0_lang-0ea8fbf8.js +1 -0
- package/dist/Breadcrumbs.vue_vue_type_style_index_0_lang-4ed993c7.mjs +1 -0
- package/dist/Button-7643c9aa.js +1 -0
- package/dist/Button-9e1a9284.mjs +226 -0
- package/dist/ButtonToggleMembership-15f149cb.js +1 -0
- package/dist/ButtonToggleMembership-3bb9139e.mjs +90 -0
- package/dist/CardBlogpost-38016b80.mjs +246 -0
- package/dist/CardBlogpost-cc208f93.js +1 -0
- package/dist/CardOrganization-d93c9bdb.js +1 -0
- package/dist/CardOrganization-e920be73.mjs +234 -0
- package/dist/CardProduct-92affca1.js +1 -0
- package/dist/CardProduct-fca53299.mjs +193 -0
- package/dist/Checkbox-5dbe7b23.mjs +62 -0
- package/dist/Checkbox-76f09248.js +1 -0
- package/dist/Chips-9d81b215.mjs +214 -0
- package/dist/Chips-d47704e6.js +1 -0
- package/dist/Community-87522a04.mjs +132 -0
- package/dist/Community-aef23aee.js +1 -0
- package/dist/Dashboard-91d73bc5.js +1 -0
- package/dist/Dashboard-ea9035bc.mjs +152 -0
- package/dist/Dropdown-31115457.js +1 -0
- package/dist/Dropdown-cab3605b.mjs +146 -0
- package/dist/EULA-aba6a807.js +1 -0
- package/dist/EditOrder-94bbebff.mjs +221 -0
- package/dist/EditOrder-c070d474.js +1 -0
- package/dist/EmptyState-d65bab5b.js +1 -0
- package/dist/EmptyState-e404b05d.mjs +36 -0
- package/dist/Events-cdfbca78.js +1 -0
- package/dist/Events-e9dd58f7.mjs +123 -0
- package/dist/Feed-22464fcd.js +1 -0
- package/dist/Feed-6e96d3dd.mjs +124 -0
- package/dist/Feed-793b3eef.mjs +146 -0
- package/dist/Feed-7b80704d.mjs +361 -0
- package/dist/Feed-98b47c6f.js +1 -0
- package/dist/Feed-b30ef609.js +1 -0
- package/dist/Feed-c5d4390a.js +1 -0
- package/dist/Feed-d114330c.mjs +112 -0
- package/dist/Field-e2a43424.js +1 -0
- package/dist/Field-e5ad88d3.mjs +75 -0
- package/dist/Field.vue_vue_type_style_index_0_scoped_f4a29b0d_lang-0ea8fbf8.js +1 -0
- package/dist/Field.vue_vue_type_style_index_0_scoped_f4a29b0d_lang-4ed993c7.mjs +1 -0
- package/dist/IconChevronRight-a55f838e.js +1 -0
- package/dist/IconChevronRight-fae9d012.mjs +28 -0
- package/dist/IconCommunity-468dc457.mjs +65 -0
- package/dist/IconCommunity-b339e806.js +1 -0
- package/dist/IconCross-5bf93179.js +1 -0
- package/dist/IconCross-84cb1292.mjs +28 -0
- package/dist/IconEdit-9edfd74d.mjs +21 -0
- package/dist/IconEdit-c0469b45.js +1 -0
- package/dist/Image-245c003d.mjs +480 -0
- package/dist/Image-35d31936.js +9 -0
- package/dist/LabelGooglePlay-24feb437.mjs +31 -0
- package/dist/LabelGooglePlay-f80e5ff0.js +1 -0
- package/dist/LeftoverAdd-08d9fb54.mjs +228 -0
- package/dist/LeftoverAdd-fc673884.js +1 -0
- package/dist/Leftovers-296c0042.js +1 -0
- package/dist/Leftovers-685d9f19.mjs +136 -0
- package/dist/Loader-21f016da.js +1 -0
- package/dist/Loader-cd422786.mjs +41 -0
- package/dist/Loader.vue_vue_type_style_index_0_lang-0ea8fbf8.js +1 -0
- package/dist/Loader.vue_vue_type_style_index_0_lang-4ed993c7.mjs +1 -0
- package/dist/Members-2cb2ff58.mjs +114 -0
- package/dist/Members-85534d1f.js +1 -0
- package/dist/Menu-b5d6a0c7.js +1 -0
- package/dist/Menu-dd7645c1.mjs +13 -0
- package/dist/MenuItem-56ae7f94.js +1 -0
- package/dist/MenuItem-6296d02f.mjs +63 -0
- package/dist/Orders-b64e8cb9.js +1 -0
- package/dist/Orders-ff30db05.mjs +75 -0
- package/dist/Organizations-0cb37d68.js +1 -0
- package/dist/Organizations-d6ef2113.mjs +73 -0
- package/dist/Payments-53e5fecf.js +1 -0
- package/dist/Payments-82e545e1.mjs +87 -0
- package/dist/PlaceholderUserpic-47f6f319.js +1 -0
- package/dist/Popup-0915427c.mjs +74 -0
- package/dist/Popup-795f5c88.js +1 -0
- package/dist/Popup.vue_vue_type_style_index_0_lang-0ea8fbf8.js +1 -0
- package/dist/Popup.vue_vue_type_style_index_0_lang-4ed993c7.mjs +1 -0
- package/dist/Product-5994a8c9.mjs +653 -0
- package/dist/Product-68fa1e9e.js +7 -0
- package/dist/ProductEdit-64207814.mjs +296 -0
- package/dist/ProductEdit-a434240f.js +1 -0
- package/dist/ProductsBackoffice-0c93f9b6.js +1 -0
- package/dist/ProductsBackoffice-3d987c60.mjs +86 -0
- package/dist/ProfileBlogposts-0b81d964.js +1 -0
- package/dist/ProfileBlogposts-b59992cf.mjs +79 -0
- package/dist/ProfileEvents-3f7ca2c1.js +1 -0
- package/dist/ProfileEvents-bbdd62e7.mjs +70 -0
- package/dist/ProfileOrganizations-4734c02e.mjs +73 -0
- package/dist/ProfileOrganizations-d55ee487.js +1 -0
- package/dist/Publics-0762210a.js +1 -0
- package/dist/Publics-660e851c.mjs +45 -0
- package/dist/SelectMulti-58704d69.mjs +1038 -0
- package/dist/SelectMulti-c25765cf.js +1 -0
- package/dist/SkeletonBlogpost-95db0fa9.js +1 -0
- package/dist/SkeletonBlogpost-e0621af7.mjs +16 -0
- package/dist/SkeletonEvent-8690422d.mjs +16 -0
- package/dist/SkeletonEvent-eb284de8.js +1 -0
- package/dist/SkeletonEventShort-6c9e3940.js +1 -0
- package/dist/SkeletonEventShort-f030e56f.mjs +16 -0
- package/dist/SkeletonOrganization-5c09cfc5.js +1 -0
- package/dist/SkeletonOrganization-8690422d.mjs +16 -0
- package/dist/Socials-31c06635.mjs +74 -0
- package/dist/Socials-cceaeaf2.js +1 -0
- package/dist/Tab-054b61f7.mjs +46 -0
- package/dist/Tab-2c1e4224.js +1 -0
- package/dist/Tab.vue_vue_type_style_index_0_lang-0ea8fbf8.js +1 -0
- package/dist/Tab.vue_vue_type_style_index_0_lang-4ed993c7.mjs +1 -0
- package/dist/addMembersQuantity-7147aa4a.js +89 -0
- package/dist/addMembersQuantity-eac999f0.mjs +90 -0
- package/dist/auth-06d35b82.js +7 -0
- package/dist/auth-ec618cb3.mjs +627 -0
- package/dist/auth.client.cjs +7 -7
- package/dist/auth.client.js +22 -19
- package/dist/auth.server.js +1 -1
- package/dist/auth.server.mjs +1 -1
- package/dist/auth.validation-0ce9e326.js +1 -0
- package/dist/auth.validation-ba3606bf.mjs +24 -0
- package/dist/backoffice.client.cjs +1 -1
- package/dist/backoffice.client.js +235 -59
- package/dist/categories-82b28618.js +1 -0
- package/dist/categories-df3240a7.mjs +122 -0
- package/dist/community.client.cjs +1 -1
- package/dist/community.client.js +233 -227
- package/dist/community.server.js +217 -189
- package/dist/community.server.mjs +217 -189
- package/dist/components/Field/Field.vue.d.ts +58 -2
- package/dist/components/Field/Field.vue.d.ts.map +1 -1
- package/dist/components/UploadImage/UploadImage.vue.d.ts +1 -1
- package/dist/dribbble-8e8e169b.js +1 -0
- package/dist/dribbble-ae37c2ac.mjs +127 -0
- package/dist/events.client.cjs +2 -2
- package/dist/events.client.js +1793 -1888
- package/dist/events.server.js +100 -210
- package/dist/events.server.mjs +100 -210
- package/dist/globals.server.js +1 -1
- package/dist/globals.server.mjs +1 -1
- package/dist/icons.client.cjs +1 -0
- package/dist/icons.client.js +84 -0
- package/dist/inputs.validation-d7cef32b.js +1 -0
- package/dist/inputs.validation-db65277a.mjs +83 -0
- package/dist/landing.client.cjs +1 -1
- package/dist/landing.client.js +40 -64
- package/dist/leftovers-66951de6.js +1 -0
- package/dist/leftovers-be37c7a5.mjs +67 -0
- package/dist/legal.client.cjs +1 -1
- package/dist/legal.client.js +7 -4
- package/dist/mailing-76895d59.mjs +50 -0
- package/dist/mailing-9659b3c4.js +49 -0
- package/dist/main.css +1 -1
- package/dist/memberships-12210953.mjs +68 -0
- package/dist/memberships-393765d8.js +1 -0
- package/dist/metadata.schema-147f9902.mjs +212 -0
- package/dist/metadata.schema-93397f9f.js +211 -0
- package/dist/metadata.schema-a539dd65.mjs +210 -0
- package/dist/metadata.schema-e4fe5c57.js +209 -0
- package/dist/modules/community/components/blocks/FooterBlogpost.vue.d.ts +1 -1
- package/dist/modules/community/components/sections/Feed.vue.d.ts +4 -3
- package/dist/modules/events/components/sections/Feed.vue.d.ts +4 -4
- package/dist/modules/events/components/sections/List.vue.d.ts +3 -3
- package/dist/modules/globals/components/blocks/CardFooter.vue.d.ts +8 -0
- package/dist/modules/globals/components/blocks/CardHeader.vue.d.ts +15 -0
- package/dist/modules/globals/components/sections/Feed.vue.d.ts +69 -0
- package/dist/modules/orders/components/pages/EditOrder.vue.d.ts +6 -0
- package/dist/modules/orders/components/pages/Favorites.vue.d.ts +6 -0
- package/dist/modules/orders/components/pages/History.vue.d.ts +6 -0
- package/dist/modules/orders/components/pages/Orders.vue.d.ts +2 -0
- package/dist/modules/orders/components/pages/ViewOrder.vue.d.ts +6 -0
- package/dist/modules/orders/components/sections/Form.vue.d.ts +1 -0
- package/dist/modules/organizations/components/blocks/CardDepartment.vue.d.ts +7 -0
- package/dist/modules/organizations/components/blocks/User.vue.d.ts +1 -1
- package/dist/modules/organizations/components/elements/ButtonToggleMembership.vue.d.ts +1 -1
- package/dist/modules/organizations/components/pages/Members.vue.d.ts +2 -0
- package/dist/modules/organizations/components/sections/Department2.vue.d.ts +7 -0
- package/dist/modules/organizations/components/sections/Feed.vue.d.ts +4 -4
- package/dist/modules/organizations/components/sections/FeedDepartments.vue.d.ts +8 -0
- package/dist/modules/payments/components/pages/Payments.vue.d.ts +2 -0
- package/dist/modules/products/components/blocks/CardLeftover.vue.d.ts +6 -0
- package/dist/modules/products/components/blocks/CardPosition.vue.d.ts +11 -0
- package/dist/modules/products/components/blocks/CardProduct.vue.d.ts +6 -0
- package/dist/modules/products/components/blocks/LeftoverPositions.vue.d.ts +0 -1
- package/dist/modules/products/components/pages/ProductsBackoffice.vue.d.ts +2 -0
- package/dist/modules/products/components/sections/FilterProducts.vue.d.ts +9 -0
- package/dist/modules/products/components/sections/SortProducts.vue.d.ts +10 -0
- package/dist/modules/reports/components/sections/FormReport.vue.d.ts +3 -3
- package/dist/modules/spots/components/blocks/CardSpot.vue.d.ts +7 -0
- package/dist/modules/spots/components/blocks/SpotMemberModify.vue.d.ts +11 -0
- package/dist/modules/spots/components/blocks/SpotSub.vue.d.ts +6 -0
- package/dist/modules/spots/components/pages/Spot.vue.d.ts +7 -0
- package/dist/modules/spots/components/pages/SpotEdit.vue.d.ts +2 -0
- package/dist/modules/spots/components/sections/Feed.vue.d.ts +8 -0
- package/dist/modules/spots/components/sections/PlaceModify.vue.d.ts +9 -0
- package/dist/modules/spots/components/sections/Places.vue.d.ts +9 -0
- package/dist/modules/wallet/components/pages/Wallet.vue.d.ts +2 -0
- package/dist/orders-13c10d49.mjs +85 -0
- package/dist/orders-37f041aa.js +1 -0
- package/dist/organizations-4d18a2e2.js +1 -0
- package/dist/organizations-6ed907e3.mjs +122 -0
- package/dist/organizations.client-01593e4d.js +3 -0
- package/dist/organizations.client-1b9fa66e.mjs +2997 -0
- package/dist/organizations.client.cjs +1 -1
- package/dist/organizations.client.js +75 -51
- package/dist/organizations.server.js +9 -20
- package/dist/organizations.server.mjs +9 -20
- package/dist/products-7960bbd4.js +1 -0
- package/dist/products-bf5783aa.mjs +108 -0
- package/dist/prometheus-framework.cjs.js +17 -17
- package/dist/prometheus-framework.es.js +771 -758
- package/dist/states.validation-03f7cd49.js +1 -0
- package/dist/states.validation-50e3a5a0.mjs +13 -0
- package/dist/style.css +1 -1
- package/dist/users.client.cjs +1 -1
- package/dist/users.client.js +214 -258
- package/dist/users.server.js +1 -1
- package/dist/users.server.mjs +1 -1
- package/package.json +2 -119
- package/src/components/Field/Field.vue +34 -9
- package/src/components/SelectMulti/SelectMulti.vue +18 -22
- package/src/modules/auth/store/auth.js +34 -15
- package/src/modules/backoffice/components/pages/Dashboard.vue +91 -0
- package/src/modules/backoffice/router/admin.js +0 -28
- package/src/modules/backoffice/router/backoffice.js +131 -4
- package/src/modules/community/components/blocks/CardBlogpost.vue +1 -1
- package/src/modules/community/components/pages/Blog.vue +1 -0
- package/src/modules/community/components/sections/Comments.vue +1 -1
- package/src/modules/community/components/sections/Feed.vue +6 -0
- package/src/modules/community/controllers/blog.controller.js +129 -285
- package/src/modules/community/controllers/reactions.controller.js +2 -0
- package/src/modules/community/controllers/utils/queryProcessor.js +56 -0
- package/src/modules/community/controllers/utils/queryProcessorReactions.js +63 -0
- package/src/modules/community/store/blogposts.js +5 -5
- package/src/modules/events/components/blocks/CardEvent.vue +2 -3
- package/src/modules/events/components/pages/Events.vue +4 -4
- package/src/modules/events/components/sections/Feed.vue +4 -4
- package/src/modules/events/components/sections/List.vue +2 -2
- package/src/modules/events/controllers/events.controller.js +8 -6
- package/src/modules/events/controllers/utils/queryProcessor.js +111 -1
- package/src/modules/events/models/event.model.js +0 -4
- package/src/modules/events/store/events.js +5 -7
- package/src/{components/CardHeader → modules/globals/components/blocks}/CardHeader.vue +31 -4
- package/src/modules/globals/components/sections/Feed.vue +136 -0
- package/src/modules/globals/controllers/utils/queryProcessor.js +19 -117
- package/src/modules/globals/models/engagement.schema.js +29 -25
- package/src/modules/globals/utils/mailing.js +1 -1
- package/src/modules/icons/icons.client.js +51 -0
- package/src/modules/marketplace/components/layouts/Marketplace.vue +1 -1
- package/src/modules/marketplace/components/pages/Catalog.vue +3 -4
- package/src/modules/marketplace/router/marketplace.js +0 -11
- package/src/modules/middlewares/client/auth.validation.js +1 -1
- package/src/modules/orders/components/blocks/CardOrderItem.vue +1 -2
- package/src/modules/orders/components/pages/EditOrder.vue +238 -0
- package/src/modules/{backoffice → orders}/components/pages/Favorites.vue +2 -2
- package/src/modules/orders/components/pages/Order.vue +28 -34
- package/src/modules/orders/components/pages/Orders.vue +90 -0
- package/src/modules/{backoffice/components/pages/History.vue → orders/components/pages/ViewOrder.vue} +0 -8
- package/src/modules/orders/components/sections/Form.vue +52 -34
- package/src/modules/orders/controllers/orders.controller.js +102 -72
- package/src/modules/orders/models/order.model.js +30 -22
- package/src/modules/orders/router/orders.router.js +30 -0
- package/src/modules/orders/routes/orders.routes.js +23 -13
- package/src/modules/orders/store/orders.js +67 -40
- package/src/modules/organizations/components/{sections/Department.vue → blocks/CardDepartment.vue} +1 -10
- package/src/modules/organizations/components/blocks/CardOrganization.vue +13 -9
- package/src/modules/organizations/components/pages/DepartmentEdit.vue +3 -3
- package/src/modules/organizations/components/{sections/MembersTab.vue → pages/Members.vue} +23 -8
- package/src/modules/organizations/components/pages/Organization.vue +80 -46
- package/src/modules/organizations/components/pages/Organizations.vue +45 -90
- package/src/modules/organizations/components/sections/{StructureTab.vue → FeedDepartments.vue} +5 -5
- package/src/modules/organizations/components/sections/Organizations.vue +1 -2
- package/src/modules/organizations/components/sections/Publics.vue +3 -2
- package/src/modules/organizations/controllers/organizations.controller.js +8 -21
- package/src/modules/organizations/controllers/organizations.new.controller.js +372 -0
- package/src/modules/organizations/controllers/utils/addUserStatusFields.js +53 -48
- package/src/modules/organizations/controllers/utils/queryProcessor.js +87 -0
- package/src/modules/organizations/controllers/utils/queryProcessorOrganizations.js +25 -0
- package/src/modules/organizations/organizations.client.js +42 -46
- package/src/modules/organizations/router/departments.router.js +29 -0
- package/src/modules/organizations/router/members.router.js +19 -0
- package/src/modules/organizations/router/organizations.js +12 -88
- package/src/modules/organizations/router/organizations.router.js +38 -0
- package/src/modules/organizations/router/products.router.js +24 -0
- package/src/modules/organizations/store/departments.js +108 -0
- package/src/modules/{backoffice/components/admin/Orders.vue → payments/components/pages/Payments.vue} +0 -15
- package/src/modules/products/components/blocks/{Leftover.vue → CardLeftover.vue} +21 -12
- package/src/modules/products/components/blocks/CardPosition.vue +84 -0
- package/src/modules/products/components/blocks/LeftoverPositions.vue +65 -136
- package/src/modules/products/components/pages/LeftoverAdd.vue +133 -88
- package/src/modules/products/components/pages/Leftovers.vue +91 -64
- package/src/modules/products/components/pages/Product.vue +3 -3
- package/src/modules/products/components/pages/Products.vue +42 -263
- package/src/modules/products/components/pages/ProductsBackoffice.vue +92 -0
- package/src/modules/products/components/sections/FilterProducts.vue +180 -0
- package/src/modules/products/components/sections/PopularProducts.vue +2 -2
- package/src/modules/products/components/sections/SectionProduct.vue +18 -3
- package/src/modules/products/components/sections/SortProducts.vue +76 -0
- package/src/modules/products/controllers/leftovers.controller.js +51 -45
- package/src/modules/products/controllers/modifications.controller.js +66 -0
- package/src/modules/products/controllers/products.controller.js +67 -111
- package/src/modules/products/models/leftover.model.js +12 -9
- package/src/modules/products/models/product.model.js +1 -0
- package/src/modules/products/router/products.router.js +46 -0
- package/src/modules/products/routes/products.routes.js +4 -9
- package/src/modules/products/store/leftovers.js +56 -59
- package/src/modules/products/store/products.js +21 -22
- package/src/modules/spots/components/blocks/CardSpot.vue +104 -0
- package/src/modules/spots/components/blocks/SpotMemberModify.vue +92 -0
- package/src/modules/spots/components/blocks/SpotSub.vue +24 -0
- package/src/modules/spots/components/pages/Map.vue +2 -2
- package/src/modules/spots/components/pages/Spot.vue +107 -0
- package/src/modules/spots/components/pages/SpotEdit.vue +319 -0
- package/src/modules/spots/components/sections/Feed.vue +64 -0
- package/src/modules/spots/controllers/spots.controller.js +83 -0
- package/src/modules/spots/models/spot.model.js +72 -0
- package/src/modules/spots/router/spots.js +34 -1
- package/src/modules/spots/routes/spots.routes.js +31 -0
- package/src/modules/spots/store/spots.js +15 -15
- package/src/modules/users/components/pages/Profile.vue +2 -3
- package/src/modules/users/components/pages/ProfileBlogposts.vue +1 -1
- package/src/styles/components/block.scss +2 -4
- package/src/modules/backoffice/components/admin/LeftoverAdd.vue +0 -157
- package/src/modules/backoffice/components/admin/Leftovers.vue +0 -119
- package/src/modules/backoffice/components/admin/Order.vue +0 -199
- package/src/modules/backoffice/components/admin/Product.vue +0 -28
- package/src/modules/backoffice/components/admin/Products.vue +0 -82
- package/src/modules/backoffice/components/pages/Organizations.vue +0 -104
- package/src/modules/community/controllers/blog.new.controller.js +0 -290
- package/src/modules/organizations/components/blocks/DepartmentSubDepartmentModify.vue +0 -92
- package/src/modules/organizations/components/elements/ButtonFollow.vue +0 -84
- package/src/modules/organizations/components/pages/OrganizationsAccount.vue +0 -110
- package/src/modules/organizations/controllers/utils/excludeBlockedMembers.js +0 -18
- /package/src/{components/CardFooter → modules/globals/components/blocks}/CardFooter.vue +0 -0
- /package/src/modules/{orders/controllers → payments/controller}/payments.controller.js +0 -0
- /package/src/modules/{orders → payments}/routes/payments.routes.js +0 -0
- /package/src/modules/{orders → payments}/store/payments.js +0 -0
- /package/src/modules/products/components/blocks/{ProductCard.vue → CardProduct.vue} +0 -0
- /package/src/modules/{organizations → spots}/components/sections/PlaceModify.vue +0 -0
- /package/src/modules/{organizations → spots}/components/sections/Places.vue +0 -0
- /package/src/modules/{backoffice → wallet}/components/pages/Wallet.vue +0 -0
package/dist/users.server.js
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
const _commonjsHelpers = require("./_commonjsHelpers-3b53548e.js");
|
3
3
|
require("uuid");
|
4
4
|
const require$$0 = require("mongoose");
|
5
|
-
const addMembersQuantity$1 = require("./addMembersQuantity-
|
5
|
+
const addMembersQuantity$1 = require("./addMembersQuantity-7147aa4a.js");
|
6
6
|
require("mongodb");
|
7
7
|
const ObjectId = require$$0.Types.ObjectId;
|
8
8
|
const addUserStatusFields = addMembersQuantity$1.addUserStatusFields_1;
|
package/dist/users.server.mjs
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
import { g as getDefaultExportFromCjs } from "./_commonjsHelpers-83b1d755.mjs";
|
2
2
|
import "uuid";
|
3
3
|
import require$$0 from "mongoose";
|
4
|
-
import { a as addUserStatusFields_1, b as addMembersQuantity_1 } from "./addMembersQuantity-
|
4
|
+
import { a as addUserStatusFields_1, b as addMembersQuantity_1 } from "./addMembersQuantity-eac999f0.mjs";
|
5
5
|
import "mongodb";
|
6
6
|
const ObjectId = require$$0.Types.ObjectId;
|
7
7
|
const addUserStatusFields = addUserStatusFields_1;
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@ozdao/prometheus-framework",
|
3
|
-
"version": "0.1.
|
3
|
+
"version": "0.1.37",
|
4
4
|
"description": "Web3 Framework focused on user experience and ease of development.",
|
5
5
|
"author": "OZ DAO <hello@ozdao.dev>",
|
6
6
|
"license": "GPL-3.0-or-later",
|
@@ -24,124 +24,7 @@
|
|
24
24
|
"dist/",
|
25
25
|
"src/"
|
26
26
|
],
|
27
|
-
"exports":
|
28
|
-
".": {
|
29
|
-
"import": "./dist/prometheus-framework.es.js",
|
30
|
-
"require": "./dist/prometheus-framework.cjs.js"
|
31
|
-
},
|
32
|
-
"./dist/main.css": {
|
33
|
-
"require": "./dist/main.css",
|
34
|
-
"import": "./dist/main.css"
|
35
|
-
},
|
36
|
-
"./dist/style.css": {
|
37
|
-
"require": "./dist/style.css",
|
38
|
-
"import": "./dist/style.css"
|
39
|
-
},
|
40
|
-
"./modules/auth/client": {
|
41
|
-
"import": "./dist/auth.client.js",
|
42
|
-
"require": "./dist/auth.client.cjs"
|
43
|
-
},
|
44
|
-
"./modules/auth/server": {
|
45
|
-
"import": "./dist/auth.server.mjs",
|
46
|
-
"require": "./dist/auth.server.js"
|
47
|
-
},
|
48
|
-
"./modules/community/client": {
|
49
|
-
"import": "./dist/community.client.js",
|
50
|
-
"require": "./dist/community.client.cjs"
|
51
|
-
},
|
52
|
-
"./modules/community/server": {
|
53
|
-
"import": "./dist/community.server.mjs",
|
54
|
-
"require": "./dist/community.server.js"
|
55
|
-
},
|
56
|
-
"./modules/globals/client": {
|
57
|
-
"import": "./dist/globals.client.js",
|
58
|
-
"require": "./dist/globals.client.cjs"
|
59
|
-
},
|
60
|
-
"./modules/globals/server": {
|
61
|
-
"import": "./dist/globals.server.mjs",
|
62
|
-
"require": "./dist/globals.server.js"
|
63
|
-
},
|
64
|
-
"./modules/orders/client": {
|
65
|
-
"import": "./dist/orders.client.js",
|
66
|
-
"require": "./dist/orders.client.cjs"
|
67
|
-
},
|
68
|
-
"./modules/orders/server": {
|
69
|
-
"import": "./dist/orders.server.mjs",
|
70
|
-
"require": "./dist/orders.server.js"
|
71
|
-
},
|
72
|
-
"./modules/organizations/client": {
|
73
|
-
"import": "./dist/organizations.client.js",
|
74
|
-
"require": "./dist/organizations.client.cjs"
|
75
|
-
},
|
76
|
-
"./modules/organizations/server": {
|
77
|
-
"import": "./dist/organizations.server.mjs",
|
78
|
-
"require": "./dist/organizations.server.js"
|
79
|
-
},
|
80
|
-
"./modules/products/client": {
|
81
|
-
"import": "./dist/products.client.js",
|
82
|
-
"require": "./dist/products.client.cjs"
|
83
|
-
},
|
84
|
-
"./modules/products/server": {
|
85
|
-
"import": "./dist/products.server.mjs",
|
86
|
-
"require": "./dist/products.server.js"
|
87
|
-
},
|
88
|
-
"./modules/spots/client": {
|
89
|
-
"import": "./dist/spots.client.js",
|
90
|
-
"require": "./dist/spots.client.cjs"
|
91
|
-
},
|
92
|
-
"./modules/spots/server": {
|
93
|
-
"import": "./dist/spots.server.mjs",
|
94
|
-
"require": "./dist/spots.server.js"
|
95
|
-
},
|
96
|
-
"./modules/users/client": {
|
97
|
-
"import": "./dist/users.client.js",
|
98
|
-
"require": "./dist/users.client.cjs"
|
99
|
-
},
|
100
|
-
"./modules/users/server": {
|
101
|
-
"import": "./dist/users.server.mjs",
|
102
|
-
"require": "./dist/users.server.js"
|
103
|
-
},
|
104
|
-
"./modules/events/server": {
|
105
|
-
"import": "./dist/events.server.mjs",
|
106
|
-
"require": "./dist/events.server.js"
|
107
|
-
},
|
108
|
-
"./modules/events/client": {
|
109
|
-
"import": "./dist/events.client.js",
|
110
|
-
"require": "./dist/events.client.cjs"
|
111
|
-
},
|
112
|
-
"./modules/files/client": {
|
113
|
-
"import": "./dist/files.client.js",
|
114
|
-
"require": "./dist/files.client.cjs"
|
115
|
-
},
|
116
|
-
"./modules/files/server": {
|
117
|
-
"import": "./dist/files.server.mjs",
|
118
|
-
"require": "./dist/files.server.js"
|
119
|
-
},
|
120
|
-
"./modules/landing/client": {
|
121
|
-
"import": "./dist/landing.client.js",
|
122
|
-
"require": "./dist/landing.client.cjs"
|
123
|
-
},
|
124
|
-
"./modules/gallery/server": {
|
125
|
-
"import": "./dist/gallery.server.mjs",
|
126
|
-
"require": "./dist/gallery.server.js"
|
127
|
-
},
|
128
|
-
"./modules/backoffice/client": {
|
129
|
-
"import": "./dist/backoffice.client.js",
|
130
|
-
"require": "./dist/backoffice.client.cjs"
|
131
|
-
},
|
132
|
-
"./modules/legal/client": {
|
133
|
-
"import": "./dist/legal.client.js",
|
134
|
-
"require": "./dist/legal.client.cjs"
|
135
|
-
},
|
136
|
-
"./modules/reports/client": {
|
137
|
-
"import": "./dist/reports.client.js",
|
138
|
-
"require": "./dist/reports.client.cjs"
|
139
|
-
},
|
140
|
-
"./modules/reports/server": {
|
141
|
-
"import": "./dist/reports.server.mjs",
|
142
|
-
"require": "./dist/reports.server.js"
|
143
|
-
}
|
144
|
-
},
|
27
|
+
"exports": "./exports.js",
|
145
28
|
"browser": {
|
146
29
|
".": "./dist/prometheus-framework.es.js"
|
147
30
|
},
|
@@ -5,6 +5,7 @@
|
|
5
5
|
|
6
6
|
const props = defineProps({
|
7
7
|
label: null,
|
8
|
+
symbol: null,
|
8
9
|
type: 'text',
|
9
10
|
placeholder: 'Enter something here',
|
10
11
|
field: null,
|
@@ -16,15 +17,27 @@
|
|
16
17
|
</script>
|
17
18
|
|
18
19
|
<template>
|
19
|
-
<div
|
20
|
-
|
21
|
-
|
22
|
-
|
20
|
+
<div
|
21
|
+
:class="[
|
22
|
+
$attrs.class,
|
23
|
+
{
|
24
|
+
'bg-fourth-nano': validation
|
25
|
+
}
|
26
|
+
]"
|
27
|
+
class="flex-center flex-nowrap flex"
|
28
|
+
>
|
29
|
+
<div
|
30
|
+
v-if="label"
|
31
|
+
class="t-transp mn-r-small"
|
32
|
+
>
|
33
|
+
<span>
|
34
|
+
{{label}}
|
35
|
+
</span>
|
23
36
|
</div>
|
24
37
|
|
25
38
|
<div class="w-100">
|
26
|
-
|
27
|
-
|
39
|
+
<input
|
40
|
+
v-if="type !== 'textarea'"
|
28
41
|
@input="event => text = emit('update:field', event.target.value)"
|
29
42
|
@focus="event => emit('focus', event)"
|
30
43
|
@blur="event => emit('blur', event)"
|
@@ -32,15 +45,27 @@
|
|
32
45
|
class="w-100"
|
33
46
|
:value="field"
|
34
47
|
:placeholder="placeholder"
|
35
|
-
|
36
|
-
<textarea
|
48
|
+
/>
|
49
|
+
<textarea
|
50
|
+
v-else
|
37
51
|
@input="event => text = emit('update:field', event.target.value)"
|
38
52
|
@focus="event => emit('focus', event)"
|
39
53
|
@blur="event => emit('blur', event)"
|
40
54
|
class="w-100"
|
41
55
|
:value="field"
|
42
56
|
:placeholder="placeholder"
|
43
|
-
|
57
|
+
/>
|
58
|
+
</div>
|
59
|
+
|
60
|
+
<slot></slot>
|
61
|
+
|
62
|
+
<div
|
63
|
+
v-if="symbol"
|
64
|
+
class="t-transp mn-l-small"
|
65
|
+
>
|
66
|
+
<span>
|
67
|
+
{{symbol}}
|
68
|
+
</span>
|
44
69
|
</div>
|
45
70
|
</div>
|
46
71
|
|
@@ -506,11 +506,14 @@ export default {
|
|
506
506
|
min-height: 20px;
|
507
507
|
line-height: 20px;
|
508
508
|
border: none;
|
509
|
-
padding: 0 0 0 5px
|
509
|
+
/* padding: 0 0 0 5px;*/
|
510
510
|
width: calc(100%);
|
511
511
|
box-sizing: border-box;
|
512
|
-
margin-bottom: 8px
|
512
|
+
/* margin-bottom: 8px;*/
|
513
513
|
vertical-align: top;
|
514
|
+
height: 100%;
|
515
|
+
display: flex;
|
516
|
+
align-items: center;
|
514
517
|
}
|
515
518
|
|
516
519
|
.multiselect__input::placeholder {
|
@@ -533,11 +536,6 @@ export default {
|
|
533
536
|
outline: none;
|
534
537
|
}
|
535
538
|
|
536
|
-
.multiselect__single {
|
537
|
-
padding-left: 5px;
|
538
|
-
margin-bottom: 8px;
|
539
|
-
}
|
540
|
-
|
541
539
|
.multiselect__tags-wrap {
|
542
540
|
display: inline;
|
543
541
|
}
|
@@ -613,13 +611,16 @@ export default {
|
|
613
611
|
|
614
612
|
.multiselect__select {
|
615
613
|
line-height: 16px;
|
616
|
-
display:
|
614
|
+
display: flex;
|
615
|
+
align-items: center;
|
616
|
+
justify-content: center;
|
617
|
+
position: center;
|
617
618
|
position: absolute;
|
618
619
|
box-sizing: border-box;
|
619
620
|
width: 40px;
|
620
621
|
height: 38px;
|
621
622
|
right: 1px;
|
622
|
-
top:
|
623
|
+
top: calc( 50% - 19px);
|
623
624
|
padding: 4px 8px;
|
624
625
|
margin: 0;
|
625
626
|
text-decoration: none;
|
@@ -630,8 +631,6 @@ export default {
|
|
630
631
|
|
631
632
|
.multiselect__select::before {
|
632
633
|
position: relative;
|
633
|
-
right: 0;
|
634
|
-
top: 65%;
|
635
634
|
color: #999;
|
636
635
|
margin-top: 4px;
|
637
636
|
border-style: solid;
|
@@ -643,8 +642,11 @@ export default {
|
|
643
642
|
.multiselect__placeholder {
|
644
643
|
color: #adadad;
|
645
644
|
display: inline-block;
|
646
|
-
|
647
|
-
|
645
|
+
height: 100%;
|
646
|
+
display: flex;
|
647
|
+
align-items: center;
|
648
|
+
/* margin-bottom: 10px;*/
|
649
|
+
/* padding-top: 2px;*/
|
648
650
|
}
|
649
651
|
|
650
652
|
.multiselect--active .multiselect__placeholder {
|
@@ -717,15 +719,12 @@ export default {
|
|
717
719
|
}
|
718
720
|
|
719
721
|
.multiselect__option--highlight {
|
720
|
-
background:
|
722
|
+
background: rgba(var(--main),0.1);
|
721
723
|
outline: none;
|
722
|
-
color: white;
|
723
724
|
}
|
724
725
|
|
725
726
|
.multiselect__option--highlight::after {
|
726
727
|
content: attr(data-select);
|
727
|
-
background: #41b883;
|
728
|
-
color: white;
|
729
728
|
}
|
730
729
|
|
731
730
|
.multiselect__option--selected {
|
@@ -737,18 +736,15 @@ export default {
|
|
737
736
|
.multiselect__option--selected::after {
|
738
737
|
content: attr(data-selected);
|
739
738
|
color: silver;
|
740
|
-
|
739
|
+
background: inherit;
|
741
740
|
}
|
742
741
|
|
743
742
|
.multiselect__option--selected.multiselect__option--highlight {
|
744
|
-
background:
|
745
|
-
color: #fff;
|
743
|
+
background: rgba(var(--red),0.1);
|
746
744
|
}
|
747
745
|
|
748
746
|
.multiselect__option--selected.multiselect__option--highlight::after {
|
749
|
-
background: #ff6a6a;
|
750
747
|
content: attr(data-deselect);
|
751
|
-
color: #fff;
|
752
748
|
}
|
753
749
|
|
754
750
|
.multiselect--disabled .multiselect__current,
|
@@ -26,23 +26,29 @@
|
|
26
26
|
status: false
|
27
27
|
},
|
28
28
|
});
|
29
|
-
|
30
|
-
|
31
|
-
const
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
29
|
+
|
30
|
+
async function initialize() {
|
31
|
+
const userCookie = await getCookie('user');
|
32
|
+
|
33
|
+
if (userCookie) {
|
34
|
+
const {_id, email, phone, roles, accessToken} = userCookie;
|
35
|
+
|
36
|
+
Object.assign(state.user, {_id, email, phone});
|
37
|
+
Object.assign(state.access, {token: accessToken, roles, status: !!accessToken});
|
38
|
+
|
39
|
+
$axios.interceptors.request.use((config) => {
|
40
|
+
if (accessToken) {
|
41
|
+
config.headers['x-access-token'] = accessToken;
|
42
|
+
}
|
43
|
+
return config;
|
44
|
+
}, (error) => {
|
45
|
+
return Promise.reject(error);
|
46
|
+
});
|
47
|
+
}
|
44
48
|
}
|
45
49
|
|
50
|
+
initialize();
|
51
|
+
|
46
52
|
const actions = {
|
47
53
|
async login (user, type) {
|
48
54
|
try {
|
@@ -206,6 +212,19 @@
|
|
206
212
|
production: { expires: 1, domain: process.env.API_URL, sameSite: 'none', secure: true }
|
207
213
|
};
|
208
214
|
|
215
|
+
function getCookie(name) {
|
216
|
+
if (process.env.MOBILE_APP) {
|
217
|
+
return CapacitorCookies.getCookie({
|
218
|
+
url: process.env.API_URL,
|
219
|
+
key: name
|
220
|
+
}).then(response => JSON.parse(response.value));
|
221
|
+
} else {
|
222
|
+
// Для веб-версии
|
223
|
+
const cookie = Cookies.get(name);
|
224
|
+
return cookie ? JSON.parse(cookie) : null;
|
225
|
+
}
|
226
|
+
}
|
227
|
+
|
209
228
|
function setCookie(name, data, env = process.env.NODE_ENV) {
|
210
229
|
if (process.env.MOBILE_APP) {
|
211
230
|
// Если приложение запущено в Capacitor
|
@@ -4,6 +4,97 @@
|
|
4
4
|
<Menu
|
5
5
|
class="bg-grey"
|
6
6
|
>
|
7
|
+
<MenuItem
|
8
|
+
@click="router.push({
|
9
|
+
name: 'Backoffice Organizations',
|
10
|
+
params: {
|
11
|
+
_id: route.params._id
|
12
|
+
}
|
13
|
+
})"
|
14
|
+
class="cursor-pointer">
|
15
|
+
<span>
|
16
|
+
Organizations
|
17
|
+
</span>
|
18
|
+
</MenuItem>
|
19
|
+
|
20
|
+
<MenuItem
|
21
|
+
@click="router.push({
|
22
|
+
name: 'Backoffice Events',
|
23
|
+
params: {
|
24
|
+
_id: route.params._id
|
25
|
+
}
|
26
|
+
})"
|
27
|
+
class="cursor-pointer">
|
28
|
+
<span>
|
29
|
+
Events
|
30
|
+
</span>
|
31
|
+
</MenuItem>
|
32
|
+
|
33
|
+
<MenuItem
|
34
|
+
@click="router.push({
|
35
|
+
name: 'Backoffice Community',
|
36
|
+
params: {
|
37
|
+
_id: route.params._id
|
38
|
+
}
|
39
|
+
})"
|
40
|
+
class="cursor-pointer">
|
41
|
+
<span>
|
42
|
+
Community
|
43
|
+
</span>
|
44
|
+
</MenuItem>
|
45
|
+
|
46
|
+
<MenuItem
|
47
|
+
@click="router.push({
|
48
|
+
name: 'Backoffice Products',
|
49
|
+
params: {
|
50
|
+
_id: route.params._id
|
51
|
+
}
|
52
|
+
})"
|
53
|
+
class="cursor-pointer">
|
54
|
+
<span>
|
55
|
+
Products
|
56
|
+
</span>
|
57
|
+
</MenuItem>
|
58
|
+
|
59
|
+
<MenuItem
|
60
|
+
@click="router.push({
|
61
|
+
name: 'Backoffice Leftovers',
|
62
|
+
params: {
|
63
|
+
_id: route.params._id
|
64
|
+
}
|
65
|
+
})"
|
66
|
+
class="cursor-pointer">
|
67
|
+
<span>
|
68
|
+
Leftovers
|
69
|
+
</span>
|
70
|
+
</MenuItem>
|
71
|
+
|
72
|
+
<MenuItem
|
73
|
+
@click="router.push({
|
74
|
+
name: 'Backoffice Orders',
|
75
|
+
params: {
|
76
|
+
_id: route.params._id
|
77
|
+
}
|
78
|
+
})"
|
79
|
+
class="cursor-pointer">
|
80
|
+
<span>
|
81
|
+
Orders
|
82
|
+
</span>
|
83
|
+
</MenuItem>
|
84
|
+
|
85
|
+
<MenuItem
|
86
|
+
@click="router.push({
|
87
|
+
name: 'Backoffice Payments',
|
88
|
+
params: {
|
89
|
+
_id: route.params._id
|
90
|
+
}
|
91
|
+
})"
|
92
|
+
class="cursor-pointer">
|
93
|
+
<span>
|
94
|
+
Payments
|
95
|
+
</span>
|
96
|
+
</MenuItem>
|
97
|
+
|
7
98
|
<MenuItem
|
8
99
|
@click="router.push({
|
9
100
|
name: 'Backoffice Gallery',
|
@@ -20,10 +20,6 @@
|
|
20
20
|
// name: 'EditCategory',
|
21
21
|
// component: () => import(/* webpackChunkName: 'EditCategory' */ '@/components/pages/admin/CategoryEdit.vue')
|
22
22
|
// },{
|
23
|
-
// path: 'products',
|
24
|
-
// name: 'Products',
|
25
|
-
// component: () => import(/* webpackChunkName: 'Products' */ '@/components/pages/admin/Products.vue')
|
26
|
-
// },{
|
27
23
|
// path: 'backcalls',
|
28
24
|
// name: 'Backcalls',
|
29
25
|
// // meta: { authorize: ["ROLE_MODERATOR"] },
|
@@ -34,30 +30,6 @@
|
|
34
30
|
// // meta: { authorize: ["ROLE_MODERATOR"] },
|
35
31
|
// component: () => import(/* webpackChunkName: 'FastOrders' */ '@/components/pages/admin/FastOrders.vue')
|
36
32
|
// },{
|
37
|
-
// path: 'orders',
|
38
|
-
// name: 'Orders',
|
39
|
-
// // meta: { authorize: ["ROLE_MODERATOR"] },
|
40
|
-
// component: () => import(/* webpackChunkName: 'Orders' */ '@/components/pages/admin/Orders.vue')
|
41
|
-
// },{
|
42
|
-
// path: 'orders/:_id',
|
43
|
-
// name: 'AdminOrder',
|
44
|
-
// component: () => import(/* webpackChunkName: 'AdminOrders' */ '@/components/pages/admin/Order.vue')
|
45
|
-
// },{
|
46
|
-
// path: 'leftovers',
|
47
|
-
// name: 'Leftovers',
|
48
|
-
// // meta: { authorize: ["ROLE_MODERATOR"] },
|
49
|
-
// component: () => import(/* webpackChunkName: 'Leftovers' */ '@/components/pages/admin/Leftovers.vue')
|
50
|
-
// },{
|
51
|
-
// path: 'leftovers/add',
|
52
|
-
// name: 'LeftoverAdd',
|
53
|
-
// // meta: { authorize: ["ROLE_MODERATOR"] },
|
54
|
-
// component: () => import(/* webpackChunkName: 'LeftoverEdit' */ '@/components/pages/admin/LeftoverAdd.vue')
|
55
|
-
// },{
|
56
|
-
// path: 'leftovers/:_id',
|
57
|
-
// name: 'LeftoverEdit',
|
58
|
-
// // meta: { authorize: ["ROLE_MODERATOR"] },
|
59
|
-
// component: () => import(/* webpackChunkName: 'LeftoverEdit' */ '@/components/pages/admin/LeftoverAdd.vue')
|
60
|
-
// },{
|
61
33
|
// path: 'pages',
|
62
34
|
// name: 'Pages',
|
63
35
|
// // meta: { authorize: ["ROLE_MODERATOR"] },
|