@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/pages/ProfileBlogposts.vue.cjs
ADDED
@@ -0,0 +1,85 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
3
|
+
const vue = require("vue");
|
4
|
+
const vueRouter = require("vue-router");
|
5
|
+
const Tab = require("../../../../../components/Tab/Tab.vue2.cjs");
|
6
|
+
const Feed = require("../../../../../components/Feed/Feed.vue.cjs");
|
7
|
+
const CardBlogpost = require("../../../../community/components/blocks/CardBlogpost.vue.cjs");
|
8
|
+
const auth = require("../../store/auth.cjs");
|
9
|
+
const blogposts = require("../../../../community/store/blogposts.cjs");
|
10
|
+
const _hoisted_1 = { class: "pd-thin" };
|
11
|
+
const _hoisted_2 = { class: "mn-b-medium flex-v-center flex-nowrap flex" };
|
12
|
+
const _sfc_main = {
|
13
|
+
__name: "ProfileBlogposts",
|
14
|
+
setup(__props) {
|
15
|
+
const route = vueRouter.useRoute();
|
16
|
+
const router = vueRouter.useRouter();
|
17
|
+
let tab = route.query.tab ? route.query.tab : "posts";
|
18
|
+
const tabOrganization = vue.ref(tab);
|
19
|
+
route.query.tab = tabOrganization.value;
|
20
|
+
vue.watch(tabOrganization, (newValue) => {
|
21
|
+
router.replace({ query: { ...route.query, tab: newValue } });
|
22
|
+
});
|
23
|
+
return (_ctx, _cache) => {
|
24
|
+
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1, [
|
25
|
+
vue.createElementVNode("header", _hoisted_2, [
|
26
|
+
_cache[2] || (_cache[2] = vue.createElementVNode("h2", { class: "mn-r-medium" }, "Posts", -1)),
|
27
|
+
auth.state.user._id === vue.unref(route).params._id ? (vue.openBlock(), vue.createElementBlock("button", {
|
28
|
+
key: 0,
|
29
|
+
onClick: _cache[0] || (_cache[0] = ($event) => _ctx.$router.push({
|
30
|
+
name: "Create BlogPost"
|
31
|
+
})),
|
32
|
+
class: "radius-100 t-white t-semi i-big hover-scale-1 cursor-pointer t-white bg-second"
|
33
|
+
}, " + ")) : vue.createCommentVNode("", true)
|
34
|
+
]),
|
35
|
+
auth.state.user._id === vue.unref(route).params._id ? (vue.openBlock(), vue.createBlock(Tab.default, {
|
36
|
+
key: 0,
|
37
|
+
selected: tabOrganization.value,
|
38
|
+
"onUpdate:selected": _cache[1] || (_cache[1] = ($event) => tabOrganization.value = $event),
|
39
|
+
tabs: [
|
40
|
+
{ name: "My posts", value: "posts" },
|
41
|
+
{ name: "Drafts", value: "drafts" },
|
42
|
+
{ name: "Following", value: "following" }
|
43
|
+
],
|
44
|
+
class: "mn-b-small o-hidden h5 radius-big bg-light"
|
45
|
+
}, null, 8, ["selected"])) : vue.createCommentVNode("", true),
|
46
|
+
vue.createVNode(Feed.default, {
|
47
|
+
showLoadMore: false,
|
48
|
+
states: {
|
49
|
+
empty: {
|
50
|
+
title: "No Blog Posts Found",
|
51
|
+
description: "Currently, there are no posts available in this blog. Please check back later."
|
52
|
+
}
|
53
|
+
},
|
54
|
+
store: {
|
55
|
+
read: (options) => blogposts.read(options)
|
56
|
+
},
|
57
|
+
options: {
|
58
|
+
limit: 15,
|
59
|
+
category: vue.unref(route).params.category,
|
60
|
+
period: vue.unref(route).query.period,
|
61
|
+
status: tabOrganization.value === "drafts" ? "draft" : "published",
|
62
|
+
user: auth.state.user._id,
|
63
|
+
creator: ["posts", "drafts"].includes(tabOrganization.value) ? vue.unref(route).params._id : null,
|
64
|
+
following: tabOrganization.value === "following" ? auth.state.user._id : null
|
65
|
+
},
|
66
|
+
class: "row-1 gap-thin"
|
67
|
+
}, {
|
68
|
+
default: vue.withCtx(({ items }) => [
|
69
|
+
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(items, (item) => {
|
70
|
+
return vue.openBlock(), vue.createBlock(CardBlogpost.default, {
|
71
|
+
key: item._id,
|
72
|
+
blogpost: item,
|
73
|
+
user: auth.state.user._id,
|
74
|
+
class: "h-max-40r mn-b-medium"
|
75
|
+
}, null, 8, ["blogpost", "user"]);
|
76
|
+
}), 128))
|
77
|
+
]),
|
78
|
+
_: 1
|
79
|
+
}, 8, ["store", "options"])
|
80
|
+
]);
|
81
|
+
};
|
82
|
+
}
|
83
|
+
};
|
84
|
+
exports.default = _sfc_main;
|
85
|
+
//# sourceMappingURL=ProfileBlogposts.vue.cjs.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"ProfileBlogposts.vue.cjs","sources":["../../../../../../../../src/modules/auth/views/components/pages/ProfileBlogposts.vue"],"sourcesContent":["<template>\n\t<div class=\"pd-thin\">\n\t\t<header class=\"mn-b-medium flex-v-center flex-nowrap flex\">\n \t<h2 class=\"mn-r-medium\">Posts</h2>\n \t<button \n \t\tv-if=\"auth.state.user._id === route.params._id\"\n \t\t@click=\"$router.push({\n \t\t\tname: 'Create BlogPost'\n \t\t})\" \n \t\tclass=\"radius-100 t-white t-semi i-big hover-scale-1 cursor-pointer t-white bg-second\">\n \t\t\t+\n \t</button>\n\t\t</header>\n\n\t\t<Tab \n\t\t\tv-if=\"auth.state.user._id === route.params._id\"\n\t\t\tv-model:selected=\"tabOrganization\"\n\t\t\t:tabs=\"[\n\t\t\t\t{ name: 'My posts', \tvalue: 'posts' },\n\t\t\t\t{ name: 'Drafts', \t\tvalue: 'drafts' },\n\t\t\t\t{ name: 'Following', \tvalue: 'following' },\t\n\t\t\t]\"\n\t\t\tclass=\"mn-b-small o-hidden h5 radius-big bg-light\"\n\t\t/>\n\n\t\t<Feed\n\t\t\t:showLoadMore=\"false\"\n\t\t\t:states=\"{\n\t\t\t\tempty: {\n\t\t\t\t\ttitle: 'No Blog Posts Found',\n\t\t\t\t\tdescription: 'Currently, there are no posts available in this blog. Please check back later.'\n\t\t\t\t},\n\t\t\t}\"\n\t\t\t:store=\"{\n\t\t\t\tread: (options) => blog.read(options)\n\t\t\t}\"\n\t\t\t:options=\"{\n\t\t\t\tlimit: 15,\n\t\t\t\tcategory: route.params.category,\n\t\t\t\tperiod: route.query.period,\n\t\t\t\tstatus: tabOrganization === 'drafts' ? 'draft' : 'published',\n\t\t\t\tuser: auth.state.user._id,\n\t\t\t\tcreator: ['posts', 'drafts'].includes(tabOrganization) ? route.params._id : null,\n\t\t\t\tfollowing: tabOrganization === 'following' ? auth.state.user._id : null,\n\t\t\t}\"\n\t\t\tv-slot=\"{ items }\"\n\t\t\tclass=\"row-1 gap-thin\"\n\t\t>\n\t\t\t<CardBlogpost \n\t\t\t\tv-for=\"item in items\" \n\t\t\t\t:key=\"item._id\" \n\t\t\t\t:blogpost=\"item\" \n\t\t\t\t:user=\"auth.state.user._id\" \n\t\t\t\tclass=\"h-max-40r mn-b-medium\"\n\t\t\t/>\n\t\t</Feed>\n\t</div>\n</template>\n\n<script setup>\n\timport { watch, ref } from 'vue'\n\timport { useRoute, useRouter } from 'vue-router'\n\t// Components\n\timport Tab \t\tfrom '@pf/src/components/Tab/Tab.vue'\n\n\timport Feed from '@pf/src/components/Feed/Feed.vue'\n\n import CardBlogpost from '@pf/src/modules/community/components/blocks/CardBlogpost.vue';\n\n\timport * as auth from '@pf/src/modules/auth/views/store/auth';\n import * as blog from '@pf/src/modules/community/store/blogposts.js';\n\t// Accessing router\n\tconst route = useRoute()\n\tconst router = useRouter()\n\t// State\n\tlet tab = route.query.tab ? route.query.tab : 'posts';\n\n\tconst tabOrganization = ref(tab)\n\n\troute.query.tab = tabOrganization.value\n\n\twatch(tabOrganization, (newValue) => {\n\t router.replace({ query: { ...route.query, tab: newValue } });\n\t});\n</script>"],"names":["useRoute","useRouter","ref","watch"],"mappings":";;;;;;;;;;;;;;AAwEC,UAAM,QAAQA,UAAAA,SAAU;AACxB,UAAM,SAASC,UAAAA,UAAW;AAE1B,QAAI,MAAM,MAAM,MAAM,MAAM,MAAM,MAAM,MAAM;AAE9C,UAAM,kBAAkBC,IAAG,IAAC,GAAG;AAE/B,UAAM,MAAM,MAAM,gBAAgB;AAElCC,cAAM,iBAAiB,CAAC,aAAa;AACnC,aAAO,QAAQ,EAAE,OAAO,EAAE,GAAG,MAAM,OAAO,KAAK,SAAU,EAAA,CAAE;AAAA,IAC9D,CAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
package/dist/prometheus-framework/src/modules/auth/views/components/pages/ProfileBlogposts.vue.js
ADDED
@@ -0,0 +1,85 @@
|
|
1
|
+
import { ref, watch, openBlock, createElementBlock, createElementVNode, unref, createCommentVNode, createBlock, createVNode, withCtx, Fragment, renderList } from "vue";
|
2
|
+
import { useRoute, useRouter } from "vue-router";
|
3
|
+
import _sfc_main$1 from "../../../../../components/Tab/Tab.vue2.js";
|
4
|
+
import _sfc_main$2 from "../../../../../components/Feed/Feed.vue.js";
|
5
|
+
import _sfc_main$3 from "../../../../community/components/blocks/CardBlogpost.vue.js";
|
6
|
+
import { state } from "../../store/auth.js";
|
7
|
+
import { read } from "../../../../community/store/blogposts.js";
|
8
|
+
const _hoisted_1 = { class: "pd-thin" };
|
9
|
+
const _hoisted_2 = { class: "mn-b-medium flex-v-center flex-nowrap flex" };
|
10
|
+
const _sfc_main = {
|
11
|
+
__name: "ProfileBlogposts",
|
12
|
+
setup(__props) {
|
13
|
+
const route = useRoute();
|
14
|
+
const router = useRouter();
|
15
|
+
let tab = route.query.tab ? route.query.tab : "posts";
|
16
|
+
const tabOrganization = ref(tab);
|
17
|
+
route.query.tab = tabOrganization.value;
|
18
|
+
watch(tabOrganization, (newValue) => {
|
19
|
+
router.replace({ query: { ...route.query, tab: newValue } });
|
20
|
+
});
|
21
|
+
return (_ctx, _cache) => {
|
22
|
+
return openBlock(), createElementBlock("div", _hoisted_1, [
|
23
|
+
createElementVNode("header", _hoisted_2, [
|
24
|
+
_cache[2] || (_cache[2] = createElementVNode("h2", { class: "mn-r-medium" }, "Posts", -1)),
|
25
|
+
state.user._id === unref(route).params._id ? (openBlock(), createElementBlock("button", {
|
26
|
+
key: 0,
|
27
|
+
onClick: _cache[0] || (_cache[0] = ($event) => _ctx.$router.push({
|
28
|
+
name: "Create BlogPost"
|
29
|
+
})),
|
30
|
+
class: "radius-100 t-white t-semi i-big hover-scale-1 cursor-pointer t-white bg-second"
|
31
|
+
}, " + ")) : createCommentVNode("", true)
|
32
|
+
]),
|
33
|
+
state.user._id === unref(route).params._id ? (openBlock(), createBlock(_sfc_main$1, {
|
34
|
+
key: 0,
|
35
|
+
selected: tabOrganization.value,
|
36
|
+
"onUpdate:selected": _cache[1] || (_cache[1] = ($event) => tabOrganization.value = $event),
|
37
|
+
tabs: [
|
38
|
+
{ name: "My posts", value: "posts" },
|
39
|
+
{ name: "Drafts", value: "drafts" },
|
40
|
+
{ name: "Following", value: "following" }
|
41
|
+
],
|
42
|
+
class: "mn-b-small o-hidden h5 radius-big bg-light"
|
43
|
+
}, null, 8, ["selected"])) : createCommentVNode("", true),
|
44
|
+
createVNode(_sfc_main$2, {
|
45
|
+
showLoadMore: false,
|
46
|
+
states: {
|
47
|
+
empty: {
|
48
|
+
title: "No Blog Posts Found",
|
49
|
+
description: "Currently, there are no posts available in this blog. Please check back later."
|
50
|
+
}
|
51
|
+
},
|
52
|
+
store: {
|
53
|
+
read: (options) => read(options)
|
54
|
+
},
|
55
|
+
options: {
|
56
|
+
limit: 15,
|
57
|
+
category: unref(route).params.category,
|
58
|
+
period: unref(route).query.period,
|
59
|
+
status: tabOrganization.value === "drafts" ? "draft" : "published",
|
60
|
+
user: state.user._id,
|
61
|
+
creator: ["posts", "drafts"].includes(tabOrganization.value) ? unref(route).params._id : null,
|
62
|
+
following: tabOrganization.value === "following" ? state.user._id : null
|
63
|
+
},
|
64
|
+
class: "row-1 gap-thin"
|
65
|
+
}, {
|
66
|
+
default: withCtx(({ items }) => [
|
67
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(items, (item) => {
|
68
|
+
return openBlock(), createBlock(_sfc_main$3, {
|
69
|
+
key: item._id,
|
70
|
+
blogpost: item,
|
71
|
+
user: state.user._id,
|
72
|
+
class: "h-max-40r mn-b-medium"
|
73
|
+
}, null, 8, ["blogpost", "user"]);
|
74
|
+
}), 128))
|
75
|
+
]),
|
76
|
+
_: 1
|
77
|
+
}, 8, ["store", "options"])
|
78
|
+
]);
|
79
|
+
};
|
80
|
+
}
|
81
|
+
};
|
82
|
+
export {
|
83
|
+
_sfc_main as default
|
84
|
+
};
|
85
|
+
//# sourceMappingURL=ProfileBlogposts.vue.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"ProfileBlogposts.vue.js","sources":["../../../../../../../../src/modules/auth/views/components/pages/ProfileBlogposts.vue"],"sourcesContent":["<template>\n\t<div class=\"pd-thin\">\n\t\t<header class=\"mn-b-medium flex-v-center flex-nowrap flex\">\n \t<h2 class=\"mn-r-medium\">Posts</h2>\n \t<button \n \t\tv-if=\"auth.state.user._id === route.params._id\"\n \t\t@click=\"$router.push({\n \t\t\tname: 'Create BlogPost'\n \t\t})\" \n \t\tclass=\"radius-100 t-white t-semi i-big hover-scale-1 cursor-pointer t-white bg-second\">\n \t\t\t+\n \t</button>\n\t\t</header>\n\n\t\t<Tab \n\t\t\tv-if=\"auth.state.user._id === route.params._id\"\n\t\t\tv-model:selected=\"tabOrganization\"\n\t\t\t:tabs=\"[\n\t\t\t\t{ name: 'My posts', \tvalue: 'posts' },\n\t\t\t\t{ name: 'Drafts', \t\tvalue: 'drafts' },\n\t\t\t\t{ name: 'Following', \tvalue: 'following' },\t\n\t\t\t]\"\n\t\t\tclass=\"mn-b-small o-hidden h5 radius-big bg-light\"\n\t\t/>\n\n\t\t<Feed\n\t\t\t:showLoadMore=\"false\"\n\t\t\t:states=\"{\n\t\t\t\tempty: {\n\t\t\t\t\ttitle: 'No Blog Posts Found',\n\t\t\t\t\tdescription: 'Currently, there are no posts available in this blog. Please check back later.'\n\t\t\t\t},\n\t\t\t}\"\n\t\t\t:store=\"{\n\t\t\t\tread: (options) => blog.read(options)\n\t\t\t}\"\n\t\t\t:options=\"{\n\t\t\t\tlimit: 15,\n\t\t\t\tcategory: route.params.category,\n\t\t\t\tperiod: route.query.period,\n\t\t\t\tstatus: tabOrganization === 'drafts' ? 'draft' : 'published',\n\t\t\t\tuser: auth.state.user._id,\n\t\t\t\tcreator: ['posts', 'drafts'].includes(tabOrganization) ? route.params._id : null,\n\t\t\t\tfollowing: tabOrganization === 'following' ? auth.state.user._id : null,\n\t\t\t}\"\n\t\t\tv-slot=\"{ items }\"\n\t\t\tclass=\"row-1 gap-thin\"\n\t\t>\n\t\t\t<CardBlogpost \n\t\t\t\tv-for=\"item in items\" \n\t\t\t\t:key=\"item._id\" \n\t\t\t\t:blogpost=\"item\" \n\t\t\t\t:user=\"auth.state.user._id\" \n\t\t\t\tclass=\"h-max-40r mn-b-medium\"\n\t\t\t/>\n\t\t</Feed>\n\t</div>\n</template>\n\n<script setup>\n\timport { watch, ref } from 'vue'\n\timport { useRoute, useRouter } from 'vue-router'\n\t// Components\n\timport Tab \t\tfrom '@pf/src/components/Tab/Tab.vue'\n\n\timport Feed from '@pf/src/components/Feed/Feed.vue'\n\n import CardBlogpost from '@pf/src/modules/community/components/blocks/CardBlogpost.vue';\n\n\timport * as auth from '@pf/src/modules/auth/views/store/auth';\n import * as blog from '@pf/src/modules/community/store/blogposts.js';\n\t// Accessing router\n\tconst route = useRoute()\n\tconst router = useRouter()\n\t// State\n\tlet tab = route.query.tab ? route.query.tab : 'posts';\n\n\tconst tabOrganization = ref(tab)\n\n\troute.query.tab = tabOrganization.value\n\n\twatch(tabOrganization, (newValue) => {\n\t router.replace({ query: { ...route.query, tab: newValue } });\n\t});\n</script>"],"names":[],"mappings":";;;;;;;;;;;;AAwEC,UAAM,QAAQ,SAAU;AACxB,UAAM,SAAS,UAAW;AAE1B,QAAI,MAAM,MAAM,MAAM,MAAM,MAAM,MAAM,MAAM;AAE9C,UAAM,kBAAkB,IAAI,GAAG;AAE/B,UAAM,MAAM,MAAM,gBAAgB;AAElC,UAAM,iBAAiB,CAAC,aAAa;AACnC,aAAO,QAAQ,EAAE,OAAO,EAAE,GAAG,MAAM,OAAO,KAAK,SAAU,EAAA,CAAE;AAAA,IAC9D,CAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
@@ -0,0 +1,176 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
3
|
+
const vue = require("vue");
|
4
|
+
;/* empty css */
|
5
|
+
const Field = require("../../../../../components/Field/Field.vue2.cjs");
|
6
|
+
const Checkbox = require("../../../../../components/Checkbox/Checkbox.vue.cjs");
|
7
|
+
const Button = require("../../../../../components/Button/Button.vue2.cjs");
|
8
|
+
const UploadImage = require("../../../../../components/UploadImage/UploadImage.vue.cjs");
|
9
|
+
const ProfileCompletion = require("../sections/ProfileCompletion.vue.cjs");
|
10
|
+
const vueRouter = require("vue-router");
|
11
|
+
const auth = require("../../store/auth.cjs");
|
12
|
+
const users = require("../../store/users.cjs");
|
13
|
+
const globals = require("../../../../globals/views/store/globals.cjs");
|
14
|
+
require("./ProfileEdit.vue2.cjs");
|
15
|
+
const _hoisted_1 = {
|
16
|
+
key: 0,
|
17
|
+
class: "pd-medium for-transition w-100"
|
18
|
+
};
|
19
|
+
const _hoisted_2 = { class: "mn-b-semi" };
|
20
|
+
const _hoisted_3 = { class: "mn-b-thin radius-small w-100 h-10r bg-light flex-center flex-column flex" };
|
21
|
+
const _sfc_main = {
|
22
|
+
__name: "ProfileEdit",
|
23
|
+
setup(__props) {
|
24
|
+
vue.ref(null);
|
25
|
+
const route = vueRouter.useRoute();
|
26
|
+
const router = vueRouter.useRouter();
|
27
|
+
vue.ref(null);
|
28
|
+
const show = vue.ref(false);
|
29
|
+
vue.onMounted(async () => {
|
30
|
+
await users.actions.read({ _id: route.params._id, user: auth.state.user._id });
|
31
|
+
show.value = true;
|
32
|
+
});
|
33
|
+
async function onSubmit() {
|
34
|
+
await users.actions.update(users.state.current);
|
35
|
+
}
|
36
|
+
async function onSubmitDelete() {
|
37
|
+
const confirmation = window.confirm("Are you sure you want to delete your account? Restoration will be possible only with the help of an administrator.");
|
38
|
+
if (!confirmation) {
|
39
|
+
return;
|
40
|
+
}
|
41
|
+
users.state.current.status = "removed";
|
42
|
+
await users.actions.update(users.state.current);
|
43
|
+
auth.actions.logout();
|
44
|
+
}
|
45
|
+
function redirectTo() {
|
46
|
+
router.replace({ name: "User Profile", params: { _id: users.state.current._id } });
|
47
|
+
}
|
48
|
+
return (_ctx, _cache) => {
|
49
|
+
return show.value ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_1, [
|
50
|
+
vue.unref(route).params._id === auth.state.user._id ? (vue.openBlock(), vue.createBlock(ProfileCompletion.default, {
|
51
|
+
key: 0,
|
52
|
+
user: auth.state.user._id,
|
53
|
+
target: users.state.current,
|
54
|
+
cta: false
|
55
|
+
}, null, 8, ["user", "target"])) : vue.createCommentVNode("", true),
|
56
|
+
_cache[14] || (_cache[14] = vue.createElementVNode("h3", { class: "mn-b-small" }, "Username", -1)),
|
57
|
+
vue.createVNode(Field.default, {
|
58
|
+
field: users.state.current.username,
|
59
|
+
"onUpdate:field": _cache[0] || (_cache[0] = ($event) => users.state.current.username = $event),
|
60
|
+
label: "@",
|
61
|
+
placeholder: "Not specified",
|
62
|
+
class: "mn-b-thin w-100 bg-light pd-medium radius-small",
|
63
|
+
disabled: "true",
|
64
|
+
validation: _ctx.organizationName
|
65
|
+
}, null, 8, ["field", "validation"]),
|
66
|
+
vue.createElementVNode("p", _hoisted_2, "Your username will be used for URL of profile like " + vue.toDisplayString(_ctx.API_URL) + "/users/username", 1),
|
67
|
+
_cache[15] || (_cache[15] = vue.createElementVNode("h3", { class: "mn-b-small" }, "Profile", -1)),
|
68
|
+
vue.createElementVNode("div", _hoisted_3, [
|
69
|
+
vue.createVNode(UploadImage.default, {
|
70
|
+
photo: users.state.current.profile.photo,
|
71
|
+
"onUpdate:photo": _cache[1] || (_cache[1] = ($event) => users.state.current.profile.photo = $event),
|
72
|
+
uploadPath: "users/" + users.state.current._id + "/avatars",
|
73
|
+
class: "h-4r w-4r aspect-1x1 o-hidden bg-white mn-b-thin radius-extra"
|
74
|
+
}, null, 8, ["photo", "uploadPath"]),
|
75
|
+
_cache[11] || (_cache[11] = vue.createElementVNode("h4", null, "Upload userpic", -1))
|
76
|
+
]),
|
77
|
+
vue.createVNode(Field.default, {
|
78
|
+
field: users.state.current.profile.name,
|
79
|
+
"onUpdate:field": _cache[2] || (_cache[2] = ($event) => users.state.current.profile.name = $event),
|
80
|
+
label: "Name",
|
81
|
+
placeholder: "Not specified",
|
82
|
+
class: "mn-b-thin bg-light pd-medium radius-small",
|
83
|
+
validation: _ctx.organizationName
|
84
|
+
}, null, 8, ["field", "validation"]),
|
85
|
+
vue.createVNode(Field.default, {
|
86
|
+
field: users.state.current.profile.description,
|
87
|
+
"onUpdate:field": _cache[3] || (_cache[3] = ($event) => users.state.current.profile.description = $event),
|
88
|
+
label: "Description",
|
89
|
+
placeholder: "Not specified",
|
90
|
+
class: "mn-b-semi bg-light pd-medium radius-small",
|
91
|
+
validation: _ctx.organizationName
|
92
|
+
}, null, 8, ["field", "validation"]),
|
93
|
+
_cache[16] || (_cache[16] = vue.createElementVNode("h3", { class: "mn-b-small" }, "Socials", -1)),
|
94
|
+
_cache[17] || (_cache[17] = vue.createElementVNode("p", { class: "mn-b-thin" }, "Please provide only the username for social media profiles, without full links.", -1)),
|
95
|
+
vue.createVNode(Field.default, {
|
96
|
+
field: users.state.current.socials.instagram,
|
97
|
+
"onUpdate:field": _cache[4] || (_cache[4] = ($event) => users.state.current.socials.instagram = $event),
|
98
|
+
label: "Instagram",
|
99
|
+
placeholder: "",
|
100
|
+
class: "mn-b-thin bg-light pd-medium radius-small"
|
101
|
+
}, null, 8, ["field"]),
|
102
|
+
vue.createVNode(Field.default, {
|
103
|
+
field: users.state.current.socials.twitter,
|
104
|
+
"onUpdate:field": _cache[5] || (_cache[5] = ($event) => users.state.current.socials.twitter = $event),
|
105
|
+
label: "Twitter",
|
106
|
+
placeholder: "",
|
107
|
+
class: "mn-b-thin bg-light pd-medium radius-small"
|
108
|
+
}, null, 8, ["field"]),
|
109
|
+
vue.createVNode(Field.default, {
|
110
|
+
field: users.state.current.socials.facebook,
|
111
|
+
"onUpdate:field": _cache[6] || (_cache[6] = ($event) => users.state.current.socials.facebook = $event),
|
112
|
+
label: "Facebook",
|
113
|
+
placeholder: "",
|
114
|
+
class: "mn-b-thin bg-light pd-medium radius-small"
|
115
|
+
}, null, 8, ["field"]),
|
116
|
+
vue.createVNode(Field.default, {
|
117
|
+
field: users.state.current.socials.telegram,
|
118
|
+
"onUpdate:field": _cache[7] || (_cache[7] = ($event) => users.state.current.socials.telegram = $event),
|
119
|
+
label: "Telegram",
|
120
|
+
placeholder: "",
|
121
|
+
class: "mn-b-semi bg-light pd-medium radius-small"
|
122
|
+
}, null, 8, ["field"]),
|
123
|
+
_cache[18] || (_cache[18] = vue.createElementVNode("h3", { class: "mn-b-small" }, "Settings", -1)),
|
124
|
+
vue.createVNode(Checkbox.default, {
|
125
|
+
label: "Darkmode",
|
126
|
+
radio: globals.state.theme.darkmode,
|
127
|
+
"onUpdate:radio": _cache[8] || (_cache[8] = (event) => globals.actions.toggleTheme()),
|
128
|
+
class: "mn-b-semi w-100 bg-light t-black pd-medium radius-small"
|
129
|
+
}, null, 8, ["radio"]),
|
130
|
+
_cache[19] || (_cache[19] = vue.createElementVNode("h3", { class: "mn-b-small" }, "Account", -1)),
|
131
|
+
vue.createVNode(Field.default, {
|
132
|
+
field: users.state.current.phone,
|
133
|
+
"onUpdate:field": _cache[9] || (_cache[9] = ($event) => users.state.current.phone = $event),
|
134
|
+
label: "Phone",
|
135
|
+
placeholder: "Not specified",
|
136
|
+
class: "mn-b-thin bg-light pd-medium mn-b-thin radius-small",
|
137
|
+
disabled: "true",
|
138
|
+
validation: _ctx.organizationName
|
139
|
+
}, null, 8, ["field", "validation"]),
|
140
|
+
vue.createVNode(Field.default, {
|
141
|
+
field: users.state.current.email,
|
142
|
+
"onUpdate:field": _cache[10] || (_cache[10] = ($event) => users.state.current.email = $event),
|
143
|
+
label: "Email",
|
144
|
+
placeholder: "Not specified",
|
145
|
+
class: "mn-b-semi bg-light pd-medium radius-small",
|
146
|
+
disabled: true,
|
147
|
+
validation: _ctx.organizationName
|
148
|
+
}, null, 8, ["field", "validation"]),
|
149
|
+
vue.createVNode(Button.default, {
|
150
|
+
submit: onSubmit,
|
151
|
+
callback: redirectTo,
|
152
|
+
class: "mn-b-thin bg-main w-100"
|
153
|
+
}, {
|
154
|
+
default: vue.withCtx(() => _cache[12] || (_cache[12] = [
|
155
|
+
vue.createTextVNode(" Save ")
|
156
|
+
])),
|
157
|
+
_: 1
|
158
|
+
}),
|
159
|
+
vue.createVNode(Button.default, {
|
160
|
+
submit: onSubmitDelete,
|
161
|
+
callback: _ctx.a = () => {
|
162
|
+
vue.unref(router).push({ name: "Sign In" });
|
163
|
+
},
|
164
|
+
class: "mn-b-thin w-100 bg-red t-white"
|
165
|
+
}, {
|
166
|
+
default: vue.withCtx(() => _cache[13] || (_cache[13] = [
|
167
|
+
vue.createTextVNode(" Delete Account ")
|
168
|
+
])),
|
169
|
+
_: 1
|
170
|
+
}, 8, ["callback"])
|
171
|
+
])) : vue.createCommentVNode("", true);
|
172
|
+
};
|
173
|
+
}
|
174
|
+
};
|
175
|
+
exports.default = _sfc_main;
|
176
|
+
//# sourceMappingURL=ProfileEdit.vue.cjs.map
|
package/dist/prometheus-framework/src/modules/auth/views/components/pages/ProfileEdit.vue.cjs.map
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"ProfileEdit.vue.cjs","sources":["../../../../../../../../src/modules/auth/views/components/pages/ProfileEdit.vue"],"sourcesContent":["<template>\n\t<div v-if=\"show\" class=\"pd-medium for-transition w-100\">\n \n <ProfileCompletion \n v-if=\"route.params._id === auth.state.user._id\" \n :user=\"auth.state.user._id\"\n :target=\"users.state.current\"\n :cta=\"false\"\n />\n <!-- -->\n <h3 class=\"mn-b-small\">Username</h3>\n\n <Field \n v-model:field=\"users.state.current.username\" \n label=\"@\" \n placeholder=\"Not specified\" \n class=\"mn-b-thin w-100 bg-light pd-medium radius-small\" \n disabled=\"true\"\n :validation=\"organizationName\" \n />\n\n <p class=\"mn-b-semi\">Your username will be used for URL of profile like {{API_URL}}/users/username</p>\n <!-- -->\n <h3 class=\"mn-b-small\">Profile</h3>\n\n <div class=\"mn-b-thin radius-small w-100 h-10r bg-light flex-center flex-column flex\">\n <UploadImage \n v-model:photo=\"users.state.current.profile.photo\"\n :uploadPath=\"'users/' + users.state.current._id + '/avatars'\"\n class=\"h-4r w-4r aspect-1x1 o-hidden bg-white mn-b-thin radius-extra\" \n />\n <h4>Upload userpic</h4>\n </div>\n\n <Field \n v-model:field=\"users.state.current.profile.name\" \n label=\"Name\" \n placeholder=\"Not specified\" \n class=\"mn-b-thin bg-light pd-medium radius-small\" \n :validation=\"organizationName\" \n />\n\n <Field \n v-model:field=\"users.state.current.profile.description\" \n label=\"Description\" \n placeholder=\"Not specified\" \n class=\"mn-b-semi bg-light pd-medium radius-small\" \n :validation=\"organizationName\" \n />\n\n <!-- <p class=\"mn-b-thin\">Select your birthday if you want to receive your birthday gift.</p>\n \n <Field \n v-model:field=\"users.state.current.birthday\" \n label=\"Birthday\" \n type=\"date\"\n placeholder=\"Not specified\" \n class=\"mn-b-semi bg-light pd-medium radius-small\" \n :validation=\"organizationName\" \n /> -->\n <h3 class=\"mn-b-small\">Socials</h3>\n <p class=\"mn-b-thin\">Please provide only the username for social media profiles, without full links.</p>\n\n <Field \n v-model:field=\"users.state.current.socials.instagram\"\n label=\"Instagram\" \n placeholder=\"\" \n class=\"mn-b-thin bg-light pd-medium radius-small\" \n />\n <Field \n v-model:field=\"users.state.current.socials.twitter\"\n label=\"Twitter\" \n placeholder=\"\" \n class=\"mn-b-thin bg-light pd-medium radius-small\" \n />\n <Field \n v-model:field=\"users.state.current.socials.facebook\"\n label=\"Facebook\" \n placeholder=\"\" \n class=\"mn-b-thin bg-light pd-medium radius-small\" \n />\n <Field \n v-model:field=\"users.state.current.socials.telegram\"\n label=\"Telegram\" \n placeholder=\"\" \n class=\"mn-b-semi bg-light pd-medium radius-small\" \n />\n <h3 class=\"mn-b-small\">Settings</h3>\n <Checkbox \n :label=\"'Darkmode'\"\n :radio=\"globals.state.theme.darkmode\"\n @update:radio=\"event => globals.actions.toggleTheme()\"\n class=\"mn-b-semi w-100 bg-light t-black pd-medium radius-small\"\n />\n\n <!-- -->\n <h3 class=\"mn-b-small\">Account</h3>\n \n <Field \n v-model:field=\"users.state.current.phone\" \n label=\"Phone\" \n placeholder=\"Not specified\" \n class=\"mn-b-thin bg-light pd-medium mn-b-thin radius-small\" \n disabled=\"true\"\n :validation=\"organizationName\" \n />\n\n <Field \n v-model:field=\"users.state.current.email\" \n label=\"Email\" \n placeholder=\"Not specified\" \n class=\"mn-b-semi bg-light pd-medium radius-small\" \n :disabled=\"true\"\n :validation=\"organizationName\" \n />\n\n <Button \n :submit=\"onSubmit\" \n :callback=\"redirectTo\" \n class=\"mn-b-thin bg-main w-100\"\n > \n Save\n </Button>\n\n\t\t<Button\n :submit=\"onSubmitDelete\" \n :callback=\"a = () => {router.push({name: 'Sign In'})}\" \n class=\"mn-b-thin w-100 bg-red t-white\"\n >\n Delete Account\n </Button>\n\t</div>\n</template>\n\n<script setup>\n // Import components\n import Tab from '@pf/src/components/Tab/Tab.vue'\n import Field from '@pf/src/components/Field/Field.vue'\n import Checkbox from '@pf/src/components/Checkbox/Checkbox.vue'\n import Button from '@pf/src/components/Button/Button.vue'\n import UploadImage from '@pf/src/components/UploadImage/UploadImage.vue';\n\n import ProfileCompletion from '@pf/src/modules/auth/views/components/sections/ProfileCompletion.vue'\n // Import libs\n import { computed, onMounted, ref, onBeforeMount } from 'vue'\n import { useRoute, useRouter } from 'vue-router'\n // Import state\n import * as auth from '@pf/src/modules/auth/views/store/auth'\n import * as users from '@pf/src/modules/auth/views/store/users'\n import * as globals from '@pf/src/modules/globals/views/store/globals'\n // Import validation\n import * as inputsValidation from '@pf/src/modules/auth/views/validations/inputs.validation'\n const passswordValidation = ref(null)\n // Accessing router\n const route = useRoute()\n const router = useRouter()\n\n const user = ref(null)\n const show = ref(false)\n\n\n onMounted(async () => {\n await users.actions.read({ _id: route.params._id, user: auth.state.user._id });\n show.value = true\n })\n // Methods\n async function onSubmit() {\n await users.actions.update(users.state.current)\n }\n\n async function onSubmitDelete() {\n const confirmation = window.confirm(\"Are you sure you want to delete your account? Restoration will be possible only with the help of an administrator.\");\n \n if (!confirmation) {\n return;\n }\n\n users.state.current.status = 'removed'\n await users.actions.update(users.state.current)\n auth.actions.logout()\n }\n function redirectTo () {\n router.replace({ name: 'User Profile', params: { _id: users.state.current._id }});\n }\n</script>\n\n<style lang=\"scss\">\n\t#header {\n\t\t// height: 3rem;\n\t}\n</style>\n"],"names":["ref","useRoute","useRouter","onMounted","users.actions","auth.state","users.state","auth.actions"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;AAwJ8BA,QAAAA,IAAI,IAAI;AAEpC,UAAM,QAAQC,UAAAA,SAAU;AACxB,UAAM,SAASC,UAAAA,UAAW;AAEbF,QAAAA,IAAI,IAAI;AACrB,UAAM,OAAOA,IAAG,IAAC,KAAK;AAGtBG,QAAAA,UAAU,YAAY;AACpB,YAAMC,cAAc,KAAK,EAAE,KAAK,MAAM,OAAO,KAAK,MAAMC,KAAU,MAAC,KAAK,IAAK,CAAA;AAC7E,WAAK,QAAQ;AAAA,IACjB,CAAG;AAED,mBAAe,WAAW;AACxB,YAAMD,cAAc,OAAOE,MAAW,MAAC,OAAO;AAAA,IAC/C;AAED,mBAAe,iBAAiB;AAC9B,YAAM,eAAe,OAAO,QAAQ,oHAAoH;AAExJ,UAAI,CAAC,cAAc;AACf;AAAA,MACH;AAEDA,kBAAY,QAAQ,SAAS;AAC7B,YAAMF,cAAc,OAAOE,MAAW,MAAC,OAAO;AAC9CC,WAAAA,QAAa,OAAQ;AAAA,IACtB;AACD,aAAS,aAAc;AACrB,aAAO,QAAQ,EAAE,MAAM,gBAAgB,QAAQ,EAAE,KAAKD,YAAY,QAAQ,IAAG,EAAE,CAAC;AAAA,IACjF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
@@ -0,0 +1,176 @@
|
|
1
|
+
import { ref, onMounted, openBlock, createElementBlock, unref, createBlock, createCommentVNode, createElementVNode, createVNode, toDisplayString, withCtx, createTextVNode } from "vue";
|
2
|
+
/* empty css */
|
3
|
+
import Field from "../../../../../components/Field/Field.vue2.js";
|
4
|
+
import _sfc_main$3 from "../../../../../components/Checkbox/Checkbox.vue.js";
|
5
|
+
import _sfc_main$4 from "../../../../../components/Button/Button.vue2.js";
|
6
|
+
import _sfc_main$2 from "../../../../../components/UploadImage/UploadImage.vue.js";
|
7
|
+
import _sfc_main$1 from "../sections/ProfileCompletion.vue.js";
|
8
|
+
import { useRoute, useRouter } from "vue-router";
|
9
|
+
import { state, actions as actions$2 } from "../../store/auth.js";
|
10
|
+
import { actions, state as state$1 } from "../../store/users.js";
|
11
|
+
import { state as state$2, actions as actions$1 } from "../../../../globals/views/store/globals.js";
|
12
|
+
import "./ProfileEdit.vue2.js";
|
13
|
+
const _hoisted_1 = {
|
14
|
+
key: 0,
|
15
|
+
class: "pd-medium for-transition w-100"
|
16
|
+
};
|
17
|
+
const _hoisted_2 = { class: "mn-b-semi" };
|
18
|
+
const _hoisted_3 = { class: "mn-b-thin radius-small w-100 h-10r bg-light flex-center flex-column flex" };
|
19
|
+
const _sfc_main = {
|
20
|
+
__name: "ProfileEdit",
|
21
|
+
setup(__props) {
|
22
|
+
ref(null);
|
23
|
+
const route = useRoute();
|
24
|
+
const router = useRouter();
|
25
|
+
ref(null);
|
26
|
+
const show = ref(false);
|
27
|
+
onMounted(async () => {
|
28
|
+
await actions.read({ _id: route.params._id, user: state.user._id });
|
29
|
+
show.value = true;
|
30
|
+
});
|
31
|
+
async function onSubmit() {
|
32
|
+
await actions.update(state$1.current);
|
33
|
+
}
|
34
|
+
async function onSubmitDelete() {
|
35
|
+
const confirmation = window.confirm("Are you sure you want to delete your account? Restoration will be possible only with the help of an administrator.");
|
36
|
+
if (!confirmation) {
|
37
|
+
return;
|
38
|
+
}
|
39
|
+
state$1.current.status = "removed";
|
40
|
+
await actions.update(state$1.current);
|
41
|
+
actions$2.logout();
|
42
|
+
}
|
43
|
+
function redirectTo() {
|
44
|
+
router.replace({ name: "User Profile", params: { _id: state$1.current._id } });
|
45
|
+
}
|
46
|
+
return (_ctx, _cache) => {
|
47
|
+
return show.value ? (openBlock(), createElementBlock("div", _hoisted_1, [
|
48
|
+
unref(route).params._id === state.user._id ? (openBlock(), createBlock(_sfc_main$1, {
|
49
|
+
key: 0,
|
50
|
+
user: state.user._id,
|
51
|
+
target: state$1.current,
|
52
|
+
cta: false
|
53
|
+
}, null, 8, ["user", "target"])) : createCommentVNode("", true),
|
54
|
+
_cache[14] || (_cache[14] = createElementVNode("h3", { class: "mn-b-small" }, "Username", -1)),
|
55
|
+
createVNode(Field, {
|
56
|
+
field: state$1.current.username,
|
57
|
+
"onUpdate:field": _cache[0] || (_cache[0] = ($event) => state$1.current.username = $event),
|
58
|
+
label: "@",
|
59
|
+
placeholder: "Not specified",
|
60
|
+
class: "mn-b-thin w-100 bg-light pd-medium radius-small",
|
61
|
+
disabled: "true",
|
62
|
+
validation: _ctx.organizationName
|
63
|
+
}, null, 8, ["field", "validation"]),
|
64
|
+
createElementVNode("p", _hoisted_2, "Your username will be used for URL of profile like " + toDisplayString(_ctx.API_URL) + "/users/username", 1),
|
65
|
+
_cache[15] || (_cache[15] = createElementVNode("h3", { class: "mn-b-small" }, "Profile", -1)),
|
66
|
+
createElementVNode("div", _hoisted_3, [
|
67
|
+
createVNode(_sfc_main$2, {
|
68
|
+
photo: state$1.current.profile.photo,
|
69
|
+
"onUpdate:photo": _cache[1] || (_cache[1] = ($event) => state$1.current.profile.photo = $event),
|
70
|
+
uploadPath: "users/" + state$1.current._id + "/avatars",
|
71
|
+
class: "h-4r w-4r aspect-1x1 o-hidden bg-white mn-b-thin radius-extra"
|
72
|
+
}, null, 8, ["photo", "uploadPath"]),
|
73
|
+
_cache[11] || (_cache[11] = createElementVNode("h4", null, "Upload userpic", -1))
|
74
|
+
]),
|
75
|
+
createVNode(Field, {
|
76
|
+
field: state$1.current.profile.name,
|
77
|
+
"onUpdate:field": _cache[2] || (_cache[2] = ($event) => state$1.current.profile.name = $event),
|
78
|
+
label: "Name",
|
79
|
+
placeholder: "Not specified",
|
80
|
+
class: "mn-b-thin bg-light pd-medium radius-small",
|
81
|
+
validation: _ctx.organizationName
|
82
|
+
}, null, 8, ["field", "validation"]),
|
83
|
+
createVNode(Field, {
|
84
|
+
field: state$1.current.profile.description,
|
85
|
+
"onUpdate:field": _cache[3] || (_cache[3] = ($event) => state$1.current.profile.description = $event),
|
86
|
+
label: "Description",
|
87
|
+
placeholder: "Not specified",
|
88
|
+
class: "mn-b-semi bg-light pd-medium radius-small",
|
89
|
+
validation: _ctx.organizationName
|
90
|
+
}, null, 8, ["field", "validation"]),
|
91
|
+
_cache[16] || (_cache[16] = createElementVNode("h3", { class: "mn-b-small" }, "Socials", -1)),
|
92
|
+
_cache[17] || (_cache[17] = createElementVNode("p", { class: "mn-b-thin" }, "Please provide only the username for social media profiles, without full links.", -1)),
|
93
|
+
createVNode(Field, {
|
94
|
+
field: state$1.current.socials.instagram,
|
95
|
+
"onUpdate:field": _cache[4] || (_cache[4] = ($event) => state$1.current.socials.instagram = $event),
|
96
|
+
label: "Instagram",
|
97
|
+
placeholder: "",
|
98
|
+
class: "mn-b-thin bg-light pd-medium radius-small"
|
99
|
+
}, null, 8, ["field"]),
|
100
|
+
createVNode(Field, {
|
101
|
+
field: state$1.current.socials.twitter,
|
102
|
+
"onUpdate:field": _cache[5] || (_cache[5] = ($event) => state$1.current.socials.twitter = $event),
|
103
|
+
label: "Twitter",
|
104
|
+
placeholder: "",
|
105
|
+
class: "mn-b-thin bg-light pd-medium radius-small"
|
106
|
+
}, null, 8, ["field"]),
|
107
|
+
createVNode(Field, {
|
108
|
+
field: state$1.current.socials.facebook,
|
109
|
+
"onUpdate:field": _cache[6] || (_cache[6] = ($event) => state$1.current.socials.facebook = $event),
|
110
|
+
label: "Facebook",
|
111
|
+
placeholder: "",
|
112
|
+
class: "mn-b-thin bg-light pd-medium radius-small"
|
113
|
+
}, null, 8, ["field"]),
|
114
|
+
createVNode(Field, {
|
115
|
+
field: state$1.current.socials.telegram,
|
116
|
+
"onUpdate:field": _cache[7] || (_cache[7] = ($event) => state$1.current.socials.telegram = $event),
|
117
|
+
label: "Telegram",
|
118
|
+
placeholder: "",
|
119
|
+
class: "mn-b-semi bg-light pd-medium radius-small"
|
120
|
+
}, null, 8, ["field"]),
|
121
|
+
_cache[18] || (_cache[18] = createElementVNode("h3", { class: "mn-b-small" }, "Settings", -1)),
|
122
|
+
createVNode(_sfc_main$3, {
|
123
|
+
label: "Darkmode",
|
124
|
+
radio: state$2.theme.darkmode,
|
125
|
+
"onUpdate:radio": _cache[8] || (_cache[8] = (event) => actions$1.toggleTheme()),
|
126
|
+
class: "mn-b-semi w-100 bg-light t-black pd-medium radius-small"
|
127
|
+
}, null, 8, ["radio"]),
|
128
|
+
_cache[19] || (_cache[19] = createElementVNode("h3", { class: "mn-b-small" }, "Account", -1)),
|
129
|
+
createVNode(Field, {
|
130
|
+
field: state$1.current.phone,
|
131
|
+
"onUpdate:field": _cache[9] || (_cache[9] = ($event) => state$1.current.phone = $event),
|
132
|
+
label: "Phone",
|
133
|
+
placeholder: "Not specified",
|
134
|
+
class: "mn-b-thin bg-light pd-medium mn-b-thin radius-small",
|
135
|
+
disabled: "true",
|
136
|
+
validation: _ctx.organizationName
|
137
|
+
}, null, 8, ["field", "validation"]),
|
138
|
+
createVNode(Field, {
|
139
|
+
field: state$1.current.email,
|
140
|
+
"onUpdate:field": _cache[10] || (_cache[10] = ($event) => state$1.current.email = $event),
|
141
|
+
label: "Email",
|
142
|
+
placeholder: "Not specified",
|
143
|
+
class: "mn-b-semi bg-light pd-medium radius-small",
|
144
|
+
disabled: true,
|
145
|
+
validation: _ctx.organizationName
|
146
|
+
}, null, 8, ["field", "validation"]),
|
147
|
+
createVNode(_sfc_main$4, {
|
148
|
+
submit: onSubmit,
|
149
|
+
callback: redirectTo,
|
150
|
+
class: "mn-b-thin bg-main w-100"
|
151
|
+
}, {
|
152
|
+
default: withCtx(() => _cache[12] || (_cache[12] = [
|
153
|
+
createTextVNode(" Save ")
|
154
|
+
])),
|
155
|
+
_: 1
|
156
|
+
}),
|
157
|
+
createVNode(_sfc_main$4, {
|
158
|
+
submit: onSubmitDelete,
|
159
|
+
callback: _ctx.a = () => {
|
160
|
+
unref(router).push({ name: "Sign In" });
|
161
|
+
},
|
162
|
+
class: "mn-b-thin w-100 bg-red t-white"
|
163
|
+
}, {
|
164
|
+
default: withCtx(() => _cache[13] || (_cache[13] = [
|
165
|
+
createTextVNode(" Delete Account ")
|
166
|
+
])),
|
167
|
+
_: 1
|
168
|
+
}, 8, ["callback"])
|
169
|
+
])) : createCommentVNode("", true);
|
170
|
+
};
|
171
|
+
}
|
172
|
+
};
|
173
|
+
export {
|
174
|
+
_sfc_main as default
|
175
|
+
};
|
176
|
+
//# sourceMappingURL=ProfileEdit.vue.js.map
|
package/dist/prometheus-framework/src/modules/auth/views/components/pages/ProfileEdit.vue.js.map
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"ProfileEdit.vue.js","sources":["../../../../../../../../src/modules/auth/views/components/pages/ProfileEdit.vue"],"sourcesContent":["<template>\n\t<div v-if=\"show\" class=\"pd-medium for-transition w-100\">\n \n <ProfileCompletion \n v-if=\"route.params._id === auth.state.user._id\" \n :user=\"auth.state.user._id\"\n :target=\"users.state.current\"\n :cta=\"false\"\n />\n <!-- -->\n <h3 class=\"mn-b-small\">Username</h3>\n\n <Field \n v-model:field=\"users.state.current.username\" \n label=\"@\" \n placeholder=\"Not specified\" \n class=\"mn-b-thin w-100 bg-light pd-medium radius-small\" \n disabled=\"true\"\n :validation=\"organizationName\" \n />\n\n <p class=\"mn-b-semi\">Your username will be used for URL of profile like {{API_URL}}/users/username</p>\n <!-- -->\n <h3 class=\"mn-b-small\">Profile</h3>\n\n <div class=\"mn-b-thin radius-small w-100 h-10r bg-light flex-center flex-column flex\">\n <UploadImage \n v-model:photo=\"users.state.current.profile.photo\"\n :uploadPath=\"'users/' + users.state.current._id + '/avatars'\"\n class=\"h-4r w-4r aspect-1x1 o-hidden bg-white mn-b-thin radius-extra\" \n />\n <h4>Upload userpic</h4>\n </div>\n\n <Field \n v-model:field=\"users.state.current.profile.name\" \n label=\"Name\" \n placeholder=\"Not specified\" \n class=\"mn-b-thin bg-light pd-medium radius-small\" \n :validation=\"organizationName\" \n />\n\n <Field \n v-model:field=\"users.state.current.profile.description\" \n label=\"Description\" \n placeholder=\"Not specified\" \n class=\"mn-b-semi bg-light pd-medium radius-small\" \n :validation=\"organizationName\" \n />\n\n <!-- <p class=\"mn-b-thin\">Select your birthday if you want to receive your birthday gift.</p>\n \n <Field \n v-model:field=\"users.state.current.birthday\" \n label=\"Birthday\" \n type=\"date\"\n placeholder=\"Not specified\" \n class=\"mn-b-semi bg-light pd-medium radius-small\" \n :validation=\"organizationName\" \n /> -->\n <h3 class=\"mn-b-small\">Socials</h3>\n <p class=\"mn-b-thin\">Please provide only the username for social media profiles, without full links.</p>\n\n <Field \n v-model:field=\"users.state.current.socials.instagram\"\n label=\"Instagram\" \n placeholder=\"\" \n class=\"mn-b-thin bg-light pd-medium radius-small\" \n />\n <Field \n v-model:field=\"users.state.current.socials.twitter\"\n label=\"Twitter\" \n placeholder=\"\" \n class=\"mn-b-thin bg-light pd-medium radius-small\" \n />\n <Field \n v-model:field=\"users.state.current.socials.facebook\"\n label=\"Facebook\" \n placeholder=\"\" \n class=\"mn-b-thin bg-light pd-medium radius-small\" \n />\n <Field \n v-model:field=\"users.state.current.socials.telegram\"\n label=\"Telegram\" \n placeholder=\"\" \n class=\"mn-b-semi bg-light pd-medium radius-small\" \n />\n <h3 class=\"mn-b-small\">Settings</h3>\n <Checkbox \n :label=\"'Darkmode'\"\n :radio=\"globals.state.theme.darkmode\"\n @update:radio=\"event => globals.actions.toggleTheme()\"\n class=\"mn-b-semi w-100 bg-light t-black pd-medium radius-small\"\n />\n\n <!-- -->\n <h3 class=\"mn-b-small\">Account</h3>\n \n <Field \n v-model:field=\"users.state.current.phone\" \n label=\"Phone\" \n placeholder=\"Not specified\" \n class=\"mn-b-thin bg-light pd-medium mn-b-thin radius-small\" \n disabled=\"true\"\n :validation=\"organizationName\" \n />\n\n <Field \n v-model:field=\"users.state.current.email\" \n label=\"Email\" \n placeholder=\"Not specified\" \n class=\"mn-b-semi bg-light pd-medium radius-small\" \n :disabled=\"true\"\n :validation=\"organizationName\" \n />\n\n <Button \n :submit=\"onSubmit\" \n :callback=\"redirectTo\" \n class=\"mn-b-thin bg-main w-100\"\n > \n Save\n </Button>\n\n\t\t<Button\n :submit=\"onSubmitDelete\" \n :callback=\"a = () => {router.push({name: 'Sign In'})}\" \n class=\"mn-b-thin w-100 bg-red t-white\"\n >\n Delete Account\n </Button>\n\t</div>\n</template>\n\n<script setup>\n // Import components\n import Tab from '@pf/src/components/Tab/Tab.vue'\n import Field from '@pf/src/components/Field/Field.vue'\n import Checkbox from '@pf/src/components/Checkbox/Checkbox.vue'\n import Button from '@pf/src/components/Button/Button.vue'\n import UploadImage from '@pf/src/components/UploadImage/UploadImage.vue';\n\n import ProfileCompletion from '@pf/src/modules/auth/views/components/sections/ProfileCompletion.vue'\n // Import libs\n import { computed, onMounted, ref, onBeforeMount } from 'vue'\n import { useRoute, useRouter } from 'vue-router'\n // Import state\n import * as auth from '@pf/src/modules/auth/views/store/auth'\n import * as users from '@pf/src/modules/auth/views/store/users'\n import * as globals from '@pf/src/modules/globals/views/store/globals'\n // Import validation\n import * as inputsValidation from '@pf/src/modules/auth/views/validations/inputs.validation'\n const passswordValidation = ref(null)\n // Accessing router\n const route = useRoute()\n const router = useRouter()\n\n const user = ref(null)\n const show = ref(false)\n\n\n onMounted(async () => {\n await users.actions.read({ _id: route.params._id, user: auth.state.user._id });\n show.value = true\n })\n // Methods\n async function onSubmit() {\n await users.actions.update(users.state.current)\n }\n\n async function onSubmitDelete() {\n const confirmation = window.confirm(\"Are you sure you want to delete your account? Restoration will be possible only with the help of an administrator.\");\n \n if (!confirmation) {\n return;\n }\n\n users.state.current.status = 'removed'\n await users.actions.update(users.state.current)\n auth.actions.logout()\n }\n function redirectTo () {\n router.replace({ name: 'User Profile', params: { _id: users.state.current._id }});\n }\n</script>\n\n<style lang=\"scss\">\n\t#header {\n\t\t// height: 3rem;\n\t}\n</style>\n"],"names":["users.actions","auth.state","users.state","auth.actions"],"mappings":";;;;;;;;;;;;;;;;;;;;;AAwJ8B,QAAI,IAAI;AAEpC,UAAM,QAAQ,SAAU;AACxB,UAAM,SAAS,UAAW;AAEb,QAAI,IAAI;AACrB,UAAM,OAAO,IAAI,KAAK;AAGtB,cAAU,YAAY;AACpB,YAAMA,QAAc,KAAK,EAAE,KAAK,MAAM,OAAO,KAAK,MAAMC,MAAW,KAAK,IAAK,CAAA;AAC7E,WAAK,QAAQ;AAAA,IACjB,CAAG;AAED,mBAAe,WAAW;AACxB,YAAMD,QAAc,OAAOE,QAAY,OAAO;AAAA,IAC/C;AAED,mBAAe,iBAAiB;AAC9B,YAAM,eAAe,OAAO,QAAQ,oHAAoH;AAExJ,UAAI,CAAC,cAAc;AACf;AAAA,MACH;AAEDA,cAAY,QAAQ,SAAS;AAC7B,YAAMF,QAAc,OAAOE,QAAY,OAAO;AAC9CC,gBAAa,OAAQ;AAAA,IACtB;AACD,aAAS,aAAc;AACrB,aAAO,QAAQ,EAAE,MAAM,gBAAgB,QAAQ,EAAE,KAAKD,QAAY,QAAQ,IAAG,EAAE,CAAC;AAAA,IACjF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
package/dist/prometheus-framework/src/modules/auth/views/components/pages/ProfileEdit.vue2.cjs.map
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"ProfileEdit.vue2.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
package/dist/prometheus-framework/src/modules/auth/views/components/pages/ProfileEdit.vue2.js.map
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"ProfileEdit.vue2.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|