@ozdao/prometheus-framework 0.2.81 → 0.2.82
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/auth.server.js +1 -1
- package/dist/auth.server.mjs +1 -1
- package/dist/community.server.js +3 -3
- package/dist/community.server.mjs +3 -3
- package/dist/credentials.schema-CDZCKfEI.mjs +106 -0
- package/dist/credentials.schema-CfhPcsuI.js +105 -0
- package/dist/events.server.js +4 -15
- package/dist/events.server.mjs +3 -14
- package/dist/files.server.js +1 -1
- package/dist/files.server.mjs +1 -1
- package/dist/gallery.server.js +1 -1
- package/dist/gallery.server.mjs +1 -1
- package/dist/index-B6a1mPgp.mjs +217 -0
- package/dist/index-BCCiEK_u.js +216 -0
- package/dist/main-8N2Jmsuk.js +91 -0
- package/dist/main-CkeuHuCY.mjs +13619 -0
- package/dist/main.css +1 -1
- package/dist/metadata.schema-Cu_mPkjE.js +77 -0
- package/dist/metadata.schema-cbFgazeK.mjs +78 -0
- package/dist/middlewares.server.js +1 -1
- package/dist/middlewares.server.mjs +1 -1
- package/dist/node_modules/@googlemaps/js-api-loader/dist/index.cjs +1 -0
- package/dist/node_modules/@googlemaps/js-api-loader/dist/index.js +238 -0
- package/dist/organizations.server.js +297 -134
- package/dist/organizations.server.mjs +295 -132
- package/dist/products.server.js +2 -2
- package/dist/products.server.mjs +2 -2
- package/dist/prometheus-framework/src/components/Address/Address.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/components/Address/Address.vue2.js +33 -24
- package/dist/prometheus-framework/src/components/Block/Block.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/Block/Block.vue.js +23 -20
- package/dist/prometheus-framework/src/components/Button/Button.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/Button/Button.vue.js +1 -225
- package/dist/prometheus-framework/src/components/Button/Button.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/components/Button/Button.vue2.js +102 -1
- package/dist/prometheus-framework/src/components/Feed/Feed.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/Feed/Feed.vue.js +71 -60
- package/dist/prometheus-framework/src/components/Field/Field.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/Field/Field.vue.js +1 -84
- package/dist/prometheus-framework/src/components/Field/Field.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/components/Field/Field.vue2.js +84 -1
- package/dist/prometheus-framework/src/components/FieldBig/FieldBig.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/FieldBig/FieldBig.vue.js +1 -1
- package/dist/prometheus-framework/src/components/FieldPhone/FieldPhone.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/FieldPhone/FieldPhone.vue.js +325 -340
- package/dist/prometheus-framework/src/components/FieldPhone/FieldPhone2.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/FieldPhone/FieldPhone2.vue.js +2 -2
- package/dist/prometheus-framework/src/components/LocationMarker/LocationMarker.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/components/LocationMarker/LocationMarker.vue2.js +53 -44
- package/dist/prometheus-framework/src/components/Popup/Popup.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/components/Popup/Popup.vue2.js +41 -40
- package/dist/prometheus-framework/src/components/Select/Select.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/components/Select/Select.vue2.js +37 -31
- package/dist/prometheus-framework/src/components/Slider/Slider.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/Slider/Slider.vue.js +18 -19
- package/dist/prometheus-framework/src/components/Tab/Tab.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/Tab/Tab.vue.js +1 -36
- package/dist/prometheus-framework/src/components/Tab/Tab.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/components/Tab/Tab.vue2.js +36 -1
- package/dist/prometheus-framework/src/components/Tooltip/Tooltip.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/Tooltip/Tooltip.vue.js +45 -1
- package/dist/prometheus-framework/src/components/Tooltip/Tooltip.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/components/Tooltip/Tooltip.vue2.js +1 -45
- package/dist/prometheus-framework/src/modules/auth/components/layouts/Auth.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/auth/components/layouts/Auth.vue.js +3 -3
- 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 +1 -1
- 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 +3 -3
- 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 +30 -30
- 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 +3 -3
- 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 +3 -3
- package/dist/prometheus-framework/src/modules/auth/store/auth.cjs +1 -1
- package/dist/prometheus-framework/src/modules/auth/store/auth.js +26 -26
- 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 +78 -103
- package/dist/prometheus-framework/src/modules/community/components/pages/Community.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/community/components/pages/Community.vue.js +2 -2
- 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 +2 -2
- 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 +15 -15
- package/dist/prometheus-framework/src/modules/constructor/components/elements/Embed.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/constructor/components/elements/Embed.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/events/components/blocks/CardEvent.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/events/components/blocks/CardEvent.vue.js +4 -4
- package/dist/prometheus-framework/src/modules/events/components/elements/ButtonCheck.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/events/components/elements/ButtonCheck.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/events/components/elements/ButtonJoin.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/events/components/elements/ButtonJoin.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 +2 -2
- package/dist/prometheus-framework/src/modules/events/components/pages/EditEventTickets.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/events/components/pages/EditEventTickets.vue.js +2 -2
- 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 +29 -27
- 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 +2 -2
- 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 +2 -2
- 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/CardHeader.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/globals/components/blocks/CardHeader.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/globals/components/sections/SectionPageTitle.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/globals/components/sections/SectionPageTitle.vue.js +33 -26
- package/dist/prometheus-framework/src/modules/globals/localization/vue-i18n.cjs +1 -1
- package/dist/prometheus-framework/src/modules/globals/localization/vue-i18n.js +6 -3
- package/dist/prometheus-framework/src/modules/globals/services/globals.store.cjs +1 -0
- package/dist/prometheus-framework/src/modules/globals/services/globals.store.js +70 -0
- package/dist/prometheus-framework/src/modules/icons/entities/IconGallery.vue.cjs +1 -0
- package/dist/prometheus-framework/src/modules/icons/entities/IconGallery.vue.js +28 -0
- package/dist/prometheus-framework/src/modules/icons/entities/IconLeftovers.vue.cjs +1 -0
- package/dist/prometheus-framework/src/modules/icons/entities/IconLeftovers.vue.js +30 -0
- package/dist/prometheus-framework/src/modules/icons/entities/IconOrders.vue.cjs +1 -0
- package/dist/prometheus-framework/src/modules/icons/entities/IconOrders.vue.js +35 -0
- package/dist/prometheus-framework/src/modules/icons/entities/IconProducts.vue.cjs +1 -0
- package/dist/prometheus-framework/src/modules/icons/entities/IconProducts.vue.js +28 -0
- package/dist/prometheus-framework/src/modules/landing/components/sections/MobileApp.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/landing/components/sections/MobileApp.vue.js +63 -86
- 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 +2 -2
- 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 +174 -114
- 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 +40 -40
- package/dist/prometheus-framework/src/modules/orders/components/sections/FormAddCustomer.vue.cjs +1 -0
- package/dist/prometheus-framework/src/modules/orders/components/sections/FormAddCustomer.vue.js +141 -0
- package/dist/prometheus-framework/src/modules/orders/components/sections/FormClientDetails.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/orders/components/sections/FormClientDetails.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/orders/components/sections/FormCustomerDetails.vue.cjs +1 -0
- package/dist/prometheus-framework/src/modules/orders/components/sections/FormCustomerDetails.vue.js +77 -0
- 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 +46 -35
- package/dist/prometheus-framework/src/modules/orders/store/customers.store.cjs +1 -0
- package/dist/prometheus-framework/src/modules/orders/store/customers.store.js +5 -0
- package/dist/prometheus-framework/src/modules/orders/store/models/customer.cjs +1 -0
- package/dist/prometheus-framework/src/modules/orders/store/models/customer.js +30 -0
- package/dist/prometheus-framework/src/modules/orders/store/orders.cjs +1 -1
- package/dist/prometheus-framework/src/modules/orders/store/orders.js +24 -25
- package/dist/prometheus-framework/src/modules/organizations/components/blocks/CardDepartment.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/blocks/CardDepartment.vue.js +16 -16
- 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 +1 -1
- 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 +38 -49
- package/dist/prometheus-framework/src/modules/organizations/components/elements/ButtonToggleMembership.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/elements/ButtonToggleMembership.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 +6 -6
- 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 +161 -138
- 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 +198 -78
- 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 +82 -125
- 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 +3 -3
- 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 +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/sections/Documents.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/sections/Documents.vue.js +2 -2
- 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 +59 -70
- package/dist/prometheus-framework/src/modules/organizations/components/sections/Organizations.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/sections/Organizations.vue.js +3 -3
- package/dist/prometheus-framework/src/modules/organizations/organizations.client.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/organizations.client.js +34 -36
- package/dist/prometheus-framework/src/modules/organizations/store/departments.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/store/departments.js +38 -18
- package/dist/prometheus-framework/src/modules/organizations/store/invites.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/store/invites.js +34 -35
- package/dist/prometheus-framework/src/modules/products/components/blocks/CardPosition.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/blocks/CardPosition.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/products/components/blocks/CardProduct.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/blocks/CardProduct.vue.js +41 -21
- 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 +1 -1
- package/dist/prometheus-framework/src/modules/products/components/blocks/ListPositions.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/blocks/ListPositions.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/products/components/pages/Categories.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/pages/Categories.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/products/components/pages/CategoryEdit.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/pages/CategoryEdit.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/products/components/pages/EditLeftover.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/pages/EditLeftover.vue.js +1 -1
- 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 +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 +3 -3
- 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 +3 -3
- package/dist/prometheus-framework/src/modules/products/components/sections/EditModifications.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/sections/EditModifications.vue.js +1 -1
- 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 +2 -2
- 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 +1 -1
- package/dist/prometheus-framework/src/modules/reports/components/sections/FormReport.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/reports/components/sections/FormReport.vue.js +24 -26
- package/dist/prometheus-framework/src/modules/users/components/blocks/CardUser.vue.cjs +1 -0
- package/dist/prometheus-framework/src/modules/users/components/blocks/CardUser.vue.js +78 -0
- 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 +2 -2
- 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 +1 -1
- 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 +3 -3
- 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 +1 -1
- package/dist/prometheus-framework/src/modules/users/store/users.cjs +1 -1
- package/dist/prometheus-framework/src/modules/users/store/users.js +13 -14
- 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 +2 -2
- package/dist/prometheus-framework.cjs.js +1 -1
- package/dist/prometheus-framework.es.js +1 -1
- package/dist/queryProcessor-BJdKh0Ow.mjs +162 -0
- package/dist/queryProcessor-DRMo_GWK.js +161 -0
- package/dist/reports.server.js +1 -1
- package/dist/reports.server.mjs +1 -1
- package/dist/style.css +1 -1
- package/dist/users.server.js +69 -38
- package/dist/users.server.mjs +67 -36
- package/dist/wallet.server.js +2 -2
- package/dist/wallet.server.mjs +2 -2
- package/dist/web-CtVocufd.js +1 -0
- package/dist/web-DNq1tHCE.mjs +54 -0
- package/package.json +1 -1
- package/src/components/Address/Address.vue +13 -2
- package/src/components/Block/Block.vue +3 -2
- package/src/components/Button/Button.vue +9 -12
- package/src/components/Feed/Feed.vue +28 -6
- package/src/components/FieldPhone/FieldPhone.vue +592 -558
- package/src/components/LocationMarker/LocationMarker.vue +26 -22
- package/src/components/Popup/Popup.vue +22 -23
- package/src/components/Select/Select.vue +43 -32
- package/src/components/Slider/Slider.vue +3 -4
- package/src/modules/auth/components/pages/Invite.vue +7 -7
- package/src/modules/auth/store/auth.js +1 -1
- package/src/modules/backoffice/components/pages/Dashboard.vue +44 -29
- package/src/modules/community/components/sections/HotPosts.vue +1 -1
- package/src/modules/events/components/blocks/CardEvent.vue +4 -3
- package/src/modules/events/components/pages/Events.vue +23 -6
- package/src/modules/globals/components/sections/SectionPageTitle.vue +19 -7
- package/src/modules/globals/controllers/utils/queryProcessor.js +21 -7
- package/src/modules/globals/localization/vue-i18n.js +3 -0
- package/src/modules/globals/models/credentials.schema.js +7 -0
- package/src/modules/globals/models/metadata.schema.js +17 -0
- package/src/modules/globals/models/profile.schema.js +23 -0
- package/src/modules/globals/models/socials.schema.js +22 -0
- package/src/modules/globals/router/routerGuards.js +1 -0
- package/src/modules/globals/services/globals.cashe.js +26 -0
- package/src/modules/globals/services/globals.crud.js +115 -0
- package/src/modules/globals/services/globals.logger.js +41 -0
- package/src/modules/globals/services/globals.store.js +114 -0
- package/src/modules/icons/entities/IconGallery.vue +14 -0
- package/src/modules/icons/entities/IconLeftovers.vue +14 -0
- package/src/modules/icons/entities/IconOrders.vue +15 -0
- package/src/modules/icons/entities/IconProducts.vue +14 -0
- package/src/modules/landing/components/sections/HeroSection.vue +1 -1
- package/src/modules/landing/components/sections/MobileApp.vue +4 -4
- package/src/modules/landing/router/landing.js +1 -1
- package/src/modules/marketplace/components/sections/Filters.vue +3 -3
- package/src/modules/middlewares/server/accessors/AccessController.js +33 -0
- package/src/modules/middlewares/server/accessors/ReadDepartments.js +101 -0
- package/src/modules/middlewares/server/verifyAccesses.js +33 -0
- package/src/modules/middlewares/server/verifyInvites.js +4 -4
- package/src/modules/orders/components/pages/OrderCreate.vue +2 -2
- package/src/modules/orders/components/pages/OrderCreateBackoffice.vue +105 -68
- package/src/modules/orders/components/pages/Orders.vue +2 -2
- package/src/modules/orders/components/sections/FormAddCustomer.vue +152 -0
- package/src/modules/orders/components/sections/FormCustomerDetails.vue +67 -0
- package/src/modules/orders/components/sections/FormDelivery.vue +17 -3
- package/src/modules/orders/controllers/applications.controller.js +2 -0
- package/src/modules/orders/controllers/orders.controller.js +77 -52
- package/src/modules/orders/models/customer.model.js +54 -18
- package/src/modules/orders/models/order.model.js +1 -1
- package/src/modules/orders/orders.client.js +51 -51
- package/src/modules/orders/orders.server.js +32 -12
- package/src/modules/orders/router/orders.router.js +36 -41
- package/src/modules/orders/routes/orders.routes.js +3 -21
- package/src/modules/orders/store/customers.store.js +5 -0
- package/src/modules/orders/store/models/customer.js +29 -0
- package/src/modules/orders/store/orders.js +14 -20
- package/src/modules/organizations/components/blocks/CardDepartment.vue +3 -3
- package/src/modules/organizations/components/blocks/CardOrganization.vue +1 -1
- package/src/modules/organizations/components/blocks/DepartmentMemberModify.vue +1 -12
- package/src/modules/organizations/components/pages/Department.vue +1 -1
- package/src/modules/organizations/components/pages/DepartmentEdit.vue +72 -48
- package/src/modules/organizations/components/pages/Members.vue +178 -64
- package/src/modules/organizations/components/pages/Organization.vue +1 -41
- package/src/modules/organizations/components/sections/MembersAdd.vue +44 -52
- package/src/modules/organizations/controllers/departments.controller.js +2 -4
- package/src/modules/organizations/controllers/invites.controller.js +24 -23
- package/src/modules/organizations/controllers/organizations.controller.js +1 -1
- package/src/modules/organizations/models/department.model.js +52 -2
- package/src/modules/organizations/models/invite.model.js +29 -32
- package/src/modules/organizations/models/membership.model.js +2 -0
- package/src/modules/organizations/models/organization.model.js +2 -1
- package/src/modules/organizations/organizations.client.js +0 -2
- package/src/modules/organizations/routes/departments.routes.js +18 -7
- package/src/modules/organizations/routes/invites.routes.js +2 -2
- package/src/modules/organizations/store/departments.js +22 -1
- package/src/modules/organizations/store/invites.js +74 -90
- package/src/modules/products/components/blocks/CardProduct.vue +24 -0
- package/src/modules/products/components/pages/Products.vue +1 -1
- package/src/modules/reports/components/sections/FormReport.vue +40 -40
- package/src/modules/spots/components/pages/Spot.vue +1 -1
- package/src/modules/spots/components/pages/SpotEdit.vue +1 -1
- package/src/modules/users/components/blocks/CardUser.vue +85 -0
- package/src/modules/users/controllers/users.controller.js +36 -13
- package/src/modules/users/middlewares/visitor.logger.js +66 -0
- package/src/modules/users/models/request.model.js +18 -0
- package/src/modules/users/models/user.model.js +26 -55
- package/src/modules/users/models/visitor.model.js +14 -0
- package/src/modules/users/store/users.js +2 -11
- package/src/modules/wallet/controllers/routes/payments.routes.js +2 -0
- package/src/components/FieldPhone/FieldPhone(script-setup).vue +0 -1646
- package/src/components/FieldPhone/FieldPhone2.vue +0 -671
- package/src/modules/orders/components/sections/FormClientDetails.vue +0 -61
- package/src/modules/organizations/components/blocks/User.vue +0 -69
- /package/src/modules/backoffice/components/admin/{User.vue → UserEdit.vue} +0 -0
@@ -1,49 +1,46 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
name: 'Сотрудник',
|
4
|
-
value: 'member'
|
5
|
-
};
|
1
|
+
const applyOwnershipSchema = require('@pf/src/modules/globals/models/ownership.schema.js');
|
2
|
+
const applyCredentialsSchema = require('@pf/src/modules/globals/models/credentials.schema.js');
|
6
3
|
|
7
|
-
|
4
|
+
module.exports = (db) => {
|
5
|
+
const InviteSchema = new db.mongoose.Schema({
|
8
6
|
code: {
|
9
7
|
type: String,
|
10
8
|
required: true,
|
11
9
|
unique: true
|
12
10
|
},
|
13
|
-
organization: {
|
14
|
-
type: mongoose.Schema.Types.ObjectId,
|
15
|
-
ref: 'Organization',
|
16
|
-
required: true,
|
17
|
-
},
|
18
11
|
status: {
|
19
12
|
type: String,
|
20
|
-
enum: ['active', 'used'],
|
13
|
+
enum: ['active', 'used', 'deactivated'],
|
21
14
|
default: 'active'
|
22
15
|
},
|
23
|
-
role: {
|
24
|
-
name: {
|
25
|
-
type: String,
|
26
|
-
default: 'Сотрудник'
|
27
|
-
},
|
28
|
-
value: {
|
29
|
-
type: String,
|
30
|
-
default: 'member'
|
31
|
-
}
|
32
|
-
},
|
33
|
-
createdBy: {
|
34
|
-
type: mongoose.Schema.Types.ObjectId, ref: 'User'
|
35
|
-
},
|
36
|
-
invitedEmail: {
|
37
|
-
type: String
|
38
|
-
},
|
39
|
-
invitedPhone: {
|
40
|
-
type: String
|
41
|
-
},
|
42
16
|
}, {
|
43
17
|
timestamps: true
|
44
18
|
});
|
45
19
|
|
46
|
-
|
20
|
+
applyOwnershipSchema(InviteSchema, db);
|
21
|
+
applyCredentialsSchema(InviteSchema, db);
|
22
|
+
|
23
|
+
InviteSchema.index({
|
24
|
+
owner: 1,
|
25
|
+
email: 1
|
26
|
+
}, {
|
27
|
+
unique: true,
|
28
|
+
partialFilterExpression: {
|
29
|
+
email: { $exists: true, $ne: "" }
|
30
|
+
}
|
31
|
+
});
|
32
|
+
|
33
|
+
InviteSchema.index({
|
34
|
+
owner: 1,
|
35
|
+
phone: 1
|
36
|
+
}, {
|
37
|
+
unique: true,
|
38
|
+
partialFilterExpression: {
|
39
|
+
phone: { $exists: true, $ne: "" }
|
40
|
+
}
|
41
|
+
});
|
42
|
+
|
43
|
+
const Invite = db.mongoose.model('Invite', InviteSchema);
|
47
44
|
|
48
45
|
return Invite;
|
49
46
|
}
|
@@ -7,7 +7,6 @@ import DepartmentEdit from './components/pages/DepartmentEdit.vue';
|
|
7
7
|
|
8
8
|
import CardOrganization from './components/blocks/CardOrganization.vue';
|
9
9
|
import EditArray from './components/blocks/EditArray.vue';
|
10
|
-
import User from './components/blocks/User.vue';
|
11
10
|
import Unit from './components/blocks/Unit.vue';
|
12
11
|
import DepartmentSub from './components/blocks/DepartmentSub.vue';
|
13
12
|
import DepartmentMemberModify from './components/blocks/DepartmentMemberModify.vue';
|
@@ -44,7 +43,6 @@ Organizations,
|
|
44
43
|
DepartmentEdit,
|
45
44
|
CardOrganization,
|
46
45
|
EditArray,
|
47
|
-
User,
|
48
46
|
Unit,
|
49
47
|
DepartmentSub,
|
50
48
|
DepartmentMemberModify,
|
@@ -1,20 +1,31 @@
|
|
1
1
|
// Factories
|
2
|
-
const controllerFactory = require("../controllers/departments.controller")
|
2
|
+
const controllerFactory = require("../controllers/departments.controller")
|
3
|
+
// Middlewares
|
4
|
+
const accessMiddlewaresFactory = require('@pf/src/modules/middlewares/server/verifyAccesses')
|
5
|
+
|
3
6
|
// Routes
|
4
7
|
module.exports = function(app, db) {
|
5
|
-
const controller = controllerFactory(db)
|
8
|
+
const controller = controllerFactory(db)
|
9
|
+
const verifyAccesses = accessMiddlewaresFactory(db)
|
6
10
|
|
7
11
|
app.use(function(req, res, next) {
|
8
12
|
res.header(
|
9
13
|
"Access-Control-Allow-Headers",
|
10
14
|
"Access-Control-Allow-Origin",
|
11
15
|
"x-access-token, Origin, Content-Type, Accept"
|
12
|
-
)
|
13
|
-
|
14
|
-
|
16
|
+
)
|
17
|
+
|
18
|
+
next()
|
19
|
+
})
|
15
20
|
|
16
21
|
// Get organization departments by _id
|
17
|
-
app.get(
|
22
|
+
app.get(
|
23
|
+
"/api/departments/read",
|
24
|
+
// [
|
25
|
+
// verifyAccesses('read', 'departments'),
|
26
|
+
// ],
|
27
|
+
controller.read
|
28
|
+
);
|
18
29
|
|
19
30
|
// Get department by _id
|
20
31
|
app.get("/api/departments/get/:_id", controller.readOne);
|
@@ -28,4 +39,4 @@ module.exports = function(app, db) {
|
|
28
39
|
// Delete organization department
|
29
40
|
app.delete("/api/departments/:_id/delete", controller.delete);
|
30
41
|
|
31
|
-
};
|
42
|
+
};
|
@@ -28,7 +28,7 @@ module.exports = function(app, db) {
|
|
28
28
|
);
|
29
29
|
// Create invite in organization
|
30
30
|
app.post(
|
31
|
-
"/api/invites
|
31
|
+
"/api/invites/create",
|
32
32
|
[
|
33
33
|
verifyInvites.checkInviteExist,
|
34
34
|
verifyInvites.checkUsersExist
|
@@ -37,7 +37,7 @@ module.exports = function(app, db) {
|
|
37
37
|
);
|
38
38
|
// Delete invite in organization
|
39
39
|
app.delete(
|
40
|
-
"/api/invites/:_id
|
40
|
+
"/api/invites/delete/:_id",
|
41
41
|
controller.delete
|
42
42
|
);
|
43
43
|
};
|
@@ -30,6 +30,26 @@ const state = reactive({
|
|
30
30
|
payment: [],
|
31
31
|
members: [],
|
32
32
|
subdepartments: [],
|
33
|
+
|
34
|
+
// Accesses
|
35
|
+
hidden: false,
|
36
|
+
accesses: {
|
37
|
+
products: {
|
38
|
+
read: false,
|
39
|
+
edit: false,
|
40
|
+
delete: false,
|
41
|
+
},
|
42
|
+
orders: {
|
43
|
+
read: false,
|
44
|
+
confirm: false, // This property was added based on the schema
|
45
|
+
delete: false,
|
46
|
+
},
|
47
|
+
departments: {
|
48
|
+
read: false,
|
49
|
+
edit: false,
|
50
|
+
delete: false,
|
51
|
+
},
|
52
|
+
}
|
33
53
|
},
|
34
54
|
error: null,
|
35
55
|
});
|
@@ -48,7 +68,7 @@ const actions = {
|
|
48
68
|
}
|
49
69
|
},
|
50
70
|
|
51
|
-
async read(options) {
|
71
|
+
async read(options = {}) {
|
52
72
|
try {
|
53
73
|
const response = await $axios.get(`/api/departments/read`, { params: options });
|
54
74
|
|
@@ -57,6 +77,7 @@ const actions = {
|
|
57
77
|
state.error = null;
|
58
78
|
return response.data; // Return the response data
|
59
79
|
} catch (error) {
|
80
|
+
console.log(error)
|
60
81
|
setError(error);
|
61
82
|
return null; // Return null or appropriate error response
|
62
83
|
}
|
@@ -1,94 +1,78 @@
|
|
1
|
-
// Dependencies
|
2
|
-
import axios from 'axios';
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
const
|
22
|
-
|
23
|
-
|
24
|
-
.
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
});
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
});
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
state.error = null;
|
64
|
-
})
|
65
|
-
.catch(error => {
|
66
|
-
setError(error)
|
67
|
-
});
|
68
|
-
},
|
69
|
-
async delete(inviteID) {
|
70
|
-
await $axios
|
71
|
-
.delete(`/api/invites/${inviteID}/delete`)
|
72
|
-
.then(() => {
|
73
|
-
state.error = null;
|
74
|
-
})
|
75
|
-
.catch(error => {
|
76
|
-
setError(error)
|
77
|
-
});
|
78
|
-
},
|
1
|
+
// Dependencies
|
2
|
+
import axios from 'axios';
|
3
|
+
// Vue modules
|
4
|
+
import { reactive, watch } from "vue";
|
5
|
+
// Globals
|
6
|
+
import { setError } from '@pf/src/modules/globals/store/globals'
|
7
|
+
// State
|
8
|
+
import * as auth from '@pf/src/modules/auth/store/auth'
|
9
|
+
// Setup Axios
|
10
|
+
const $axios = axios.create({ baseURL: process.env.API_URL, withCredentials: true });
|
11
|
+
// State
|
12
|
+
const state = reactive({
|
13
|
+
invites: [],
|
14
|
+
invite: null,
|
15
|
+
error: null,
|
16
|
+
});
|
17
|
+
// Methods
|
18
|
+
const actions = {
|
19
|
+
async read(options) {
|
20
|
+
try {
|
21
|
+
const response = await $axios.get(`/api/invites/${options.owner}`);
|
22
|
+
state.invites = response.data;
|
23
|
+
state.error = null;
|
24
|
+
return response.data;
|
25
|
+
} catch (error) {
|
26
|
+
setError(error);
|
27
|
+
}
|
28
|
+
},
|
29
|
+
async readOne(inviteId) {
|
30
|
+
try {
|
31
|
+
const response = await $axios.get(`/api/invites/get/${inviteId}`);
|
32
|
+
state.invite = response.data;
|
33
|
+
auth.state.user.phone = response.data.phone;
|
34
|
+
auth.state.user.email = response.data.email;
|
35
|
+
} catch (error) {
|
36
|
+
setError(error);
|
37
|
+
}
|
38
|
+
},
|
39
|
+
async create(invites) {
|
40
|
+
try {
|
41
|
+
await $axios.post(`/api/invites/create`, invites);
|
42
|
+
state.error = null;
|
43
|
+
} catch (error) {
|
44
|
+
setError(error);
|
45
|
+
}
|
46
|
+
},
|
47
|
+
async update(organizationId, membership) {
|
48
|
+
try {
|
49
|
+
await $axios.put(`/api/invites/update`, membership);
|
50
|
+
state.error = null;
|
51
|
+
} catch (error) {
|
52
|
+
setError(error);
|
53
|
+
}
|
54
|
+
},
|
55
|
+
async delete(inviteID) {
|
56
|
+
try {
|
57
|
+
await $axios.delete(`/api/invites/delete/${inviteID}`);
|
58
|
+
state.error = null;
|
59
|
+
} catch (error) {
|
60
|
+
setError(error);
|
61
|
+
}
|
62
|
+
},
|
79
63
|
};
|
80
64
|
|
81
|
-
//
|
82
|
-
const history = []
|
83
|
-
history.push(state)
|
65
|
+
// History
|
66
|
+
const history = []
|
67
|
+
history.push(state);
|
84
68
|
|
85
|
-
//
|
86
|
-
watch(state, (newState, oldState) => {
|
87
|
-
history.push(newState)
|
88
|
-
})
|
69
|
+
// Watch
|
70
|
+
watch(state, (newState, oldState) => {
|
71
|
+
history.push(newState);
|
72
|
+
});
|
89
73
|
|
90
|
-
// Module Export
|
91
|
-
export {
|
92
|
-
state,
|
93
|
-
actions,
|
94
|
-
}
|
74
|
+
// Module Export
|
75
|
+
export {
|
76
|
+
state,
|
77
|
+
actions,
|
78
|
+
};
|
@@ -4,6 +4,7 @@
|
|
4
4
|
radius-big
|
5
5
|
cols-1
|
6
6
|
o-hidden
|
7
|
+
pos-relative
|
7
8
|
"
|
8
9
|
:class="
|
9
10
|
product.information[2]
|
@@ -13,6 +14,27 @@
|
|
13
14
|
"
|
14
15
|
>
|
15
16
|
|
17
|
+
<router-link
|
18
|
+
:to="{
|
19
|
+
name: 'ProductEdit',
|
20
|
+
params: {
|
21
|
+
_id: $route.params.organization,
|
22
|
+
product: product._id
|
23
|
+
}
|
24
|
+
}"
|
25
|
+
class="
|
26
|
+
z-index-2
|
27
|
+
cursor-pointer
|
28
|
+
pos-absolute pos-t-regular pos-r-regular
|
29
|
+
radius-extra pd-thin bg-second
|
30
|
+
"
|
31
|
+
>
|
32
|
+
<IconEdit
|
33
|
+
class="i-regular"
|
34
|
+
classes="fill-white"
|
35
|
+
/>
|
36
|
+
</router-link>
|
37
|
+
|
16
38
|
<!-- Product Image Sqaure -->
|
17
39
|
|
18
40
|
<div
|
@@ -92,6 +114,8 @@
|
|
92
114
|
import {computed } from 'vue'
|
93
115
|
import { useI18n } from 'vue-i18n'
|
94
116
|
|
117
|
+
import IconEdit from '@pf/src/modules/icons/navigation/IconEdit.vue'
|
118
|
+
|
95
119
|
import THC from '@pf/src/modules/products/components/elements/THC.vue'
|
96
120
|
import Price from '@pf/src/modules/products/components/elements/Price.vue'
|
97
121
|
|
@@ -4,47 +4,47 @@
|
|
4
4
|
@click.native="openReportPopup()"
|
5
5
|
>
|
6
6
|
<slot></slot>
|
7
|
-
</div>
|
8
7
|
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
8
|
+
<Popup
|
9
|
+
@close-popup="closeReportPopup"
|
10
|
+
:isPopupOpen="isReportPopup"
|
11
|
+
class="w-m-33r t-left pd-big bg-white radius-big"
|
12
|
+
>
|
13
|
+
<h3
|
14
|
+
class="mn-b-small"
|
15
|
+
>
|
16
|
+
Report Content
|
17
|
+
</h3>
|
18
|
+
|
19
|
+
<p
|
20
|
+
class="p-medium mn-b-small"
|
21
|
+
>
|
22
|
+
We strive to maintain a safe and comfortable environment for all users. If you encounter content that you believe violates our guidelines, please report it:
|
23
|
+
</p>
|
24
|
+
<Select
|
25
|
+
v-model:select="form.reason"
|
26
|
+
:options="[
|
27
|
+
'harassment',
|
28
|
+
'spam',
|
29
|
+
'inappropriate',
|
30
|
+
'misinformation',
|
31
|
+
'copyright',
|
32
|
+
'other'
|
33
|
+
]"
|
34
|
+
:placeholder="'Select reason'"
|
35
|
+
class="mn-b-small bg-white br-solid br-black-transp br-1px uppercase pd-medium t-semi bg-white t-black radius-medium"
|
36
|
+
/>
|
37
|
+
|
38
|
+
<p class="p-medium mn-b-small">Our moderators will review your report within 24 hours and take action if it violates our policies.</p>
|
39
|
+
|
40
|
+
<Button
|
41
|
+
:submit="onSubmit"
|
42
|
+
:callback="closeReportPopup"
|
43
|
+
class="w-100 bg-black t-white">
|
44
|
+
Report
|
45
|
+
</Button>
|
46
|
+
</Popup>
|
47
|
+
</div>
|
48
48
|
</template>
|
49
49
|
|
50
50
|
<script setup="props">
|
@@ -92,7 +92,7 @@ import Map from '@pf/src/components/Map/Map.vue';
|
|
92
92
|
|
93
93
|
|
94
94
|
import SpotSub from '@pf/src/modules/spots/components/blocks/SpotSub.vue';
|
95
|
-
import User from '@pf/src/modules/
|
95
|
+
import User from '@pf/src/modules/users/components/blocks/CardUser.vue';
|
96
96
|
|
97
97
|
const props = defineProps({
|
98
98
|
spot: Object,
|
@@ -169,7 +169,7 @@ import EditArray from "@pf/src/modules/organizations/components/blocks/EditArray
|
|
169
169
|
import SpotSub from "@pf/src/modules/spots/components/blocks/SpotSub.vue";
|
170
170
|
import SpotMemberModify from "@pf/src/modules/spots/components/blocks/SpotMemberModify.vue";
|
171
171
|
// import SpotSubSpotModify from "@pf/src/modules/spots/components/blocks/SpotSubSpotModify.vue";
|
172
|
-
import User from '@pf/src/modules/
|
172
|
+
import User from '@pf/src/modules/users/components/blocks/CardUser.vue';
|
173
173
|
|
174
174
|
import * as spots from "@pf/src/modules/spots/store/spots";
|
175
175
|
import * as memberships from "@pf/src/modules/organizations/store/memberships";
|
@@ -0,0 +1,85 @@
|
|
1
|
+
<template>
|
2
|
+
<div class="flex-v-center flex-nowrap flex">
|
3
|
+
<img
|
4
|
+
v-if="photo"
|
5
|
+
:src="(FILE_SERVER_URL || '') + photo"
|
6
|
+
class="radius-medium bg-white object-fit-cover mn-r-thin i-thin"
|
7
|
+
|
8
|
+
@click.stop="$router.push({
|
9
|
+
name: user.type === 'user' ? 'User Profile' : 'Organization',
|
10
|
+
params: {
|
11
|
+
_id: user._id
|
12
|
+
}
|
13
|
+
})"
|
14
|
+
/>
|
15
|
+
|
16
|
+
<PlaceholderUserpic
|
17
|
+
v-if="!photo"
|
18
|
+
class="radius-medium mn-r-thin i-thin"
|
19
|
+
|
20
|
+
@click.stop="$router.push({
|
21
|
+
name: 'User Profile',
|
22
|
+
params: {
|
23
|
+
_id: user._id || _id
|
24
|
+
}
|
25
|
+
})"
|
26
|
+
/>
|
27
|
+
|
28
|
+
<div>
|
29
|
+
<p class="h4">{{ name }}</p>
|
30
|
+
<span class=" mn-r-small">{{phone || email}}</span>
|
31
|
+
</div>
|
32
|
+
|
33
|
+
<div v-if="action || role" class="mn-l-auto flex-v-center flex">
|
34
|
+
<span
|
35
|
+
class="flex-child flex-child-shrink-0 capitalize w-max t-medium radius-big pd-b-nano pd-t-nano pd-r-thin pd-l-thin bg-main"
|
36
|
+
>
|
37
|
+
{{role}}
|
38
|
+
</span>
|
39
|
+
<button
|
40
|
+
v-if="action"
|
41
|
+
@click.stop="action.method"
|
42
|
+
class="h-100 w-2r t-white mn-l-thin capitalize t-medium radius-big bg-red"
|
43
|
+
>
|
44
|
+
{{action.label}}
|
45
|
+
</button>
|
46
|
+
<!-- {{`Member since ${user.createdAt}. Invited by ${user.creator.target}`}} -->
|
47
|
+
</div>
|
48
|
+
|
49
|
+
</div>
|
50
|
+
</template>
|
51
|
+
|
52
|
+
<script setup>
|
53
|
+
import PlaceholderUserpic from '@pf/src/modules/icons/placeholders/PlaceholderUserpic.vue'
|
54
|
+
|
55
|
+
const props = defineProps({
|
56
|
+
_id: {
|
57
|
+
type: String,
|
58
|
+
default: null
|
59
|
+
},
|
60
|
+
user: {
|
61
|
+
type: Object,
|
62
|
+
required: true
|
63
|
+
},
|
64
|
+
action: {
|
65
|
+
type: Object,
|
66
|
+
},
|
67
|
+
photo: {
|
68
|
+
type: String,
|
69
|
+
default: null
|
70
|
+
},
|
71
|
+
name: {
|
72
|
+
type: String,
|
73
|
+
default: 'No name'
|
74
|
+
},
|
75
|
+
role: {
|
76
|
+
type: String
|
77
|
+
},
|
78
|
+
phone: {
|
79
|
+
type: String,
|
80
|
+
},
|
81
|
+
email: {
|
82
|
+
type: String,
|
83
|
+
}
|
84
|
+
});
|
85
|
+
</script>
|