@ozdao/prometheus-framework 0.2.251 → 0.2.253
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/auth.server.js +298 -14
- package/dist/auth.server.mjs +298 -14
- package/dist/builder.js +4 -4
- package/dist/builder.mjs +4 -4
- package/dist/community.server.js +38 -21
- package/dist/community.server.mjs +38 -21
- package/dist/events.server.js +38 -18
- package/dist/events.server.mjs +38 -17
- package/dist/gallery.server.js +17 -4
- package/dist/gallery.server.mjs +17 -4
- package/dist/organizations.server.js +43 -26
- package/dist/organizations.server.mjs +43 -26
- package/dist/products.server.js +49 -23
- package/dist/products.server.mjs +49 -22
- package/dist/prometheus-framework/src/components/Feed/Feed.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/Feed/Feed.vue.js +1 -1
- package/dist/prometheus-framework/src/components/LocationMarker/LocationMarker.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/components/LocationMarker/LocationMarker.vue2.js +1 -1
- package/dist/prometheus-framework/src/components/Slider/Slider.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/Slider/Slider.vue.js +1 -1
- package/dist/prometheus-framework/src/components/UploadImageMultiple/UploadImageMultiple.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/UploadImageMultiple/UploadImageMultiple.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/auth/auth.client.cjs +15 -3
- package/dist/prometheus-framework/src/modules/auth/auth.client.cjs.map +1 -1
- package/dist/prometheus-framework/src/modules/auth/auth.client.js +16 -4
- package/dist/prometheus-framework/src/modules/auth/auth.client.js.map +1 -1
- package/dist/prometheus-framework/src/modules/auth/views/components/blocks/CardUser.vue.cjs +95 -0
- package/dist/prometheus-framework/src/modules/auth/views/components/blocks/CardUser.vue.cjs.map +1 -0
- package/dist/prometheus-framework/src/modules/auth/views/components/blocks/CardUser.vue.js +95 -0
- package/dist/prometheus-framework/src/modules/auth/views/components/blocks/CardUser.vue.js.map +1 -0
- package/dist/prometheus-framework/src/modules/auth/views/components/layouts/Auth.vue.cjs +2 -2
- package/dist/prometheus-framework/src/modules/auth/views/components/layouts/Auth.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/auth/views/components/pages/EnterPassword.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/auth/views/components/pages/EnterPassword.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/auth/views/components/pages/Invite.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/auth/views/components/pages/Invite.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/auth/views/components/pages/Profile.vue.cjs +284 -0
- package/dist/prometheus-framework/src/modules/auth/views/components/pages/Profile.vue.cjs.map +1 -0
- package/dist/prometheus-framework/src/modules/auth/views/components/pages/Profile.vue.js +284 -0
- package/dist/prometheus-framework/src/modules/auth/views/components/pages/Profile.vue.js.map +1 -0
- package/dist/prometheus-framework/src/modules/auth/views/components/pages/Profile.vue2.cjs +2 -0
- package/dist/prometheus-framework/src/modules/auth/views/components/pages/Profile.vue2.cjs.map +1 -0
- package/dist/prometheus-framework/src/modules/auth/views/components/pages/Profile.vue2.js +2 -0
- package/dist/prometheus-framework/src/modules/auth/views/components/pages/Profile.vue2.js.map +1 -0
- package/dist/prometheus-framework/src/modules/auth/views/components/pages/ProfileBlogposts.vue.cjs +85 -0
- package/dist/prometheus-framework/src/modules/auth/views/components/pages/ProfileBlogposts.vue.cjs.map +1 -0
- package/dist/prometheus-framework/src/modules/auth/views/components/pages/ProfileBlogposts.vue.js +85 -0
- package/dist/prometheus-framework/src/modules/auth/views/components/pages/ProfileBlogposts.vue.js.map +1 -0
- package/dist/prometheus-framework/src/modules/auth/views/components/pages/ProfileEdit.vue.cjs +176 -0
- package/dist/prometheus-framework/src/modules/auth/views/components/pages/ProfileEdit.vue.cjs.map +1 -0
- package/dist/prometheus-framework/src/modules/auth/views/components/pages/ProfileEdit.vue.js +176 -0
- package/dist/prometheus-framework/src/modules/auth/views/components/pages/ProfileEdit.vue.js.map +1 -0
- package/dist/prometheus-framework/src/modules/auth/views/components/pages/ProfileEdit.vue2.cjs +2 -0
- package/dist/prometheus-framework/src/modules/auth/views/components/pages/ProfileEdit.vue2.cjs.map +1 -0
- package/dist/prometheus-framework/src/modules/auth/views/components/pages/ProfileEdit.vue2.js +2 -0
- package/dist/prometheus-framework/src/modules/auth/views/components/pages/ProfileEdit.vue2.js.map +1 -0
- package/dist/prometheus-framework/src/modules/auth/views/components/pages/ResetPassword.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/auth/views/components/pages/ResetPassword.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/auth/views/components/pages/SignIn.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/auth/views/components/pages/SignIn.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/auth/views/components/pages/SignUp.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/auth/views/components/pages/SignUp.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/auth/views/components/sections/FeaturedUsers.vue.cjs +114 -0
- package/dist/prometheus-framework/src/modules/auth/views/components/sections/FeaturedUsers.vue.cjs.map +1 -0
- package/dist/prometheus-framework/src/modules/auth/views/components/sections/FeaturedUsers.vue.js +114 -0
- package/dist/prometheus-framework/src/modules/auth/views/components/sections/FeaturedUsers.vue.js.map +1 -0
- package/dist/prometheus-framework/src/modules/auth/views/components/sections/ProfileCompletion.vue.cjs +72 -0
- package/dist/prometheus-framework/src/modules/auth/views/components/sections/ProfileCompletion.vue.cjs.map +1 -0
- package/dist/prometheus-framework/src/modules/auth/views/components/sections/ProfileCompletion.vue.js +72 -0
- package/dist/prometheus-framework/src/modules/auth/views/components/sections/ProfileCompletion.vue.js.map +1 -0
- package/dist/prometheus-framework/src/modules/auth/views/router/users.cjs +97 -0
- package/dist/prometheus-framework/src/modules/auth/views/router/users.cjs.map +1 -0
- package/dist/prometheus-framework/src/modules/auth/views/router/users.js +97 -0
- package/dist/prometheus-framework/src/modules/auth/views/router/users.js.map +1 -0
- package/dist/prometheus-framework/src/modules/auth/views/store/users.cjs +95 -0
- package/dist/prometheus-framework/src/modules/auth/views/store/users.cjs.map +1 -0
- package/dist/prometheus-framework/src/modules/auth/views/store/users.js +95 -0
- package/dist/prometheus-framework/src/modules/auth/views/store/users.js.map +1 -0
- package/dist/prometheus-framework/src/modules/backoffice/backoffice.client.cjs +32 -2
- package/dist/prometheus-framework/src/modules/backoffice/backoffice.client.cjs.map +1 -1
- package/dist/prometheus-framework/src/modules/backoffice/backoffice.client.js +32 -2
- package/dist/prometheus-framework/src/modules/backoffice/backoffice.client.js.map +1 -1
- package/dist/prometheus-framework/src/modules/backoffice/router/backoffice.cjs +2 -2
- package/dist/prometheus-framework/src/modules/backoffice/router/backoffice.cjs.map +1 -1
- package/dist/prometheus-framework/src/modules/backoffice/router/backoffice.js +2 -2
- package/dist/prometheus-framework/src/modules/backoffice/router/backoffice.js.map +1 -1
- package/dist/prometheus-framework/src/modules/community/community.client.cjs +42 -7
- package/dist/prometheus-framework/src/modules/community/community.client.cjs.map +1 -1
- package/dist/prometheus-framework/src/modules/community/community.client.js +59 -24
- package/dist/prometheus-framework/src/modules/community/community.client.js.map +1 -1
- package/dist/prometheus-framework/src/modules/community/components/layouts/Community.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/community/components/layouts/Community.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/community/components/pages/BlogPost.vue.cjs +2 -2
- package/dist/prometheus-framework/src/modules/community/components/pages/BlogPost.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/community/components/pages/Community.vue.cjs +3 -3
- package/dist/prometheus-framework/src/modules/community/components/pages/Community.vue.js +3 -3
- package/dist/prometheus-framework/src/modules/community/components/pages/CreateBlogPost.vue.cjs +2 -2
- package/dist/prometheus-framework/src/modules/community/components/pages/CreateBlogPost.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/community/components/sections/HotPosts.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/community/components/sections/HotPosts.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/community/router/blogposts.cjs +68 -70
- package/dist/prometheus-framework/src/modules/community/router/blogposts.cjs.map +1 -1
- package/dist/prometheus-framework/src/modules/community/router/blogposts.js +68 -70
- package/dist/prometheus-framework/src/modules/community/router/blogposts.js.map +1 -1
- package/dist/prometheus-framework/src/modules/events/components/elements/ButtonCheck.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/events/components/elements/ButtonCheck.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/events/components/elements/ButtonJoin.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/events/components/elements/ButtonJoin.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/events/components/pages/EditEvent.vue.cjs +2 -2
- package/dist/prometheus-framework/src/modules/events/components/pages/EditEvent.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/events/components/pages/EditEventTickets.vue.cjs +2 -2
- package/dist/prometheus-framework/src/modules/events/components/pages/EditEventTickets.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/events/components/pages/Event.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/events/components/pages/Event.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/events/components/sections/Feed.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/events/components/sections/Feed.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/events/components/sections/List.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/events/components/sections/List.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/gallery/components/pages/Gallery.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/gallery/components/pages/Gallery.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/gallery/components/sections/BackofficeGallery.vue.cjs +3 -3
- package/dist/prometheus-framework/src/modules/gallery/components/sections/BackofficeGallery.vue.js +3 -3
- package/dist/prometheus-framework/src/modules/gallery/gallery.client.cjs +26 -3
- package/dist/prometheus-framework/src/modules/gallery/gallery.client.cjs.map +1 -1
- package/dist/prometheus-framework/src/modules/gallery/gallery.client.js +27 -4
- package/dist/prometheus-framework/src/modules/gallery/gallery.client.js.map +1 -1
- package/dist/prometheus-framework/src/modules/gallery/router/gallery.router.cjs +2 -2
- package/dist/prometheus-framework/src/modules/gallery/router/gallery.router.cjs.map +1 -1
- package/dist/prometheus-framework/src/modules/gallery/router/gallery.router.js +2 -2
- package/dist/prometheus-framework/src/modules/gallery/router/gallery.router.js.map +1 -1
- package/dist/prometheus-framework/src/modules/globals/globals.client.cjs.map +1 -1
- package/dist/prometheus-framework/src/modules/globals/globals.client.js.map +1 -1
- package/dist/prometheus-framework/src/modules/globals/views/components/blocks/CardHeader.vue.cjs +2 -2
- package/dist/prometheus-framework/src/modules/globals/views/components/blocks/CardHeader.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/globals/views/components/layouts/Client.vue.cjs +2 -2
- package/dist/prometheus-framework/src/modules/globals/views/components/layouts/Client.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/globals/views/components/partials/Header.vue.cjs +2 -2
- package/dist/prometheus-framework/src/modules/globals/views/components/partials/Header.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/globals/views/components/partials/NavigationBar.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/globals/views/components/partials/NavigationBar.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/legal/components/pages/Legal.vue.cjs +2 -2
- package/dist/prometheus-framework/src/modules/legal/components/pages/Legal.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/orders/components/pages/OrderBackoffice.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/orders/components/pages/OrderBackoffice.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/orders/components/pages/OrderCreate.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/orders/components/pages/OrderCreate.vue.cjs.map +1 -1
- package/dist/prometheus-framework/src/modules/orders/components/pages/OrderCreate.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/orders/components/pages/OrderCreate.vue.js.map +1 -1
- package/dist/prometheus-framework/src/modules/orders/components/pages/OrderCreateBackoffice.vue.cjs +4 -4
- package/dist/prometheus-framework/src/modules/orders/components/pages/OrderCreateBackoffice.vue.cjs.map +1 -1
- package/dist/prometheus-framework/src/modules/orders/components/pages/OrderCreateBackoffice.vue.js +4 -4
- package/dist/prometheus-framework/src/modules/orders/components/pages/OrderCreateBackoffice.vue.js.map +1 -1
- package/dist/prometheus-framework/src/modules/orders/components/sections/FormAddCustomer.vue.cjs +4 -4
- package/dist/prometheus-framework/src/modules/orders/components/sections/FormAddCustomer.vue.cjs.map +1 -1
- package/dist/prometheus-framework/src/modules/orders/components/sections/FormAddCustomer.vue.js +4 -4
- package/dist/prometheus-framework/src/modules/orders/components/sections/FormAddCustomer.vue.js.map +1 -1
- package/dist/prometheus-framework/src/modules/orders/components/sections/FormCustomerDetails.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/orders/components/sections/FormCustomerDetails.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/orders/components/sections/FormPayment.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/orders/components/sections/FormPayment.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/orders/orders.client.cjs +4 -1
- package/dist/prometheus-framework/src/modules/orders/orders.client.cjs.map +1 -1
- package/dist/prometheus-framework/src/modules/orders/orders.client.js +4 -1
- package/dist/prometheus-framework/src/modules/orders/orders.client.js.map +1 -1
- package/dist/prometheus-framework/src/modules/orders/store/testimonials.cjs +63 -0
- package/dist/prometheus-framework/src/modules/orders/store/testimonials.cjs.map +1 -0
- package/dist/prometheus-framework/src/modules/orders/store/testimonials.js +63 -0
- package/dist/prometheus-framework/src/modules/orders/store/testimonials.js.map +1 -0
- package/dist/prometheus-framework/src/modules/organizations/components/blocks/CardDepartment.vue.cjs +2 -2
- package/dist/prometheus-framework/src/modules/organizations/components/blocks/CardDepartment.vue.cjs.map +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/blocks/CardDepartment.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/organizations/components/blocks/CardDepartment.vue.js.map +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/blocks/CardOrganization.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/blocks/CardOrganization.vue.cjs.map +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/blocks/CardOrganization.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/blocks/CardOrganization.vue.js.map +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/elements/ButtonToggleMembership.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/elements/ButtonToggleMembership.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/pages/Department.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/pages/Department.vue.cjs.map +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/pages/Department.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/pages/Department.vue.js.map +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/pages/DepartmentEdit.vue.cjs +5 -5
- package/dist/prometheus-framework/src/modules/organizations/components/pages/DepartmentEdit.vue.cjs.map +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/pages/DepartmentEdit.vue.js +5 -5
- package/dist/prometheus-framework/src/modules/organizations/components/pages/DepartmentEdit.vue.js.map +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/pages/Members.vue.cjs +2 -2
- package/dist/prometheus-framework/src/modules/organizations/components/pages/Members.vue.cjs.map +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/pages/Members.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/organizations/components/pages/Members.vue.js.map +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/pages/Organization.vue.cjs.map +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/pages/Organization.vue.js.map +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationEdit.vue.cjs +3 -3
- package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationEdit.vue.js +3 -3
- package/dist/prometheus-framework/src/modules/organizations/components/sections/Documents.vue.cjs +3 -3
- package/dist/prometheus-framework/src/modules/organizations/components/sections/Documents.vue.js +3 -3
- package/dist/prometheus-framework/src/modules/organizations/components/sections/Feed.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/sections/Feed.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/sections/MembersAdd.vue.cjs +4 -4
- package/dist/prometheus-framework/src/modules/organizations/components/sections/MembersAdd.vue.cjs.map +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/sections/MembersAdd.vue.js +4 -4
- package/dist/prometheus-framework/src/modules/organizations/components/sections/MembersAdd.vue.js.map +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/sections/Organizations.vue.cjs +3 -3
- package/dist/prometheus-framework/src/modules/organizations/components/sections/Organizations.vue.js +3 -3
- package/dist/prometheus-framework/src/modules/organizations/organizations.client.cjs +60 -11
- package/dist/prometheus-framework/src/modules/organizations/organizations.client.cjs.map +1 -1
- package/dist/prometheus-framework/src/modules/organizations/organizations.client.js +95 -46
- package/dist/prometheus-framework/src/modules/organizations/organizations.client.js.map +1 -1
- package/dist/prometheus-framework/src/modules/organizations/router/organizations.cjs +6 -10
- package/dist/prometheus-framework/src/modules/organizations/router/organizations.cjs.map +1 -1
- package/dist/prometheus-framework/src/modules/organizations/router/organizations.js +8 -12
- package/dist/prometheus-framework/src/modules/organizations/router/organizations.js.map +1 -1
- package/dist/prometheus-framework/src/modules/pages/pages.client.cjs +786 -773
- package/dist/prometheus-framework/src/modules/pages/pages.client.js +786 -773
- package/dist/prometheus-framework/src/modules/pages/views/components/blocks/CardPage.vue.cjs +2 -2
- package/dist/prometheus-framework/src/modules/pages/views/components/blocks/CardPage.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/pages/views/components/pages/PageEdit.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/pages/views/components/pages/PageEdit.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/pages/views/components/partials/SidebarPages.vue.cjs +2 -2
- package/dist/prometheus-framework/src/modules/pages/views/components/partials/SidebarPages.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/pages/views/store/pages.cjs +5 -7
- package/dist/prometheus-framework/src/modules/pages/views/store/pages.cjs.map +1 -1
- package/dist/prometheus-framework/src/modules/pages/views/store/pages.js +1 -3
- package/dist/prometheus-framework/src/modules/pages/views/store/pages.js.map +1 -1
- package/dist/prometheus-framework/src/modules/products/components/blocks/CardPosition.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/blocks/CardPosition.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/products/components/blocks/Images360.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/blocks/Images360.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/products/components/blocks/ImagesThumbnails.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/blocks/ImagesThumbnails.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/products/components/layouts/Marketplace.vue.cjs +178 -0
- package/dist/prometheus-framework/src/modules/products/components/layouts/Marketplace.vue.cjs.map +1 -0
- package/dist/prometheus-framework/src/modules/products/components/layouts/Marketplace.vue.js +178 -0
- package/dist/prometheus-framework/src/modules/products/components/layouts/Marketplace.vue.js.map +1 -0
- package/dist/prometheus-framework/src/modules/products/components/pages/Catalog.vue.cjs +62 -0
- package/dist/prometheus-framework/src/modules/products/components/pages/Catalog.vue.cjs.map +1 -0
- package/dist/prometheus-framework/src/modules/products/components/pages/Catalog.vue.js +62 -0
- package/dist/prometheus-framework/src/modules/products/components/pages/Catalog.vue.js.map +1 -0
- package/dist/prometheus-framework/src/modules/products/components/pages/Categories.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/pages/Categories.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/products/components/pages/CategoryEdit.vue.cjs +2 -2
- package/dist/prometheus-framework/src/modules/products/components/pages/CategoryEdit.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/products/components/pages/EditLeftover.vue.cjs +2 -2
- package/dist/prometheus-framework/src/modules/products/components/pages/EditLeftover.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/products/components/pages/ProductEdit.vue.cjs +2 -2
- package/dist/prometheus-framework/src/modules/products/components/pages/ProductEdit.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/products/components/pages/ProductRecommmendation.vue.cjs +3 -3
- package/dist/prometheus-framework/src/modules/products/components/pages/ProductRecommmendation.vue.js +3 -3
- package/dist/prometheus-framework/src/modules/products/components/pages/Products.vue.cjs +2 -2
- package/dist/prometheus-framework/src/modules/products/components/pages/Products.vue.cjs.map +1 -1
- package/dist/prometheus-framework/src/modules/products/components/pages/Products.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/products/components/pages/Products.vue.js.map +1 -1
- package/dist/prometheus-framework/src/modules/products/components/sections/EditProductInfo.vue.cjs +3 -3
- package/dist/prometheus-framework/src/modules/products/components/sections/EditProductInfo.vue.js +3 -3
- package/dist/prometheus-framework/src/modules/products/components/sections/FilterProducts.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/sections/FilterProducts.vue.cjs.map +1 -1
- package/dist/prometheus-framework/src/modules/products/components/sections/FilterProducts.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/products/components/sections/FilterProducts.vue.js.map +1 -1
- package/dist/prometheus-framework/src/modules/products/components/sections/Filters.vue.cjs +156 -0
- package/dist/prometheus-framework/src/modules/products/components/sections/Filters.vue.cjs.map +1 -0
- package/dist/prometheus-framework/src/modules/products/components/sections/Filters.vue.js +157 -0
- package/dist/prometheus-framework/src/modules/products/components/sections/Filters.vue.js.map +1 -0
- package/dist/prometheus-framework/src/modules/products/components/sections/HeroRecommendation.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/sections/HeroRecommendation.vue.cjs.map +1 -1
- package/dist/prometheus-framework/src/modules/products/components/sections/HeroRecommendation.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/products/components/sections/HeroRecommendation.vue.js.map +1 -1
- package/dist/prometheus-framework/src/modules/products/components/sections/MenuSection.vue.cjs +128 -0
- package/dist/prometheus-framework/src/modules/products/components/sections/MenuSection.vue.cjs.map +1 -0
- package/dist/prometheus-framework/src/modules/products/components/sections/MenuSection.vue.js +128 -0
- package/dist/prometheus-framework/src/modules/products/components/sections/MenuSection.vue.js.map +1 -0
- package/dist/prometheus-framework/src/modules/products/components/sections/PopularProducts.vue.cjs +2 -2
- package/dist/prometheus-framework/src/modules/products/components/sections/PopularProducts.vue.cjs.map +1 -1
- package/dist/prometheus-framework/src/modules/products/components/sections/PopularProducts.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/products/components/sections/PopularProducts.vue.js.map +1 -1
- package/dist/prometheus-framework/src/modules/products/components/sections/SectionProduct.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/sections/SectionProduct.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/products/products.client.cjs +74 -7
- package/dist/prometheus-framework/src/modules/products/products.client.cjs.map +1 -1
- package/dist/prometheus-framework/src/modules/products/products.client.js +114 -47
- package/dist/prometheus-framework/src/modules/products/products.client.js.map +1 -1
- package/dist/prometheus-framework/src/modules/products/router/marketplace.router.cjs +46 -0
- package/dist/prometheus-framework/src/modules/products/router/marketplace.router.cjs.map +1 -0
- package/dist/prometheus-framework/src/modules/products/router/marketplace.router.js +46 -0
- package/dist/prometheus-framework/src/modules/products/router/marketplace.router.js.map +1 -0
- package/dist/prometheus-framework/src/modules/products/router/products.router.cjs +79 -36
- package/dist/prometheus-framework/src/modules/products/router/products.router.cjs.map +1 -1
- package/dist/prometheus-framework/src/modules/products/router/products.router.js +78 -35
- package/dist/prometheus-framework/src/modules/products/router/products.router.js.map +1 -1
- package/dist/prometheus-framework/src/modules/products/store/marketplace.cjs +57 -0
- package/dist/prometheus-framework/src/modules/products/store/marketplace.cjs.map +1 -0
- package/dist/prometheus-framework/src/modules/products/store/marketplace.js +57 -0
- package/dist/prometheus-framework/src/modules/products/store/marketplace.js.map +1 -0
- package/dist/prometheus-framework/src/modules/reports/components/sections/FormReport.vue.cjs +3 -3
- package/dist/prometheus-framework/src/modules/reports/components/sections/FormReport.vue.js +3 -3
- package/dist/prometheus-framework/src/modules/spots/components/blocks/SpotMemberModify.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/spots/components/blocks/SpotMemberModify.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/spots/components/layouts/Spots.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/spots/components/layouts/Spots.vue.cjs.map +1 -1
- package/dist/prometheus-framework/src/modules/spots/components/layouts/Spots.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/spots/components/layouts/Spots.vue.js.map +1 -1
- package/dist/prometheus-framework/src/modules/spots/components/pages/Map.vue.cjs +3 -3
- package/dist/prometheus-framework/src/modules/spots/components/pages/Map.vue.cjs.map +1 -1
- package/dist/prometheus-framework/src/modules/spots/components/pages/Map.vue.js +3 -3
- package/dist/prometheus-framework/src/modules/spots/components/pages/Map.vue.js.map +1 -1
- package/dist/prometheus-framework/src/modules/spots/components/pages/Spot.vue.cjs +2 -2
- package/dist/prometheus-framework/src/modules/spots/components/pages/Spot.vue.cjs.map +1 -1
- package/dist/prometheus-framework/src/modules/spots/components/pages/Spot.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/spots/components/pages/Spot.vue.js.map +1 -1
- package/dist/prometheus-framework/src/modules/spots/components/pages/SpotEdit.vue.cjs +3 -3
- package/dist/prometheus-framework/src/modules/spots/components/pages/SpotEdit.vue.js +3 -3
- package/dist/prometheus-framework/src/modules/users/components/pages/Profile.vue.cjs +2 -2
- package/dist/prometheus-framework/src/modules/users/components/pages/Profile.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/users/components/pages/ProfileEdit.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/users/components/pages/ProfileEdit.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/wallet/views/components/blocks/CryptoDeposit.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/wallet/views/components/blocks/CryptoDeposit.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/wallet/views/components/pages/Wallet.vue.cjs +3 -3
- package/dist/prometheus-framework/src/modules/wallet/views/components/pages/Wallet.vue.js +3 -3
- package/package.json +1 -1
- package/src/builder/webpack/webpack.config.client.js +2 -2
- package/src/builder/webpack/webpack.config.server.js +1 -1
- package/src/builder/webpack/webpack.config.spa.js +1 -1
- package/src/builder/webpack/webpack.config.ssr.js +1 -1
- package/src/modules/auth/auth.client.js +16 -3
- package/src/modules/auth/auth.server.js +22 -1
- package/src/modules/{users → auth/controllers}/routes/users.routes.js +1 -1
- package/src/modules/auth/controllers/services/auth.service.js +0 -1
- package/src/modules/{users → auth/views}/components/pages/Profile.vue +1 -1
- package/src/modules/{users → auth/views}/components/pages/ProfileEdit.vue +2 -2
- package/src/modules/{users → auth/views}/components/sections/FeaturedUsers.vue +2 -2
- package/src/modules/auth/views/router/users.js +79 -0
- package/src/modules/backoffice/backoffice.client.js +53 -11
- package/src/modules/backoffice/router/backoffice.js +29 -2
- package/src/modules/community/community.client.js +56 -10
- package/src/modules/community/community.server.js +35 -14
- package/src/modules/community/models/comment.model.js +7 -7
- package/src/modules/community/models/reaction.model.js +5 -5
- package/src/modules/community/router/blogposts.js +55 -57
- package/src/modules/events/events.server.js +37 -16
- package/src/modules/events/models/ticket.model.js +6 -6
- package/src/modules/gallery/gallery.client.js +44 -8
- package/src/modules/gallery/gallery.server.js +28 -9
- package/src/modules/gallery/router/gallery.router.js +2 -2
- package/src/modules/globals/globals.client.js +15 -14
- package/src/modules/governance/controllers/factories/initiatives.controller.js +94 -0
- package/src/modules/governance/controllers/factories/tasks.controller.js +94 -0
- package/src/modules/governance/controllers/factories/votes.controller.js +68 -0
- package/src/modules/governance/controllers/factories/votings.controller.js +112 -0
- package/src/modules/governance/controllers/routes/initiatives.routes.js +13 -0
- package/src/modules/governance/controllers/routes/tasks.routes.js +13 -0
- package/src/modules/governance/controllers/routes/votes.routes.js +11 -0
- package/src/modules/governance/controllers/routes/votings.routes.js +14 -0
- package/src/modules/governance/models/initiative.model.js +25 -0
- package/src/modules/governance/models/task.model.js +21 -0
- package/src/modules/governance/models/vote.model.js +20 -0
- package/src/modules/governance/models/voting.model.js +22 -0
- package/src/modules/governance/views/components/blocks/CardInitiativeItem.vue +18 -0
- package/src/modules/governance/views/components/blocks/CardTaskItem.vue +19 -0
- package/src/modules/governance/views/components/blocks/CardVotingItem.vue +18 -0
- package/src/modules/governance/views/components/pages/Initiative.vue +22 -0
- package/src/modules/governance/views/components/pages/InitiativeCreate.vue +24 -0
- package/src/modules/governance/views/components/pages/Initiatives.vue +19 -0
- package/src/modules/governance/views/components/pages/Task.vue +23 -0
- package/src/modules/governance/views/components/pages/TaskCreate.vue +25 -0
- package/src/modules/governance/views/components/pages/Tasks.vue +19 -0
- package/src/modules/governance/views/components/pages/Voting.vue +30 -0
- package/src/modules/governance/views/components/pages/VotingCreate.vue +25 -0
- package/src/modules/governance/views/components/pages/Votings.vue +19 -0
- package/src/modules/governance/views/components/partials/RewardDisplay.vue +19 -0
- package/src/modules/governance/views/components/partials/VoteDisplay.vue +21 -0
- package/src/modules/governance/views/components/partials/VotingResult.vue +21 -0
- package/src/modules/governance/views/components/sections/FormInitiativeDetails.vue +37 -0
- package/src/modules/governance/views/components/sections/FormTaskDetails.vue +41 -0
- package/src/modules/governance/views/components/sections/FormVotingDetails.vue +37 -0
- package/src/modules/governance/views/components/sections/VoteForm.vue +29 -0
- package/src/modules/governance/views/store/initiatives.js +102 -0
- package/src/modules/governance/views/store/tasks.js +104 -0
- package/src/modules/governance/views/store/votes.js +115 -0
- package/src/modules/governance/views/store/votings.js +81 -0
- package/src/modules/orders/components/pages/OrderCreate.vue +1 -1
- package/src/modules/orders/components/pages/OrderCreateBackoffice.vue +1 -1
- package/src/modules/orders/components/sections/FormAddCustomer.vue +2 -2
- package/src/modules/orders/orders.client.js +4 -1
- package/src/modules/orders/orders.server.js +1 -0
- package/src/modules/organizations/components/blocks/CardDepartment.vue +1 -1
- package/src/modules/organizations/components/blocks/CardOrganization.vue +1 -1
- package/src/modules/organizations/components/pages/Department.vue +1 -1
- package/src/modules/organizations/components/pages/DepartmentEdit.vue +1 -1
- package/src/modules/organizations/components/pages/Members.vue +1 -1
- package/src/modules/organizations/components/pages/Organization.vue +1 -1
- package/src/modules/organizations/components/sections/MembersAdd.vue +2 -2
- package/src/modules/organizations/controllers/organizations.controller.js +0 -2
- package/src/modules/organizations/models/department.model.js +7 -7
- package/src/modules/organizations/models/membership.model.js +5 -5
- package/src/modules/organizations/organizations.client.js +71 -16
- package/src/modules/organizations/organizations.server.js +43 -18
- package/src/modules/organizations/router/organizations.js +6 -13
- package/src/modules/pages/views/store/pages.js +1 -3
- package/src/modules/{marketplace → products}/components/layouts/Marketplace.vue +19 -19
- package/src/modules/{marketplace → products}/components/pages/Catalog.vue +0 -2
- package/src/modules/products/components/pages/Products.vue +2 -2
- package/src/modules/products/components/sections/FilterProducts.vue +1 -1
- package/src/modules/{marketplace → products}/components/sections/Filters.vue +12 -15
- package/src/modules/products/components/sections/HeroRecommendation.vue +1 -1
- package/src/modules/products/components/sections/MenuSection.vue +8 -9
- package/src/modules/products/components/sections/PopularProducts.vue +1 -1
- package/src/modules/products/models/category.model.js +3 -3
- package/src/modules/products/models/product.model.js +7 -7
- package/src/modules/products/products.client.js +95 -27
- package/src/modules/products/products.server.js +47 -16
- package/src/modules/products/router/marketplace.router.js +38 -0
- package/src/modules/products/router/products.router.js +72 -32
- package/src/modules/spots/components/layouts/Spots.vue +1 -1
- package/src/modules/spots/components/pages/Map.vue +1 -1
- package/src/modules/spots/components/pages/Spot.vue +1 -1
- package/src/modules/backoffice/router/admin.js +0 -51
- package/src/modules/landing/components/pages/404.vue +0 -3
- package/src/modules/landing/components/pages/Farming.vue +0 -226
- package/src/modules/landing/components/pages/Governance.vue +0 -144
- package/src/modules/landing/components/pages/Home.vue +0 -51
- package/src/modules/landing/components/pages/Hotel.vue +0 -43
- package/src/modules/landing/router/landing.js +0 -39
- package/src/modules/legal/components/pages/Legal.vue +0 -62
- package/src/modules/legal/components/pages/legal/Cookies.vue +0 -370
- package/src/modules/legal/components/pages/legal/EULA.vue +0 -2145
- package/src/modules/legal/components/pages/legal/Privacy.vue +0 -4284
- package/src/modules/legal/components/pages/legal/Terms.vue +0 -1283
- package/src/modules/legal/legal.client.js +0 -18
- package/src/modules/legal/router/legal.js +0 -59
- package/src/modules/marketplace/router/marketplace.js +0 -55
- package/src/modules/users/router/users.js +0 -90
- package/src/modules/users/users.client.js +0 -22
- package/src/modules/users/users.server.js +0 -13
- /package/src/modules/{users → auth/controllers}/middlewares/visitor.logger.js +0 -0
- /package/src/modules/{users/controllers/users.controller.js → auth/controllers/services/users.service.js} +0 -0
- /package/src/modules/{users → auth}/models/request.model.js +0 -0
- /package/src/modules/{users → auth}/models/user.model.js +0 -0
- /package/src/modules/{users → auth}/models/visitor.model.js +0 -0
- /package/src/modules/{users → auth/views}/components/blocks/CardUser.vue +0 -0
- /package/src/modules/{users → auth/views}/components/pages/ProfileBlogposts.vue +0 -0
- /package/src/modules/{users → auth/views}/components/pages/ProfileComments.vue +0 -0
- /package/src/modules/{users → auth/views}/components/pages/ProfileLikes.vue +0 -0
- /package/src/modules/{users → auth/views}/components/sections/ProfileCompletion.vue +0 -0
- /package/src/modules/{users → auth/views}/router/account.js +0 -0
- /package/src/modules/{users → auth/views}/store/users.js +0 -0
- /package/src/modules/{projects/controller → governance/controllers/factories}/projects.controller.js +0 -0
- /package/src/modules/{projects → governance/controllers}/routes/projects.routes.js +0 -0
- /package/src/modules/{projects → governance}/models/project.model.js +0 -0
- /package/src/modules/{projects → governance/views}/store/projects.js +0 -0
- /package/src/modules/{marketplace → products}/store/marketplace.js +0 -0
@@ -1,8 +1,8 @@
|
|
1
|
-
module.exports = (
|
1
|
+
module.exports = (db) => {
|
2
2
|
|
3
|
-
const ReactionSchema = new mongoose.Schema({
|
3
|
+
const ReactionSchema = new db.mongoose.Schema({
|
4
4
|
user: {
|
5
|
-
type: mongoose.Schema.Types.ObjectId,
|
5
|
+
type: db.mongoose.Schema.Types.ObjectId,
|
6
6
|
ref: function (value) {
|
7
7
|
if (this.owner.type === 'user') return 'User';
|
8
8
|
if (this.owner.type === 'organization') return 'Organization';
|
@@ -16,7 +16,7 @@ module.exports = (mongoose) => {
|
|
16
16
|
required: true,
|
17
17
|
},
|
18
18
|
target: {
|
19
|
-
type: mongoose.Schema.Types.ObjectId,
|
19
|
+
type: db.mongoose.Schema.Types.ObjectId,
|
20
20
|
ref: function (value) {
|
21
21
|
if (this.owner.type === 'event') return 'Event';
|
22
22
|
if (this.owner.type === 'comment') return 'Comment';
|
@@ -42,7 +42,7 @@ module.exports = (mongoose) => {
|
|
42
42
|
},{
|
43
43
|
strict: false
|
44
44
|
});
|
45
|
-
const Reaction = mongoose.model("Reaction", ReactionSchema);
|
45
|
+
const Reaction = db.mongoose.model("Reaction", ReactionSchema);
|
46
46
|
|
47
47
|
return Reaction;
|
48
48
|
}
|
@@ -1,73 +1,71 @@
|
|
1
1
|
import layoutCommunity from '../components/layouts/Community.vue'
|
2
|
+
|
2
3
|
import * as validationAuth from '@pf/src/modules/auth/views/middlewares/auth.validation';
|
3
4
|
import * as validationOwnership from '@pf/src/modules/auth/views/middlewares/ownership.validation';
|
4
5
|
|
6
|
+
const community = {
|
7
|
+
path: 'community',
|
8
|
+
component: layoutCommunity,
|
9
|
+
meta: {
|
10
|
+
title: {
|
11
|
+
en: 'Community',
|
12
|
+
ru: 'Коммьюнити'
|
13
|
+
},
|
14
|
+
breadcrumbs: {
|
15
|
+
hidden: true
|
16
|
+
},
|
17
|
+
title_hide: true
|
5
18
|
|
6
|
-
|
7
|
-
{
|
8
|
-
path: '
|
9
|
-
|
19
|
+
},
|
20
|
+
children: [{
|
21
|
+
path: ':category?',
|
22
|
+
name: 'Blog',
|
10
23
|
meta: {
|
11
24
|
title: {
|
12
25
|
en: 'Community',
|
13
26
|
ru: 'Коммьюнити'
|
14
27
|
},
|
15
|
-
breadcrumbs: {
|
16
|
-
hidden: true
|
17
|
-
},
|
18
28
|
title_hide: true
|
19
|
-
|
20
29
|
},
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
title_hide: true
|
30
|
-
},
|
31
|
-
component: () => import(/* webpackChunkName: 'Blog' */ '../components/pages/Blog.vue')
|
32
|
-
},{
|
33
|
-
path: 'posts/create',
|
34
|
-
name: 'Create BlogPost',
|
35
|
-
meta: {
|
36
|
-
title: {
|
37
|
-
en: 'Create Post',
|
38
|
-
ru: 'Создать Пост'
|
39
|
-
},
|
40
|
-
},
|
41
|
-
// beforeEnter: [
|
42
|
-
// validationAuth.requiresAuth,
|
43
|
-
// ],
|
44
|
-
component: () => import(/* webpackChunkName: 'CreateBlogPost' */ '../components/pages/CreateBlogPost.vue')
|
45
|
-
},{
|
46
|
-
path: 'posts/:url',
|
47
|
-
name: 'BlogPost',
|
48
|
-
meta: {
|
49
|
-
title: {
|
50
|
-
en: 'Post',
|
51
|
-
ru: 'Пост'
|
52
|
-
}
|
30
|
+
component: () => import(/* webpackChunkName: 'Blog' */ '../components/pages/Blog.vue')
|
31
|
+
},{
|
32
|
+
path: 'posts/create',
|
33
|
+
name: 'Create BlogPost',
|
34
|
+
meta: {
|
35
|
+
title: {
|
36
|
+
en: 'Create Post',
|
37
|
+
ru: 'Создать Пост'
|
53
38
|
},
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
39
|
+
},
|
40
|
+
// beforeEnter: [
|
41
|
+
// validationAuth.requiresAuth,
|
42
|
+
// ],
|
43
|
+
component: () => import(/* webpackChunkName: 'CreateBlogPost' */ '../components/pages/CreateBlogPost.vue')
|
44
|
+
},{
|
45
|
+
path: 'posts/:url',
|
46
|
+
name: 'BlogPost',
|
47
|
+
meta: {
|
48
|
+
title: {
|
49
|
+
en: 'Post',
|
50
|
+
ru: 'Пост'
|
51
|
+
}
|
52
|
+
},
|
53
|
+
component: () => import(/* webpackChunkName: 'BlogPost' */ '../components/pages/BlogPost.vue')
|
54
|
+
},{
|
55
|
+
path: 'posts/:url/edit',
|
56
|
+
name: 'Edit BlogPost',
|
57
|
+
meta: {
|
58
|
+
title: {
|
59
|
+
en: 'Edit Post',
|
60
|
+
ru: 'Редактировать пост'
|
63
61
|
},
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
}
|
71
|
-
|
62
|
+
},
|
63
|
+
beforeEnter: [
|
64
|
+
validationAuth.requiresAuth,
|
65
|
+
validationOwnership.requiresEditAccess
|
66
|
+
],
|
67
|
+
component: () => import(/* webpackChunkName: 'CreateBlogPost' */ '../components/pages/CreateBlogPost.vue')
|
68
|
+
}]
|
69
|
+
}
|
72
70
|
|
73
71
|
export default community;
|
@@ -1,19 +1,40 @@
|
|
1
|
-
//
|
2
|
-
|
1
|
+
// Импортируем контроллеры
|
2
|
+
const EventsController = require('./controllers/events.controller.js');
|
3
|
+
const TicketsController = require('./controllers/tickets.controller.js');
|
3
4
|
|
4
|
-
//
|
5
|
-
|
6
|
-
|
5
|
+
// Импортируем роуты
|
6
|
+
const eventsRoutes = require('./routes/events.routes.js');
|
7
|
+
const ticketsRoutes = require('./routes/tickets.routes.js');
|
7
8
|
|
8
|
-
//
|
9
|
-
|
10
|
-
|
9
|
+
// Импортируем модели
|
10
|
+
const EventModel = require('./models/event.model.js');
|
11
|
+
const TicketModel = require('./models/ticket.model.js');
|
11
12
|
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
13
|
+
function initializeEvent(app, db, origins, publicPath) {
|
14
|
+
// Настраиваем модели в объекте базы данных
|
15
|
+
db.event = EventModel(db);
|
16
|
+
db.ticket = TicketModel(db);
|
17
|
+
|
18
|
+
// Настраиваем маршруты, если объект приложения передан
|
19
|
+
if (app) {
|
20
|
+
eventsRoutes(app, db, origins, publicPath);
|
21
|
+
ticketsRoutes(app, db, origins, publicPath);
|
22
|
+
}
|
23
|
+
}
|
24
|
+
|
25
|
+
// Экспортируем функцию инициализации, контроллеры, роуты и модели
|
26
|
+
module.exports = {
|
27
|
+
initialize: initializeEvent,
|
28
|
+
models: {
|
29
|
+
EventModel,
|
30
|
+
TicketModel,
|
31
|
+
},
|
32
|
+
routes: {
|
33
|
+
eventsRoutes,
|
34
|
+
ticketsRoutes,
|
35
|
+
},
|
36
|
+
controllers: {
|
37
|
+
EventsController,
|
38
|
+
TicketsController,
|
39
|
+
}
|
40
|
+
};
|
@@ -1,7 +1,7 @@
|
|
1
|
-
module.exports = (
|
2
|
-
const TicketSchema = new mongoose.Schema({
|
1
|
+
module.exports = (db) => {
|
2
|
+
const TicketSchema = new db.mongoose.Schema({
|
3
3
|
client: {
|
4
|
-
type: mongoose.Schema.Types.ObjectId,
|
4
|
+
type: db.mongoose.Schema.Types.ObjectId,
|
5
5
|
ref: 'Client',
|
6
6
|
},
|
7
7
|
client_refactor: {
|
@@ -13,7 +13,7 @@ module.exports = (mongoose) => {
|
|
13
13
|
},
|
14
14
|
},
|
15
15
|
user: {
|
16
|
-
type: mongoose.Schema.Types.ObjectId,
|
16
|
+
type: db.mongoose.Schema.Types.ObjectId,
|
17
17
|
ref: 'User',
|
18
18
|
},
|
19
19
|
type: {
|
@@ -23,7 +23,7 @@ module.exports = (mongoose) => {
|
|
23
23
|
required: true,
|
24
24
|
},
|
25
25
|
target: {
|
26
|
-
type: mongoose.Schema.Types.ObjectId,
|
26
|
+
type: db.mongoose.Schema.Types.ObjectId,
|
27
27
|
ref: function (value) {
|
28
28
|
if (this.type === 'event') return 'Event';
|
29
29
|
if (this.type === 'parking') return 'Parking';
|
@@ -53,7 +53,7 @@ module.exports = (mongoose) => {
|
|
53
53
|
|
54
54
|
TicketSchema.index({ user: 1, type: 1, target: 1 });
|
55
55
|
|
56
|
-
const Ticket = mongoose.model('Ticket', TicketSchema);
|
56
|
+
const Ticket = db.mongoose.model('Ticket', TicketSchema);
|
57
57
|
|
58
58
|
return Ticket;
|
59
59
|
}
|
@@ -1,10 +1,46 @@
|
|
1
|
-
|
1
|
+
// Store
|
2
|
+
import * as storeGallery from './store/gallery.js';
|
2
3
|
|
3
|
-
//
|
4
|
-
import
|
4
|
+
// Router
|
5
|
+
import routerGallery from './router/gallery.router';
|
6
|
+
// import { createGalleryBackofficeRoutes } from './router/gallery.backoffice.router';
|
5
7
|
|
6
|
-
//
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
8
|
+
// Views
|
9
|
+
// Pages
|
10
|
+
import Gallery from './components/pages/Gallery.vue';
|
11
|
+
|
12
|
+
// Sections
|
13
|
+
import BackofficeGallery from './components/sections/BackofficeGallery.vue';
|
14
|
+
|
15
|
+
// Пример функции инициализации для модуля галереи
|
16
|
+
function initializeGallery(app, store, router, options = {}) {
|
17
|
+
const route = options.route || 'Home';
|
18
|
+
|
19
|
+
// const routesGallery = createGalleryRoutes();
|
20
|
+
// const routesGalleryBackoffice = createGalleryBackofficeRoutes();
|
21
|
+
|
22
|
+
router.addRoute(route, routerGallery);
|
23
|
+
// router.addRoute('Backoffice', routesGalleryBackoffice);
|
24
|
+
|
25
|
+
store.addStore('gallery', storeGallery);
|
26
|
+
}
|
27
|
+
|
28
|
+
const ModuleGallery = {
|
29
|
+
initialize: initializeGallery,
|
30
|
+
views: {
|
31
|
+
store: {
|
32
|
+
storeGallery
|
33
|
+
},
|
34
|
+
router: {
|
35
|
+
routerGallery
|
36
|
+
},
|
37
|
+
components: {
|
38
|
+
// Pages
|
39
|
+
Gallery,
|
40
|
+
// Sections
|
41
|
+
BackofficeGallery
|
42
|
+
}
|
43
|
+
}
|
44
|
+
}
|
45
|
+
|
46
|
+
export default ModuleGallery;
|
@@ -1,13 +1,32 @@
|
|
1
|
-
//
|
2
|
-
const
|
3
|
-
|
1
|
+
// Импортируем контроллеры
|
2
|
+
const GalleryController = require('./controllers/gallery.controller.js');
|
3
|
+
|
4
|
+
// Импортируем роуты
|
4
5
|
const galleryRoutes = require('./routes/gallery.routes.js');
|
5
|
-
|
6
|
+
|
7
|
+
// Импортируем модели
|
6
8
|
const PhotoModel = require('./models/photo.model.js');
|
7
9
|
|
8
|
-
|
10
|
+
function initializeGallery(app, db, origins, publicPath) {
|
11
|
+
// Настраиваем модели в объекте базы данных
|
12
|
+
db.photo = PhotoModel(db);
|
13
|
+
|
14
|
+
// Настраиваем маршруты, если объект приложения передан
|
15
|
+
if (app) {
|
16
|
+
galleryRoutes(app, db, origins, publicPath);
|
17
|
+
}
|
18
|
+
}
|
19
|
+
|
20
|
+
// Экспортируем функцию инициализации, контроллеры, роуты и модели
|
9
21
|
module.exports = {
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
}
|
22
|
+
initialize: initializeGallery,
|
23
|
+
models: {
|
24
|
+
PhotoModel,
|
25
|
+
},
|
26
|
+
routes: {
|
27
|
+
galleryRoutes,
|
28
|
+
},
|
29
|
+
controllers: {
|
30
|
+
GalleryController,
|
31
|
+
}
|
32
|
+
};
|
@@ -1,10 +1,10 @@
|
|
1
|
-
const gallery =
|
1
|
+
const gallery = {
|
2
2
|
name: 'Gallery',
|
3
3
|
path: 'gallery',
|
4
4
|
meta: {
|
5
5
|
title_hide: true
|
6
6
|
},
|
7
7
|
component: () => import(/* webpackChunkName: 'Gallery' */ '@pf/src/modules/gallery/components/pages/Gallery.vue'),
|
8
|
-
}
|
8
|
+
};
|
9
9
|
|
10
10
|
export default gallery;
|
@@ -14,20 +14,6 @@ import * as mixins from './views/mixins/mixins.js'
|
|
14
14
|
import * as appRenderer from './views/utils/vue-app-renderer.js';
|
15
15
|
import * as storeGlobals from './views/store/globals.js';
|
16
16
|
|
17
|
-
export {
|
18
|
-
// Client,
|
19
|
-
mixins,
|
20
|
-
scrollBehavior,
|
21
|
-
getBrowserLocale,
|
22
|
-
appRenderer,
|
23
|
-
// Store
|
24
|
-
storeGlobals,
|
25
|
-
// Components
|
26
|
-
layoutClient,
|
27
|
-
layoutApp,
|
28
|
-
Header,
|
29
|
-
Sidebar
|
30
|
-
};
|
31
17
|
|
32
18
|
// Пример функции инициализации для модуля заказов
|
33
19
|
function initializeGlobals(app, store, router, options = {}) {
|
@@ -100,4 +86,19 @@ const ModuleGlobals = {
|
|
100
86
|
}
|
101
87
|
}
|
102
88
|
|
89
|
+
export {
|
90
|
+
// Client,
|
91
|
+
mixins,
|
92
|
+
scrollBehavior,
|
93
|
+
getBrowserLocale,
|
94
|
+
appRenderer,
|
95
|
+
// Store
|
96
|
+
storeGlobals,
|
97
|
+
// Components
|
98
|
+
layoutClient,
|
99
|
+
layoutApp,
|
100
|
+
Header,
|
101
|
+
Sidebar
|
102
|
+
};
|
103
|
+
|
103
104
|
export default ModuleGlobals
|
@@ -0,0 +1,94 @@
|
|
1
|
+
module.exports = function(db) {
|
2
|
+
return {
|
3
|
+
getAllInitiatives: async (req, res) => {
|
4
|
+
try {
|
5
|
+
const initiatives = await db.initiative.findAll();
|
6
|
+
res.json(initiatives);
|
7
|
+
} catch (error) {
|
8
|
+
res.status(500).json({ message: "Error fetching initiatives", error });
|
9
|
+
}
|
10
|
+
},
|
11
|
+
|
12
|
+
getInitiativeById: async (req, res) => {
|
13
|
+
try {
|
14
|
+
const initiative = await db.initiative.findByPk(req.params.id);
|
15
|
+
if (initiative) {
|
16
|
+
res.json(initiative);
|
17
|
+
} else {
|
18
|
+
res.status(404).json({ message: "Initiative not found" });
|
19
|
+
}
|
20
|
+
} catch (error) {
|
21
|
+
res.status(500).json({ message: "Error fetching initiative", error });
|
22
|
+
}
|
23
|
+
},
|
24
|
+
|
25
|
+
createInitiative: async (req, res) => {
|
26
|
+
try {
|
27
|
+
const newInitiative = await db.initiative.create(req.body);
|
28
|
+
res.status(201).json(newInitiative);
|
29
|
+
} catch (error) {
|
30
|
+
res.status(400).json({ message: "Error creating initiative", error });
|
31
|
+
}
|
32
|
+
},
|
33
|
+
|
34
|
+
updateInitiative: async (req, res) => {
|
35
|
+
try {
|
36
|
+
const updated = await db.initiative.update(req.body, {
|
37
|
+
where: { id: req.params.id }
|
38
|
+
});
|
39
|
+
if (updated[0] === 1) {
|
40
|
+
res.json({ message: "Initiative updated successfully" });
|
41
|
+
} else {
|
42
|
+
res.status(404).json({ message: "Initiative not found" });
|
43
|
+
}
|
44
|
+
} catch (error) {
|
45
|
+
res.status(400).json({ message: "Error updating initiative", error });
|
46
|
+
}
|
47
|
+
},
|
48
|
+
|
49
|
+
deleteInitiative: async (req, res) => {
|
50
|
+
try {
|
51
|
+
const deleted = await db.initiative.destroy({
|
52
|
+
where: { id: req.params.id }
|
53
|
+
});
|
54
|
+
if (deleted) {
|
55
|
+
res.json({ message: "Initiative deleted successfully" });
|
56
|
+
} else {
|
57
|
+
res.status(404).json({ message: "Initiative not found" });
|
58
|
+
}
|
59
|
+
} catch (error) {
|
60
|
+
res.status(500).json({ message: "Error deleting initiative", error });
|
61
|
+
}
|
62
|
+
},
|
63
|
+
|
64
|
+
approveInitiative: async (req, res) => {
|
65
|
+
try {
|
66
|
+
const initiative = await db.initiative.findByPk(req.params.id);
|
67
|
+
if (initiative) {
|
68
|
+
initiative.status = 'approved';
|
69
|
+
await initiative.save();
|
70
|
+
res.json({ message: "Initiative approved successfully" });
|
71
|
+
} else {
|
72
|
+
res.status(404).json({ message: "Initiative not found" });
|
73
|
+
}
|
74
|
+
} catch (error) {
|
75
|
+
res.status(500).json({ message: "Error approving initiative", error });
|
76
|
+
}
|
77
|
+
},
|
78
|
+
|
79
|
+
rejectInitiative: async (req, res) => {
|
80
|
+
try {
|
81
|
+
const initiative = await db.initiative.findByPk(req.params.id);
|
82
|
+
if (initiative) {
|
83
|
+
initiative.status = 'rejected';
|
84
|
+
await initiative.save();
|
85
|
+
res.json({ message: "Initiative rejected successfully" });
|
86
|
+
} else {
|
87
|
+
res.status(404).json({ message: "Initiative not found" });
|
88
|
+
}
|
89
|
+
} catch (error) {
|
90
|
+
res.status(500).json({ message: "Error rejecting initiative", error });
|
91
|
+
}
|
92
|
+
}
|
93
|
+
};
|
94
|
+
};
|
@@ -0,0 +1,94 @@
|
|
1
|
+
module.exports = function(db) {
|
2
|
+
return {
|
3
|
+
getAllTasks: async (req, res) => {
|
4
|
+
try {
|
5
|
+
const tasks = await db.task.findAll();
|
6
|
+
res.json(tasks);
|
7
|
+
} catch (error) {
|
8
|
+
res.status(500).json({ message: "Error fetching tasks", error });
|
9
|
+
}
|
10
|
+
},
|
11
|
+
|
12
|
+
getTaskById: async (req, res) => {
|
13
|
+
try {
|
14
|
+
const task = await db.task.findByPk(req.params.id);
|
15
|
+
if (task) {
|
16
|
+
res.json(task);
|
17
|
+
} else {
|
18
|
+
res.status(404).json({ message: "Task not found" });
|
19
|
+
}
|
20
|
+
} catch (error) {
|
21
|
+
res.status(500).json({ message: "Error fetching task", error });
|
22
|
+
}
|
23
|
+
},
|
24
|
+
|
25
|
+
createTask: async (req, res) => {
|
26
|
+
try {
|
27
|
+
const newTask = await db.task.create(req.body);
|
28
|
+
res.status(201).json(newTask);
|
29
|
+
} catch (error) {
|
30
|
+
res.status(400).json({ message: "Error creating task", error });
|
31
|
+
}
|
32
|
+
},
|
33
|
+
|
34
|
+
updateTask: async (req, res) => {
|
35
|
+
try {
|
36
|
+
const updated = await db.task.update(req.body, {
|
37
|
+
where: { id: req.params.id }
|
38
|
+
});
|
39
|
+
if (updated[0] === 1) {
|
40
|
+
res.json({ message: "Task updated successfully" });
|
41
|
+
} else {
|
42
|
+
res.status(404).json({ message: "Task not found" });
|
43
|
+
}
|
44
|
+
} catch (error) {
|
45
|
+
res.status(400).json({ message: "Error updating task", error });
|
46
|
+
}
|
47
|
+
},
|
48
|
+
|
49
|
+
deleteTask: async (req, res) => {
|
50
|
+
try {
|
51
|
+
const deleted = await db.task.destroy({
|
52
|
+
where: { id: req.params.id }
|
53
|
+
});
|
54
|
+
if (deleted) {
|
55
|
+
res.json({ message: "Task deleted successfully" });
|
56
|
+
} else {
|
57
|
+
res.status(404).json({ message: "Task not found" });
|
58
|
+
}
|
59
|
+
} catch (error) {
|
60
|
+
res.status(500).json({ message: "Error deleting task", error });
|
61
|
+
}
|
62
|
+
},
|
63
|
+
|
64
|
+
assignTask: async (req, res) => {
|
65
|
+
try {
|
66
|
+
const task = await db.task.findByPk(req.params.id);
|
67
|
+
if (task) {
|
68
|
+
task.assignedTo = req.body.userId;
|
69
|
+
await task.save();
|
70
|
+
res.json({ message: "Task assigned successfully" });
|
71
|
+
} else {
|
72
|
+
res.status(404).json({ message: "Task not found" });
|
73
|
+
}
|
74
|
+
} catch (error) {
|
75
|
+
res.status(500).json({ message: "Error assigning task", error });
|
76
|
+
}
|
77
|
+
},
|
78
|
+
|
79
|
+
completeTask: async (req, res) => {
|
80
|
+
try {
|
81
|
+
const task = await db.task.findByPk(req.params.id);
|
82
|
+
if (task) {
|
83
|
+
task.status = 'completed';
|
84
|
+
await task.save();
|
85
|
+
res.json({ message: "Task completed successfully" });
|
86
|
+
} else {
|
87
|
+
res.status(404).json({ message: "Task not found" });
|
88
|
+
}
|
89
|
+
} catch (error) {
|
90
|
+
res.status(500).json({ message: "Error completing task", error });
|
91
|
+
}
|
92
|
+
}
|
93
|
+
};
|
94
|
+
};
|
@@ -0,0 +1,68 @@
|
|
1
|
+
module.exports = function(db) {
|
2
|
+
return {
|
3
|
+
castVote: async (req, res) => {
|
4
|
+
try {
|
5
|
+
const newVote = await db.vote.create({
|
6
|
+
votingId: req.params.votingId,
|
7
|
+
userId: req.body.userId,
|
8
|
+
choice: req.body.choice
|
9
|
+
});
|
10
|
+
res.status(201).json(newVote);
|
11
|
+
} catch (error) {
|
12
|
+
res.status(400).json({ message: "Error casting vote", error });
|
13
|
+
}
|
14
|
+
},
|
15
|
+
|
16
|
+
getVotesForVoting: async (req, res) => {
|
17
|
+
try {
|
18
|
+
const votes = await db.vote.findAll({
|
19
|
+
where: { votingId: req.params.votingId }
|
20
|
+
});
|
21
|
+
res.json(votes);
|
22
|
+
} catch (error) {
|
23
|
+
res.status(500).json({ message: "Error fetching votes", error });
|
24
|
+
}
|
25
|
+
},
|
26
|
+
|
27
|
+
getUserVotes: async (req, res) => {
|
28
|
+
try {
|
29
|
+
const votes = await db.vote.findAll({
|
30
|
+
where: { userId: req.params.userId }
|
31
|
+
});
|
32
|
+
res.json(votes);
|
33
|
+
} catch (error) {
|
34
|
+
res.status(500).json({ message: "Error fetching user votes", error });
|
35
|
+
}
|
36
|
+
},
|
37
|
+
|
38
|
+
updateVote: async (req, res) => {
|
39
|
+
try {
|
40
|
+
const updated = await db.vote.update(req.body, {
|
41
|
+
where: { id: req.params.id }
|
42
|
+
});
|
43
|
+
if (updated[0] === 1) {
|
44
|
+
res.json({ message: "Vote updated successfully" });
|
45
|
+
} else {
|
46
|
+
res.status(404).json({ message: "Vote not found" });
|
47
|
+
}
|
48
|
+
} catch (error) {
|
49
|
+
res.status(400).json({ message: "Error updating vote", error });
|
50
|
+
}
|
51
|
+
},
|
52
|
+
|
53
|
+
deleteVote: async (req, res) => {
|
54
|
+
try {
|
55
|
+
const deleted = await db.vote.destroy({
|
56
|
+
where: { id: req.params.id }
|
57
|
+
});
|
58
|
+
if (deleted) {
|
59
|
+
res.json({ message: "Vote deleted successfully" });
|
60
|
+
} else {
|
61
|
+
res.status(404).json({ message: "Vote not found" });
|
62
|
+
}
|
63
|
+
} catch (error) {
|
64
|
+
res.status(500).json({ message: "Error deleting vote", error });
|
65
|
+
}
|
66
|
+
}
|
67
|
+
};
|
68
|
+
};
|