@ozdao/prometheus-framework 0.2.252 → 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/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/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/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/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/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/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 +1 -1
- 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 +1 -1
- 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 +2 -2
- 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 +2 -2
- package/dist/prometheus-framework/src/modules/orders/components/sections/FormAddCustomer.vue.js.map +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/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 +1 -1
- 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 +1 -1
- 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 +1 -1
- 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 +1 -1
- 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/sections/MembersAdd.vue.cjs +2 -2
- 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 +2 -2
- package/dist/prometheus-framework/src/modules/organizations/components/sections/MembersAdd.vue.js.map +1 -1
- 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 +544 -544
- package/dist/prometheus-framework/src/modules/pages/pages.client.js +544 -544
- 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/ProductRecommmendation.vue.cjs +2 -2
- package/dist/prometheus-framework/src/modules/products/components/pages/ProductRecommmendation.vue.js +2 -2
- 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/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/PopularProducts.vue.cjs +1 -1
- 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 +1 -1
- package/dist/prometheus-framework/src/modules/products/components/sections/PopularProducts.vue.js.map +1 -1
- package/dist/prometheus-framework/src/modules/products/products.client.cjs +72 -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 -49
- 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/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 +2 -2
- 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 +2 -2
- 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/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/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/{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/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 +93 -25
- 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 -54
- 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.cjs
ADDED
@@ -0,0 +1,114 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
3
|
+
const vue = require("vue");
|
4
|
+
const users = require("../../store/users.cjs");
|
5
|
+
const Marquee = require("../../../../../components/Marquee/Marquee.vue.cjs");
|
6
|
+
const CardUser = require("../blocks/CardUser.vue.cjs");
|
7
|
+
;/* empty css */
|
8
|
+
const _hoisted_1 = { class: "o-hidden w-100" };
|
9
|
+
const _hoisted_2 = { class: "flex flex-nowrap" };
|
10
|
+
const _hoisted_3 = { class: "flex flex-nowrap" };
|
11
|
+
const _hoisted_4 = { class: "flex flex-nowrap" };
|
12
|
+
const _sfc_main = {
|
13
|
+
__name: "FeaturedUsers",
|
14
|
+
setup(__props) {
|
15
|
+
const usersList = vue.ref([]);
|
16
|
+
vue.onMounted(async () => {
|
17
|
+
usersList.value = await users.actions.read({
|
18
|
+
limit: 25
|
19
|
+
});
|
20
|
+
});
|
21
|
+
return (_ctx, _cache) => {
|
22
|
+
const _component_router_link = vue.resolveComponent("router-link");
|
23
|
+
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1, [
|
24
|
+
_cache[1] || (_cache[1] = vue.createElementVNode("div", { class: "flex-center flex w-100" }, [
|
25
|
+
vue.createElementVNode("h2", { class: "t-center h2 w-max-50 mn-b-big" }, " Ask the hundreds shaping your entertainment for decades ")
|
26
|
+
], -1)),
|
27
|
+
vue.createVNode(Marquee.default, {
|
28
|
+
class: "mn-b-thin",
|
29
|
+
gradient: true,
|
30
|
+
gradientColor: "var(--white)",
|
31
|
+
gradientLength: "10%",
|
32
|
+
direction: "normal",
|
33
|
+
pauseOnHover: false,
|
34
|
+
clone: true
|
35
|
+
}, {
|
36
|
+
default: vue.withCtx(() => [
|
37
|
+
vue.createElementVNode("div", _hoisted_2, [
|
38
|
+
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(usersList.value.slice(0, 6), (user) => {
|
39
|
+
return vue.openBlock(), vue.createBlock(CardUser.default, {
|
40
|
+
class: "mn-r-thin h4 h-8r flex-child-grow-0 flex-child bg-light pd-small radius-medium",
|
41
|
+
user,
|
42
|
+
photo: user.profile.photo,
|
43
|
+
name: user.profile.name || user.phone || user.username,
|
44
|
+
phone: "DJ"
|
45
|
+
}, null, 8, ["user", "photo", "name"]);
|
46
|
+
}), 256))
|
47
|
+
])
|
48
|
+
]),
|
49
|
+
_: 1
|
50
|
+
}),
|
51
|
+
vue.createVNode(Marquee.default, {
|
52
|
+
class: "mn-b-thin",
|
53
|
+
gradient: true,
|
54
|
+
gradientColor: "var(--white)",
|
55
|
+
gradientLength: "10%",
|
56
|
+
direction: "reverse",
|
57
|
+
pauseOnHover: false,
|
58
|
+
clone: true
|
59
|
+
}, {
|
60
|
+
default: vue.withCtx(() => [
|
61
|
+
vue.createElementVNode("div", _hoisted_3, [
|
62
|
+
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(usersList.value.slice(7, 14), (user) => {
|
63
|
+
return vue.openBlock(), vue.createBlock(CardUser.default, {
|
64
|
+
class: "mn-r-thin h4 h-8r flex-child-grow-0 flex-child bg-light pd-small radius-medium",
|
65
|
+
user,
|
66
|
+
photo: user.profile.photo,
|
67
|
+
name: user.profile.name || user.phone || user.username,
|
68
|
+
phone: "DJ"
|
69
|
+
}, null, 8, ["user", "photo", "name"]);
|
70
|
+
}), 256))
|
71
|
+
])
|
72
|
+
]),
|
73
|
+
_: 1
|
74
|
+
}),
|
75
|
+
vue.createVNode(Marquee.default, {
|
76
|
+
class: "mn-b-big",
|
77
|
+
gradient: true,
|
78
|
+
gradientColor: "var(--white)",
|
79
|
+
gradientLength: "10%",
|
80
|
+
direction: "normal",
|
81
|
+
pauseOnHover: false,
|
82
|
+
clone: true
|
83
|
+
}, {
|
84
|
+
default: vue.withCtx(() => [
|
85
|
+
vue.createElementVNode("div", _hoisted_4, [
|
86
|
+
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(usersList.value.slice(15, 22), (user) => {
|
87
|
+
return vue.openBlock(), vue.createBlock(CardUser.default, {
|
88
|
+
class: "mn-r-thin h4 h-8r flex-child-grow-0 flex-child bg-light pd-small radius-medium",
|
89
|
+
user,
|
90
|
+
photo: user.profile.photo,
|
91
|
+
name: user.profile.name || user.phone || user.username,
|
92
|
+
phone: "DJ"
|
93
|
+
}, null, 8, ["user", "photo", "name"]);
|
94
|
+
}), 256))
|
95
|
+
])
|
96
|
+
]),
|
97
|
+
_: 1
|
98
|
+
}),
|
99
|
+
_cache[2] || (_cache[2] = vue.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)),
|
100
|
+
vue.createVNode(_component_router_link, {
|
101
|
+
to: { name: "Sign In" },
|
102
|
+
class: "bg-black mn-r-auto mn-l-auto t-medium t-white button"
|
103
|
+
}, {
|
104
|
+
default: vue.withCtx(() => _cache[0] || (_cache[0] = [
|
105
|
+
vue.createTextVNode(" Join Now ")
|
106
|
+
])),
|
107
|
+
_: 1
|
108
|
+
})
|
109
|
+
]);
|
110
|
+
};
|
111
|
+
}
|
112
|
+
};
|
113
|
+
exports.default = _sfc_main;
|
114
|
+
//# sourceMappingURL=FeaturedUsers.vue.cjs.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"FeaturedUsers.vue.cjs","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":["ref","onMounted","users.actions"],"mappings":";;;;;;;;;;;;;;AAwFA,UAAM,YAAYA,IAAG,IAAC,EAAE;AAExBC,QAAAA,UAAU,YAAW;AACnB,gBAAU,QAAQ,MAAMC,MAAa,QAAC,KAAK;AAAA,QACzC,OAAO;AAAA,MACX,CAAG;AAAA,IACH,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
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;"}
|