@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
@@ -0,0 +1,95 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
3
|
+
const vue = require("vue");
|
4
|
+
const axiosInstance = require("../../../globals/views/utils/axios-instance.cjs");
|
5
|
+
const state = vue.reactive({
|
6
|
+
all: [],
|
7
|
+
current: {
|
8
|
+
_id: "",
|
9
|
+
username: "",
|
10
|
+
email: "",
|
11
|
+
phone: "",
|
12
|
+
status: "",
|
13
|
+
profile: {
|
14
|
+
name: "",
|
15
|
+
photo: "",
|
16
|
+
description: "",
|
17
|
+
birthday: ""
|
18
|
+
},
|
19
|
+
socials: {
|
20
|
+
facebook: "",
|
21
|
+
twitter: "",
|
22
|
+
instagram: "",
|
23
|
+
telegram: ""
|
24
|
+
},
|
25
|
+
roles: []
|
26
|
+
}
|
27
|
+
});
|
28
|
+
const actions = {
|
29
|
+
async create(user) {
|
30
|
+
try {
|
31
|
+
const response = await axiosInstance.default.post("/api/users", user);
|
32
|
+
mutations.set(response.data, "current");
|
33
|
+
return Promise.resolve(response.data);
|
34
|
+
} catch (error) {
|
35
|
+
console.error(error);
|
36
|
+
return Promise.reject(error);
|
37
|
+
}
|
38
|
+
},
|
39
|
+
async read(options = {}) {
|
40
|
+
try {
|
41
|
+
const response = await axiosInstance.default.get("/api/users", { params: options });
|
42
|
+
if (options._id) {
|
43
|
+
mutations.set(response.data[0], "current");
|
44
|
+
} else {
|
45
|
+
mutations.set(response.data, "all");
|
46
|
+
}
|
47
|
+
return Promise.resolve(response.data);
|
48
|
+
} catch (error) {
|
49
|
+
console.error(error);
|
50
|
+
return Promise.reject(error);
|
51
|
+
}
|
52
|
+
},
|
53
|
+
async update(user) {
|
54
|
+
try {
|
55
|
+
const response = await axiosInstance.default.put(`/api/users/${user._id}`, user);
|
56
|
+
mutations.set(response.data, "current");
|
57
|
+
return Promise.resolve(response.data);
|
58
|
+
} catch (error) {
|
59
|
+
console.error(error);
|
60
|
+
return Promise.reject(error);
|
61
|
+
}
|
62
|
+
},
|
63
|
+
async delete(user) {
|
64
|
+
try {
|
65
|
+
await axiosInstance.default.delete(`/api/users/${user._id}`);
|
66
|
+
const index = state.all.findIndex((u) => u._id === user._id);
|
67
|
+
if (index !== -1) {
|
68
|
+
state.all.splice(index, 1);
|
69
|
+
}
|
70
|
+
} catch (error) {
|
71
|
+
console.error(error);
|
72
|
+
}
|
73
|
+
}
|
74
|
+
};
|
75
|
+
const mutations = {
|
76
|
+
set(user, property) {
|
77
|
+
state[property] = user;
|
78
|
+
},
|
79
|
+
clean() {
|
80
|
+
state.current = {
|
81
|
+
phone: "",
|
82
|
+
name: "",
|
83
|
+
surname: "",
|
84
|
+
birthday: "",
|
85
|
+
city: "",
|
86
|
+
address: "",
|
87
|
+
roles: [],
|
88
|
+
orders: []
|
89
|
+
};
|
90
|
+
}
|
91
|
+
};
|
92
|
+
exports.actions = actions;
|
93
|
+
exports.mutations = mutations;
|
94
|
+
exports.state = state;
|
95
|
+
//# sourceMappingURL=users.cjs.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"users.cjs","sources":["../../../../../../../src/modules/auth/views/store/users.js"],"sourcesContent":["import { reactive, ref, computed, toRefs, watch } from \"vue\";\n\nimport $axios from '@pf/src/modules/globals/views/utils/axios-instance.js';\n\nconst state = reactive({\n all: [],\n \n current: {\n _id: \"\",\n username: \"\",\n email: \"\",\n phone: \"\",\n\n status: \"\",\n\n profile: {\n name: \"\",\n photo: \"\",\n description: \"\",\n birthday: \"\",\n },\n socials: {\n facebook: \"\",\n twitter: \"\",\n instagram: \"\",\n telegram: \"\"\n },\n\n roles: []\n },\n});\n\nconst actions = {\n\n async create(user) {\n try {\n const response = await $axios.post('/api/users', user);\n mutations.set(response.data, 'current');\n return Promise.resolve(response.data);\n } catch (error) {\n console.error(error);\n return Promise.reject(error);\n }\n },\n\n async read(options = {}) { \n\n try {\n const response = await $axios.get('/api/users', { params: options });\n \n if (options._id) {\n mutations.set(response.data[0], 'current');\n } else {\n mutations.set(response.data, 'all');\n }\n\n return Promise.resolve(response.data);\n } catch (error) {\n console.error(error);\n return Promise.reject(error);\n }\n },\n\n async update(user) {\n try {\n const response = await $axios.put(`/api/users/${user._id}`, user);\n mutations.set(response.data, 'current');\n return Promise.resolve(response.data);\n } catch (error) {\n console.error(error);\n return Promise.reject(error);\n }\n },\n\n async delete(user) {\n try {\n await $axios.delete(`/api/users/${user._id}`);\n const index = state.all.findIndex(u => u._id === user._id);\n if (index !== -1) {\n state.all.splice(index, 1);\n }\n } catch (error) {\n console.error(error);\n }\n }\n};\n\nconst mutations = {\n set(user, property) {\n state[property] = user;\n },\n\n clean() {\n state.current = {\n phone: '',\n name: '',\n surname: '',\n birthday: '',\n city: '',\n address: '',\n roles: [],\n orders: [],\n };\n }\n};\n\nexport {\n state,\n actions,\n mutations\n};"],"names":["reactive","$axios"],"mappings":";;;;AAIK,MAAC,QAASA,IAAAA,SAAS;AAAA,EACtB,KAAK,CAAE;AAAA,EAEP,SAAS;AAAA,IACP,KAAK;AAAA,IACL,UAAU;AAAA,IACV,OAAO;AAAA,IACP,OAAO;AAAA,IAEP,QAAQ;AAAA,IAER,SAAS;AAAA,MACP,MAAM;AAAA,MACN,OAAO;AAAA,MACP,aAAa;AAAA,MACb,UAAU;AAAA,IACX;AAAA,IACD,SAAS;AAAA,MACP,UAAU;AAAA,MACV,SAAS;AAAA,MACT,WAAW;AAAA,MACX,UAAU;AAAA,IACX;AAAA,IAED,OAAO,CAAE;AAAA,EACV;AACH,CAAC;AAEI,MAAC,UAAU;AAAA,EAEd,MAAM,OAAO,MAAM;AACjB,QAAI;AACF,YAAM,WAAW,MAAMC,cAAM,QAAC,KAAK,cAAc,IAAI;AACrD,gBAAU,IAAI,SAAS,MAAM,SAAS;AACtC,aAAO,QAAQ,QAAQ,SAAS,IAAI;AAAA,IACrC,SAAQ,OAAO;AACd,cAAQ,MAAM,KAAK;AACnB,aAAO,QAAQ,OAAO,KAAK;AAAA,IAC5B;AAAA,EACF;AAAA,EAED,MAAM,KAAK,UAAU,IAAI;AAEvB,QAAI;AACF,YAAM,WAAW,MAAMA,cAAAA,QAAO,IAAI,cAAc,EAAE,QAAQ,QAAO,CAAE;AAEnE,UAAI,QAAQ,KAAK;AACf,kBAAU,IAAI,SAAS,KAAK,CAAC,GAAG,SAAS;AAAA,MACjD,OAAa;AACL,kBAAU,IAAI,SAAS,MAAM,KAAK;AAAA,MACnC;AAED,aAAO,QAAQ,QAAQ,SAAS,IAAI;AAAA,IACrC,SAAQ,OAAO;AACd,cAAQ,MAAM,KAAK;AACnB,aAAO,QAAQ,OAAO,KAAK;AAAA,IAC5B;AAAA,EACF;AAAA,EAED,MAAM,OAAO,MAAM;AACjB,QAAI;AACF,YAAM,WAAW,MAAMA,cAAM,QAAC,IAAI,cAAc,KAAK,GAAG,IAAI,IAAI;AAChE,gBAAU,IAAI,SAAS,MAAM,SAAS;AACtC,aAAO,QAAQ,QAAQ,SAAS,IAAI;AAAA,IACrC,SAAQ,OAAO;AACd,cAAQ,MAAM,KAAK;AACnB,aAAO,QAAQ,OAAO,KAAK;AAAA,IAC5B;AAAA,EACF;AAAA,EAED,MAAM,OAAO,MAAM;AACjB,QAAI;AACF,YAAMA,cAAAA,QAAO,OAAO,cAAc,KAAK,GAAG,EAAE;AAC5C,YAAM,QAAQ,MAAM,IAAI,UAAU,OAAK,EAAE,QAAQ,KAAK,GAAG;AACzD,UAAI,UAAU,IAAI;AAChB,cAAM,IAAI,OAAO,OAAO,CAAC;AAAA,MAC1B;AAAA,IACF,SAAQ,OAAO;AACd,cAAQ,MAAM,KAAK;AAAA,IACpB;AAAA,EACF;AACH;AAEK,MAAC,YAAY;AAAA,EAChB,IAAI,MAAM,UAAU;AAClB,UAAM,QAAQ,IAAI;AAAA,EACnB;AAAA,EAED,QAAQ;AACN,UAAM,UAAU;AAAA,MACd,OAAO;AAAA,MACP,MAAM;AAAA,MACN,SAAS;AAAA,MACT,UAAU;AAAA,MACV,MAAM;AAAA,MACN,SAAS;AAAA,MACT,OAAO,CAAE;AAAA,MACT,QAAQ,CAAE;AAAA,IAChB;AAAA,EACG;AACH;;;;"}
|
@@ -0,0 +1,95 @@
|
|
1
|
+
import { reactive } from "vue";
|
2
|
+
import $axios from "../../../globals/views/utils/axios-instance.js";
|
3
|
+
const state = reactive({
|
4
|
+
all: [],
|
5
|
+
current: {
|
6
|
+
_id: "",
|
7
|
+
username: "",
|
8
|
+
email: "",
|
9
|
+
phone: "",
|
10
|
+
status: "",
|
11
|
+
profile: {
|
12
|
+
name: "",
|
13
|
+
photo: "",
|
14
|
+
description: "",
|
15
|
+
birthday: ""
|
16
|
+
},
|
17
|
+
socials: {
|
18
|
+
facebook: "",
|
19
|
+
twitter: "",
|
20
|
+
instagram: "",
|
21
|
+
telegram: ""
|
22
|
+
},
|
23
|
+
roles: []
|
24
|
+
}
|
25
|
+
});
|
26
|
+
const actions = {
|
27
|
+
async create(user) {
|
28
|
+
try {
|
29
|
+
const response = await $axios.post("/api/users", user);
|
30
|
+
mutations.set(response.data, "current");
|
31
|
+
return Promise.resolve(response.data);
|
32
|
+
} catch (error) {
|
33
|
+
console.error(error);
|
34
|
+
return Promise.reject(error);
|
35
|
+
}
|
36
|
+
},
|
37
|
+
async read(options = {}) {
|
38
|
+
try {
|
39
|
+
const response = await $axios.get("/api/users", { params: options });
|
40
|
+
if (options._id) {
|
41
|
+
mutations.set(response.data[0], "current");
|
42
|
+
} else {
|
43
|
+
mutations.set(response.data, "all");
|
44
|
+
}
|
45
|
+
return Promise.resolve(response.data);
|
46
|
+
} catch (error) {
|
47
|
+
console.error(error);
|
48
|
+
return Promise.reject(error);
|
49
|
+
}
|
50
|
+
},
|
51
|
+
async update(user) {
|
52
|
+
try {
|
53
|
+
const response = await $axios.put(`/api/users/${user._id}`, user);
|
54
|
+
mutations.set(response.data, "current");
|
55
|
+
return Promise.resolve(response.data);
|
56
|
+
} catch (error) {
|
57
|
+
console.error(error);
|
58
|
+
return Promise.reject(error);
|
59
|
+
}
|
60
|
+
},
|
61
|
+
async delete(user) {
|
62
|
+
try {
|
63
|
+
await $axios.delete(`/api/users/${user._id}`);
|
64
|
+
const index = state.all.findIndex((u) => u._id === user._id);
|
65
|
+
if (index !== -1) {
|
66
|
+
state.all.splice(index, 1);
|
67
|
+
}
|
68
|
+
} catch (error) {
|
69
|
+
console.error(error);
|
70
|
+
}
|
71
|
+
}
|
72
|
+
};
|
73
|
+
const mutations = {
|
74
|
+
set(user, property) {
|
75
|
+
state[property] = user;
|
76
|
+
},
|
77
|
+
clean() {
|
78
|
+
state.current = {
|
79
|
+
phone: "",
|
80
|
+
name: "",
|
81
|
+
surname: "",
|
82
|
+
birthday: "",
|
83
|
+
city: "",
|
84
|
+
address: "",
|
85
|
+
roles: [],
|
86
|
+
orders: []
|
87
|
+
};
|
88
|
+
}
|
89
|
+
};
|
90
|
+
export {
|
91
|
+
actions,
|
92
|
+
mutations,
|
93
|
+
state
|
94
|
+
};
|
95
|
+
//# sourceMappingURL=users.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"users.js","sources":["../../../../../../../src/modules/auth/views/store/users.js"],"sourcesContent":["import { reactive, ref, computed, toRefs, watch } from \"vue\";\n\nimport $axios from '@pf/src/modules/globals/views/utils/axios-instance.js';\n\nconst state = reactive({\n all: [],\n \n current: {\n _id: \"\",\n username: \"\",\n email: \"\",\n phone: \"\",\n\n status: \"\",\n\n profile: {\n name: \"\",\n photo: \"\",\n description: \"\",\n birthday: \"\",\n },\n socials: {\n facebook: \"\",\n twitter: \"\",\n instagram: \"\",\n telegram: \"\"\n },\n\n roles: []\n },\n});\n\nconst actions = {\n\n async create(user) {\n try {\n const response = await $axios.post('/api/users', user);\n mutations.set(response.data, 'current');\n return Promise.resolve(response.data);\n } catch (error) {\n console.error(error);\n return Promise.reject(error);\n }\n },\n\n async read(options = {}) { \n\n try {\n const response = await $axios.get('/api/users', { params: options });\n \n if (options._id) {\n mutations.set(response.data[0], 'current');\n } else {\n mutations.set(response.data, 'all');\n }\n\n return Promise.resolve(response.data);\n } catch (error) {\n console.error(error);\n return Promise.reject(error);\n }\n },\n\n async update(user) {\n try {\n const response = await $axios.put(`/api/users/${user._id}`, user);\n mutations.set(response.data, 'current');\n return Promise.resolve(response.data);\n } catch (error) {\n console.error(error);\n return Promise.reject(error);\n }\n },\n\n async delete(user) {\n try {\n await $axios.delete(`/api/users/${user._id}`);\n const index = state.all.findIndex(u => u._id === user._id);\n if (index !== -1) {\n state.all.splice(index, 1);\n }\n } catch (error) {\n console.error(error);\n }\n }\n};\n\nconst mutations = {\n set(user, property) {\n state[property] = user;\n },\n\n clean() {\n state.current = {\n phone: '',\n name: '',\n surname: '',\n birthday: '',\n city: '',\n address: '',\n roles: [],\n orders: [],\n };\n }\n};\n\nexport {\n state,\n actions,\n mutations\n};"],"names":[],"mappings":";;AAIK,MAAC,QAAS,SAAS;AAAA,EACtB,KAAK,CAAE;AAAA,EAEP,SAAS;AAAA,IACP,KAAK;AAAA,IACL,UAAU;AAAA,IACV,OAAO;AAAA,IACP,OAAO;AAAA,IAEP,QAAQ;AAAA,IAER,SAAS;AAAA,MACP,MAAM;AAAA,MACN,OAAO;AAAA,MACP,aAAa;AAAA,MACb,UAAU;AAAA,IACX;AAAA,IACD,SAAS;AAAA,MACP,UAAU;AAAA,MACV,SAAS;AAAA,MACT,WAAW;AAAA,MACX,UAAU;AAAA,IACX;AAAA,IAED,OAAO,CAAE;AAAA,EACV;AACH,CAAC;AAEI,MAAC,UAAU;AAAA,EAEd,MAAM,OAAO,MAAM;AACjB,QAAI;AACF,YAAM,WAAW,MAAM,OAAO,KAAK,cAAc,IAAI;AACrD,gBAAU,IAAI,SAAS,MAAM,SAAS;AACtC,aAAO,QAAQ,QAAQ,SAAS,IAAI;AAAA,IACrC,SAAQ,OAAO;AACd,cAAQ,MAAM,KAAK;AACnB,aAAO,QAAQ,OAAO,KAAK;AAAA,IAC5B;AAAA,EACF;AAAA,EAED,MAAM,KAAK,UAAU,IAAI;AAEvB,QAAI;AACF,YAAM,WAAW,MAAM,OAAO,IAAI,cAAc,EAAE,QAAQ,QAAO,CAAE;AAEnE,UAAI,QAAQ,KAAK;AACf,kBAAU,IAAI,SAAS,KAAK,CAAC,GAAG,SAAS;AAAA,MACjD,OAAa;AACL,kBAAU,IAAI,SAAS,MAAM,KAAK;AAAA,MACnC;AAED,aAAO,QAAQ,QAAQ,SAAS,IAAI;AAAA,IACrC,SAAQ,OAAO;AACd,cAAQ,MAAM,KAAK;AACnB,aAAO,QAAQ,OAAO,KAAK;AAAA,IAC5B;AAAA,EACF;AAAA,EAED,MAAM,OAAO,MAAM;AACjB,QAAI;AACF,YAAM,WAAW,MAAM,OAAO,IAAI,cAAc,KAAK,GAAG,IAAI,IAAI;AAChE,gBAAU,IAAI,SAAS,MAAM,SAAS;AACtC,aAAO,QAAQ,QAAQ,SAAS,IAAI;AAAA,IACrC,SAAQ,OAAO;AACd,cAAQ,MAAM,KAAK;AACnB,aAAO,QAAQ,OAAO,KAAK;AAAA,IAC5B;AAAA,EACF;AAAA,EAED,MAAM,OAAO,MAAM;AACjB,QAAI;AACF,YAAM,OAAO,OAAO,cAAc,KAAK,GAAG,EAAE;AAC5C,YAAM,QAAQ,MAAM,IAAI,UAAU,OAAK,EAAE,QAAQ,KAAK,GAAG;AACzD,UAAI,UAAU,IAAI;AAChB,cAAM,IAAI,OAAO,OAAO,CAAC;AAAA,MAC1B;AAAA,IACF,SAAQ,OAAO;AACd,cAAQ,MAAM,KAAK;AAAA,IACpB;AAAA,EACF;AACH;AAEK,MAAC,YAAY;AAAA,EAChB,IAAI,MAAM,UAAU;AAClB,UAAM,QAAQ,IAAI;AAAA,EACnB;AAAA,EAED,QAAQ;AACN,UAAM,UAAU;AAAA,MACd,OAAO;AAAA,MACP,MAAM;AAAA,MACN,SAAS;AAAA,MACT,UAAU;AAAA,MACV,MAAM;AAAA,MACN,SAAS;AAAA,MACT,OAAO,CAAE;AAAA,MACT,QAAQ,CAAE;AAAA,IAChB;AAAA,EACG;AACH;"}
|
@@ -1,5 +1,35 @@
|
|
1
1
|
"use strict";
|
2
|
-
Object.
|
2
|
+
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
3
3
|
const backoffice = require("./router/backoffice.cjs");
|
4
|
-
|
4
|
+
const Backoffice = require("./components/layouts/Backoffice.vue.cjs");
|
5
|
+
const Dashboard = require("./components/pages/Dashboard.vue.cjs");
|
6
|
+
const Sidebar = require("./components/partials/Sidebar.vue.cjs");
|
7
|
+
function initializeBackoffice(app, store, router, options = {}) {
|
8
|
+
const route = options.route || "Home";
|
9
|
+
router.addRoute(route, backoffice.default);
|
10
|
+
}
|
11
|
+
const ModuleBackoffice = {
|
12
|
+
initialize: initializeBackoffice,
|
13
|
+
views: {
|
14
|
+
router: {
|
15
|
+
routerBackoffice: backoffice.default
|
16
|
+
},
|
17
|
+
components: {
|
18
|
+
// Layouts
|
19
|
+
BackofficeLayout: Backoffice.default,
|
20
|
+
// Pages
|
21
|
+
Dashboard: Dashboard.default,
|
22
|
+
// Admin components
|
23
|
+
// AdminDashboard,
|
24
|
+
// FastOrders,
|
25
|
+
// UserEdit,
|
26
|
+
// Users,
|
27
|
+
// ProductEdit,
|
28
|
+
// Backcalls,
|
29
|
+
// Partials
|
30
|
+
Sidebar: Sidebar.default
|
31
|
+
}
|
32
|
+
}
|
33
|
+
};
|
34
|
+
exports.default = ModuleBackoffice;
|
5
35
|
//# sourceMappingURL=backoffice.client.cjs.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"backoffice.client.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"backoffice.client.cjs","sources":["../../../../../src/modules/backoffice/backoffice.client.js"],"sourcesContent":["// Router\nimport routerBackoffice from './router/backoffice';\n\n// Views\n// Layouts\nimport BackofficeLayout from './components/layouts/Backoffice.vue';\n\n// Pages\nimport Dashboard from './components/pages/Dashboard.vue';\n\n// Admin components\n// import AdminDashboard from './components/admin/Dashboard.vue';\n// import FastOrders from './components/admin/FastOrders.vue';\n// import UserEdit from './components/admin/UserEdit.vue';\n// import Users from './components/admin/Users.vue';\n// import ProductEdit from './components/admin/ProductEdit.vue';\n// import Backcalls from './components/admin/Backcalls.vue';\n\n// Partials\nimport Sidebar from './components/partials/Sidebar.vue';\n\n// Пример функции инициализации для модуля бэкофиса\nfunction initializeBackoffice(app, store, router, options = {}) {\n const route = options.route || 'Home';\n\n // const routesBackoffice = createBackofficeRoutes();\n // const routesAdmin = createAdminRoutes();\n \n router.addRoute(route, routerBackoffice);\n // router.addRoute(`${route}.admin`, routerBackoffice);\n}\n\nconst ModuleBackoffice = {\n initialize: initializeBackoffice,\n views: {\n router: {\n routerBackoffice\n },\n components: {\n // Layouts\n BackofficeLayout,\n // Pages\n Dashboard,\n // Admin components\n // AdminDashboard,\n // FastOrders,\n // UserEdit,\n // Users,\n // ProductEdit,\n // Backcalls,\n // Partials\n Sidebar\n }\n }\n}\n\nexport default ModuleBackoffice;"],"names":["routerBackoffice","BackofficeLayout","Dashboard","Sidebar"],"mappings":";;;;;;AAsBA,SAAS,qBAAqB,KAAK,OAAO,QAAQ,UAAU,CAAA,GAAI;AAC9D,QAAM,QAAQ,QAAQ,SAAS;AAK/B,SAAO,SAAS,OAAOA,WAAAA,OAAgB;AAEzC;AAEK,MAAC,mBAAmB;AAAA,EACvB,YAAY;AAAA,EACZ,OAAO;AAAA,IACL,QAAQ;AAAA,MACZ,kBAAMA,WAAgB;AAAA,IACjB;AAAA,IACD,YAAY;AAAA;AAAA,MAEhB,kBAAMC,WAAgB;AAAA;AAAA,MAEtB,WAAMC,UAAS;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,MASf,SAAMC,QAAO;AAAA,IACR;AAAA,EACF;AACH;;"}
|
@@ -1,5 +1,35 @@
|
|
1
|
-
import
|
1
|
+
import backofficeRoutes from "./router/backoffice.js";
|
2
|
+
import _sfc_main from "./components/layouts/Backoffice.vue.js";
|
3
|
+
import _sfc_main$1 from "./components/pages/Dashboard.vue.js";
|
4
|
+
import _sfc_main$2 from "./components/partials/Sidebar.vue.js";
|
5
|
+
function initializeBackoffice(app, store, router, options = {}) {
|
6
|
+
const route = options.route || "Home";
|
7
|
+
router.addRoute(route, backofficeRoutes);
|
8
|
+
}
|
9
|
+
const ModuleBackoffice = {
|
10
|
+
initialize: initializeBackoffice,
|
11
|
+
views: {
|
12
|
+
router: {
|
13
|
+
routerBackoffice: backofficeRoutes
|
14
|
+
},
|
15
|
+
components: {
|
16
|
+
// Layouts
|
17
|
+
BackofficeLayout: _sfc_main,
|
18
|
+
// Pages
|
19
|
+
Dashboard: _sfc_main$1,
|
20
|
+
// Admin components
|
21
|
+
// AdminDashboard,
|
22
|
+
// FastOrders,
|
23
|
+
// UserEdit,
|
24
|
+
// Users,
|
25
|
+
// ProductEdit,
|
26
|
+
// Backcalls,
|
27
|
+
// Partials
|
28
|
+
Sidebar: _sfc_main$2
|
29
|
+
}
|
30
|
+
}
|
31
|
+
};
|
2
32
|
export {
|
3
|
-
|
33
|
+
ModuleBackoffice as default
|
4
34
|
};
|
5
35
|
//# sourceMappingURL=backoffice.client.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"backoffice.client.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
|
1
|
+
{"version":3,"file":"backoffice.client.js","sources":["../../../../../src/modules/backoffice/backoffice.client.js"],"sourcesContent":["// Router\nimport routerBackoffice from './router/backoffice';\n\n// Views\n// Layouts\nimport BackofficeLayout from './components/layouts/Backoffice.vue';\n\n// Pages\nimport Dashboard from './components/pages/Dashboard.vue';\n\n// Admin components\n// import AdminDashboard from './components/admin/Dashboard.vue';\n// import FastOrders from './components/admin/FastOrders.vue';\n// import UserEdit from './components/admin/UserEdit.vue';\n// import Users from './components/admin/Users.vue';\n// import ProductEdit from './components/admin/ProductEdit.vue';\n// import Backcalls from './components/admin/Backcalls.vue';\n\n// Partials\nimport Sidebar from './components/partials/Sidebar.vue';\n\n// Пример функции инициализации для модуля бэкофиса\nfunction initializeBackoffice(app, store, router, options = {}) {\n const route = options.route || 'Home';\n\n // const routesBackoffice = createBackofficeRoutes();\n // const routesAdmin = createAdminRoutes();\n \n router.addRoute(route, routerBackoffice);\n // router.addRoute(`${route}.admin`, routerBackoffice);\n}\n\nconst ModuleBackoffice = {\n initialize: initializeBackoffice,\n views: {\n router: {\n routerBackoffice\n },\n components: {\n // Layouts\n BackofficeLayout,\n // Pages\n Dashboard,\n // Admin components\n // AdminDashboard,\n // FastOrders,\n // UserEdit,\n // Users,\n // ProductEdit,\n // Backcalls,\n // Partials\n Sidebar\n }\n }\n}\n\nexport default ModuleBackoffice;"],"names":["routerBackoffice","BackofficeLayout","Dashboard","Sidebar"],"mappings":";;;;AAsBA,SAAS,qBAAqB,KAAK,OAAO,QAAQ,UAAU,CAAA,GAAI;AAC9D,QAAM,QAAQ,QAAQ,SAAS;AAK/B,SAAO,SAAS,OAAOA,gBAAgB;AAEzC;AAEK,MAAC,mBAAmB;AAAA,EACvB,YAAY;AAAA,EACZ,OAAO;AAAA,IACL,QAAQ;AAAA,MACZ,kBAAMA;AAAAA,IACD;AAAA,IACD,YAAY;AAAA;AAAA,MAEhB,kBAAMC;AAAAA;AAAAA,MAEN,WAAMC;AAAAA;AAAAA;AAAAA;AAAAA;AAAAA;AAAAA;AAAAA;AAAAA;AAAAA,MASN,SAAMC;AAAAA,IACD;AAAA,EACF;AACH;"}
|
@@ -4,7 +4,7 @@ const Backoffice = require("../components/layouts/Backoffice.vue.cjs");
|
|
4
4
|
const Sidebar = require("../components/partials/Sidebar.vue.cjs");
|
5
5
|
require("vue");
|
6
6
|
const auth_validation = require("../../auth/views/middlewares/auth.validation.cjs");
|
7
|
-
const backofficeRoutes =
|
7
|
+
const backofficeRoutes = {
|
8
8
|
path: "backoffice",
|
9
9
|
name: "Backoffice Root",
|
10
10
|
component: Backoffice.default,
|
@@ -92,6 +92,6 @@ const backofficeRoutes = [{
|
|
92
92
|
))
|
93
93
|
}
|
94
94
|
]
|
95
|
-
}
|
95
|
+
};
|
96
96
|
exports.default = backofficeRoutes;
|
97
97
|
//# sourceMappingURL=backoffice.cjs.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"backoffice.cjs","sources":["../../../../../../src/modules/backoffice/router/backoffice.js"],"sourcesContent":["import layoutBackoffice from '../components/layouts/Backoffice.vue'\nimport Sidebar from '../components/partials/Sidebar.vue'\n\nimport layoutEmpty from '@pf/src/modules/globals/views/components/layouts/Empty.vue';\n\nimport * as validationAuth from '@pf/src/modules/auth/views/middlewares/auth.validation';\n\nconst backofficeRoutes =
|
1
|
+
{"version":3,"file":"backoffice.cjs","sources":["../../../../../../src/modules/backoffice/router/backoffice.js"],"sourcesContent":["import layoutBackoffice from '../components/layouts/Backoffice.vue'\nimport Sidebar from '../components/partials/Sidebar.vue'\n\nimport layoutEmpty from '@pf/src/modules/globals/views/components/layouts/Empty.vue';\n\nimport * as validationAuth from '@pf/src/modules/auth/views/middlewares/auth.validation';\n\n// const admin = [\n// {\n// path: 'admin',\n// component: layoutAdmin,\n// meta: { authorize: [\"ROLE_MODERATOR\"] }, \n// children: [{\n// path: 'backcalls',\n// name: 'Backcalls',\n// // meta: { authorize: [\"ROLE_MODERATOR\"] }, \n// component: () => import(/* webpackChunkName: 'Backcalls' */ '@/components/pages/admin/Backcalls.vue')\n// },{\n// path: 'fastorder',\n// name: 'FastOrders',\n// // meta: { authorize: [\"ROLE_MODERATOR\"] }, \n// component: () => import(/* webpackChunkName: 'FastOrders' */ '@/components/pages/admin/FastOrders.vue')\n// },{\n// path: 'users',\n// name: 'Users',\n// component: () => import(/* webpackChunkName: 'Users' */ '@/components/pages/admin/Users.vue')\n// },{\n// path: 'users/:phone',\n// name: 'User',\n// component: () => import(/* webpackChunkName: 'User' */ '@/components/pages/admin/User.vue')\n// }]\n// } \n// ];\n\nconst backofficeRoutes = {\n path: 'backoffice',\n name: 'Backoffice Root',\n\n component: layoutBackoffice,\n\n meta: {\n sidebar: Sidebar,\n },\n \n props: {\n newsletterPopup: 12344\n },\n\n beforeEnter: [\n validationAuth.requiresAdmin,\n ],\n children: [{\n path: '',\n name: 'Backoffice Admin',\n meta: {\n title: {\n en: 'Backoffice',\n ru: 'Управление'\n },\n },\n component: () => import(/* webpackChunkName: 'BackofficeGallery' */ '../components/pages/Dashboard.vue'),\n },{\n path: 'reports',\n name: 'Backoffice Reports',\n meta: {\n title: {\n en: 'Backoffice Reports',\n ru: 'Управление Жалобами'\n },\n },\n component: () => import(/* webpackChunkName: 'BackofficeGallery' */ '@pf/src/modules/reports/components/pages/BackofficeReports.vue'),\n },\n {\n path: 'organizations',\n name: 'Backoffice Organizations',\n meta: {\n title: {\n en: 'Backoffice Organizations',\n ru: 'Управление Организациями'\n },\n authorize: []\n },\n component: () => import(/* webpackChunkName: 'BackofficeOrganizations' */ '@pf/src/modules/organizations/components/pages/Organizations.vue'),\n },{\n path: 'events',\n name: 'Backoffice Events',\n meta: {\n title: {\n en: 'Backoffice Events',\n ru: 'Управление Событиями'\n },\n authorize: []\n },\n component: () => import(/* webpackChunkName: 'BackofficeEvents' */ '@pf/src/modules/events/components/pages/Events.vue'),\n },{\n path: 'community',\n name: 'Backoffice Community',\n meta: {\n title: {\n en: 'Backoffice Community',\n ru: 'Управление Сообществом'\n },\n authorize: []\n },\n component: () => import(/* webpackChunkName: 'BackofficeCommunity' */ '@pf/src/modules/community/components/pages/Community.vue'),\n }]\n};\n\nexport default backofficeRoutes;\n"],"names":["layoutBackoffice","Sidebar","validationAuth.requiresAdmin"],"mappings":";;;;;;AAkCK,MAAC,mBAAmB;AAAA,EACvB,MAAM;AAAA,EACN,MAAM;AAAA,EAEN,WAAWA,WAAgB;AAAA,EAE3B,MAAM;AAAA,IACJ,SAASC,QAAO;AAAA,EACjB;AAAA,EAED,OAAO;AAAA,IACL,iBAAiB;AAAA,EAClB;AAAA,EAED,aAAa;AAAA,IACXC,gBAA4B;AAAA,EAC7B;AAAA,EACD,UAAU;AAAA,IAAC;AAAA,MACT,MAAM;AAAA,MACN,MAAM;AAAA,MACN,MAAM;AAAA,QACJ,OAAO;AAAA,UACL,IAAI;AAAA,UACJ,IAAI;AAAA,QACL;AAAA,MACF;AAAA,MACD,WAAW,MAAM,QAAO,QAAA,EAAA,KAAA,MAAA;AAAA;AAAA,QAA4C;AAAA,MAAmC,CAAC;AAAA,IAC5G;AAAA,IAAI;AAAA,MACA,MAAM;AAAA,MACN,MAAM;AAAA,MACN,MAAM;AAAA,QACJ,OAAO;AAAA,UACL,IAAI;AAAA,UACJ,IAAI;AAAA,QACL;AAAA,MACF;AAAA,MACD,WAAW,MAAM,QAAO,QAAA,EAAA,KAAA,MAAA;AAAA;AAAA,QAA4C;AAAA,MAAgE,CAAC;AAAA,IACtI;AAAA,IACD;AAAA,MACE,MAAM;AAAA,MACN,MAAM;AAAA,MACN,MAAM;AAAA,QACJ,OAAO;AAAA,UACL,IAAI;AAAA,UACJ,IAAI;AAAA,QACL;AAAA,QACD,WAAW,CAAE;AAAA,MACd;AAAA,MACD,WAAW,MAAM,QAAO,QAAA,EAAA,KAAA,MAAA;AAAA;AAAA,QAAkD;AAAA,MAAkE,CAAC;AAAA,IACjJ;AAAA,IAAI;AAAA,MACA,MAAM;AAAA,MACN,MAAM;AAAA,MACN,MAAM;AAAA,QACJ,OAAO;AAAA,UACL,IAAI;AAAA,UACJ,IAAI;AAAA,QACL;AAAA,QACD,WAAW,CAAE;AAAA,MACd;AAAA,MACD,WAAW,MAAM,QAAO,QAAA,EAAA,KAAA,MAAA;AAAA;AAAA,QAA2C;AAAA,MAAoD,CAAC;AAAA,IAC5H;AAAA,IAAI;AAAA,MACA,MAAM;AAAA,MACN,MAAM;AAAA,MACN,MAAM;AAAA,QACJ,OAAO;AAAA,UACL,IAAI;AAAA,UACJ,IAAI;AAAA,QACL;AAAA,QACD,WAAW,CAAE;AAAA,MACd;AAAA,MACD,WAAW,MAAM,QAAO,QAAA,EAAA,KAAA,MAAA;AAAA;AAAA,QAA8C;AAAA,MAA0D,CAAC;AAAA,IACrI;AAAA,EAAG;AACH;;"}
|
@@ -2,7 +2,7 @@ import _sfc_main from "../components/layouts/Backoffice.vue.js";
|
|
2
2
|
import _sfc_main$1 from "../components/partials/Sidebar.vue.js";
|
3
3
|
import "vue";
|
4
4
|
import { requiresAdmin } from "../../auth/views/middlewares/auth.validation.js";
|
5
|
-
const backofficeRoutes =
|
5
|
+
const backofficeRoutes = {
|
6
6
|
path: "backoffice",
|
7
7
|
name: "Backoffice Root",
|
8
8
|
component: _sfc_main,
|
@@ -90,7 +90,7 @@ const backofficeRoutes = [{
|
|
90
90
|
)
|
91
91
|
}
|
92
92
|
]
|
93
|
-
}
|
93
|
+
};
|
94
94
|
export {
|
95
95
|
backofficeRoutes as default
|
96
96
|
};
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"backoffice.js","sources":["../../../../../../src/modules/backoffice/router/backoffice.js"],"sourcesContent":["import layoutBackoffice from '../components/layouts/Backoffice.vue'\nimport Sidebar from '../components/partials/Sidebar.vue'\n\nimport layoutEmpty from '@pf/src/modules/globals/views/components/layouts/Empty.vue';\n\nimport * as validationAuth from '@pf/src/modules/auth/views/middlewares/auth.validation';\n\nconst backofficeRoutes =
|
1
|
+
{"version":3,"file":"backoffice.js","sources":["../../../../../../src/modules/backoffice/router/backoffice.js"],"sourcesContent":["import layoutBackoffice from '../components/layouts/Backoffice.vue'\nimport Sidebar from '../components/partials/Sidebar.vue'\n\nimport layoutEmpty from '@pf/src/modules/globals/views/components/layouts/Empty.vue';\n\nimport * as validationAuth from '@pf/src/modules/auth/views/middlewares/auth.validation';\n\n// const admin = [\n// {\n// path: 'admin',\n// component: layoutAdmin,\n// meta: { authorize: [\"ROLE_MODERATOR\"] }, \n// children: [{\n// path: 'backcalls',\n// name: 'Backcalls',\n// // meta: { authorize: [\"ROLE_MODERATOR\"] }, \n// component: () => import(/* webpackChunkName: 'Backcalls' */ '@/components/pages/admin/Backcalls.vue')\n// },{\n// path: 'fastorder',\n// name: 'FastOrders',\n// // meta: { authorize: [\"ROLE_MODERATOR\"] }, \n// component: () => import(/* webpackChunkName: 'FastOrders' */ '@/components/pages/admin/FastOrders.vue')\n// },{\n// path: 'users',\n// name: 'Users',\n// component: () => import(/* webpackChunkName: 'Users' */ '@/components/pages/admin/Users.vue')\n// },{\n// path: 'users/:phone',\n// name: 'User',\n// component: () => import(/* webpackChunkName: 'User' */ '@/components/pages/admin/User.vue')\n// }]\n// } \n// ];\n\nconst backofficeRoutes = {\n path: 'backoffice',\n name: 'Backoffice Root',\n\n component: layoutBackoffice,\n\n meta: {\n sidebar: Sidebar,\n },\n \n props: {\n newsletterPopup: 12344\n },\n\n beforeEnter: [\n validationAuth.requiresAdmin,\n ],\n children: [{\n path: '',\n name: 'Backoffice Admin',\n meta: {\n title: {\n en: 'Backoffice',\n ru: 'Управление'\n },\n },\n component: () => import(/* webpackChunkName: 'BackofficeGallery' */ '../components/pages/Dashboard.vue'),\n },{\n path: 'reports',\n name: 'Backoffice Reports',\n meta: {\n title: {\n en: 'Backoffice Reports',\n ru: 'Управление Жалобами'\n },\n },\n component: () => import(/* webpackChunkName: 'BackofficeGallery' */ '@pf/src/modules/reports/components/pages/BackofficeReports.vue'),\n },\n {\n path: 'organizations',\n name: 'Backoffice Organizations',\n meta: {\n title: {\n en: 'Backoffice Organizations',\n ru: 'Управление Организациями'\n },\n authorize: []\n },\n component: () => import(/* webpackChunkName: 'BackofficeOrganizations' */ '@pf/src/modules/organizations/components/pages/Organizations.vue'),\n },{\n path: 'events',\n name: 'Backoffice Events',\n meta: {\n title: {\n en: 'Backoffice Events',\n ru: 'Управление Событиями'\n },\n authorize: []\n },\n component: () => import(/* webpackChunkName: 'BackofficeEvents' */ '@pf/src/modules/events/components/pages/Events.vue'),\n },{\n path: 'community',\n name: 'Backoffice Community',\n meta: {\n title: {\n en: 'Backoffice Community',\n ru: 'Управление Сообществом'\n },\n authorize: []\n },\n component: () => import(/* webpackChunkName: 'BackofficeCommunity' */ '@pf/src/modules/community/components/pages/Community.vue'),\n }]\n};\n\nexport default backofficeRoutes;\n"],"names":["layoutBackoffice","Sidebar","validationAuth.requiresAdmin"],"mappings":";;;;AAkCK,MAAC,mBAAmB;AAAA,EACvB,MAAM;AAAA,EACN,MAAM;AAAA,EAEN,WAAWA;AAAAA,EAEX,MAAM;AAAA,IACJ,SAASC;AAAAA,EACV;AAAA,EAED,OAAO;AAAA,IACL,iBAAiB;AAAA,EAClB;AAAA,EAED,aAAa;AAAA,IACXC;AAAAA,EACD;AAAA,EACD,UAAU;AAAA,IAAC;AAAA,MACT,MAAM;AAAA,MACN,MAAM;AAAA,MACN,MAAM;AAAA,QACJ,OAAO;AAAA,UACL,IAAI;AAAA,UACJ,IAAI;AAAA,QACL;AAAA,MACF;AAAA,MACD,WAAW,MAAM;AAAA;AAAA,QAAmD;AAAA,MAAmC;AAAA,IAC3G;AAAA,IAAI;AAAA,MACA,MAAM;AAAA,MACN,MAAM;AAAA,MACN,MAAM;AAAA,QACJ,OAAO;AAAA,UACL,IAAI;AAAA,UACJ,IAAI;AAAA,QACL;AAAA,MACF;AAAA,MACD,WAAW,MAAM;AAAA;AAAA,QAAmD;AAAA,MAAgE;AAAA,IACrI;AAAA,IACD;AAAA,MACE,MAAM;AAAA,MACN,MAAM;AAAA,MACN,MAAM;AAAA,QACJ,OAAO;AAAA,UACL,IAAI;AAAA,UACJ,IAAI;AAAA,QACL;AAAA,QACD,WAAW,CAAE;AAAA,MACd;AAAA,MACD,WAAW,MAAM;AAAA;AAAA,QAAyD;AAAA,MAAkE;AAAA,IAChJ;AAAA,IAAI;AAAA,MACA,MAAM;AAAA,MACN,MAAM;AAAA,MACN,MAAM;AAAA,QACJ,OAAO;AAAA,UACL,IAAI;AAAA,UACJ,IAAI;AAAA,QACL;AAAA,QACD,WAAW,CAAE;AAAA,MACd;AAAA,MACD,WAAW,MAAM;AAAA;AAAA,QAAkD;AAAA,MAAoD;AAAA,IAC3H;AAAA,IAAI;AAAA,MACA,MAAM;AAAA,MACN,MAAM;AAAA,MACN,MAAM;AAAA,QACJ,OAAO;AAAA,UACL,IAAI;AAAA,UACJ,IAAI;AAAA,QACL;AAAA,QACD,WAAW,CAAE;AAAA,MACd;AAAA,MACD,WAAW,MAAM;AAAA;AAAA,QAAqD;AAAA,MAA0D;AAAA,IACpI;AAAA,EAAG;AACH;"}
|
@@ -1,5 +1,8 @@
|
|
1
1
|
"use strict";
|
2
|
-
Object.
|
2
|
+
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
3
|
+
const blogposts = require("./store/blogposts.cjs");
|
4
|
+
const reactions = require("./store/reactions.cjs");
|
5
|
+
const blogposts$1 = require("./router/blogposts.cjs");
|
3
6
|
const Community = require("./components/layouts/Community.vue.cjs");
|
4
7
|
const CreateBlogPost = require("./components/pages/CreateBlogPost.vue.cjs");
|
5
8
|
const BlogPost = require("./components/pages/BlogPost.vue.cjs");
|
@@ -10,9 +13,43 @@ const CardBlogpost = require("./components/blocks/CardBlogpost.vue.cjs");
|
|
10
13
|
const JoinUs = require("./components/sections/JoinUs.vue.cjs");
|
11
14
|
const Comments = require("./components/sections/Comments.vue.cjs");
|
12
15
|
const HotPosts = require("./components/sections/HotPosts.vue.cjs");
|
13
|
-
|
14
|
-
const
|
15
|
-
|
16
|
+
function initializeCommunity(app, store, router, options = {}) {
|
17
|
+
const route = options.route || "Home";
|
18
|
+
router.addRoute(route, blogposts$1.default);
|
19
|
+
store.addStore("blogposts", blogposts);
|
20
|
+
store.addStore("reactions", reactions);
|
21
|
+
}
|
22
|
+
const ModuleCommunity = {
|
23
|
+
initialize: initializeCommunity,
|
24
|
+
views: {
|
25
|
+
store: {
|
26
|
+
storeBlogposts: blogposts,
|
27
|
+
storeReactions: reactions
|
28
|
+
},
|
29
|
+
router: {
|
30
|
+
routerCommunity: blogposts$1.default
|
31
|
+
},
|
32
|
+
components: {
|
33
|
+
// Layouts
|
34
|
+
Community: Community.default,
|
35
|
+
// Pages
|
36
|
+
CreateBlogPost: CreateBlogPost.default,
|
37
|
+
BlogPost: BlogPost.default,
|
38
|
+
Blog: Blog.default,
|
39
|
+
// Blocks
|
40
|
+
FooterBlogpost: FooterBlogpost.default,
|
41
|
+
Activity: Activity.default,
|
42
|
+
CardBlogpost: CardBlogpost.default,
|
43
|
+
// Sections
|
44
|
+
JoinUs: JoinUs.default,
|
45
|
+
Comments: Comments.default,
|
46
|
+
HotPosts: HotPosts.default
|
47
|
+
}
|
48
|
+
}
|
49
|
+
};
|
50
|
+
exports.storeBlogposts = blogposts;
|
51
|
+
exports.storeReactions = reactions;
|
52
|
+
exports.routerCommunity = blogposts$1.default;
|
16
53
|
exports.Community = Community.default;
|
17
54
|
exports.CreateBlogPost = CreateBlogPost.default;
|
18
55
|
exports.BlogPost = BlogPost.default;
|
@@ -23,7 +60,5 @@ exports.CardBlogpost = CardBlogpost.default;
|
|
23
60
|
exports.JoinUs = JoinUs.default;
|
24
61
|
exports.Comments = Comments.default;
|
25
62
|
exports.HotPosts = HotPosts.default;
|
26
|
-
exports.
|
27
|
-
exports.reactionsStore = reactions;
|
28
|
-
exports.blogpostsRoutes = blogposts$1.default;
|
63
|
+
exports.default = ModuleCommunity;
|
29
64
|
//# sourceMappingURL=community.client.cjs.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"community.client.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"community.client.cjs","sources":["../../../../../src/modules/community/community.client.js"],"sourcesContent":["// Store\nimport * as storeBlogposts from './store/blogposts.js';\nimport * as storeReactions from './store/reactions.js';\n\n// Router\nimport routerCommunity from './router/blogposts';\n\n// Views\n// Layouts\nimport Community from './components/layouts/Community.vue';\n\n// Pages\nimport CreateBlogPost from './components/pages/CreateBlogPost.vue';\nimport BlogPost from './components/pages/BlogPost.vue';\nimport Blog from './components/pages/Blog.vue';\n\n// Blocks\nimport FooterBlogpost from './components/blocks/FooterBlogpost.vue';\nimport Activity from './components/blocks/Activity.vue';\nimport CardBlogpost from './components/blocks/CardBlogpost.vue';\n\n// Sections\nimport JoinUs from './components/sections/JoinUs.vue';\nimport Comments from './components/sections/Comments.vue';\nimport HotPosts from './components/sections/HotPosts.vue';\n\n// Пример функции инициализации для модуля сообщества\nfunction initializeCommunity(app, store, router, options = {}) {\n const route = options.route || 'Home';\n\n router.addRoute(route, routerCommunity);\n \n store.addStore('blogposts', storeBlogposts);\n store.addStore('reactions', storeReactions);\n}\n\nconst ModuleCommunity = {\n initialize: initializeCommunity,\n views: {\n store: {\n storeBlogposts,\n storeReactions\n },\n router: {\n routerCommunity\n },\n components: {\n // Layouts\n Community,\n // Pages\n CreateBlogPost,\n BlogPost,\n Blog,\n // Blocks\n FooterBlogpost,\n Activity,\n CardBlogpost,\n // Sections\n JoinUs,\n Comments,\n HotPosts\n }\n }\n}\n\nexport {\n Community,\n CreateBlogPost,\n BlogPost,\n Blog,\n FooterBlogpost,\n Activity,\n CardBlogpost,\n JoinUs,\n Comments,\n HotPosts,\n storeBlogposts,\n storeReactions,\n routerCommunity\n};\n\nexport default ModuleCommunity;"],"names":["routerCommunity","storeBlogposts","storeReactions","Community","CreateBlogPost","BlogPost","Blog","FooterBlogpost","Activity","CardBlogpost","JoinUs","Comments","HotPosts"],"mappings":";;;;;;;;;;;;;;;AA2BA,SAAS,oBAAoB,KAAK,OAAO,QAAQ,UAAU,CAAA,GAAI;AAC7D,QAAM,QAAQ,QAAQ,SAAS;AAE/B,SAAO,SAAS,OAAOA,YAAAA,OAAe;AAEtC,QAAM,SAAS,aAAaC,SAAc;AAC1C,QAAM,SAAS,aAAaC,SAAc;AAC5C;AAEK,MAAC,kBAAkB;AAAA,EACtB,YAAY;AAAA,EACZ,OAAO;AAAA,IACL,OAAO;AAAA,MACX,gBAAMD;AAAAA,MACN,gBAAMC;AAAAA,IACD;AAAA,IACD,QAAQ;AAAA,MACZ,iBAAMF,YAAe;AAAA,IAChB;AAAA,IACD,YAAY;AAAA;AAAA,MAEhB,WAAMG,UAAS;AAAA;AAAA,MAEf,gBAAMC,eAAc;AAAA,MACpB,UAAMC,SAAQ;AAAA,MACd,MAAMC,KAAI;AAAA;AAAA,MAEV,gBAAMC,eAAc;AAAA,MACpB,UAAMC,SAAQ;AAAA,MACd,cAAMC,aAAY;AAAA;AAAA,MAElB,QAAMC,OAAM;AAAA,MACZ,UAAMC,SAAQ;AAAA,MACd,UAAMC,SAAQ;AAAA,IACT;AAAA,EACF;AACH;;;;;;;;;;;;;;;"}
|
@@ -1,29 +1,64 @@
|
|
1
|
-
import { default as default2 } from "./components/layouts/Community.vue.js";
|
2
|
-
import { default as default3 } from "./components/pages/CreateBlogPost.vue.js";
|
3
|
-
import { default as default4 } from "./components/pages/BlogPost.vue.js";
|
4
|
-
import { default as default5 } from "./components/pages/Blog.vue.js";
|
5
|
-
import { default as default6 } from "./components/blocks/FooterBlogpost.vue.js";
|
6
|
-
import { default as default7 } from "./components/blocks/Activity.vue.js";
|
7
|
-
import { default as default8 } from "./components/blocks/CardBlogpost.vue.js";
|
8
|
-
import { default as default9 } from "./components/sections/JoinUs.vue.js";
|
9
|
-
import { default as default10 } from "./components/sections/Comments.vue.js";
|
10
|
-
import { default as default11 } from "./components/sections/HotPosts.vue.js";
|
11
1
|
import * as blogposts from "./store/blogposts.js";
|
12
2
|
import * as reactions from "./store/reactions.js";
|
13
|
-
import
|
3
|
+
import community from "./router/blogposts.js";
|
4
|
+
import _sfc_main from "./components/layouts/Community.vue.js";
|
5
|
+
import _sfc_main$1 from "./components/pages/CreateBlogPost.vue.js";
|
6
|
+
import _sfc_main$2 from "./components/pages/BlogPost.vue.js";
|
7
|
+
import _sfc_main$3 from "./components/pages/Blog.vue.js";
|
8
|
+
import _sfc_main$4 from "./components/blocks/FooterBlogpost.vue.js";
|
9
|
+
import _sfc_main$5 from "./components/blocks/Activity.vue.js";
|
10
|
+
import _sfc_main$6 from "./components/blocks/CardBlogpost.vue.js";
|
11
|
+
import _sfc_main$7 from "./components/sections/JoinUs.vue.js";
|
12
|
+
import _sfc_main$8 from "./components/sections/Comments.vue.js";
|
13
|
+
import _sfc_main$9 from "./components/sections/HotPosts.vue.js";
|
14
|
+
function initializeCommunity(app, store, router, options = {}) {
|
15
|
+
const route = options.route || "Home";
|
16
|
+
router.addRoute(route, community);
|
17
|
+
store.addStore("blogposts", blogposts);
|
18
|
+
store.addStore("reactions", reactions);
|
19
|
+
}
|
20
|
+
const ModuleCommunity = {
|
21
|
+
initialize: initializeCommunity,
|
22
|
+
views: {
|
23
|
+
store: {
|
24
|
+
storeBlogposts: blogposts,
|
25
|
+
storeReactions: reactions
|
26
|
+
},
|
27
|
+
router: {
|
28
|
+
routerCommunity: community
|
29
|
+
},
|
30
|
+
components: {
|
31
|
+
// Layouts
|
32
|
+
Community: _sfc_main,
|
33
|
+
// Pages
|
34
|
+
CreateBlogPost: _sfc_main$1,
|
35
|
+
BlogPost: _sfc_main$2,
|
36
|
+
Blog: _sfc_main$3,
|
37
|
+
// Blocks
|
38
|
+
FooterBlogpost: _sfc_main$4,
|
39
|
+
Activity: _sfc_main$5,
|
40
|
+
CardBlogpost: _sfc_main$6,
|
41
|
+
// Sections
|
42
|
+
JoinUs: _sfc_main$7,
|
43
|
+
Comments: _sfc_main$8,
|
44
|
+
HotPosts: _sfc_main$9
|
45
|
+
}
|
46
|
+
}
|
47
|
+
};
|
14
48
|
export {
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
49
|
+
_sfc_main$5 as Activity,
|
50
|
+
_sfc_main$3 as Blog,
|
51
|
+
_sfc_main$2 as BlogPost,
|
52
|
+
_sfc_main$6 as CardBlogpost,
|
53
|
+
_sfc_main$8 as Comments,
|
54
|
+
_sfc_main as Community,
|
55
|
+
_sfc_main$1 as CreateBlogPost,
|
56
|
+
_sfc_main$4 as FooterBlogpost,
|
57
|
+
_sfc_main$9 as HotPosts,
|
58
|
+
_sfc_main$7 as JoinUs,
|
59
|
+
ModuleCommunity as default,
|
60
|
+
community as routerCommunity,
|
61
|
+
blogposts as storeBlogposts,
|
62
|
+
reactions as storeReactions
|
28
63
|
};
|
29
64
|
//# sourceMappingURL=community.client.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"community.client.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;"}
|
1
|
+
{"version":3,"file":"community.client.js","sources":["../../../../../src/modules/community/community.client.js"],"sourcesContent":["// Store\nimport * as storeBlogposts from './store/blogposts.js';\nimport * as storeReactions from './store/reactions.js';\n\n// Router\nimport routerCommunity from './router/blogposts';\n\n// Views\n// Layouts\nimport Community from './components/layouts/Community.vue';\n\n// Pages\nimport CreateBlogPost from './components/pages/CreateBlogPost.vue';\nimport BlogPost from './components/pages/BlogPost.vue';\nimport Blog from './components/pages/Blog.vue';\n\n// Blocks\nimport FooterBlogpost from './components/blocks/FooterBlogpost.vue';\nimport Activity from './components/blocks/Activity.vue';\nimport CardBlogpost from './components/blocks/CardBlogpost.vue';\n\n// Sections\nimport JoinUs from './components/sections/JoinUs.vue';\nimport Comments from './components/sections/Comments.vue';\nimport HotPosts from './components/sections/HotPosts.vue';\n\n// Пример функции инициализации для модуля сообщества\nfunction initializeCommunity(app, store, router, options = {}) {\n const route = options.route || 'Home';\n\n router.addRoute(route, routerCommunity);\n \n store.addStore('blogposts', storeBlogposts);\n store.addStore('reactions', storeReactions);\n}\n\nconst ModuleCommunity = {\n initialize: initializeCommunity,\n views: {\n store: {\n storeBlogposts,\n storeReactions\n },\n router: {\n routerCommunity\n },\n components: {\n // Layouts\n Community,\n // Pages\n CreateBlogPost,\n BlogPost,\n Blog,\n // Blocks\n FooterBlogpost,\n Activity,\n CardBlogpost,\n // Sections\n JoinUs,\n Comments,\n HotPosts\n }\n }\n}\n\nexport {\n Community,\n CreateBlogPost,\n BlogPost,\n Blog,\n FooterBlogpost,\n Activity,\n CardBlogpost,\n JoinUs,\n Comments,\n HotPosts,\n storeBlogposts,\n storeReactions,\n routerCommunity\n};\n\nexport default ModuleCommunity;"],"names":["routerCommunity","storeBlogposts","storeReactions","Community","CreateBlogPost","BlogPost","Blog","FooterBlogpost","Activity","CardBlogpost","JoinUs","Comments","HotPosts"],"mappings":";;;;;;;;;;;;;AA2BA,SAAS,oBAAoB,KAAK,OAAO,QAAQ,UAAU,CAAA,GAAI;AAC7D,QAAM,QAAQ,QAAQ,SAAS;AAE/B,SAAO,SAAS,OAAOA,SAAe;AAEtC,QAAM,SAAS,aAAaC,SAAc;AAC1C,QAAM,SAAS,aAAaC,SAAc;AAC5C;AAEK,MAAC,kBAAkB;AAAA,EACtB,YAAY;AAAA,EACZ,OAAO;AAAA,IACL,OAAO;AAAA,MACX,gBAAMD;AAAAA,MACN,gBAAMC;AAAAA,IACD;AAAA,IACD,QAAQ;AAAA,MACZ,iBAAMF;AAAAA,IACD;AAAA,IACD,YAAY;AAAA;AAAA,MAEhB,WAAMG;AAAAA;AAAAA,MAEN,gBAAMC;AAAAA,MACN,UAAMC;AAAAA,MACN,MAAMC;AAAAA;AAAAA,MAEN,gBAAMC;AAAAA,MACN,UAAMC;AAAAA,MACN,cAAMC;AAAAA;AAAAA,MAEN,QAAMC;AAAAA,MACN,UAAMC;AAAAA,MACN,UAAMC;AAAAA,IACD;AAAA,EACF;AACH;"}
|