@ozdao/prometheus-framework 0.2.251 → 0.2.253
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/auth.server.js +298 -14
- package/dist/auth.server.mjs +298 -14
- package/dist/builder.js +4 -4
- package/dist/builder.mjs +4 -4
- package/dist/community.server.js +38 -21
- package/dist/community.server.mjs +38 -21
- package/dist/events.server.js +38 -18
- package/dist/events.server.mjs +38 -17
- package/dist/gallery.server.js +17 -4
- package/dist/gallery.server.mjs +17 -4
- package/dist/organizations.server.js +43 -26
- package/dist/organizations.server.mjs +43 -26
- package/dist/products.server.js +49 -23
- package/dist/products.server.mjs +49 -22
- package/dist/prometheus-framework/src/components/Feed/Feed.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/Feed/Feed.vue.js +1 -1
- package/dist/prometheus-framework/src/components/LocationMarker/LocationMarker.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/components/LocationMarker/LocationMarker.vue2.js +1 -1
- package/dist/prometheus-framework/src/components/Slider/Slider.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/Slider/Slider.vue.js +1 -1
- package/dist/prometheus-framework/src/components/UploadImageMultiple/UploadImageMultiple.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/UploadImageMultiple/UploadImageMultiple.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/auth/auth.client.cjs +15 -3
- package/dist/prometheus-framework/src/modules/auth/auth.client.cjs.map +1 -1
- package/dist/prometheus-framework/src/modules/auth/auth.client.js +16 -4
- package/dist/prometheus-framework/src/modules/auth/auth.client.js.map +1 -1
- package/dist/prometheus-framework/src/modules/auth/views/components/blocks/CardUser.vue.cjs +95 -0
- package/dist/prometheus-framework/src/modules/auth/views/components/blocks/CardUser.vue.cjs.map +1 -0
- package/dist/prometheus-framework/src/modules/auth/views/components/blocks/CardUser.vue.js +95 -0
- package/dist/prometheus-framework/src/modules/auth/views/components/blocks/CardUser.vue.js.map +1 -0
- package/dist/prometheus-framework/src/modules/auth/views/components/layouts/Auth.vue.cjs +2 -2
- package/dist/prometheus-framework/src/modules/auth/views/components/layouts/Auth.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/auth/views/components/pages/EnterPassword.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/auth/views/components/pages/EnterPassword.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/auth/views/components/pages/Invite.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/auth/views/components/pages/Invite.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/auth/views/components/pages/Profile.vue.cjs +284 -0
- package/dist/prometheus-framework/src/modules/auth/views/components/pages/Profile.vue.cjs.map +1 -0
- package/dist/prometheus-framework/src/modules/auth/views/components/pages/Profile.vue.js +284 -0
- package/dist/prometheus-framework/src/modules/auth/views/components/pages/Profile.vue.js.map +1 -0
- package/dist/prometheus-framework/src/modules/auth/views/components/pages/Profile.vue2.cjs +2 -0
- package/dist/prometheus-framework/src/modules/auth/views/components/pages/Profile.vue2.cjs.map +1 -0
- package/dist/prometheus-framework/src/modules/auth/views/components/pages/Profile.vue2.js +2 -0
- package/dist/prometheus-framework/src/modules/auth/views/components/pages/Profile.vue2.js.map +1 -0
- package/dist/prometheus-framework/src/modules/auth/views/components/pages/ProfileBlogposts.vue.cjs +85 -0
- package/dist/prometheus-framework/src/modules/auth/views/components/pages/ProfileBlogposts.vue.cjs.map +1 -0
- package/dist/prometheus-framework/src/modules/auth/views/components/pages/ProfileBlogposts.vue.js +85 -0
- package/dist/prometheus-framework/src/modules/auth/views/components/pages/ProfileBlogposts.vue.js.map +1 -0
- package/dist/prometheus-framework/src/modules/auth/views/components/pages/ProfileEdit.vue.cjs +176 -0
- package/dist/prometheus-framework/src/modules/auth/views/components/pages/ProfileEdit.vue.cjs.map +1 -0
- package/dist/prometheus-framework/src/modules/auth/views/components/pages/ProfileEdit.vue.js +176 -0
- package/dist/prometheus-framework/src/modules/auth/views/components/pages/ProfileEdit.vue.js.map +1 -0
- package/dist/prometheus-framework/src/modules/auth/views/components/pages/ProfileEdit.vue2.cjs +2 -0
- package/dist/prometheus-framework/src/modules/auth/views/components/pages/ProfileEdit.vue2.cjs.map +1 -0
- package/dist/prometheus-framework/src/modules/auth/views/components/pages/ProfileEdit.vue2.js +2 -0
- package/dist/prometheus-framework/src/modules/auth/views/components/pages/ProfileEdit.vue2.js.map +1 -0
- package/dist/prometheus-framework/src/modules/auth/views/components/pages/ResetPassword.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/auth/views/components/pages/ResetPassword.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/auth/views/components/pages/SignIn.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/auth/views/components/pages/SignIn.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/auth/views/components/pages/SignUp.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/auth/views/components/pages/SignUp.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/auth/views/components/sections/FeaturedUsers.vue.cjs +114 -0
- package/dist/prometheus-framework/src/modules/auth/views/components/sections/FeaturedUsers.vue.cjs.map +1 -0
- package/dist/prometheus-framework/src/modules/auth/views/components/sections/FeaturedUsers.vue.js +114 -0
- package/dist/prometheus-framework/src/modules/auth/views/components/sections/FeaturedUsers.vue.js.map +1 -0
- package/dist/prometheus-framework/src/modules/auth/views/components/sections/ProfileCompletion.vue.cjs +72 -0
- package/dist/prometheus-framework/src/modules/auth/views/components/sections/ProfileCompletion.vue.cjs.map +1 -0
- package/dist/prometheus-framework/src/modules/auth/views/components/sections/ProfileCompletion.vue.js +72 -0
- package/dist/prometheus-framework/src/modules/auth/views/components/sections/ProfileCompletion.vue.js.map +1 -0
- package/dist/prometheus-framework/src/modules/auth/views/router/users.cjs +97 -0
- package/dist/prometheus-framework/src/modules/auth/views/router/users.cjs.map +1 -0
- package/dist/prometheus-framework/src/modules/auth/views/router/users.js +97 -0
- package/dist/prometheus-framework/src/modules/auth/views/router/users.js.map +1 -0
- package/dist/prometheus-framework/src/modules/auth/views/store/users.cjs +95 -0
- package/dist/prometheus-framework/src/modules/auth/views/store/users.cjs.map +1 -0
- package/dist/prometheus-framework/src/modules/auth/views/store/users.js +95 -0
- package/dist/prometheus-framework/src/modules/auth/views/store/users.js.map +1 -0
- package/dist/prometheus-framework/src/modules/backoffice/backoffice.client.cjs +32 -2
- package/dist/prometheus-framework/src/modules/backoffice/backoffice.client.cjs.map +1 -1
- package/dist/prometheus-framework/src/modules/backoffice/backoffice.client.js +32 -2
- package/dist/prometheus-framework/src/modules/backoffice/backoffice.client.js.map +1 -1
- package/dist/prometheus-framework/src/modules/backoffice/router/backoffice.cjs +2 -2
- package/dist/prometheus-framework/src/modules/backoffice/router/backoffice.cjs.map +1 -1
- package/dist/prometheus-framework/src/modules/backoffice/router/backoffice.js +2 -2
- package/dist/prometheus-framework/src/modules/backoffice/router/backoffice.js.map +1 -1
- package/dist/prometheus-framework/src/modules/community/community.client.cjs +42 -7
- package/dist/prometheus-framework/src/modules/community/community.client.cjs.map +1 -1
- package/dist/prometheus-framework/src/modules/community/community.client.js +59 -24
- package/dist/prometheus-framework/src/modules/community/community.client.js.map +1 -1
- 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 +1 -1
- package/dist/prometheus-framework/src/modules/community/components/pages/BlogPost.vue.cjs +2 -2
- package/dist/prometheus-framework/src/modules/community/components/pages/BlogPost.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/community/components/pages/Community.vue.cjs +3 -3
- package/dist/prometheus-framework/src/modules/community/components/pages/Community.vue.js +3 -3
- package/dist/prometheus-framework/src/modules/community/components/pages/CreateBlogPost.vue.cjs +2 -2
- 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 +1 -1
- package/dist/prometheus-framework/src/modules/community/router/blogposts.cjs +68 -70
- package/dist/prometheus-framework/src/modules/community/router/blogposts.cjs.map +1 -1
- package/dist/prometheus-framework/src/modules/community/router/blogposts.js +68 -70
- package/dist/prometheus-framework/src/modules/community/router/blogposts.js.map +1 -1
- 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 +2 -2
- 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 +2 -2
- package/dist/prometheus-framework/src/modules/events/components/pages/EditEventTickets.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/events/components/pages/Event.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/events/components/pages/Event.vue.js +1 -1
- 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 +1 -1
- 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 +1 -1
- package/dist/prometheus-framework/src/modules/gallery/components/pages/Gallery.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/gallery/components/pages/Gallery.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/gallery/components/sections/BackofficeGallery.vue.cjs +3 -3
- package/dist/prometheus-framework/src/modules/gallery/components/sections/BackofficeGallery.vue.js +3 -3
- package/dist/prometheus-framework/src/modules/gallery/gallery.client.cjs +26 -3
- package/dist/prometheus-framework/src/modules/gallery/gallery.client.cjs.map +1 -1
- package/dist/prometheus-framework/src/modules/gallery/gallery.client.js +27 -4
- package/dist/prometheus-framework/src/modules/gallery/gallery.client.js.map +1 -1
- package/dist/prometheus-framework/src/modules/gallery/router/gallery.router.cjs +2 -2
- package/dist/prometheus-framework/src/modules/gallery/router/gallery.router.cjs.map +1 -1
- package/dist/prometheus-framework/src/modules/gallery/router/gallery.router.js +2 -2
- package/dist/prometheus-framework/src/modules/gallery/router/gallery.router.js.map +1 -1
- package/dist/prometheus-framework/src/modules/globals/globals.client.cjs.map +1 -1
- package/dist/prometheus-framework/src/modules/globals/globals.client.js.map +1 -1
- package/dist/prometheus-framework/src/modules/globals/views/components/blocks/CardHeader.vue.cjs +2 -2
- package/dist/prometheus-framework/src/modules/globals/views/components/blocks/CardHeader.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/globals/views/components/layouts/Client.vue.cjs +2 -2
- package/dist/prometheus-framework/src/modules/globals/views/components/layouts/Client.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/globals/views/components/partials/Header.vue.cjs +2 -2
- package/dist/prometheus-framework/src/modules/globals/views/components/partials/Header.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/globals/views/components/partials/NavigationBar.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/globals/views/components/partials/NavigationBar.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/legal/components/pages/Legal.vue.cjs +2 -2
- package/dist/prometheus-framework/src/modules/legal/components/pages/Legal.vue.js +2 -2
- 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 +1 -1
- 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.cjs.map +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/OrderCreate.vue.js.map +1 -1
- package/dist/prometheus-framework/src/modules/orders/components/pages/OrderCreateBackoffice.vue.cjs +4 -4
- package/dist/prometheus-framework/src/modules/orders/components/pages/OrderCreateBackoffice.vue.cjs.map +1 -1
- package/dist/prometheus-framework/src/modules/orders/components/pages/OrderCreateBackoffice.vue.js +4 -4
- package/dist/prometheus-framework/src/modules/orders/components/pages/OrderCreateBackoffice.vue.js.map +1 -1
- package/dist/prometheus-framework/src/modules/orders/components/sections/FormAddCustomer.vue.cjs +4 -4
- package/dist/prometheus-framework/src/modules/orders/components/sections/FormAddCustomer.vue.cjs.map +1 -1
- package/dist/prometheus-framework/src/modules/orders/components/sections/FormAddCustomer.vue.js +4 -4
- package/dist/prometheus-framework/src/modules/orders/components/sections/FormAddCustomer.vue.js.map +1 -1
- package/dist/prometheus-framework/src/modules/orders/components/sections/FormCustomerDetails.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/orders/components/sections/FormCustomerDetails.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/orders/components/sections/FormPayment.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/orders/components/sections/FormPayment.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/orders/orders.client.cjs +4 -1
- package/dist/prometheus-framework/src/modules/orders/orders.client.cjs.map +1 -1
- package/dist/prometheus-framework/src/modules/orders/orders.client.js +4 -1
- package/dist/prometheus-framework/src/modules/orders/orders.client.js.map +1 -1
- package/dist/prometheus-framework/src/modules/orders/store/testimonials.cjs +63 -0
- package/dist/prometheus-framework/src/modules/orders/store/testimonials.cjs.map +1 -0
- package/dist/prometheus-framework/src/modules/orders/store/testimonials.js +63 -0
- package/dist/prometheus-framework/src/modules/orders/store/testimonials.js.map +1 -0
- package/dist/prometheus-framework/src/modules/organizations/components/blocks/CardDepartment.vue.cjs +2 -2
- package/dist/prometheus-framework/src/modules/organizations/components/blocks/CardDepartment.vue.cjs.map +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/blocks/CardDepartment.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/organizations/components/blocks/CardDepartment.vue.js.map +1 -1
- 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.cjs.map +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/CardOrganization.vue.js.map +1 -1
- 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.cjs.map +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/pages/Department.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/pages/Department.vue.js.map +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/pages/DepartmentEdit.vue.cjs +5 -5
- package/dist/prometheus-framework/src/modules/organizations/components/pages/DepartmentEdit.vue.cjs.map +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/pages/DepartmentEdit.vue.js +5 -5
- package/dist/prometheus-framework/src/modules/organizations/components/pages/DepartmentEdit.vue.js.map +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/pages/Members.vue.cjs +2 -2
- package/dist/prometheus-framework/src/modules/organizations/components/pages/Members.vue.cjs.map +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/pages/Members.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/organizations/components/pages/Members.vue.js.map +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/pages/Organization.vue.cjs.map +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/pages/Organization.vue.js.map +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationEdit.vue.cjs +3 -3
- package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationEdit.vue.js +3 -3
- package/dist/prometheus-framework/src/modules/organizations/components/sections/Documents.vue.cjs +3 -3
- package/dist/prometheus-framework/src/modules/organizations/components/sections/Documents.vue.js +3 -3
- 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 +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/sections/MembersAdd.vue.cjs +4 -4
- package/dist/prometheus-framework/src/modules/organizations/components/sections/MembersAdd.vue.cjs.map +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/sections/MembersAdd.vue.js +4 -4
- package/dist/prometheus-framework/src/modules/organizations/components/sections/MembersAdd.vue.js.map +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/sections/Organizations.vue.cjs +3 -3
- package/dist/prometheus-framework/src/modules/organizations/components/sections/Organizations.vue.js +3 -3
- package/dist/prometheus-framework/src/modules/organizations/organizations.client.cjs +60 -11
- package/dist/prometheus-framework/src/modules/organizations/organizations.client.cjs.map +1 -1
- package/dist/prometheus-framework/src/modules/organizations/organizations.client.js +95 -46
- package/dist/prometheus-framework/src/modules/organizations/organizations.client.js.map +1 -1
- package/dist/prometheus-framework/src/modules/organizations/router/organizations.cjs +6 -10
- package/dist/prometheus-framework/src/modules/organizations/router/organizations.cjs.map +1 -1
- package/dist/prometheus-framework/src/modules/organizations/router/organizations.js +8 -12
- package/dist/prometheus-framework/src/modules/organizations/router/organizations.js.map +1 -1
- package/dist/prometheus-framework/src/modules/pages/pages.client.cjs +786 -773
- package/dist/prometheus-framework/src/modules/pages/pages.client.js +786 -773
- package/dist/prometheus-framework/src/modules/pages/views/components/blocks/CardPage.vue.cjs +2 -2
- package/dist/prometheus-framework/src/modules/pages/views/components/blocks/CardPage.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/pages/views/components/pages/PageEdit.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/pages/views/components/pages/PageEdit.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/pages/views/components/partials/SidebarPages.vue.cjs +2 -2
- package/dist/prometheus-framework/src/modules/pages/views/components/partials/SidebarPages.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/pages/views/store/pages.cjs +5 -7
- package/dist/prometheus-framework/src/modules/pages/views/store/pages.cjs.map +1 -1
- package/dist/prometheus-framework/src/modules/pages/views/store/pages.js +1 -3
- package/dist/prometheus-framework/src/modules/pages/views/store/pages.js.map +1 -1
- 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/Images360.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/blocks/Images360.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/products/components/blocks/ImagesThumbnails.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/blocks/ImagesThumbnails.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/products/components/layouts/Marketplace.vue.cjs +178 -0
- package/dist/prometheus-framework/src/modules/products/components/layouts/Marketplace.vue.cjs.map +1 -0
- package/dist/prometheus-framework/src/modules/products/components/layouts/Marketplace.vue.js +178 -0
- package/dist/prometheus-framework/src/modules/products/components/layouts/Marketplace.vue.js.map +1 -0
- package/dist/prometheus-framework/src/modules/products/components/pages/Catalog.vue.cjs +62 -0
- package/dist/prometheus-framework/src/modules/products/components/pages/Catalog.vue.cjs.map +1 -0
- package/dist/prometheus-framework/src/modules/products/components/pages/Catalog.vue.js +62 -0
- package/dist/prometheus-framework/src/modules/products/components/pages/Catalog.vue.js.map +1 -0
- 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 +2 -2
- 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 +2 -2
- package/dist/prometheus-framework/src/modules/products/components/pages/EditLeftover.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/products/components/pages/ProductEdit.vue.cjs +2 -2
- package/dist/prometheus-framework/src/modules/products/components/pages/ProductEdit.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/products/components/pages/ProductRecommmendation.vue.cjs +3 -3
- package/dist/prometheus-framework/src/modules/products/components/pages/ProductRecommmendation.vue.js +3 -3
- package/dist/prometheus-framework/src/modules/products/components/pages/Products.vue.cjs +2 -2
- package/dist/prometheus-framework/src/modules/products/components/pages/Products.vue.cjs.map +1 -1
- package/dist/prometheus-framework/src/modules/products/components/pages/Products.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/products/components/pages/Products.vue.js.map +1 -1
- package/dist/prometheus-framework/src/modules/products/components/sections/EditProductInfo.vue.cjs +3 -3
- package/dist/prometheus-framework/src/modules/products/components/sections/EditProductInfo.vue.js +3 -3
- package/dist/prometheus-framework/src/modules/products/components/sections/FilterProducts.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/sections/FilterProducts.vue.cjs.map +1 -1
- package/dist/prometheus-framework/src/modules/products/components/sections/FilterProducts.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/products/components/sections/FilterProducts.vue.js.map +1 -1
- package/dist/prometheus-framework/src/modules/products/components/sections/Filters.vue.cjs +156 -0
- package/dist/prometheus-framework/src/modules/products/components/sections/Filters.vue.cjs.map +1 -0
- package/dist/prometheus-framework/src/modules/products/components/sections/Filters.vue.js +157 -0
- package/dist/prometheus-framework/src/modules/products/components/sections/Filters.vue.js.map +1 -0
- 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.cjs.map +1 -1
- package/dist/prometheus-framework/src/modules/products/components/sections/HeroRecommendation.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/products/components/sections/HeroRecommendation.vue.js.map +1 -1
- package/dist/prometheus-framework/src/modules/products/components/sections/MenuSection.vue.cjs +128 -0
- package/dist/prometheus-framework/src/modules/products/components/sections/MenuSection.vue.cjs.map +1 -0
- package/dist/prometheus-framework/src/modules/products/components/sections/MenuSection.vue.js +128 -0
- package/dist/prometheus-framework/src/modules/products/components/sections/MenuSection.vue.js.map +1 -0
- package/dist/prometheus-framework/src/modules/products/components/sections/PopularProducts.vue.cjs +2 -2
- package/dist/prometheus-framework/src/modules/products/components/sections/PopularProducts.vue.cjs.map +1 -1
- package/dist/prometheus-framework/src/modules/products/components/sections/PopularProducts.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/products/components/sections/PopularProducts.vue.js.map +1 -1
- 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/products/products.client.cjs +74 -7
- package/dist/prometheus-framework/src/modules/products/products.client.cjs.map +1 -1
- package/dist/prometheus-framework/src/modules/products/products.client.js +114 -47
- package/dist/prometheus-framework/src/modules/products/products.client.js.map +1 -1
- package/dist/prometheus-framework/src/modules/products/router/marketplace.router.cjs +46 -0
- package/dist/prometheus-framework/src/modules/products/router/marketplace.router.cjs.map +1 -0
- package/dist/prometheus-framework/src/modules/products/router/marketplace.router.js +46 -0
- package/dist/prometheus-framework/src/modules/products/router/marketplace.router.js.map +1 -0
- package/dist/prometheus-framework/src/modules/products/router/products.router.cjs +79 -36
- package/dist/prometheus-framework/src/modules/products/router/products.router.cjs.map +1 -1
- package/dist/prometheus-framework/src/modules/products/router/products.router.js +78 -35
- package/dist/prometheus-framework/src/modules/products/router/products.router.js.map +1 -1
- package/dist/prometheus-framework/src/modules/products/store/marketplace.cjs +57 -0
- package/dist/prometheus-framework/src/modules/products/store/marketplace.cjs.map +1 -0
- package/dist/prometheus-framework/src/modules/products/store/marketplace.js +57 -0
- package/dist/prometheus-framework/src/modules/products/store/marketplace.js.map +1 -0
- package/dist/prometheus-framework/src/modules/reports/components/sections/FormReport.vue.cjs +3 -3
- package/dist/prometheus-framework/src/modules/reports/components/sections/FormReport.vue.js +3 -3
- package/dist/prometheus-framework/src/modules/spots/components/blocks/SpotMemberModify.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/spots/components/blocks/SpotMemberModify.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/spots/components/layouts/Spots.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/spots/components/layouts/Spots.vue.cjs.map +1 -1
- package/dist/prometheus-framework/src/modules/spots/components/layouts/Spots.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/spots/components/layouts/Spots.vue.js.map +1 -1
- package/dist/prometheus-framework/src/modules/spots/components/pages/Map.vue.cjs +3 -3
- package/dist/prometheus-framework/src/modules/spots/components/pages/Map.vue.cjs.map +1 -1
- package/dist/prometheus-framework/src/modules/spots/components/pages/Map.vue.js +3 -3
- package/dist/prometheus-framework/src/modules/spots/components/pages/Map.vue.js.map +1 -1
- package/dist/prometheus-framework/src/modules/spots/components/pages/Spot.vue.cjs +2 -2
- package/dist/prometheus-framework/src/modules/spots/components/pages/Spot.vue.cjs.map +1 -1
- package/dist/prometheus-framework/src/modules/spots/components/pages/Spot.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/spots/components/pages/Spot.vue.js.map +1 -1
- package/dist/prometheus-framework/src/modules/spots/components/pages/SpotEdit.vue.cjs +3 -3
- package/dist/prometheus-framework/src/modules/spots/components/pages/SpotEdit.vue.js +3 -3
- package/dist/prometheus-framework/src/modules/users/components/pages/Profile.vue.cjs +2 -2
- package/dist/prometheus-framework/src/modules/users/components/pages/Profile.vue.js +2 -2
- 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 +1 -1
- package/dist/prometheus-framework/src/modules/wallet/views/components/blocks/CryptoDeposit.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/wallet/views/components/blocks/CryptoDeposit.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/wallet/views/components/pages/Wallet.vue.cjs +3 -3
- package/dist/prometheus-framework/src/modules/wallet/views/components/pages/Wallet.vue.js +3 -3
- package/package.json +1 -1
- package/src/builder/webpack/webpack.config.client.js +2 -2
- package/src/builder/webpack/webpack.config.server.js +1 -1
- package/src/builder/webpack/webpack.config.spa.js +1 -1
- package/src/builder/webpack/webpack.config.ssr.js +1 -1
- package/src/modules/auth/auth.client.js +16 -3
- package/src/modules/auth/auth.server.js +22 -1
- package/src/modules/{users → auth/controllers}/routes/users.routes.js +1 -1
- package/src/modules/auth/controllers/services/auth.service.js +0 -1
- package/src/modules/{users → auth/views}/components/pages/Profile.vue +1 -1
- package/src/modules/{users → auth/views}/components/pages/ProfileEdit.vue +2 -2
- package/src/modules/{users → auth/views}/components/sections/FeaturedUsers.vue +2 -2
- package/src/modules/auth/views/router/users.js +79 -0
- package/src/modules/backoffice/backoffice.client.js +53 -11
- package/src/modules/backoffice/router/backoffice.js +29 -2
- package/src/modules/community/community.client.js +56 -10
- package/src/modules/community/community.server.js +35 -14
- package/src/modules/community/models/comment.model.js +7 -7
- package/src/modules/community/models/reaction.model.js +5 -5
- package/src/modules/community/router/blogposts.js +55 -57
- package/src/modules/events/events.server.js +37 -16
- package/src/modules/events/models/ticket.model.js +6 -6
- package/src/modules/gallery/gallery.client.js +44 -8
- package/src/modules/gallery/gallery.server.js +28 -9
- package/src/modules/gallery/router/gallery.router.js +2 -2
- package/src/modules/globals/globals.client.js +15 -14
- package/src/modules/governance/controllers/factories/initiatives.controller.js +94 -0
- package/src/modules/governance/controllers/factories/tasks.controller.js +94 -0
- package/src/modules/governance/controllers/factories/votes.controller.js +68 -0
- package/src/modules/governance/controllers/factories/votings.controller.js +112 -0
- package/src/modules/governance/controllers/routes/initiatives.routes.js +13 -0
- package/src/modules/governance/controllers/routes/tasks.routes.js +13 -0
- package/src/modules/governance/controllers/routes/votes.routes.js +11 -0
- package/src/modules/governance/controllers/routes/votings.routes.js +14 -0
- package/src/modules/governance/models/initiative.model.js +25 -0
- package/src/modules/governance/models/task.model.js +21 -0
- package/src/modules/governance/models/vote.model.js +20 -0
- package/src/modules/governance/models/voting.model.js +22 -0
- package/src/modules/governance/views/components/blocks/CardInitiativeItem.vue +18 -0
- package/src/modules/governance/views/components/blocks/CardTaskItem.vue +19 -0
- package/src/modules/governance/views/components/blocks/CardVotingItem.vue +18 -0
- package/src/modules/governance/views/components/pages/Initiative.vue +22 -0
- package/src/modules/governance/views/components/pages/InitiativeCreate.vue +24 -0
- package/src/modules/governance/views/components/pages/Initiatives.vue +19 -0
- package/src/modules/governance/views/components/pages/Task.vue +23 -0
- package/src/modules/governance/views/components/pages/TaskCreate.vue +25 -0
- package/src/modules/governance/views/components/pages/Tasks.vue +19 -0
- package/src/modules/governance/views/components/pages/Voting.vue +30 -0
- package/src/modules/governance/views/components/pages/VotingCreate.vue +25 -0
- package/src/modules/governance/views/components/pages/Votings.vue +19 -0
- package/src/modules/governance/views/components/partials/RewardDisplay.vue +19 -0
- package/src/modules/governance/views/components/partials/VoteDisplay.vue +21 -0
- package/src/modules/governance/views/components/partials/VotingResult.vue +21 -0
- package/src/modules/governance/views/components/sections/FormInitiativeDetails.vue +37 -0
- package/src/modules/governance/views/components/sections/FormTaskDetails.vue +41 -0
- package/src/modules/governance/views/components/sections/FormVotingDetails.vue +37 -0
- package/src/modules/governance/views/components/sections/VoteForm.vue +29 -0
- package/src/modules/governance/views/store/initiatives.js +102 -0
- package/src/modules/governance/views/store/tasks.js +104 -0
- package/src/modules/governance/views/store/votes.js +115 -0
- package/src/modules/governance/views/store/votings.js +81 -0
- package/src/modules/orders/components/pages/OrderCreate.vue +1 -1
- package/src/modules/orders/components/pages/OrderCreateBackoffice.vue +1 -1
- package/src/modules/orders/components/sections/FormAddCustomer.vue +2 -2
- package/src/modules/orders/orders.client.js +4 -1
- package/src/modules/orders/orders.server.js +1 -0
- package/src/modules/organizations/components/blocks/CardDepartment.vue +1 -1
- package/src/modules/organizations/components/blocks/CardOrganization.vue +1 -1
- package/src/modules/organizations/components/pages/Department.vue +1 -1
- package/src/modules/organizations/components/pages/DepartmentEdit.vue +1 -1
- package/src/modules/organizations/components/pages/Members.vue +1 -1
- package/src/modules/organizations/components/pages/Organization.vue +1 -1
- package/src/modules/organizations/components/sections/MembersAdd.vue +2 -2
- package/src/modules/organizations/controllers/organizations.controller.js +0 -2
- package/src/modules/organizations/models/department.model.js +7 -7
- package/src/modules/organizations/models/membership.model.js +5 -5
- package/src/modules/organizations/organizations.client.js +71 -16
- package/src/modules/organizations/organizations.server.js +43 -18
- package/src/modules/organizations/router/organizations.js +6 -13
- package/src/modules/pages/views/store/pages.js +1 -3
- package/src/modules/{marketplace → products}/components/layouts/Marketplace.vue +19 -19
- package/src/modules/{marketplace → products}/components/pages/Catalog.vue +0 -2
- package/src/modules/products/components/pages/Products.vue +2 -2
- package/src/modules/products/components/sections/FilterProducts.vue +1 -1
- package/src/modules/{marketplace → products}/components/sections/Filters.vue +12 -15
- package/src/modules/products/components/sections/HeroRecommendation.vue +1 -1
- package/src/modules/products/components/sections/MenuSection.vue +8 -9
- package/src/modules/products/components/sections/PopularProducts.vue +1 -1
- package/src/modules/products/models/category.model.js +3 -3
- package/src/modules/products/models/product.model.js +7 -7
- package/src/modules/products/products.client.js +95 -27
- package/src/modules/products/products.server.js +47 -16
- package/src/modules/products/router/marketplace.router.js +38 -0
- package/src/modules/products/router/products.router.js +72 -32
- package/src/modules/spots/components/layouts/Spots.vue +1 -1
- package/src/modules/spots/components/pages/Map.vue +1 -1
- package/src/modules/spots/components/pages/Spot.vue +1 -1
- package/src/modules/backoffice/router/admin.js +0 -51
- package/src/modules/landing/components/pages/404.vue +0 -3
- package/src/modules/landing/components/pages/Farming.vue +0 -226
- package/src/modules/landing/components/pages/Governance.vue +0 -144
- package/src/modules/landing/components/pages/Home.vue +0 -51
- package/src/modules/landing/components/pages/Hotel.vue +0 -43
- package/src/modules/landing/router/landing.js +0 -39
- package/src/modules/legal/components/pages/Legal.vue +0 -62
- package/src/modules/legal/components/pages/legal/Cookies.vue +0 -370
- package/src/modules/legal/components/pages/legal/EULA.vue +0 -2145
- package/src/modules/legal/components/pages/legal/Privacy.vue +0 -4284
- package/src/modules/legal/components/pages/legal/Terms.vue +0 -1283
- package/src/modules/legal/legal.client.js +0 -18
- package/src/modules/legal/router/legal.js +0 -59
- package/src/modules/marketplace/router/marketplace.js +0 -55
- package/src/modules/users/router/users.js +0 -90
- package/src/modules/users/users.client.js +0 -22
- package/src/modules/users/users.server.js +0 -13
- /package/src/modules/{users → auth/controllers}/middlewares/visitor.logger.js +0 -0
- /package/src/modules/{users/controllers/users.controller.js → auth/controllers/services/users.service.js} +0 -0
- /package/src/modules/{users → auth}/models/request.model.js +0 -0
- /package/src/modules/{users → auth}/models/user.model.js +0 -0
- /package/src/modules/{users → auth}/models/visitor.model.js +0 -0
- /package/src/modules/{users → auth/views}/components/blocks/CardUser.vue +0 -0
- /package/src/modules/{users → auth/views}/components/pages/ProfileBlogposts.vue +0 -0
- /package/src/modules/{users → auth/views}/components/pages/ProfileComments.vue +0 -0
- /package/src/modules/{users → auth/views}/components/pages/ProfileLikes.vue +0 -0
- /package/src/modules/{users → auth/views}/components/sections/ProfileCompletion.vue +0 -0
- /package/src/modules/{users → auth/views}/router/account.js +0 -0
- /package/src/modules/{users → auth/views}/store/users.js +0 -0
- /package/src/modules/{projects/controller → governance/controllers/factories}/projects.controller.js +0 -0
- /package/src/modules/{projects → governance/controllers}/routes/projects.routes.js +0 -0
- /package/src/modules/{projects → governance}/models/project.model.js +0 -0
- /package/src/modules/{projects → governance/views}/store/projects.js +0 -0
- /package/src/modules/{marketplace → products}/store/marketplace.js +0 -0
package/dist/prometheus-framework/src/modules/auth/views/components/sections/FeaturedUsers.vue.js
ADDED
@@ -0,0 +1,114 @@
|
|
1
|
+
import { ref, onMounted, resolveComponent, openBlock, createElementBlock, createElementVNode, createVNode, withCtx, Fragment, renderList, createBlock, createTextVNode } from "vue";
|
2
|
+
import { actions } from "../../store/users.js";
|
3
|
+
import _sfc_main$1 from "../../../../../components/Marquee/Marquee.vue.js";
|
4
|
+
import _sfc_main$2 from "../blocks/CardUser.vue.js";
|
5
|
+
/* empty css */
|
6
|
+
const _hoisted_1 = { class: "o-hidden w-100" };
|
7
|
+
const _hoisted_2 = { class: "flex flex-nowrap" };
|
8
|
+
const _hoisted_3 = { class: "flex flex-nowrap" };
|
9
|
+
const _hoisted_4 = { class: "flex flex-nowrap" };
|
10
|
+
const _sfc_main = {
|
11
|
+
__name: "FeaturedUsers",
|
12
|
+
setup(__props) {
|
13
|
+
const usersList = ref([]);
|
14
|
+
onMounted(async () => {
|
15
|
+
usersList.value = await actions.read({
|
16
|
+
limit: 25
|
17
|
+
});
|
18
|
+
});
|
19
|
+
return (_ctx, _cache) => {
|
20
|
+
const _component_router_link = resolveComponent("router-link");
|
21
|
+
return openBlock(), createElementBlock("div", _hoisted_1, [
|
22
|
+
_cache[1] || (_cache[1] = createElementVNode("div", { class: "flex-center flex w-100" }, [
|
23
|
+
createElementVNode("h2", { class: "t-center h2 w-max-50 mn-b-big" }, " Ask the hundreds shaping your entertainment for decades ")
|
24
|
+
], -1)),
|
25
|
+
createVNode(_sfc_main$1, {
|
26
|
+
class: "mn-b-thin",
|
27
|
+
gradient: true,
|
28
|
+
gradientColor: "var(--white)",
|
29
|
+
gradientLength: "10%",
|
30
|
+
direction: "normal",
|
31
|
+
pauseOnHover: false,
|
32
|
+
clone: true
|
33
|
+
}, {
|
34
|
+
default: withCtx(() => [
|
35
|
+
createElementVNode("div", _hoisted_2, [
|
36
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(usersList.value.slice(0, 6), (user) => {
|
37
|
+
return openBlock(), createBlock(_sfc_main$2, {
|
38
|
+
class: "mn-r-thin h4 h-8r flex-child-grow-0 flex-child bg-light pd-small radius-medium",
|
39
|
+
user,
|
40
|
+
photo: user.profile.photo,
|
41
|
+
name: user.profile.name || user.phone || user.username,
|
42
|
+
phone: "DJ"
|
43
|
+
}, null, 8, ["user", "photo", "name"]);
|
44
|
+
}), 256))
|
45
|
+
])
|
46
|
+
]),
|
47
|
+
_: 1
|
48
|
+
}),
|
49
|
+
createVNode(_sfc_main$1, {
|
50
|
+
class: "mn-b-thin",
|
51
|
+
gradient: true,
|
52
|
+
gradientColor: "var(--white)",
|
53
|
+
gradientLength: "10%",
|
54
|
+
direction: "reverse",
|
55
|
+
pauseOnHover: false,
|
56
|
+
clone: true
|
57
|
+
}, {
|
58
|
+
default: withCtx(() => [
|
59
|
+
createElementVNode("div", _hoisted_3, [
|
60
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(usersList.value.slice(7, 14), (user) => {
|
61
|
+
return openBlock(), createBlock(_sfc_main$2, {
|
62
|
+
class: "mn-r-thin h4 h-8r flex-child-grow-0 flex-child bg-light pd-small radius-medium",
|
63
|
+
user,
|
64
|
+
photo: user.profile.photo,
|
65
|
+
name: user.profile.name || user.phone || user.username,
|
66
|
+
phone: "DJ"
|
67
|
+
}, null, 8, ["user", "photo", "name"]);
|
68
|
+
}), 256))
|
69
|
+
])
|
70
|
+
]),
|
71
|
+
_: 1
|
72
|
+
}),
|
73
|
+
createVNode(_sfc_main$1, {
|
74
|
+
class: "mn-b-big",
|
75
|
+
gradient: true,
|
76
|
+
gradientColor: "var(--white)",
|
77
|
+
gradientLength: "10%",
|
78
|
+
direction: "normal",
|
79
|
+
pauseOnHover: false,
|
80
|
+
clone: true
|
81
|
+
}, {
|
82
|
+
default: withCtx(() => [
|
83
|
+
createElementVNode("div", _hoisted_4, [
|
84
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(usersList.value.slice(15, 22), (user) => {
|
85
|
+
return openBlock(), createBlock(_sfc_main$2, {
|
86
|
+
class: "mn-r-thin h4 h-8r flex-child-grow-0 flex-child bg-light pd-small radius-medium",
|
87
|
+
user,
|
88
|
+
photo: user.profile.photo,
|
89
|
+
name: user.profile.name || user.phone || user.username,
|
90
|
+
phone: "DJ"
|
91
|
+
}, null, 8, ["user", "photo", "name"]);
|
92
|
+
}), 256))
|
93
|
+
])
|
94
|
+
]),
|
95
|
+
_: 1
|
96
|
+
}),
|
97
|
+
_cache[2] || (_cache[2] = createElementVNode("p", { class: "w-m-33r mn-r-auto mn-l-auto t-center mn-b-small p-big" }, " Together, we're shaping the future of the globals music community. ", -1)),
|
98
|
+
createVNode(_component_router_link, {
|
99
|
+
to: { name: "Sign In" },
|
100
|
+
class: "bg-black mn-r-auto mn-l-auto t-medium t-white button"
|
101
|
+
}, {
|
102
|
+
default: withCtx(() => _cache[0] || (_cache[0] = [
|
103
|
+
createTextVNode(" Join Now ")
|
104
|
+
])),
|
105
|
+
_: 1
|
106
|
+
})
|
107
|
+
]);
|
108
|
+
};
|
109
|
+
}
|
110
|
+
};
|
111
|
+
export {
|
112
|
+
_sfc_main as default
|
113
|
+
};
|
114
|
+
//# sourceMappingURL=FeaturedUsers.vue.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"FeaturedUsers.vue.js","sources":["../../../../../../../../src/modules/auth/views/components/sections/FeaturedUsers.vue"],"sourcesContent":["<template>\n <div class=\"o-hidden w-100\">\n <div class=\"flex-center flex w-100\">\n <h2 class=\"t-center h2 w-max-50 mn-b-big\">\n Ask the hundreds shaping your entertainment for decades\n </h2>\n </div>\n <Marquee\n class=\"mn-b-thin\"\n :gradient=\"true\"\n :gradientColor=\"'var(--white)'\"\n :gradientLength=\"'10%'\"\n :direction=\"'normal'\"\n :pauseOnHover=\"false\"\n :clone=\"true\"\n >\n <div class=\"flex flex-nowrap\">\n <CardUser \n v-for=\"user in usersList.slice(0,6)\" \n class=\"mn-r-thin h4 h-8r flex-child-grow-0 flex-child bg-light pd-small radius-medium\"\n :user=\"user\" \n :photo=\"user.profile.photo\"\n :name=\"user.profile.name || user.phone || user.username\"\n :phone=\"'DJ'\"\n /> \n </div>\n </Marquee>\n\n <Marquee\n class=\"mn-b-thin\"\n :gradient=\"true\"\n :gradientColor=\"'var(--white)'\"\n :gradientLength=\"'10%'\"\n :direction=\"'reverse'\"\n :pauseOnHover=\"false\"\n :clone=\"true\"\n >\n <div class=\"flex flex-nowrap\">\n <CardUser \n v-for=\"user in usersList.slice(7,14)\" \n class=\"mn-r-thin h4 h-8r flex-child-grow-0 flex-child bg-light pd-small radius-medium\"\n :user=\"user\" \n :photo=\"user.profile.photo\"\n :name=\"user.profile.name || user.phone || user.username\"\n :phone=\"'DJ'\"\n /> \n </div>\n </Marquee>\n\n <Marquee\n class=\"mn-b-big\"\n :gradient=\"true\"\n :gradientColor=\"'var(--white)'\"\n :gradientLength=\"'10%'\"\n :direction=\"'normal'\"\n :pauseOnHover=\"false\"\n :clone=\"true\"\n >\n <div class=\"flex flex-nowrap\">\n <CardUser \n v-for=\"user in usersList.slice(15,22)\" \n class=\"mn-r-thin h4 h-8r flex-child-grow-0 flex-child bg-light pd-small radius-medium\"\n :user=\"user\" \n :photo=\"user.profile.photo\"\n :name=\"user.profile.name || user.phone || user.username\"\n :phone=\"'DJ'\"\n /> \n </div>\n </Marquee>\n\n <p class=\"w-m-33r mn-r-auto mn-l-auto t-center mn-b-small p-big\">\n Together, we're shaping the future of the globals music community.\n </p>\n <router-link :to=\"{ name: 'Sign In' }\" class=\"bg-black mn-r-auto mn-l-auto t-medium t-white button\">\n Join Now\n </router-link>\n </div>\n</template>\n\n<script setup>\nimport { ref, onMounted } from 'vue';\n\nimport * as users from '@pf/src/modules/auth/views/store/users'\n\nimport Marquee from '@pf/src/components/Marquee/Marquee.vue'\n\nimport CardUser from '@pf/src/modules/auth/views/components/blocks/CardUser.vue'\n\nconst usersList = ref([])\n\nonMounted(async() => {\n usersList.value = await users.actions.read({\n limit: 25\n })\n});\n</script>\n\n<style lang=\"scss\">\n .selector {\n flex-grow: 1;\n flex-basis: 0;\n min-width: 0;\n }\n</style>\n"],"names":["users.actions"],"mappings":";;;;;;;;;;;;AAwFA,UAAM,YAAY,IAAI,EAAE;AAExB,cAAU,YAAW;AACnB,gBAAU,QAAQ,MAAMA,QAAc,KAAK;AAAA,QACzC,OAAO;AAAA,MACX,CAAG;AAAA,IACH,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
@@ -0,0 +1,72 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
3
|
+
const vue = require("vue");
|
4
|
+
const _hoisted_1 = { class: "w-100 mn-b-semi radius-medium pd-medium bg-second t-black" };
|
5
|
+
const _hoisted_2 = { class: "mn-b-thin flex-v-center flex-nowrap flex" };
|
6
|
+
const _hoisted_3 = { class: "mn-l-thin uppercase radius-big t-semi t-medium t-white bg-black w-max pd-thin" };
|
7
|
+
const _hoisted_4 = { class: "w-100 h-2r pos-relative pd-nano bg-black radius-big" };
|
8
|
+
const _sfc_main = {
|
9
|
+
__name: "ProfileCompletion",
|
10
|
+
props: {
|
11
|
+
user: Object,
|
12
|
+
target: Object,
|
13
|
+
cta: Boolean,
|
14
|
+
percentage: Number,
|
15
|
+
text: String,
|
16
|
+
text_cta: String
|
17
|
+
},
|
18
|
+
setup(__props) {
|
19
|
+
const completionPercentage = vue.ref(0);
|
20
|
+
const calculateCompletion = (profileObject) => {
|
21
|
+
let totalProperties = 0;
|
22
|
+
let filledProperties = 0;
|
23
|
+
function recurse(obj) {
|
24
|
+
for (let key in obj) {
|
25
|
+
if (obj.hasOwnProperty(key)) {
|
26
|
+
if (obj[key] && typeof obj[key] === "object" && !Array.isArray(obj[key])) {
|
27
|
+
recurse(obj[key]);
|
28
|
+
} else {
|
29
|
+
totalProperties++;
|
30
|
+
if (obj[key] != null && obj[key] !== "") {
|
31
|
+
filledProperties++;
|
32
|
+
}
|
33
|
+
}
|
34
|
+
}
|
35
|
+
}
|
36
|
+
}
|
37
|
+
recurse(profileObject);
|
38
|
+
return totalProperties === 0 ? 0 : Math.round(filledProperties / totalProperties * 100);
|
39
|
+
};
|
40
|
+
if (__props.target) completionPercentage.value = calculateCompletion(__props.target);
|
41
|
+
return (_ctx, _cache) => {
|
42
|
+
const _component_router_link = vue.resolveComponent("router-link");
|
43
|
+
return vue.openBlock(), vue.createElementBlock("section", _hoisted_1, [
|
44
|
+
vue.createElementVNode("div", _hoisted_2, [
|
45
|
+
vue.createElementVNode("h4", null, vue.toDisplayString(__props.text), 1),
|
46
|
+
vue.createElementVNode("h4", _hoisted_3, vue.toDisplayString(__props.percentage || completionPercentage.value) + "% ", 1),
|
47
|
+
__props.cta ? (vue.openBlock(), vue.createBlock(_component_router_link, {
|
48
|
+
key: 0,
|
49
|
+
to: {
|
50
|
+
name: "User Edit Profile",
|
51
|
+
params: { _id: __props.user }
|
52
|
+
},
|
53
|
+
class: "mn-l-auto uppercase radius-big t-semi t-medium t-white bg-black w-max pd-thin"
|
54
|
+
}, {
|
55
|
+
default: vue.withCtx(() => [
|
56
|
+
vue.createTextVNode(vue.toDisplayString(__props.text_cta), 1)
|
57
|
+
]),
|
58
|
+
_: 1
|
59
|
+
}, 8, ["to"])) : vue.createCommentVNode("", true)
|
60
|
+
]),
|
61
|
+
vue.createElementVNode("div", _hoisted_4, [
|
62
|
+
vue.createElementVNode("div", {
|
63
|
+
style: vue.normalizeStyle(`width: ${completionPercentage.value}%`),
|
64
|
+
class: "h-100 bg-second mn-b-thin radius-big"
|
65
|
+
}, null, 4)
|
66
|
+
])
|
67
|
+
]);
|
68
|
+
};
|
69
|
+
}
|
70
|
+
};
|
71
|
+
exports.default = _sfc_main;
|
72
|
+
//# sourceMappingURL=ProfileCompletion.vue.cjs.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"ProfileCompletion.vue.cjs","sources":["../../../../../../../../src/modules/auth/views/components/sections/ProfileCompletion.vue"],"sourcesContent":["<template>\n <section class=\"w-100 mn-b-semi radius-medium pd-medium bg-second t-black\">\n <div class=\"mn-b-thin flex-v-center flex-nowrap flex\"> \n <h4>\n {{text}}\n </h4>\n\n <h4 class=\"mn-l-thin uppercase radius-big t-semi t-medium t-white bg-black w-max pd-thin\">\n {{ percentage || completionPercentage }}%\n </h4>\n\n <router-link\n v-if=\"cta\"\n :to=\"{\n name: 'User Edit Profile',\n params: { _id: user }\n }\"\n class=\"mn-l-auto uppercase radius-big t-semi t-medium t-white bg-black w-max pd-thin\"\n >\n {{text_cta}}\n </router-link>\n </div> \n\n <div class=\" w-100 h-2r pos-relative pd-nano bg-black radius-big\">\n <div :style=\"`width: ${completionPercentage}%`\"class=\"h-100 bg-second mn-b-thin radius-big\">\n </div>\n </div>\n \n </section>\n</template>\n\n<script setup>\nimport { ref, onMounted } from 'vue'\n\nconst { user, cta, target} = defineProps({\n user: Object,\n target: Object,\n cta: Boolean,\n percentage: Number,\n text: String,\n text_cta: String,\n})\n\nconst completionPercentage = ref(0)\n\nconst calculateCompletion = (profileObject) => {\n let totalProperties = 0;\n let filledProperties = 0;\n\n function recurse(obj) {\n for (let key in obj) {\n if (obj.hasOwnProperty(key)) {\n if (obj[key] && typeof obj[key] === 'object' && !Array.isArray(obj[key])) {\n recurse(obj[key]); // Recurse into nested objects\n } else {\n totalProperties++;\n if (obj[key] != null && obj[key] !== '') {\n filledProperties++;\n }\n }\n }\n }\n }\n\n recurse(profileObject);\n\n return (totalProperties === 0 ? 0 : Math.round((filledProperties / totalProperties) * 100));\n\n};\n\n\nif (target) completionPercentage.value = calculateCompletion(target)\n</script>\n\n<style scoped>\n</style>"],"names":["ref"],"mappings":";;;;;;;;;;;;;;;;;;AA2CA,UAAM,uBAAuBA,IAAG,IAAC,CAAC;AAElC,UAAM,sBAAsB,CAAC,kBAAkB;AAC3C,UAAI,kBAAkB;AACtB,UAAI,mBAAmB;AAEvB,eAAS,QAAQ,KAAK;AAClB,iBAAS,OAAO,KAAK;AACjB,cAAI,IAAI,eAAe,GAAG,GAAG;AACzB,gBAAI,IAAI,GAAG,KAAK,OAAO,IAAI,GAAG,MAAM,YAAY,CAAC,MAAM,QAAQ,IAAI,GAAG,CAAC,GAAG;AACtE,sBAAQ,IAAI,GAAG,CAAC;AAAA,YACpC,OAAuB;AACH;AACA,kBAAI,IAAI,GAAG,KAAK,QAAQ,IAAI,GAAG,MAAM,IAAI;AACrC;AAAA,cACH;AAAA,YACJ;AAAA,UACJ;AAAA,QACJ;AAAA,MACJ;AAED,cAAQ,aAAa;AAEvB,aAAQ,oBAAoB,IAAI,IAAI,KAAK,MAAO,mBAAmB,kBAAmB,GAAG;AAAA,IAE3F;AAGA,QAAI,QAAM,OAAE,sBAAqB,QAAQ,oBAAoB,QAAA,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
@@ -0,0 +1,72 @@
|
|
1
|
+
import { ref, resolveComponent, openBlock, createElementBlock, createElementVNode, toDisplayString, createBlock, withCtx, createTextVNode, createCommentVNode, normalizeStyle } from "vue";
|
2
|
+
const _hoisted_1 = { class: "w-100 mn-b-semi radius-medium pd-medium bg-second t-black" };
|
3
|
+
const _hoisted_2 = { class: "mn-b-thin flex-v-center flex-nowrap flex" };
|
4
|
+
const _hoisted_3 = { class: "mn-l-thin uppercase radius-big t-semi t-medium t-white bg-black w-max pd-thin" };
|
5
|
+
const _hoisted_4 = { class: "w-100 h-2r pos-relative pd-nano bg-black radius-big" };
|
6
|
+
const _sfc_main = {
|
7
|
+
__name: "ProfileCompletion",
|
8
|
+
props: {
|
9
|
+
user: Object,
|
10
|
+
target: Object,
|
11
|
+
cta: Boolean,
|
12
|
+
percentage: Number,
|
13
|
+
text: String,
|
14
|
+
text_cta: String
|
15
|
+
},
|
16
|
+
setup(__props) {
|
17
|
+
const completionPercentage = ref(0);
|
18
|
+
const calculateCompletion = (profileObject) => {
|
19
|
+
let totalProperties = 0;
|
20
|
+
let filledProperties = 0;
|
21
|
+
function recurse(obj) {
|
22
|
+
for (let key in obj) {
|
23
|
+
if (obj.hasOwnProperty(key)) {
|
24
|
+
if (obj[key] && typeof obj[key] === "object" && !Array.isArray(obj[key])) {
|
25
|
+
recurse(obj[key]);
|
26
|
+
} else {
|
27
|
+
totalProperties++;
|
28
|
+
if (obj[key] != null && obj[key] !== "") {
|
29
|
+
filledProperties++;
|
30
|
+
}
|
31
|
+
}
|
32
|
+
}
|
33
|
+
}
|
34
|
+
}
|
35
|
+
recurse(profileObject);
|
36
|
+
return totalProperties === 0 ? 0 : Math.round(filledProperties / totalProperties * 100);
|
37
|
+
};
|
38
|
+
if (__props.target) completionPercentage.value = calculateCompletion(__props.target);
|
39
|
+
return (_ctx, _cache) => {
|
40
|
+
const _component_router_link = resolveComponent("router-link");
|
41
|
+
return openBlock(), createElementBlock("section", _hoisted_1, [
|
42
|
+
createElementVNode("div", _hoisted_2, [
|
43
|
+
createElementVNode("h4", null, toDisplayString(__props.text), 1),
|
44
|
+
createElementVNode("h4", _hoisted_3, toDisplayString(__props.percentage || completionPercentage.value) + "% ", 1),
|
45
|
+
__props.cta ? (openBlock(), createBlock(_component_router_link, {
|
46
|
+
key: 0,
|
47
|
+
to: {
|
48
|
+
name: "User Edit Profile",
|
49
|
+
params: { _id: __props.user }
|
50
|
+
},
|
51
|
+
class: "mn-l-auto uppercase radius-big t-semi t-medium t-white bg-black w-max pd-thin"
|
52
|
+
}, {
|
53
|
+
default: withCtx(() => [
|
54
|
+
createTextVNode(toDisplayString(__props.text_cta), 1)
|
55
|
+
]),
|
56
|
+
_: 1
|
57
|
+
}, 8, ["to"])) : createCommentVNode("", true)
|
58
|
+
]),
|
59
|
+
createElementVNode("div", _hoisted_4, [
|
60
|
+
createElementVNode("div", {
|
61
|
+
style: normalizeStyle(`width: ${completionPercentage.value}%`),
|
62
|
+
class: "h-100 bg-second mn-b-thin radius-big"
|
63
|
+
}, null, 4)
|
64
|
+
])
|
65
|
+
]);
|
66
|
+
};
|
67
|
+
}
|
68
|
+
};
|
69
|
+
export {
|
70
|
+
_sfc_main as default
|
71
|
+
};
|
72
|
+
//# sourceMappingURL=ProfileCompletion.vue.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"ProfileCompletion.vue.js","sources":["../../../../../../../../src/modules/auth/views/components/sections/ProfileCompletion.vue"],"sourcesContent":["<template>\n <section class=\"w-100 mn-b-semi radius-medium pd-medium bg-second t-black\">\n <div class=\"mn-b-thin flex-v-center flex-nowrap flex\"> \n <h4>\n {{text}}\n </h4>\n\n <h4 class=\"mn-l-thin uppercase radius-big t-semi t-medium t-white bg-black w-max pd-thin\">\n {{ percentage || completionPercentage }}%\n </h4>\n\n <router-link\n v-if=\"cta\"\n :to=\"{\n name: 'User Edit Profile',\n params: { _id: user }\n }\"\n class=\"mn-l-auto uppercase radius-big t-semi t-medium t-white bg-black w-max pd-thin\"\n >\n {{text_cta}}\n </router-link>\n </div> \n\n <div class=\" w-100 h-2r pos-relative pd-nano bg-black radius-big\">\n <div :style=\"`width: ${completionPercentage}%`\"class=\"h-100 bg-second mn-b-thin radius-big\">\n </div>\n </div>\n \n </section>\n</template>\n\n<script setup>\nimport { ref, onMounted } from 'vue'\n\nconst { user, cta, target} = defineProps({\n user: Object,\n target: Object,\n cta: Boolean,\n percentage: Number,\n text: String,\n text_cta: String,\n})\n\nconst completionPercentage = ref(0)\n\nconst calculateCompletion = (profileObject) => {\n let totalProperties = 0;\n let filledProperties = 0;\n\n function recurse(obj) {\n for (let key in obj) {\n if (obj.hasOwnProperty(key)) {\n if (obj[key] && typeof obj[key] === 'object' && !Array.isArray(obj[key])) {\n recurse(obj[key]); // Recurse into nested objects\n } else {\n totalProperties++;\n if (obj[key] != null && obj[key] !== '') {\n filledProperties++;\n }\n }\n }\n }\n }\n\n recurse(profileObject);\n\n return (totalProperties === 0 ? 0 : Math.round((filledProperties / totalProperties) * 100));\n\n};\n\n\nif (target) completionPercentage.value = calculateCompletion(target)\n</script>\n\n<style scoped>\n</style>"],"names":[],"mappings":";;;;;;;;;;;;;;;;AA2CA,UAAM,uBAAuB,IAAI,CAAC;AAElC,UAAM,sBAAsB,CAAC,kBAAkB;AAC3C,UAAI,kBAAkB;AACtB,UAAI,mBAAmB;AAEvB,eAAS,QAAQ,KAAK;AAClB,iBAAS,OAAO,KAAK;AACjB,cAAI,IAAI,eAAe,GAAG,GAAG;AACzB,gBAAI,IAAI,GAAG,KAAK,OAAO,IAAI,GAAG,MAAM,YAAY,CAAC,MAAM,QAAQ,IAAI,GAAG,CAAC,GAAG;AACtE,sBAAQ,IAAI,GAAG,CAAC;AAAA,YACpC,OAAuB;AACH;AACA,kBAAI,IAAI,GAAG,KAAK,QAAQ,IAAI,GAAG,MAAM,IAAI;AACrC;AAAA,cACH;AAAA,YACJ;AAAA,UACJ;AAAA,QACJ;AAAA,MACJ;AAED,cAAQ,aAAa;AAEvB,aAAQ,oBAAoB,IAAI,IAAI,KAAK,MAAO,mBAAmB,kBAAmB,GAAG;AAAA,IAE3F;AAGA,QAAI,QAAM,OAAE,sBAAqB,QAAQ,oBAAoB,QAAA,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
@@ -0,0 +1,97 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
3
|
+
const auth_validation = require("../middlewares/auth.validation.cjs");
|
4
|
+
const users = {
|
5
|
+
path: "users",
|
6
|
+
name: "Users",
|
7
|
+
meta: {
|
8
|
+
title: {
|
9
|
+
en: "Users",
|
10
|
+
ru: "Пользователи"
|
11
|
+
}
|
12
|
+
},
|
13
|
+
children: [{
|
14
|
+
path: ":_id",
|
15
|
+
name: "User Profile",
|
16
|
+
meta: {
|
17
|
+
title: {
|
18
|
+
en: "Profile",
|
19
|
+
ru: "Профиль"
|
20
|
+
}
|
21
|
+
},
|
22
|
+
component: () => Promise.resolve().then(() => require(
|
23
|
+
/* webpackChunkName: "profile" */
|
24
|
+
"../components/pages/Profile.vue.cjs"
|
25
|
+
))
|
26
|
+
}, {
|
27
|
+
path: ":_id/edit",
|
28
|
+
name: "User Edit Profile",
|
29
|
+
beforeEnter: [
|
30
|
+
auth_validation.requiresAuth
|
31
|
+
],
|
32
|
+
meta: {
|
33
|
+
title: {
|
34
|
+
en: "Edit Profile",
|
35
|
+
ru: "Редактировать Профиль"
|
36
|
+
}
|
37
|
+
},
|
38
|
+
component: () => Promise.resolve().then(() => require(
|
39
|
+
/* webpackChunkName: "profile" */
|
40
|
+
"../components/pages/ProfileEdit.vue.cjs"
|
41
|
+
))
|
42
|
+
}, {
|
43
|
+
path: ":_id/blogposts",
|
44
|
+
name: "User Blogposts",
|
45
|
+
meta: {
|
46
|
+
title: {
|
47
|
+
en: "Posts",
|
48
|
+
ru: "Посты"
|
49
|
+
}
|
50
|
+
},
|
51
|
+
component: () => Promise.resolve().then(() => require(
|
52
|
+
/* webpackChunkName: "profile" */
|
53
|
+
"../components/pages/ProfileBlogposts.vue.cjs"
|
54
|
+
))
|
55
|
+
}, {
|
56
|
+
path: ":user/events",
|
57
|
+
name: "User Events",
|
58
|
+
meta: {
|
59
|
+
title: {
|
60
|
+
en: "Events",
|
61
|
+
ru: "События"
|
62
|
+
}
|
63
|
+
},
|
64
|
+
component: () => Promise.resolve().then(() => require(
|
65
|
+
/* webpackChunkName: "profile" */
|
66
|
+
"../../../events/components/pages/EventsBackoffice.vue.cjs"
|
67
|
+
))
|
68
|
+
}, {
|
69
|
+
path: ":_id/organizations",
|
70
|
+
name: "User Organizations",
|
71
|
+
meta: {
|
72
|
+
title: {
|
73
|
+
en: "Groups",
|
74
|
+
ru: "Группы"
|
75
|
+
}
|
76
|
+
},
|
77
|
+
component: () => Promise.resolve().then(() => require(
|
78
|
+
/* webpackChunkName: "profile" */
|
79
|
+
"../../../organizations/components/pages/Organizations.vue.cjs"
|
80
|
+
))
|
81
|
+
}, {
|
82
|
+
path: ":_id/wallet",
|
83
|
+
name: "User Wallet",
|
84
|
+
meta: {
|
85
|
+
title: {
|
86
|
+
en: "Wallet",
|
87
|
+
ru: "Кошелек"
|
88
|
+
}
|
89
|
+
},
|
90
|
+
component: () => Promise.resolve().then(() => require(
|
91
|
+
/* webpackChunkName: "profile" */
|
92
|
+
"../../../wallet/views/components/pages/Wallet.vue.cjs"
|
93
|
+
))
|
94
|
+
}]
|
95
|
+
};
|
96
|
+
exports.default = users;
|
97
|
+
//# sourceMappingURL=users.cjs.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"users.cjs","sources":["../../../../../../../src/modules/auth/views/router/users.js"],"sourcesContent":["import * as validationAuth from '@pf/src/modules/auth/views/middlewares/auth.validation';\n\nconst users = {\n path: 'users',\n name: 'Users',\n meta: {\n title: {\n en: 'Users',\n ru: 'Пользователи'\n },\n },\n children: [{\n path: ':_id',\n name: 'User Profile',\n meta: {\n title: {\n en: 'Profile',\n ru: 'Профиль'\n }\n },\n component: () => import(/* webpackChunkName: \"profile\" */ '../components/pages/Profile.vue'),\n },{\n path: ':_id/edit',\n name: 'User Edit Profile',\n beforeEnter: [\n validationAuth.requiresAuth,\n ],\n meta: {\n title: {\n en: 'Edit Profile',\n ru: 'Редактировать Профиль'\n }\n },\n component: () => import(/* webpackChunkName: \"profile\" */ '../components/pages/ProfileEdit.vue'),\n },{\n path: ':_id/blogposts',\n name: 'User Blogposts',\n meta: {\n title: {\n en: 'Posts',\n ru: 'Посты'\n }\n },\n component: () => import(/* webpackChunkName: \"profile\" */ '../components/pages/ProfileBlogposts.vue'),\n },{\n path: ':user/events',\n name: 'User Events',\n meta: {\n title: {\n en: 'Events',\n ru: 'События'\n }\n },\n component: () => import(/* webpackChunkName: \"profile\" */ '@pf/src/modules/events/components/pages/EventsBackoffice.vue'),\n },{\n path: ':_id/organizations',\n name: 'User Organizations',\n meta: {\n title: {\n en: 'Groups',\n ru: 'Группы'\n }\n },\n component: () => import(/* webpackChunkName: \"profile\" */ '@pf/src/modules/organizations/components/pages/Organizations.vue'),\n },{\n path: ':_id/wallet',\n name: 'User Wallet',\n meta: {\n title: {\n en: 'Wallet',\n ru: 'Кошелек'\n }\n },\n component: () => import(/* webpackChunkName: \"profile\" */ '@pf/src/modules/wallet/views/components/pages/Wallet.vue'),\n }]\n}\n\n\nexport default users;"],"names":["validationAuth.requiresAuth"],"mappings":";;;AAEK,MAAC,QAAQ;AAAA,EACZ,MAAM;AAAA,EACN,MAAM;AAAA,EACN,MAAM;AAAA,IACJ,OAAO;AAAA,MACL,IAAI;AAAA,MACJ,IAAI;AAAA,IACL;AAAA,EACF;AAAA,EACD,UAAU,CAAC;AAAA,IACT,MAAM;AAAA,IACN,MAAM;AAAA,IACL,MAAM;AAAA,MACH,OAAO;AAAA,QACL,IAAI;AAAA,QACJ,IAAI;AAAA,MACL;AAAA,IACF;AAAA,IACH,WAAW,MAAM,QAAO,QAAA,EAAA,KAAA,MAAA;AAAA;AAAA,MAAkC;AAAA,IAAiC,CAAC;AAAA,EAChG,GAAI;AAAA,IACA,MAAM;AAAA,IACN,MAAM;AAAA,IACN,aAAa;AAAA,MACXA,gBAA2B;AAAA,IAC5B;AAAA,IACD,MAAM;AAAA,MACJ,OAAO;AAAA,QACL,IAAI;AAAA,QACJ,IAAI;AAAA,MACL;AAAA,IACF;AAAA,IACD,WAAW,MAAM,QAAO,QAAA,EAAA,KAAA,MAAA;AAAA;AAAA,MAAkC;AAAA,IAAqC,CAAC;AAAA,EACpG,GAAI;AAAA,IACA,MAAM;AAAA,IACN,MAAM;AAAA,IACN,MAAM;AAAA,MACJ,OAAO;AAAA,QACL,IAAI;AAAA,QACJ,IAAI;AAAA,MACL;AAAA,IACF;AAAA,IACD,WAAW,MAAM,QAAO,QAAA,EAAA,KAAA,MAAA;AAAA;AAAA,MAAkC;AAAA,IAA0C,CAAC;AAAA,EACzG,GAAI;AAAA,IACA,MAAM;AAAA,IACN,MAAM;AAAA,IACN,MAAM;AAAA,MACJ,OAAO;AAAA,QACL,IAAI;AAAA,QACJ,IAAI;AAAA,MACL;AAAA,IACF;AAAA,IACD,WAAW,MAAM,QAAO,QAAA,EAAA,KAAA,MAAA;AAAA;AAAA,MAAkC;AAAA,IAA8D,CAAC;AAAA,EAC7H,GAAI;AAAA,IACA,MAAM;AAAA,IACN,MAAM;AAAA,IACL,MAAM;AAAA,MACH,OAAO;AAAA,QACL,IAAI;AAAA,QACJ,IAAI;AAAA,MACL;AAAA,IACF;AAAA,IACH,WAAW,MAAM,QAAO,QAAA,EAAA,KAAA,MAAA;AAAA;AAAA,MAAkC;AAAA,IAAkE,CAAC;AAAA,EACjI,GAAI;AAAA,IACA,MAAM;AAAA,IACN,MAAM;AAAA,IACL,MAAM;AAAA,MACH,OAAO;AAAA,QACL,IAAI;AAAA,QACJ,IAAI;AAAA,MACL;AAAA,IACF;AAAA,IACH,WAAW,MAAM,QAAO,QAAA,EAAA,KAAA,MAAA;AAAA;AAAA,MAAkC;AAAA,IAA0D,CAAC;AAAA,EACzH,CAAG;AACH;;"}
|
@@ -0,0 +1,97 @@
|
|
1
|
+
import { requiresAuth } from "../middlewares/auth.validation.js";
|
2
|
+
const users = {
|
3
|
+
path: "users",
|
4
|
+
name: "Users",
|
5
|
+
meta: {
|
6
|
+
title: {
|
7
|
+
en: "Users",
|
8
|
+
ru: "Пользователи"
|
9
|
+
}
|
10
|
+
},
|
11
|
+
children: [{
|
12
|
+
path: ":_id",
|
13
|
+
name: "User Profile",
|
14
|
+
meta: {
|
15
|
+
title: {
|
16
|
+
en: "Profile",
|
17
|
+
ru: "Профиль"
|
18
|
+
}
|
19
|
+
},
|
20
|
+
component: () => import(
|
21
|
+
/* webpackChunkName: "profile" */
|
22
|
+
"../components/pages/Profile.vue.js"
|
23
|
+
)
|
24
|
+
}, {
|
25
|
+
path: ":_id/edit",
|
26
|
+
name: "User Edit Profile",
|
27
|
+
beforeEnter: [
|
28
|
+
requiresAuth
|
29
|
+
],
|
30
|
+
meta: {
|
31
|
+
title: {
|
32
|
+
en: "Edit Profile",
|
33
|
+
ru: "Редактировать Профиль"
|
34
|
+
}
|
35
|
+
},
|
36
|
+
component: () => import(
|
37
|
+
/* webpackChunkName: "profile" */
|
38
|
+
"../components/pages/ProfileEdit.vue.js"
|
39
|
+
)
|
40
|
+
}, {
|
41
|
+
path: ":_id/blogposts",
|
42
|
+
name: "User Blogposts",
|
43
|
+
meta: {
|
44
|
+
title: {
|
45
|
+
en: "Posts",
|
46
|
+
ru: "Посты"
|
47
|
+
}
|
48
|
+
},
|
49
|
+
component: () => import(
|
50
|
+
/* webpackChunkName: "profile" */
|
51
|
+
"../components/pages/ProfileBlogposts.vue.js"
|
52
|
+
)
|
53
|
+
}, {
|
54
|
+
path: ":user/events",
|
55
|
+
name: "User Events",
|
56
|
+
meta: {
|
57
|
+
title: {
|
58
|
+
en: "Events",
|
59
|
+
ru: "События"
|
60
|
+
}
|
61
|
+
},
|
62
|
+
component: () => import(
|
63
|
+
/* webpackChunkName: "profile" */
|
64
|
+
"../../../events/components/pages/EventsBackoffice.vue.js"
|
65
|
+
)
|
66
|
+
}, {
|
67
|
+
path: ":_id/organizations",
|
68
|
+
name: "User Organizations",
|
69
|
+
meta: {
|
70
|
+
title: {
|
71
|
+
en: "Groups",
|
72
|
+
ru: "Группы"
|
73
|
+
}
|
74
|
+
},
|
75
|
+
component: () => import(
|
76
|
+
/* webpackChunkName: "profile" */
|
77
|
+
"../../../organizations/components/pages/Organizations.vue.js"
|
78
|
+
)
|
79
|
+
}, {
|
80
|
+
path: ":_id/wallet",
|
81
|
+
name: "User Wallet",
|
82
|
+
meta: {
|
83
|
+
title: {
|
84
|
+
en: "Wallet",
|
85
|
+
ru: "Кошелек"
|
86
|
+
}
|
87
|
+
},
|
88
|
+
component: () => import(
|
89
|
+
/* webpackChunkName: "profile" */
|
90
|
+
"../../../wallet/views/components/pages/Wallet.vue.js"
|
91
|
+
)
|
92
|
+
}]
|
93
|
+
};
|
94
|
+
export {
|
95
|
+
users as default
|
96
|
+
};
|
97
|
+
//# sourceMappingURL=users.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"users.js","sources":["../../../../../../../src/modules/auth/views/router/users.js"],"sourcesContent":["import * as validationAuth from '@pf/src/modules/auth/views/middlewares/auth.validation';\n\nconst users = {\n path: 'users',\n name: 'Users',\n meta: {\n title: {\n en: 'Users',\n ru: 'Пользователи'\n },\n },\n children: [{\n path: ':_id',\n name: 'User Profile',\n meta: {\n title: {\n en: 'Profile',\n ru: 'Профиль'\n }\n },\n component: () => import(/* webpackChunkName: \"profile\" */ '../components/pages/Profile.vue'),\n },{\n path: ':_id/edit',\n name: 'User Edit Profile',\n beforeEnter: [\n validationAuth.requiresAuth,\n ],\n meta: {\n title: {\n en: 'Edit Profile',\n ru: 'Редактировать Профиль'\n }\n },\n component: () => import(/* webpackChunkName: \"profile\" */ '../components/pages/ProfileEdit.vue'),\n },{\n path: ':_id/blogposts',\n name: 'User Blogposts',\n meta: {\n title: {\n en: 'Posts',\n ru: 'Посты'\n }\n },\n component: () => import(/* webpackChunkName: \"profile\" */ '../components/pages/ProfileBlogposts.vue'),\n },{\n path: ':user/events',\n name: 'User Events',\n meta: {\n title: {\n en: 'Events',\n ru: 'События'\n }\n },\n component: () => import(/* webpackChunkName: \"profile\" */ '@pf/src/modules/events/components/pages/EventsBackoffice.vue'),\n },{\n path: ':_id/organizations',\n name: 'User Organizations',\n meta: {\n title: {\n en: 'Groups',\n ru: 'Группы'\n }\n },\n component: () => import(/* webpackChunkName: \"profile\" */ '@pf/src/modules/organizations/components/pages/Organizations.vue'),\n },{\n path: ':_id/wallet',\n name: 'User Wallet',\n meta: {\n title: {\n en: 'Wallet',\n ru: 'Кошелек'\n }\n },\n component: () => import(/* webpackChunkName: \"profile\" */ '@pf/src/modules/wallet/views/components/pages/Wallet.vue'),\n }]\n}\n\n\nexport default users;"],"names":["validationAuth.requiresAuth"],"mappings":";AAEK,MAAC,QAAQ;AAAA,EACZ,MAAM;AAAA,EACN,MAAM;AAAA,EACN,MAAM;AAAA,IACJ,OAAO;AAAA,MACL,IAAI;AAAA,MACJ,IAAI;AAAA,IACL;AAAA,EACF;AAAA,EACD,UAAU,CAAC;AAAA,IACT,MAAM;AAAA,IACN,MAAM;AAAA,IACL,MAAM;AAAA,MACH,OAAO;AAAA,QACL,IAAI;AAAA,QACJ,IAAI;AAAA,MACL;AAAA,IACF;AAAA,IACH,WAAW,MAAM;AAAA;AAAA,MAAyC;AAAA,IAAiC;AAAA,EAC/F,GAAI;AAAA,IACA,MAAM;AAAA,IACN,MAAM;AAAA,IACN,aAAa;AAAA,MACXA;AAAAA,IACD;AAAA,IACD,MAAM;AAAA,MACJ,OAAO;AAAA,QACL,IAAI;AAAA,QACJ,IAAI;AAAA,MACL;AAAA,IACF;AAAA,IACD,WAAW,MAAM;AAAA;AAAA,MAAyC;AAAA,IAAqC;AAAA,EACnG,GAAI;AAAA,IACA,MAAM;AAAA,IACN,MAAM;AAAA,IACN,MAAM;AAAA,MACJ,OAAO;AAAA,QACL,IAAI;AAAA,QACJ,IAAI;AAAA,MACL;AAAA,IACF;AAAA,IACD,WAAW,MAAM;AAAA;AAAA,MAAyC;AAAA,IAA0C;AAAA,EACxG,GAAI;AAAA,IACA,MAAM;AAAA,IACN,MAAM;AAAA,IACN,MAAM;AAAA,MACJ,OAAO;AAAA,QACL,IAAI;AAAA,QACJ,IAAI;AAAA,MACL;AAAA,IACF;AAAA,IACD,WAAW,MAAM;AAAA;AAAA,MAAyC;AAAA,IAA8D;AAAA,EAC5H,GAAI;AAAA,IACA,MAAM;AAAA,IACN,MAAM;AAAA,IACL,MAAM;AAAA,MACH,OAAO;AAAA,QACL,IAAI;AAAA,QACJ,IAAI;AAAA,MACL;AAAA,IACF;AAAA,IACH,WAAW,MAAM;AAAA;AAAA,MAAyC;AAAA,IAAkE;AAAA,EAChI,GAAI;AAAA,IACA,MAAM;AAAA,IACN,MAAM;AAAA,IACL,MAAM;AAAA,MACH,OAAO;AAAA,QACL,IAAI;AAAA,QACJ,IAAI;AAAA,MACL;AAAA,IACF;AAAA,IACH,WAAW,MAAM;AAAA;AAAA,MAAyC;AAAA,IAA0D;AAAA,EACxH,CAAG;AACH;"}
|
@@ -0,0 +1,95 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
3
|
+
const vue = require("vue");
|
4
|
+
const axiosInstance = require("../../../globals/views/utils/axios-instance.cjs");
|
5
|
+
const state = vue.reactive({
|
6
|
+
all: [],
|
7
|
+
current: {
|
8
|
+
_id: "",
|
9
|
+
username: "",
|
10
|
+
email: "",
|
11
|
+
phone: "",
|
12
|
+
status: "",
|
13
|
+
profile: {
|
14
|
+
name: "",
|
15
|
+
photo: "",
|
16
|
+
description: "",
|
17
|
+
birthday: ""
|
18
|
+
},
|
19
|
+
socials: {
|
20
|
+
facebook: "",
|
21
|
+
twitter: "",
|
22
|
+
instagram: "",
|
23
|
+
telegram: ""
|
24
|
+
},
|
25
|
+
roles: []
|
26
|
+
}
|
27
|
+
});
|
28
|
+
const actions = {
|
29
|
+
async create(user) {
|
30
|
+
try {
|
31
|
+
const response = await axiosInstance.default.post("/api/users", user);
|
32
|
+
mutations.set(response.data, "current");
|
33
|
+
return Promise.resolve(response.data);
|
34
|
+
} catch (error) {
|
35
|
+
console.error(error);
|
36
|
+
return Promise.reject(error);
|
37
|
+
}
|
38
|
+
},
|
39
|
+
async read(options = {}) {
|
40
|
+
try {
|
41
|
+
const response = await axiosInstance.default.get("/api/users", { params: options });
|
42
|
+
if (options._id) {
|
43
|
+
mutations.set(response.data[0], "current");
|
44
|
+
} else {
|
45
|
+
mutations.set(response.data, "all");
|
46
|
+
}
|
47
|
+
return Promise.resolve(response.data);
|
48
|
+
} catch (error) {
|
49
|
+
console.error(error);
|
50
|
+
return Promise.reject(error);
|
51
|
+
}
|
52
|
+
},
|
53
|
+
async update(user) {
|
54
|
+
try {
|
55
|
+
const response = await axiosInstance.default.put(`/api/users/${user._id}`, user);
|
56
|
+
mutations.set(response.data, "current");
|
57
|
+
return Promise.resolve(response.data);
|
58
|
+
} catch (error) {
|
59
|
+
console.error(error);
|
60
|
+
return Promise.reject(error);
|
61
|
+
}
|
62
|
+
},
|
63
|
+
async delete(user) {
|
64
|
+
try {
|
65
|
+
await axiosInstance.default.delete(`/api/users/${user._id}`);
|
66
|
+
const index = state.all.findIndex((u) => u._id === user._id);
|
67
|
+
if (index !== -1) {
|
68
|
+
state.all.splice(index, 1);
|
69
|
+
}
|
70
|
+
} catch (error) {
|
71
|
+
console.error(error);
|
72
|
+
}
|
73
|
+
}
|
74
|
+
};
|
75
|
+
const mutations = {
|
76
|
+
set(user, property) {
|
77
|
+
state[property] = user;
|
78
|
+
},
|
79
|
+
clean() {
|
80
|
+
state.current = {
|
81
|
+
phone: "",
|
82
|
+
name: "",
|
83
|
+
surname: "",
|
84
|
+
birthday: "",
|
85
|
+
city: "",
|
86
|
+
address: "",
|
87
|
+
roles: [],
|
88
|
+
orders: []
|
89
|
+
};
|
90
|
+
}
|
91
|
+
};
|
92
|
+
exports.actions = actions;
|
93
|
+
exports.mutations = mutations;
|
94
|
+
exports.state = state;
|
95
|
+
//# sourceMappingURL=users.cjs.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"users.cjs","sources":["../../../../../../../src/modules/auth/views/store/users.js"],"sourcesContent":["import { reactive, ref, computed, toRefs, watch } from \"vue\";\n\nimport $axios from '@pf/src/modules/globals/views/utils/axios-instance.js';\n\nconst state = reactive({\n all: [],\n \n current: {\n _id: \"\",\n username: \"\",\n email: \"\",\n phone: \"\",\n\n status: \"\",\n\n profile: {\n name: \"\",\n photo: \"\",\n description: \"\",\n birthday: \"\",\n },\n socials: {\n facebook: \"\",\n twitter: \"\",\n instagram: \"\",\n telegram: \"\"\n },\n\n roles: []\n },\n});\n\nconst actions = {\n\n async create(user) {\n try {\n const response = await $axios.post('/api/users', user);\n mutations.set(response.data, 'current');\n return Promise.resolve(response.data);\n } catch (error) {\n console.error(error);\n return Promise.reject(error);\n }\n },\n\n async read(options = {}) { \n\n try {\n const response = await $axios.get('/api/users', { params: options });\n \n if (options._id) {\n mutations.set(response.data[0], 'current');\n } else {\n mutations.set(response.data, 'all');\n }\n\n return Promise.resolve(response.data);\n } catch (error) {\n console.error(error);\n return Promise.reject(error);\n }\n },\n\n async update(user) {\n try {\n const response = await $axios.put(`/api/users/${user._id}`, user);\n mutations.set(response.data, 'current');\n return Promise.resolve(response.data);\n } catch (error) {\n console.error(error);\n return Promise.reject(error);\n }\n },\n\n async delete(user) {\n try {\n await $axios.delete(`/api/users/${user._id}`);\n const index = state.all.findIndex(u => u._id === user._id);\n if (index !== -1) {\n state.all.splice(index, 1);\n }\n } catch (error) {\n console.error(error);\n }\n }\n};\n\nconst mutations = {\n set(user, property) {\n state[property] = user;\n },\n\n clean() {\n state.current = {\n phone: '',\n name: '',\n surname: '',\n birthday: '',\n city: '',\n address: '',\n roles: [],\n orders: [],\n };\n }\n};\n\nexport {\n state,\n actions,\n mutations\n};"],"names":["reactive","$axios"],"mappings":";;;;AAIK,MAAC,QAASA,IAAAA,SAAS;AAAA,EACtB,KAAK,CAAE;AAAA,EAEP,SAAS;AAAA,IACP,KAAK;AAAA,IACL,UAAU;AAAA,IACV,OAAO;AAAA,IACP,OAAO;AAAA,IAEP,QAAQ;AAAA,IAER,SAAS;AAAA,MACP,MAAM;AAAA,MACN,OAAO;AAAA,MACP,aAAa;AAAA,MACb,UAAU;AAAA,IACX;AAAA,IACD,SAAS;AAAA,MACP,UAAU;AAAA,MACV,SAAS;AAAA,MACT,WAAW;AAAA,MACX,UAAU;AAAA,IACX;AAAA,IAED,OAAO,CAAE;AAAA,EACV;AACH,CAAC;AAEI,MAAC,UAAU;AAAA,EAEd,MAAM,OAAO,MAAM;AACjB,QAAI;AACF,YAAM,WAAW,MAAMC,cAAM,QAAC,KAAK,cAAc,IAAI;AACrD,gBAAU,IAAI,SAAS,MAAM,SAAS;AACtC,aAAO,QAAQ,QAAQ,SAAS,IAAI;AAAA,IACrC,SAAQ,OAAO;AACd,cAAQ,MAAM,KAAK;AACnB,aAAO,QAAQ,OAAO,KAAK;AAAA,IAC5B;AAAA,EACF;AAAA,EAED,MAAM,KAAK,UAAU,IAAI;AAEvB,QAAI;AACF,YAAM,WAAW,MAAMA,cAAAA,QAAO,IAAI,cAAc,EAAE,QAAQ,QAAO,CAAE;AAEnE,UAAI,QAAQ,KAAK;AACf,kBAAU,IAAI,SAAS,KAAK,CAAC,GAAG,SAAS;AAAA,MACjD,OAAa;AACL,kBAAU,IAAI,SAAS,MAAM,KAAK;AAAA,MACnC;AAED,aAAO,QAAQ,QAAQ,SAAS,IAAI;AAAA,IACrC,SAAQ,OAAO;AACd,cAAQ,MAAM,KAAK;AACnB,aAAO,QAAQ,OAAO,KAAK;AAAA,IAC5B;AAAA,EACF;AAAA,EAED,MAAM,OAAO,MAAM;AACjB,QAAI;AACF,YAAM,WAAW,MAAMA,cAAM,QAAC,IAAI,cAAc,KAAK,GAAG,IAAI,IAAI;AAChE,gBAAU,IAAI,SAAS,MAAM,SAAS;AACtC,aAAO,QAAQ,QAAQ,SAAS,IAAI;AAAA,IACrC,SAAQ,OAAO;AACd,cAAQ,MAAM,KAAK;AACnB,aAAO,QAAQ,OAAO,KAAK;AAAA,IAC5B;AAAA,EACF;AAAA,EAED,MAAM,OAAO,MAAM;AACjB,QAAI;AACF,YAAMA,cAAAA,QAAO,OAAO,cAAc,KAAK,GAAG,EAAE;AAC5C,YAAM,QAAQ,MAAM,IAAI,UAAU,OAAK,EAAE,QAAQ,KAAK,GAAG;AACzD,UAAI,UAAU,IAAI;AAChB,cAAM,IAAI,OAAO,OAAO,CAAC;AAAA,MAC1B;AAAA,IACF,SAAQ,OAAO;AACd,cAAQ,MAAM,KAAK;AAAA,IACpB;AAAA,EACF;AACH;AAEK,MAAC,YAAY;AAAA,EAChB,IAAI,MAAM,UAAU;AAClB,UAAM,QAAQ,IAAI;AAAA,EACnB;AAAA,EAED,QAAQ;AACN,UAAM,UAAU;AAAA,MACd,OAAO;AAAA,MACP,MAAM;AAAA,MACN,SAAS;AAAA,MACT,UAAU;AAAA,MACV,MAAM;AAAA,MACN,SAAS;AAAA,MACT,OAAO,CAAE;AAAA,MACT,QAAQ,CAAE;AAAA,IAChB;AAAA,EACG;AACH;;;;"}
|