@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
@@ -0,0 +1,112 @@
|
|
1
|
+
module.exports = function(db) {
|
2
|
+
return {
|
3
|
+
getAllVotings: async (req, res) => {
|
4
|
+
try {
|
5
|
+
const votings = await db.voting.findAll();
|
6
|
+
res.json(votings);
|
7
|
+
} catch (error) {
|
8
|
+
res.status(500).json({ message: "Error fetching votings", error });
|
9
|
+
}
|
10
|
+
},
|
11
|
+
|
12
|
+
getVotingById: async (req, res) => {
|
13
|
+
try {
|
14
|
+
const voting = await db.voting.findByPk(req.params.id);
|
15
|
+
if (voting) {
|
16
|
+
res.json(voting);
|
17
|
+
} else {
|
18
|
+
res.status(404).json({ message: "Voting not found" });
|
19
|
+
}
|
20
|
+
} catch (error) {
|
21
|
+
res.status(500).json({ message: "Error fetching voting", error });
|
22
|
+
}
|
23
|
+
},
|
24
|
+
|
25
|
+
createVoting: async (req, res) => {
|
26
|
+
try {
|
27
|
+
const newVoting = await db.voting.create(req.body);
|
28
|
+
res.status(201).json(newVoting);
|
29
|
+
} catch (error) {
|
30
|
+
res.status(400).json({ message: "Error creating voting", error });
|
31
|
+
}
|
32
|
+
},
|
33
|
+
|
34
|
+
updateVoting: async (req, res) => {
|
35
|
+
try {
|
36
|
+
const updated = await db.voting.update(req.body, {
|
37
|
+
where: { id: req.params.id }
|
38
|
+
});
|
39
|
+
if (updated[0] === 1) {
|
40
|
+
res.json({ message: "Voting updated successfully" });
|
41
|
+
} else {
|
42
|
+
res.status(404).json({ message: "Voting not found" });
|
43
|
+
}
|
44
|
+
} catch (error) {
|
45
|
+
res.status(400).json({ message: "Error updating voting", error });
|
46
|
+
}
|
47
|
+
},
|
48
|
+
|
49
|
+
deleteVoting: async (req, res) => {
|
50
|
+
try {
|
51
|
+
const deleted = await db.voting.destroy({
|
52
|
+
where: { id: req.params.id }
|
53
|
+
});
|
54
|
+
if (deleted) {
|
55
|
+
res.json({ message: "Voting deleted successfully" });
|
56
|
+
} else {
|
57
|
+
res.status(404).json({ message: "Voting not found" });
|
58
|
+
}
|
59
|
+
} catch (error) {
|
60
|
+
res.status(500).json({ message: "Error deleting voting", error });
|
61
|
+
}
|
62
|
+
},
|
63
|
+
|
64
|
+
startVoting: async (req, res) => {
|
65
|
+
try {
|
66
|
+
const voting = await db.voting.findByPk(req.params.id);
|
67
|
+
if (voting) {
|
68
|
+
voting.status = 'active';
|
69
|
+
voting.startDate = new Date();
|
70
|
+
await voting.save();
|
71
|
+
res.json({ message: "Voting started successfully" });
|
72
|
+
} else {
|
73
|
+
res.status(404).json({ message: "Voting not found" });
|
74
|
+
}
|
75
|
+
} catch (error) {
|
76
|
+
res.status(500).json({ message: "Error starting voting", error });
|
77
|
+
}
|
78
|
+
},
|
79
|
+
|
80
|
+
endVoting: async (req, res) => {
|
81
|
+
try {
|
82
|
+
const voting = await db.voting.findByPk(req.params.id);
|
83
|
+
if (voting) {
|
84
|
+
voting.status = 'completed';
|
85
|
+
voting.endDate = new Date();
|
86
|
+
await voting.save();
|
87
|
+
res.json({ message: "Voting ended successfully" });
|
88
|
+
} else {
|
89
|
+
res.status(404).json({ message: "Voting not found" });
|
90
|
+
}
|
91
|
+
} catch (error) {
|
92
|
+
res.status(500).json({ message: "Error ending voting", error });
|
93
|
+
}
|
94
|
+
},
|
95
|
+
|
96
|
+
getVotingResults: async (req, res) => {
|
97
|
+
try {
|
98
|
+
const voting = await db.voting.findByPk(req.params.id, {
|
99
|
+
include: [{ model: db.vote }]
|
100
|
+
});
|
101
|
+
if (voting) {
|
102
|
+
// Здесь вы можете добавить логику для подсчета результатов
|
103
|
+
res.json({ voting, results: "Результаты голосования" });
|
104
|
+
} else {
|
105
|
+
res.status(404).json({ message: "Voting not found" });
|
106
|
+
}
|
107
|
+
} catch (error) {
|
108
|
+
res.status(500).json({ message: "Error fetching voting results", error });
|
109
|
+
}
|
110
|
+
}
|
111
|
+
};
|
112
|
+
};
|
@@ -0,0 +1,13 @@
|
|
1
|
+
const initiativeFactory = require("../controllers/initiatives.controller");
|
2
|
+
|
3
|
+
module.exports = function(app, db, origins, publicPath) {
|
4
|
+
const controller = initiativeFactory(db);
|
5
|
+
|
6
|
+
app.get("/api/initiatives", controller.getAllInitiatives);
|
7
|
+
app.get("/api/initiatives/:id", controller.getInitiativeById);
|
8
|
+
app.post("/api/initiatives", controller.createInitiative);
|
9
|
+
app.put("/api/initiatives/:id", controller.updateInitiative);
|
10
|
+
app.delete("/api/initiatives/:id", controller.deleteInitiative);
|
11
|
+
app.post("/api/initiatives/:id/approve", controller.approveInitiative);
|
12
|
+
app.post("/api/initiatives/:id/reject", controller.rejectInitiative);
|
13
|
+
};
|
@@ -0,0 +1,13 @@
|
|
1
|
+
const taskFactory = require("../controllers/tasks.controller");
|
2
|
+
|
3
|
+
module.exports = function(app, db, origins, publicPath) {
|
4
|
+
const controller = taskFactory(db);
|
5
|
+
|
6
|
+
app.get("/api/tasks", controller.getAllTasks);
|
7
|
+
app.get("/api/tasks/:id", controller.getTaskById);
|
8
|
+
app.post("/api/tasks", controller.createTask);
|
9
|
+
app.put("/api/tasks/:id", controller.updateTask);
|
10
|
+
app.delete("/api/tasks/:id", controller.deleteTask);
|
11
|
+
app.post("/api/tasks/:id/assign", controller.assignTask);
|
12
|
+
app.post("/api/tasks/:id/complete", controller.completeTask);
|
13
|
+
};
|
@@ -0,0 +1,11 @@
|
|
1
|
+
const voteFactory = require("../controllers/votes.controller");
|
2
|
+
|
3
|
+
module.exports = function(app, db, origins, publicPath) {
|
4
|
+
const controller = voteFactory(db);
|
5
|
+
|
6
|
+
app.post("/api/votings/:votingId/vote", controller.castVote);
|
7
|
+
app.get("/api/votings/:votingId/votes", controller.getVotesForVoting);
|
8
|
+
app.get("/api/users/:userId/votes", controller.getUserVotes);
|
9
|
+
app.put("/api/votes/:id", controller.updateVote);
|
10
|
+
app.delete("/api/votes/:id", controller.deleteVote);
|
11
|
+
};
|
@@ -0,0 +1,14 @@
|
|
1
|
+
const votingFactory = require("../controllers/votings.controller");
|
2
|
+
|
3
|
+
module.exports = function(app, db, origins, publicPath) {
|
4
|
+
const controller = votingFactory(db);
|
5
|
+
|
6
|
+
app.get("/api/votings", controller.getAllVotings);
|
7
|
+
app.get("/api/votings/:id", controller.getVotingById);
|
8
|
+
app.post("/api/votings", controller.createVoting);
|
9
|
+
app.put("/api/votings/:id", controller.updateVoting);
|
10
|
+
app.delete("/api/votings/:id", controller.deleteVoting);
|
11
|
+
app.post("/api/votings/:id/start", controller.startVoting);
|
12
|
+
app.post("/api/votings/:id/end", controller.endVoting);
|
13
|
+
app.get("/api/votings/:id/results", controller.getVotingResults);
|
14
|
+
};
|
@@ -0,0 +1,25 @@
|
|
1
|
+
module.exports = (db) => {
|
2
|
+
const InitiativeSchema = new db.mongoose.Schema({
|
3
|
+
title: { type: String, required: true },
|
4
|
+
description: { type: String, required: true },
|
5
|
+
status: {
|
6
|
+
type: String,
|
7
|
+
enum: ['draft', 'active', 'completed', 'cancelled'],
|
8
|
+
default: 'draft'
|
9
|
+
},
|
10
|
+
createdBy: {
|
11
|
+
type: db.mongoose.Schema.Types.ObjectId,
|
12
|
+
ref: 'User',
|
13
|
+
required: true
|
14
|
+
},
|
15
|
+
tasks: [{
|
16
|
+
type: db.mongoose.Schema.Types.ObjectId,
|
17
|
+
ref: 'Task'
|
18
|
+
}]
|
19
|
+
}, {
|
20
|
+
timestamps: { currentTime: () => Date.now() }
|
21
|
+
});
|
22
|
+
|
23
|
+
const Initiative = db.mongoose.model('Initiative', InitiativeSchema);
|
24
|
+
return Initiative;
|
25
|
+
};
|
@@ -0,0 +1,21 @@
|
|
1
|
+
module.exports = (db) => {
|
2
|
+
const TaskSchema = new db.mongoose.Schema({
|
3
|
+
title: { type: String, required: true },
|
4
|
+
description: { type: String },
|
5
|
+
status: {
|
6
|
+
type: String,
|
7
|
+
enum: ['pending', 'in_progress', 'completed'],
|
8
|
+
default: 'pending'
|
9
|
+
},
|
10
|
+
assignedTo: {
|
11
|
+
type: db.mongoose.Schema.Types.ObjectId,
|
12
|
+
ref: 'User'
|
13
|
+
},
|
14
|
+
dueDate: { type: Date },
|
15
|
+
initiative: {
|
16
|
+
type: db.mongoose.Schema.Types.ObjectId,
|
17
|
+
ref: 'Initiative'
|
18
|
+
}
|
19
|
+
}, {
|
20
|
+
timestamps: { currentTime: () => Date.now() }
|
21
|
+
});
|
@@ -0,0 +1,20 @@
|
|
1
|
+
module.exports = (db) => {
|
2
|
+
const VoteSchema = new db.mongoose.Schema({
|
3
|
+
value: { type: Number, required: true },
|
4
|
+
voter: {
|
5
|
+
type: db.mongoose.Schema.Types.ObjectId,
|
6
|
+
ref: 'User',
|
7
|
+
required: true
|
8
|
+
},
|
9
|
+
voting: {
|
10
|
+
type: db.mongoose.Schema.Types.ObjectId,
|
11
|
+
ref: 'Voting',
|
12
|
+
required: true
|
13
|
+
}
|
14
|
+
}, {
|
15
|
+
timestamps: { currentTime: () => Date.now() }
|
16
|
+
});
|
17
|
+
|
18
|
+
const Vote = db.mongoose.model('Vote', VoteSchema);
|
19
|
+
return Vote;
|
20
|
+
};
|
@@ -0,0 +1,22 @@
|
|
1
|
+
module.exports = (db) => {
|
2
|
+
const VotingSchema = new db.mongoose.Schema({
|
3
|
+
title: { type: String, required: true },
|
4
|
+
description: { type: String },
|
5
|
+
startDate: { type: Date, required: true },
|
6
|
+
endDate: { type: Date, required: true },
|
7
|
+
status: {
|
8
|
+
type: String,
|
9
|
+
enum: ['pending', 'active', 'closed'],
|
10
|
+
default: 'pending'
|
11
|
+
},
|
12
|
+
votes: [{
|
13
|
+
type: db.mongoose.Schema.Types.ObjectId,
|
14
|
+
ref: 'Vote'
|
15
|
+
}]
|
16
|
+
}, {
|
17
|
+
timestamps: { currentTime: () => Date.now() }
|
18
|
+
});
|
19
|
+
|
20
|
+
const Voting = db.mongoose.model('Voting', VotingSchema);
|
21
|
+
return Voting;
|
22
|
+
};
|
@@ -0,0 +1,18 @@
|
|
1
|
+
<script setup>
|
2
|
+
import { defineProps } from 'vue';
|
3
|
+
|
4
|
+
const props = defineProps({
|
5
|
+
initiative: {
|
6
|
+
type: Object,
|
7
|
+
required: true
|
8
|
+
}
|
9
|
+
});
|
10
|
+
</script>
|
11
|
+
|
12
|
+
<template>
|
13
|
+
<div class="card">
|
14
|
+
<h2>{{ initiative.name }}</h2>
|
15
|
+
<p>{{ initiative.description }}</p>
|
16
|
+
<p>Status: {{ initiative.status }}</p>
|
17
|
+
</div>
|
18
|
+
</template>
|
@@ -0,0 +1,19 @@
|
|
1
|
+
<script setup>
|
2
|
+
import { defineProps } from 'vue';
|
3
|
+
|
4
|
+
const props = defineProps({
|
5
|
+
task: {
|
6
|
+
type: Object,
|
7
|
+
required: true
|
8
|
+
}
|
9
|
+
});
|
10
|
+
</script>
|
11
|
+
|
12
|
+
<template>
|
13
|
+
<div class="card">
|
14
|
+
<h2>{{ task.name }}</h2>
|
15
|
+
<p>{{ task.description }}</p>
|
16
|
+
<p>Status: {{ task.status }}</p>
|
17
|
+
<p>Assigned to: {{ task.assignedTo }}</p>
|
18
|
+
</div>
|
19
|
+
</template>
|
@@ -0,0 +1,18 @@
|
|
1
|
+
<script setup>
|
2
|
+
import { defineProps } from 'vue';
|
3
|
+
|
4
|
+
const props = defineProps({
|
5
|
+
vote: {
|
6
|
+
type: Object,
|
7
|
+
required: true
|
8
|
+
}
|
9
|
+
});
|
10
|
+
</script>
|
11
|
+
|
12
|
+
<template>
|
13
|
+
<div class="vote-display">
|
14
|
+
<h3>Your Vote</h3>
|
15
|
+
<p>Choice: {{ vote.choice }}</p>
|
16
|
+
<p>Cast on: {{ new Date(vote.createdAt).toLocaleString() }}</p>
|
17
|
+
</div>
|
18
|
+
</template>
|
@@ -0,0 +1,22 @@
|
|
1
|
+
<script setup>
|
2
|
+
import { onMounted, ref } from 'vue';
|
3
|
+
import { useRoute } from 'vue-router';
|
4
|
+
import { initiativesActions, initiativesState } from '../store/initiatives';
|
5
|
+
|
6
|
+
const route = useRoute();
|
7
|
+
const initiative = ref(null);
|
8
|
+
|
9
|
+
onMounted(async () => {
|
10
|
+
const id = route.params.id;
|
11
|
+
await initiativesActions.getInitiativeById(id);
|
12
|
+
initiative.value = initiativesState.current;
|
13
|
+
});
|
14
|
+
</script>
|
15
|
+
|
16
|
+
<template>
|
17
|
+
<div v-if="initiative">
|
18
|
+
<h1>{{ initiative.name }}</h1>
|
19
|
+
<p>{{ initiative.description }}</p>
|
20
|
+
<p>Status: {{ initiative.status }}</p>
|
21
|
+
</div>
|
22
|
+
</template>
|
@@ -0,0 +1,24 @@
|
|
1
|
+
<script setup>
|
2
|
+
import { ref } from 'vue';
|
3
|
+
import { initiativesActions } from '../store/initiatives';
|
4
|
+
import FormInitiativeDetails from './FormInitiativeDetails.vue';
|
5
|
+
|
6
|
+
const newInitiative = ref({
|
7
|
+
name: '',
|
8
|
+
description: '',
|
9
|
+
status: 'draft'
|
10
|
+
});
|
11
|
+
|
12
|
+
const createInitiative = async () => {
|
13
|
+
await initiativesActions.createInitiative(newInitiative.value);
|
14
|
+
// Redirect or show success message
|
15
|
+
};
|
16
|
+
</script>
|
17
|
+
|
18
|
+
<template>
|
19
|
+
<div>
|
20
|
+
<h1>Create New Initiative</h1>
|
21
|
+
<FormInitiativeDetails v-model="newInitiative" />
|
22
|
+
<button @click="createInitiative">Create Initiative</button>
|
23
|
+
</div>
|
24
|
+
</template>
|
@@ -0,0 +1,19 @@
|
|
1
|
+
<script setup>
|
2
|
+
import { onMounted, ref } from 'vue';
|
3
|
+
import { initiativesActions, initiativesState } from '../store/initiatives';
|
4
|
+
import CardInitiativeItem from './CardInitiativeItem.vue';
|
5
|
+
|
6
|
+
const initiatives = ref([]);
|
7
|
+
|
8
|
+
onMounted(async () => {
|
9
|
+
await initiativesActions.getAllInitiatives();
|
10
|
+
initiatives.value = initiativesState.all;
|
11
|
+
});
|
12
|
+
</script>
|
13
|
+
|
14
|
+
<template>
|
15
|
+
<div>
|
16
|
+
<h1>Initiatives</h1>
|
17
|
+
<CardInitiativeItem v-for="initiative in initiatives" :key="initiative.id" :initiative="initiative" />
|
18
|
+
</div>
|
19
|
+
</template>
|
@@ -0,0 +1,23 @@
|
|
1
|
+
<script setup>
|
2
|
+
import { onMounted, ref } from 'vue';
|
3
|
+
import { useRoute } from 'vue-router';
|
4
|
+
import { tasksActions, tasksState } from '../store/tasks';
|
5
|
+
|
6
|
+
const route = useRoute();
|
7
|
+
const task = ref(null);
|
8
|
+
|
9
|
+
onMounted(async () => {
|
10
|
+
const id = route.params.id;
|
11
|
+
await tasksActions.getTaskById(id);
|
12
|
+
task.value = tasksState.current;
|
13
|
+
});
|
14
|
+
</script>
|
15
|
+
|
16
|
+
<template>
|
17
|
+
<div v-if="task">
|
18
|
+
<h1>{{ task.name }}</h1>
|
19
|
+
<p>{{ task.description }}</p>
|
20
|
+
<p>Status: {{ task.status }}</p>
|
21
|
+
<p>Assigned to: {{ task.assignedTo }}</p>
|
22
|
+
</div>
|
23
|
+
</template>
|
@@ -0,0 +1,25 @@
|
|
1
|
+
<script setup>
|
2
|
+
import { ref } from 'vue';
|
3
|
+
import { tasksActions } from '../store/tasks';
|
4
|
+
import FormTaskDetails from './FormTaskDetails.vue';
|
5
|
+
|
6
|
+
const newTask = ref({
|
7
|
+
name: '',
|
8
|
+
description: '',
|
9
|
+
status: 'todo',
|
10
|
+
assignedTo: ''
|
11
|
+
});
|
12
|
+
|
13
|
+
const createTask = async () => {
|
14
|
+
await tasksActions.createTask(newTask.value);
|
15
|
+
// Redirect or show success message
|
16
|
+
};
|
17
|
+
</script>
|
18
|
+
|
19
|
+
<template>
|
20
|
+
<div>
|
21
|
+
<h1>Create New Task</h1>
|
22
|
+
<FormTaskDetails v-model="newTask" />
|
23
|
+
<button @click="createTask">Create Task</button>
|
24
|
+
</div>
|
25
|
+
</template>
|
@@ -0,0 +1,19 @@
|
|
1
|
+
<script setup>
|
2
|
+
import { onMounted, ref } from 'vue';
|
3
|
+
import { tasksActions, tasksState } from '../store/tasks';
|
4
|
+
import CardTaskItem from './CardTaskItem.vue';
|
5
|
+
|
6
|
+
const tasks = ref([]);
|
7
|
+
|
8
|
+
onMounted(async () => {
|
9
|
+
await tasksActions.getAllTasks();
|
10
|
+
tasks.value = tasksState.all;
|
11
|
+
});
|
12
|
+
</script>
|
13
|
+
|
14
|
+
<template>
|
15
|
+
<div>
|
16
|
+
<h1>Tasks</h1>
|
17
|
+
<CardTaskItem v-for="task in tasks" :key="task.id" :task="task" />
|
18
|
+
</div>
|
19
|
+
</template>
|
@@ -0,0 +1,30 @@
|
|
1
|
+
<script setup>
|
2
|
+
import { onMounted, ref } from 'vue';
|
3
|
+
import { useRoute } from 'vue-router';
|
4
|
+
import { votingsActions, votingsState } from '../store/votings';
|
5
|
+
import VoteForm from './VoteForm.vue';
|
6
|
+
import VotingResult from './VotingResult.vue';
|
7
|
+
|
8
|
+
const route = useRoute();
|
9
|
+
const voting = ref(null);
|
10
|
+
const results = ref(null);
|
11
|
+
|
12
|
+
onMounted(async () => {
|
13
|
+
const id = route.params.id;
|
14
|
+
await votingsActions.getVotingById(id);
|
15
|
+
voting.value = votingsState.current;
|
16
|
+
if (voting.value.status === 'ended') {
|
17
|
+
results.value = await votingsActions.getVotingResults(id);
|
18
|
+
}
|
19
|
+
});
|
20
|
+
</script>
|
21
|
+
|
22
|
+
<template>
|
23
|
+
<div v-if="voting">
|
24
|
+
<h1>{{ voting.title }}</h1>
|
25
|
+
<p>{{ voting.description }}</p>
|
26
|
+
<p>Status: {{ voting.status }}</p>
|
27
|
+
<VoteForm v-if="voting.status === 'active'" :votingId="voting.id" />
|
28
|
+
<VotingResult v-if="results" :results="results" />
|
29
|
+
</div>
|
30
|
+
</template>
|
@@ -0,0 +1,25 @@
|
|
1
|
+
<script setup>
|
2
|
+
import { ref } from 'vue';
|
3
|
+
import { votingsActions } from '../store/votings';
|
4
|
+
import FormVotingDetails from './FormVotingDetails.vue';
|
5
|
+
|
6
|
+
const newVoting = ref({
|
7
|
+
title: '',
|
8
|
+
description: '',
|
9
|
+
startDate: null,
|
10
|
+
endDate: null
|
11
|
+
});
|
12
|
+
|
13
|
+
const createVoting = async () => {
|
14
|
+
await votingsActions.createVoting(newVoting.value);
|
15
|
+
// Redirect or show success message
|
16
|
+
};
|
17
|
+
</script>
|
18
|
+
|
19
|
+
<template>
|
20
|
+
<div>
|
21
|
+
<h1>Create New Voting</h1>
|
22
|
+
<FormVotingDetails v-model="newVoting" />
|
23
|
+
<button @click="createVoting">Create Voting</button>
|
24
|
+
</div>
|
25
|
+
</template>
|
@@ -0,0 +1,19 @@
|
|
1
|
+
<script setup>
|
2
|
+
import { onMounted, ref } from 'vue';
|
3
|
+
import { votingsActions, votingsState } from '../store/votings';
|
4
|
+
import CardVotingItem from './CardVotingItem.vue';
|
5
|
+
|
6
|
+
const votings = ref([]);
|
7
|
+
|
8
|
+
onMounted(async () => {
|
9
|
+
await votingsActions.getAllVotings();
|
10
|
+
votings.value = votingsState.all;
|
11
|
+
});
|
12
|
+
</script>
|
13
|
+
|
14
|
+
<template>
|
15
|
+
<div>
|
16
|
+
<h1>Votings</h1>
|
17
|
+
<CardVotingItem v-for="voting in votings" :key="voting.id" :voting="voting" />
|
18
|
+
</div>
|
19
|
+
</template>
|
@@ -0,0 +1,19 @@
|
|
1
|
+
<script setup>
|
2
|
+
import { defineProps } from 'vue';
|
3
|
+
|
4
|
+
const props = defineProps({
|
5
|
+
reward: {
|
6
|
+
type: Object,
|
7
|
+
required: true
|
8
|
+
}
|
9
|
+
});
|
10
|
+
</script>
|
11
|
+
|
12
|
+
<template>
|
13
|
+
<div class="reward-display">
|
14
|
+
<h3>Reward</h3>
|
15
|
+
<p>Type: {{ reward.type }}</p>
|
16
|
+
<p>Amount: {{ reward.amount }}</p>
|
17
|
+
<p v-if="reward.description">Description: {{ reward.description }}</p>
|
18
|
+
</div>
|
19
|
+
</template>
|
@@ -0,0 +1,21 @@
|
|
1
|
+
<script setup>
|
2
|
+
import { defineProps } from 'vue';
|
3
|
+
|
4
|
+
const props = defineProps({
|
5
|
+
results: {
|
6
|
+
type: Object,
|
7
|
+
required: true
|
8
|
+
}
|
9
|
+
});
|
10
|
+
</script>
|
11
|
+
|
12
|
+
<template>
|
13
|
+
<div class="voting-result">
|
14
|
+
<h3>Voting Results</h3>
|
15
|
+
<ul>
|
16
|
+
<li v-for="(count, option) in results" :key="option">
|
17
|
+
{{ option }}: {{ count }} votes
|
18
|
+
</li>
|
19
|
+
</ul>
|
20
|
+
</div>
|
21
|
+
</template>
|
@@ -0,0 +1,21 @@
|
|
1
|
+
<script setup>
|
2
|
+
import { defineProps } from 'vue';
|
3
|
+
|
4
|
+
const props = defineProps({
|
5
|
+
results: {
|
6
|
+
type: Object,
|
7
|
+
required: true
|
8
|
+
}
|
9
|
+
});
|
10
|
+
</script>
|
11
|
+
|
12
|
+
<template>
|
13
|
+
<div class="voting-result">
|
14
|
+
<h3>Voting Results</h3>
|
15
|
+
<ul>
|
16
|
+
<li v-for="(count, option) in results" :key="option">
|
17
|
+
{{ option }}: {{ count }} votes
|
18
|
+
</li>
|
19
|
+
</ul>
|
20
|
+
</div>
|
21
|
+
</template>
|
@@ -0,0 +1,37 @@
|
|
1
|
+
<script setup>
|
2
|
+
import { defineProps, defineEmits } from 'vue';
|
3
|
+
|
4
|
+
const props = defineProps({
|
5
|
+
modelValue: {
|
6
|
+
type: Object,
|
7
|
+
required: true
|
8
|
+
}
|
9
|
+
});
|
10
|
+
|
11
|
+
const emit = defineEmits(['update:modelValue']);
|
12
|
+
|
13
|
+
const updateField = (field, value) => {
|
14
|
+
emit('update:modelValue', { ...props.modelValue, [field]: value });
|
15
|
+
};
|
16
|
+
</script>
|
17
|
+
|
18
|
+
<template>
|
19
|
+
<form>
|
20
|
+
<div>
|
21
|
+
<label for="name">Name:</label>
|
22
|
+
<input id="name" v-model="modelValue.name" @input="updateField('name', $event.target.value)" />
|
23
|
+
</div>
|
24
|
+
<div>
|
25
|
+
<label for="description">Description:</label>
|
26
|
+
<textarea id="description" v-model="modelValue.description" @input="updateField('description', $event.target.value)"></textarea>
|
27
|
+
</div>
|
28
|
+
<div>
|
29
|
+
<label for="status">Status:</label>
|
30
|
+
<select id="status" v-model="modelValue.status" @change="updateField('status', $event.target.value)">
|
31
|
+
<option value="draft">Draft</option>
|
32
|
+
<option value="active">Active</option>
|
33
|
+
<option value="completed">Completed</option>
|
34
|
+
</select>
|
35
|
+
</div>
|
36
|
+
</form>
|
37
|
+
</template>
|