@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,41 @@
|
|
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="todo">To Do</option>
|
32
|
+
<option value="inProgress">In Progress</option>
|
33
|
+
<option value="done">Done</option>
|
34
|
+
</select>
|
35
|
+
</div>
|
36
|
+
<div>
|
37
|
+
<label for="assignedTo">Assigned To:</label>
|
38
|
+
<input id="assignedTo" v-model="modelValue.assignedTo" @input="updateField('assignedTo', $event.target.value)" />
|
39
|
+
</div>
|
40
|
+
</form>
|
41
|
+
</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="title">Title:</label>
|
22
|
+
<input id="title" v-model="modelValue.title" @input="updateField('title', $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="startDate">Start Date:</label>
|
30
|
+
<input id="startDate" type="datetime-local" v-model="modelValue.startDate" @input="updateField('startDate', $event.target.value)" />
|
31
|
+
</div>
|
32
|
+
<div>
|
33
|
+
<label for="endDate">End Date:</label>
|
34
|
+
<input id="endDate" type="datetime-local" v-model="modelValue.endDate" @input="updateField('endDate', $event.target.value)" />
|
35
|
+
</div>
|
36
|
+
</form>
|
37
|
+
</template>
|
@@ -0,0 +1,29 @@
|
|
1
|
+
<script setup>
|
2
|
+
import { ref } from 'vue';
|
3
|
+
import { defineProps } from 'vue';
|
4
|
+
import { votesActions } from '../store/votes';
|
5
|
+
|
6
|
+
const props = defineProps({
|
7
|
+
votingId: {
|
8
|
+
type: String,
|
9
|
+
required: true
|
10
|
+
}
|
11
|
+
});
|
12
|
+
|
13
|
+
const choice = ref('');
|
14
|
+
|
15
|
+
const castVote = async () => {
|
16
|
+
await votesActions.castVote(props.votingId, { choice: choice.value });
|
17
|
+
// Show success message or update UI
|
18
|
+
};
|
19
|
+
</script>
|
20
|
+
|
21
|
+
<template>
|
22
|
+
<form @submit.prevent="castVote">
|
23
|
+
<div>
|
24
|
+
<label for="choice">Your Choice:</label>
|
25
|
+
<input id="choice" v-model="choice" required />
|
26
|
+
</div>
|
27
|
+
<button type="submit">Cast Vote</button>
|
28
|
+
</form>
|
29
|
+
</template>
|
@@ -0,0 +1,102 @@
|
|
1
|
+
import { reactive, watch } from "vue";
|
2
|
+
|
3
|
+
import { setError } from "@pf/src/modules/globals/views/store/globals";
|
4
|
+
|
5
|
+
import $axios from '@pf/src/modules/globals/views/utils/axios-instance.js';
|
6
|
+
|
7
|
+
// Initiatives Store
|
8
|
+
const initiativesState = reactive({
|
9
|
+
all: [],
|
10
|
+
current: {
|
11
|
+
name: "",
|
12
|
+
description: "",
|
13
|
+
status: "",
|
14
|
+
createdBy: "",
|
15
|
+
createdAt: null,
|
16
|
+
updatedAt: null,
|
17
|
+
},
|
18
|
+
});
|
19
|
+
|
20
|
+
const initiativesActions = {
|
21
|
+
async getAllInitiatives() {
|
22
|
+
try {
|
23
|
+
const response = await $axios.get('/api/initiatives');
|
24
|
+
initiativesState.all = response.data;
|
25
|
+
return response.data;
|
26
|
+
} catch (error) {
|
27
|
+
setError(error);
|
28
|
+
throw error;
|
29
|
+
}
|
30
|
+
},
|
31
|
+
async getInitiativeById(id) {
|
32
|
+
try {
|
33
|
+
const response = await $axios.get(`/api/initiatives/${id}`);
|
34
|
+
initiativesState.current = response.data;
|
35
|
+
return response.data;
|
36
|
+
} catch (error) {
|
37
|
+
setError(error);
|
38
|
+
throw error;
|
39
|
+
}
|
40
|
+
},
|
41
|
+
async createInitiative(initiative) {
|
42
|
+
try {
|
43
|
+
const response = await $axios.post('/api/initiatives', initiative);
|
44
|
+
initiativesState.all.push(response.data);
|
45
|
+
return response.data;
|
46
|
+
} catch (error) {
|
47
|
+
setError(error);
|
48
|
+
throw error;
|
49
|
+
}
|
50
|
+
},
|
51
|
+
async updateInitiative(initiative) {
|
52
|
+
try {
|
53
|
+
const response = await $axios.put(`/api/initiatives/${initiative.id}`, initiative);
|
54
|
+
const index = initiativesState.all.findIndex(i => i.id === initiative.id);
|
55
|
+
if (index !== -1) {
|
56
|
+
initiativesState.all[index] = response.data;
|
57
|
+
}
|
58
|
+
return response.data;
|
59
|
+
} catch (error) {
|
60
|
+
setError(error);
|
61
|
+
throw error;
|
62
|
+
}
|
63
|
+
},
|
64
|
+
async deleteInitiative(id) {
|
65
|
+
try {
|
66
|
+
await $axios.delete(`/api/initiatives/${id}`);
|
67
|
+
initiativesState.all = initiativesState.all.filter(i => i.id !== id);
|
68
|
+
} catch (error) {
|
69
|
+
setError(error);
|
70
|
+
throw error;
|
71
|
+
}
|
72
|
+
},
|
73
|
+
async approveInitiative(id) {
|
74
|
+
try {
|
75
|
+
const response = await $axios.post(`/api/initiatives/${id}/approve`);
|
76
|
+
return response.data;
|
77
|
+
} catch (error) {
|
78
|
+
setError(error);
|
79
|
+
throw error;
|
80
|
+
}
|
81
|
+
},
|
82
|
+
async rejectInitiative(id) {
|
83
|
+
try {
|
84
|
+
const response = await $axios.post(`/api/initiatives/${id}/reject`);
|
85
|
+
return response.data;
|
86
|
+
} catch (error) {
|
87
|
+
setError(error);
|
88
|
+
throw error;
|
89
|
+
}
|
90
|
+
},
|
91
|
+
};
|
92
|
+
|
93
|
+
const initiativesHistory = [];
|
94
|
+
|
95
|
+
watch(initiativesState, (newState) => {
|
96
|
+
initiativesHistory.push(JSON.parse(JSON.stringify(newState)));
|
97
|
+
});
|
98
|
+
|
99
|
+
export {
|
100
|
+
initiativesState,
|
101
|
+
initiativesActions,
|
102
|
+
};
|
@@ -0,0 +1,104 @@
|
|
1
|
+
import { reactive, watch } from "vue";
|
2
|
+
|
3
|
+
import { setError } from "@pf/src/modules/globals/views/store/globals";
|
4
|
+
|
5
|
+
import $axios from '@pf/src/modules/globals/views/utils/axios-instance.js';
|
6
|
+
|
7
|
+
|
8
|
+
const tasksState = reactive({
|
9
|
+
all: [],
|
10
|
+
current: {
|
11
|
+
name: "",
|
12
|
+
description: "",
|
13
|
+
status: "",
|
14
|
+
assignedTo: "",
|
15
|
+
createdBy: "",
|
16
|
+
createdAt: null,
|
17
|
+
updatedAt: null,
|
18
|
+
},
|
19
|
+
});
|
20
|
+
|
21
|
+
const tasksActions = {
|
22
|
+
async getAllTasks() {
|
23
|
+
try {
|
24
|
+
const response = await $axios.get('/api/tasks');
|
25
|
+
tasksState.all = response.data;
|
26
|
+
return response.data;
|
27
|
+
} catch (error) {
|
28
|
+
setError(error);
|
29
|
+
throw error;
|
30
|
+
}
|
31
|
+
},
|
32
|
+
async getTaskById(id) {
|
33
|
+
try {
|
34
|
+
const response = await $axios.get(`/api/tasks/${id}`);
|
35
|
+
tasksState.current = response.data;
|
36
|
+
return response.data;
|
37
|
+
} catch (error) {
|
38
|
+
setError(error);
|
39
|
+
throw error;
|
40
|
+
}
|
41
|
+
},
|
42
|
+
async createTask(task) {
|
43
|
+
try {
|
44
|
+
const response = await $axios.post('/api/tasks', task);
|
45
|
+
tasksState.all.push(response.data);
|
46
|
+
return response.data;
|
47
|
+
} catch (error) {
|
48
|
+
setError(error);
|
49
|
+
throw error;
|
50
|
+
}
|
51
|
+
},
|
52
|
+
async updateTask(task) {
|
53
|
+
try {
|
54
|
+
const response = await $axios.put(`/api/tasks/${task.id}`, task);
|
55
|
+
const index = tasksState.all.findIndex(t => t.id === task.id);
|
56
|
+
if (index !== -1) {
|
57
|
+
tasksState.all[index] = response.data;
|
58
|
+
}
|
59
|
+
return response.data;
|
60
|
+
} catch (error) {
|
61
|
+
setError(error);
|
62
|
+
throw error;
|
63
|
+
}
|
64
|
+
},
|
65
|
+
async deleteTask(id) {
|
66
|
+
try {
|
67
|
+
await $axios.delete(`/api/tasks/${id}`);
|
68
|
+
tasksState.all = tasksState.all.filter(t => t.id !== id);
|
69
|
+
} catch (error) {
|
70
|
+
setError(error);
|
71
|
+
throw error;
|
72
|
+
}
|
73
|
+
},
|
74
|
+
async assignTask(id, userId) {
|
75
|
+
try {
|
76
|
+
const response = await $axios.post(`/api/tasks/${id}/assign`, { userId });
|
77
|
+
return response.data;
|
78
|
+
} catch (error) {
|
79
|
+
setError(error);
|
80
|
+
throw error;
|
81
|
+
}
|
82
|
+
},
|
83
|
+
async completeTask(id) {
|
84
|
+
try {
|
85
|
+
const response = await $axios.post(`/api/tasks/${id}/complete`);
|
86
|
+
return response.data;
|
87
|
+
} catch (error) {
|
88
|
+
setError(error);
|
89
|
+
throw error;
|
90
|
+
}
|
91
|
+
},
|
92
|
+
};
|
93
|
+
|
94
|
+
const tasksHistory = [];
|
95
|
+
|
96
|
+
watch(tasksState, (newState) => {
|
97
|
+
tasksHistory.push(JSON.parse(JSON.stringify(newState)));
|
98
|
+
});
|
99
|
+
|
100
|
+
|
101
|
+
export {
|
102
|
+
tasksState,
|
103
|
+
tasksActions
|
104
|
+
};
|
@@ -0,0 +1,115 @@
|
|
1
|
+
import { reactive, watch } from "vue";
|
2
|
+
|
3
|
+
import { setError } from "@pf/src/modules/globals/views/store/globals";
|
4
|
+
|
5
|
+
import $axios from '@pf/src/modules/globals/views/utils/axios-instance.js';
|
6
|
+
|
7
|
+
// Votings Store
|
8
|
+
const votingsState = reactive({
|
9
|
+
all: [],
|
10
|
+
current: {
|
11
|
+
title: "",
|
12
|
+
description: "",
|
13
|
+
status: "",
|
14
|
+
startDate: null,
|
15
|
+
endDate: null,
|
16
|
+
createdBy: "",
|
17
|
+
createdAt: null,
|
18
|
+
updatedAt: null,
|
19
|
+
},
|
20
|
+
});
|
21
|
+
|
22
|
+
const votingsActions = {
|
23
|
+
async getAllVotings() {
|
24
|
+
try {
|
25
|
+
const response = await $axios.get('/api/votings');
|
26
|
+
votingsState.all = response.data;
|
27
|
+
return response.data;
|
28
|
+
} catch (error) {
|
29
|
+
setError(error);
|
30
|
+
throw error;
|
31
|
+
}
|
32
|
+
},
|
33
|
+
async getVotingById(id) {
|
34
|
+
try {
|
35
|
+
const response = await $axios.get(`/api/votings/${id}`);
|
36
|
+
votingsState.current = response.data;
|
37
|
+
return response.data;
|
38
|
+
} catch (error) {
|
39
|
+
setError(error);
|
40
|
+
throw error;
|
41
|
+
}
|
42
|
+
},
|
43
|
+
async createVoting(voting) {
|
44
|
+
try {
|
45
|
+
const response = await $axios.post('/api/votings', voting);
|
46
|
+
votingsState.all.push(response.data);
|
47
|
+
return response.data;
|
48
|
+
} catch (error) {
|
49
|
+
setError(error);
|
50
|
+
throw error;
|
51
|
+
}
|
52
|
+
},
|
53
|
+
async updateVoting(voting) {
|
54
|
+
try {
|
55
|
+
const response = await $axios.put(`/api/votings/${voting.id}`, voting);
|
56
|
+
const index = votingsState.all.findIndex(v => v.id === voting.id);
|
57
|
+
if (index !== -1) {
|
58
|
+
votingsState.all[index] = response.data;
|
59
|
+
}
|
60
|
+
return response.data;
|
61
|
+
} catch (error) {
|
62
|
+
setError(error);
|
63
|
+
throw error;
|
64
|
+
}
|
65
|
+
},
|
66
|
+
async deleteVoting(id) {
|
67
|
+
try {
|
68
|
+
await $axios.delete(`/api/votings/${id}`);
|
69
|
+
votingsState.all = votingsState.all.filter(v => v.id !== id);
|
70
|
+
} catch (error) {
|
71
|
+
setError(error);
|
72
|
+
throw error;
|
73
|
+
}
|
74
|
+
},
|
75
|
+
async startVoting(id) {
|
76
|
+
try {
|
77
|
+
const response = await $axios.post(`/api/votings/${id}/start`);
|
78
|
+
return response.data;
|
79
|
+
} catch (error) {
|
80
|
+
setError(error);
|
81
|
+
throw error;
|
82
|
+
}
|
83
|
+
},
|
84
|
+
async endVoting(id) {
|
85
|
+
try {
|
86
|
+
const response = await $axios.post(`/api/votings/${id}/end`);
|
87
|
+
return response.data;
|
88
|
+
} catch (error) {
|
89
|
+
setError(error);
|
90
|
+
throw error;
|
91
|
+
}
|
92
|
+
},
|
93
|
+
async getVotingResults(id) {
|
94
|
+
try {
|
95
|
+
const response = await $axios.get(`/api/votings/${id}/results`);
|
96
|
+
return response.data;
|
97
|
+
} catch (error) {
|
98
|
+
setError(error);
|
99
|
+
throw error;
|
100
|
+
}
|
101
|
+
},
|
102
|
+
};
|
103
|
+
|
104
|
+
const votingsHistory = [];
|
105
|
+
|
106
|
+
watch(votingsState, (newState) => {
|
107
|
+
votingsHistory.push(JSON.parse(JSON.stringify(newState)));
|
108
|
+
});
|
109
|
+
|
110
|
+
|
111
|
+
|
112
|
+
export {
|
113
|
+
votingsState,
|
114
|
+
votingsActions
|
115
|
+
};
|
@@ -0,0 +1,81 @@
|
|
1
|
+
import { reactive, watch } from "vue";
|
2
|
+
|
3
|
+
import { setError } from "@pf/src/modules/globals/views/store/globals";
|
4
|
+
|
5
|
+
import $axios from '@pf/src/modules/globals/views/utils/axios-instance.js';
|
6
|
+
|
7
|
+
// Votes Store
|
8
|
+
const votesState = reactive({
|
9
|
+
all: [],
|
10
|
+
current: {
|
11
|
+
votingId: "",
|
12
|
+
userId: "",
|
13
|
+
choice: "",
|
14
|
+
createdAt: null,
|
15
|
+
},
|
16
|
+
});
|
17
|
+
|
18
|
+
const votesActions = {
|
19
|
+
async castVote(votingId, vote) {
|
20
|
+
try {
|
21
|
+
const response = await $axios.post(`/api/votings/${votingId}/vote`, vote);
|
22
|
+
votesState.all.push(response.data);
|
23
|
+
return response.data;
|
24
|
+
} catch (error) {
|
25
|
+
setError(error);
|
26
|
+
throw error;
|
27
|
+
}
|
28
|
+
},
|
29
|
+
async getVotesForVoting(votingId) {
|
30
|
+
try {
|
31
|
+
const response = await $axios.get(`/api/votings/${votingId}/votes`);
|
32
|
+
return response.data;
|
33
|
+
} catch (error) {
|
34
|
+
setError(error);
|
35
|
+
throw error;
|
36
|
+
}
|
37
|
+
},
|
38
|
+
async getUserVotes(userId) {
|
39
|
+
try {
|
40
|
+
const response = await $axios.get(`/api/users/${userId}/votes`);
|
41
|
+
return response.data;
|
42
|
+
} catch (error) {
|
43
|
+
setError(error);
|
44
|
+
throw error;
|
45
|
+
}
|
46
|
+
},
|
47
|
+
async updateVote(id, vote) {
|
48
|
+
try {
|
49
|
+
const response = await $axios.put(`/api/votes/${id}`, vote);
|
50
|
+
const index = votesState.all.findIndex(v => v.id === id);
|
51
|
+
if (index !== -1) {
|
52
|
+
votesState.all[index] = response.data;
|
53
|
+
}
|
54
|
+
return response.data;
|
55
|
+
} catch (error) {
|
56
|
+
setError(error);
|
57
|
+
throw error;
|
58
|
+
}
|
59
|
+
},
|
60
|
+
async deleteVote(id) {
|
61
|
+
try {
|
62
|
+
await $axios.delete(`/api/votes/${id}`);
|
63
|
+
votesState.all = votesState.all.filter(v => v.id !== id);
|
64
|
+
} catch (error) {
|
65
|
+
setError(error);
|
66
|
+
throw error;
|
67
|
+
}
|
68
|
+
},
|
69
|
+
};
|
70
|
+
|
71
|
+
const votesHistory = [];
|
72
|
+
|
73
|
+
|
74
|
+
watch(votesState, (newState) => {
|
75
|
+
votesHistory.push(JSON.parse(JSON.stringify(newState)));
|
76
|
+
});
|
77
|
+
|
78
|
+
export {
|
79
|
+
votesState,
|
80
|
+
votesActions
|
81
|
+
};
|
@@ -132,7 +132,7 @@ import * as auth from '@pf/src/modules/auth/views/store/auth';
|
|
132
132
|
import * as shopcart from '@pf/src/modules/orders/store/shopcart';
|
133
133
|
import * as organizations from '@pf/src/modules/organizations/store/organizations';
|
134
134
|
import * as orders from '@pf/src/modules/orders/store/orders';
|
135
|
-
import * as users from '@pf/src/modules/
|
135
|
+
import * as users from '@pf/src/modules/auth/views/store/users';
|
136
136
|
///////////////////////////////////////////////////////////////////////////////////////////////////
|
137
137
|
// Variables and computed
|
138
138
|
///////////////////////////////////////////////////////////////////////////////////////////////////
|
@@ -206,7 +206,7 @@
|
|
206
206
|
|
207
207
|
import CardOrderItem from '@pf/src/modules/orders/components/blocks/CardOrderItem.vue'
|
208
208
|
import CardPosition from '@pf/src/modules/products/components/blocks/CardPosition.vue';
|
209
|
-
import CardUser from '@pf/src/modules/
|
209
|
+
import CardUser from '@pf/src/modules/auth/views/components/blocks/CardUser.vue'
|
210
210
|
|
211
211
|
import BlockSearch from '@pf/src/modules/globals/views/components/blocks/BlockSearch.vue'
|
212
212
|
|
@@ -87,11 +87,11 @@ import Button from '@pf/src/components/Button/Button.vue'
|
|
87
87
|
|
88
88
|
import BlockSearch from '@pf/src/modules/globals/views/components/blocks/BlockSearch.vue'
|
89
89
|
|
90
|
-
import CardUser from '@pf/src/modules/
|
90
|
+
import CardUser from '@pf/src/modules/auth/views/components/blocks/CardUser.vue'
|
91
91
|
|
92
92
|
import FormCustomerDetails from '@pf/src/modules/orders/components/sections/FormCustomerDetails.vue'
|
93
93
|
|
94
|
-
import * as users from '@pf/src/modules/
|
94
|
+
import * as users from '@pf/src/modules/auth/views/store/users';
|
95
95
|
import * as auth from '@pf/src/modules/auth/views/store/auth';
|
96
96
|
|
97
97
|
import { setError } from '@pf/src/modules/globals/views/store/globals'
|
@@ -1,6 +1,7 @@
|
|
1
1
|
// Store
|
2
2
|
import * as storeOrders from './store/orders.js';
|
3
3
|
import * as storeShopcart from './store/shopcart.js';
|
4
|
+
import * as storeTestimonials from './store/testimonials';
|
4
5
|
// Router
|
5
6
|
import routerOrders from './router/orders.router.js';
|
6
7
|
// Views
|
@@ -30,6 +31,7 @@ function initializeOrders(app, store, router, options = {}) {
|
|
30
31
|
router.addRoute(route, routerOrders);
|
31
32
|
store.addStore('orders', storeOrders);
|
32
33
|
store.addStore('shopcart', storeShopcart);
|
34
|
+
store.addStore('testimonials', storeTestimonials);
|
33
35
|
}
|
34
36
|
|
35
37
|
const ModuleOrder = {
|
@@ -37,7 +39,8 @@ const ModuleOrder = {
|
|
37
39
|
views: {
|
38
40
|
store: {
|
39
41
|
storeOrders,
|
40
|
-
storeShopcart
|
42
|
+
storeShopcart,
|
43
|
+
storeTestimonials
|
41
44
|
},
|
42
45
|
router: {
|
43
46
|
routerOrders
|
@@ -5,6 +5,7 @@ const ModelApplication = require('./models/application.model.js');
|
|
5
5
|
|
6
6
|
const RoutesOrder = require('./routes/orders.routes.js');
|
7
7
|
const RoutesApplications = require('./routes/applications.routes.js');
|
8
|
+
// require('@pf/src/modules/orders/routes/testimonials.routes')(app);
|
8
9
|
|
9
10
|
const FactoryOrder = require('./controllers/orders.controller.js');
|
10
11
|
|
@@ -53,7 +53,7 @@ import IconEdit from '@pf/src/modules/icons/navigation/IconEdit.vue'
|
|
53
53
|
|
54
54
|
import Spoiler from '@pf/src/components/Spoiler/Spoiler.vue';
|
55
55
|
import DepartmentSub from '@pf/src/modules/organizations/components/blocks/DepartmentSub.vue';
|
56
|
-
import User from '@pf/src/modules/
|
56
|
+
import User from '@pf/src/modules/auth/views/components/blocks/CardUser.vue';
|
57
57
|
|
58
58
|
const props = defineProps({
|
59
59
|
department: Object,
|
@@ -89,7 +89,7 @@
|
|
89
89
|
<div v-if="showProducts && organization.products.length > 0" class="w-100 o-scroll radius-medium">
|
90
90
|
<div class="w-max flex-nowrap flex gap-thin">
|
91
91
|
<CardOrderItem
|
92
|
-
@click.stop="$router.push({name: '
|
92
|
+
@click.stop="$router.push({name: 'Organization_Product', params: {_id: organization._id, product: product._id}})"
|
93
93
|
v-for="product in organization.products.slice(0,5)"
|
94
94
|
:key="product._id"
|
95
95
|
:editable="false"
|
@@ -64,7 +64,7 @@ import { useRoute, useRouter } from 'vue-router';
|
|
64
64
|
|
65
65
|
import Spoiler from '@pf/src/components/Spoiler/Spoiler.vue';
|
66
66
|
import DepartmentSub from '@pf/src/modules/organizations/components/blocks/DepartmentSub.vue';
|
67
|
-
import User from '@pf/src/modules/
|
67
|
+
import User from '@pf/src/modules/auth/views/components/blocks/CardUser.vue';
|
68
68
|
import * as departments from '@pf/src/modules/organizations/store/departments';
|
69
69
|
|
70
70
|
import IconEdit from '@pf/src/modules/icons/navigation/IconEdit.vue'
|
@@ -331,7 +331,7 @@ import IconDelete from '@pf/src/modules/icons/navigation/IconDelete.vue'
|
|
331
331
|
import EditArray from "@pf/src/modules/organizations/components/blocks/EditArray.vue";
|
332
332
|
import DepartmentSub from "@pf/src/modules/organizations/components/blocks/DepartmentSub.vue";
|
333
333
|
|
334
|
-
import CardUser from '@pf/src/modules/
|
334
|
+
import CardUser from '@pf/src/modules/auth/views/components/blocks/CardUser.vue'
|
335
335
|
|
336
336
|
import * as globals from "@pf/src/modules/globals/views/store/globals";
|
337
337
|
import * as departments from "@pf/src/modules/organizations/store/departments";
|
@@ -177,7 +177,7 @@ import MembersAdd from '@pf/src/modules/organizations/components/sections/Member
|
|
177
177
|
import Menu from '@pf/src/components/Menu/Menu.vue'
|
178
178
|
import MenuItem from '@pf/src/components/Menu/MenuItem.vue'
|
179
179
|
|
180
|
-
import CardUser from '@pf/src/modules/
|
180
|
+
import CardUser from '@pf/src/modules/auth/views/components/blocks/CardUser.vue';
|
181
181
|
import CardDepartment from '@pf/src/modules/organizations/components/blocks/CardDepartment.vue';
|
182
182
|
|
183
183
|
import IconDelete from '@pf/src/modules/icons/navigation/IconDelete.vue'
|
@@ -184,7 +184,7 @@
|
|
184
184
|
// Organizations
|
185
185
|
import DepartmentSub from '@pf/src/modules/organizations/components/blocks/DepartmentSub.vue';
|
186
186
|
import DetailsTabSection from '@pf/src/modules/organizations/components/sections/DetailsTabSection.vue'
|
187
|
-
import User from '@pf/src/modules/
|
187
|
+
import User from '@pf/src/modules/auth/views/components/blocks/CardUser.vue';
|
188
188
|
// Feeds
|
189
189
|
import FeedEvents from '@pf/src/modules/events/components/sections/Feed.vue';
|
190
190
|
// Spots
|
@@ -112,14 +112,14 @@
|
|
112
112
|
|
113
113
|
import BlockSearch from '@pf/src/modules/globals/views/components/blocks/BlockSearch.vue'
|
114
114
|
|
115
|
-
import CardUser from '@pf/src/modules/
|
115
|
+
import CardUser from '@pf/src/modules/auth/views/components/blocks/CardUser.vue'
|
116
116
|
|
117
117
|
import IconDelete from '@pf/src/modules/icons/navigation/IconDelete.vue';
|
118
118
|
import IconAdd from '@pf/src/modules/icons/navigation/IconAdd.vue';
|
119
119
|
// Import validation
|
120
120
|
import * as inputsValidation from '@pf/src/modules/auth/views/validations/inputs.validation'
|
121
121
|
// Store
|
122
|
-
import * as users from '@pf/src/modules/
|
122
|
+
import * as users from '@pf/src/modules/auth/views/store/users';
|
123
123
|
// Props
|
124
124
|
const props = defineProps({
|
125
125
|
organization: Object,
|
@@ -14,8 +14,6 @@ const parseCookie = require('@pf/src/modules/globals/controllers/utils/parseCook
|
|
14
14
|
const controllerFactory = (db) => {
|
15
15
|
const Organization = db.organization;
|
16
16
|
const Membership = db.membership;
|
17
|
-
const User = db.user;
|
18
|
-
const Role = db.role;
|
19
17
|
|
20
18
|
const read = async (req, res) => {
|
21
19
|
//////////////////////////////////////
|