@ozdao/martyrs 0.2.518 → 0.2.520
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/_virtual/index.cjs +4 -4
- package/dist/_virtual/index.js +4 -4
- package/dist/_virtual/index2.cjs +4 -4
- package/dist/_virtual/index2.js +4 -4
- package/dist/{abac-Cf_9lCSh.js → abac-CnJsrv8S.js} +3 -3
- package/dist/{abac-6LjoG9u-.cjs → abac-DOyUjhee.cjs} +3 -3
- package/dist/builder.cjs +27 -25
- package/dist/builder.js +27 -25
- package/dist/chats.server.cjs +198 -1
- package/dist/chats.server.js +198 -1
- package/dist/{crud-sE7GLPbj.js → crud-BIFl1W1i.js} +6 -6
- package/dist/{crud-JN_LFj01.cjs → crud-CC6k6yY5.cjs} +6 -6
- package/dist/{globals.logger-CZMgIMlM.cjs → globals.logger-BuW7JHMY.cjs} +63 -53
- package/dist/{globals.logger-Bf6rRU7j.js → globals.logger-VRHh-WUW.js} +63 -53
- package/dist/{globals.observer-CV2wCzzh.cjs → globals.observer-C_FYclgV.cjs} +36 -1
- package/dist/{globals.observer-CDqUjVU5.js → globals.observer-MZsqaE6F.js} +36 -1
- package/dist/globals.server.cjs +1 -1
- package/dist/globals.server.js +1 -1
- package/dist/inventory.server.cjs +276 -376
- package/dist/inventory.server.js +276 -376
- package/dist/main-BM3GslOO.cjs +11 -0
- package/dist/{main-wmEhGVvD.js → main-Qcn7YlTx.js} +1834 -1830
- package/dist/martyrs/src/components/Address/{Address.vue2.cjs → Address.vue.cjs} +2 -2
- package/dist/martyrs/src/components/Address/{Address.vue2.js.map → Address.vue.cjs.map} +1 -1
- package/dist/martyrs/src/components/Address/{Address.vue2.js → Address.vue.js} +2 -2
- package/dist/martyrs/src/components/Address/Address.vue.js.map +1 -0
- package/dist/martyrs/src/components/Button/Button.vue.cjs +1 -1
- package/dist/martyrs/src/components/Button/Button.vue.cjs.map +1 -1
- package/dist/martyrs/src/components/Button/Button.vue.js +1 -1
- package/dist/martyrs/src/components/Button/Button.vue.js.map +1 -1
- package/dist/martyrs/src/components/Chips/{Chips.vue.cjs → Chips.vue2.cjs} +2 -2
- package/dist/martyrs/src/components/Chips/Chips.vue2.cjs.map +1 -0
- package/dist/martyrs/src/components/Chips/{Chips.vue.js → Chips.vue2.js} +2 -2
- package/dist/martyrs/src/components/Chips/Chips.vue2.js.map +1 -0
- package/dist/martyrs/src/components/Dropdown/{Dropdown.vue.cjs → Dropdown.vue2.cjs} +2 -2
- package/dist/martyrs/src/components/Dropdown/Dropdown.vue2.cjs.map +1 -0
- package/dist/martyrs/src/components/Dropdown/{Dropdown.vue.js → Dropdown.vue2.js} +2 -2
- package/dist/martyrs/src/components/Dropdown/{Dropdown.vue.cjs.map → Dropdown.vue2.js.map} +1 -1
- package/dist/martyrs/src/components/EditImages/EditImages.vue.cjs +0 -93
- package/dist/martyrs/src/components/EditImages/EditImages.vue.cjs.map +1 -1
- package/dist/martyrs/src/components/EditImages/EditImages.vue.js +1 -94
- package/dist/martyrs/src/components/EditImages/EditImages.vue.js.map +1 -1
- package/dist/martyrs/src/components/EditImages/EditImages.vue2.cjs +93 -0
- package/dist/martyrs/src/components/EditImages/EditImages.vue2.cjs.map +1 -1
- package/dist/martyrs/src/components/EditImages/EditImages.vue2.js +94 -1
- package/dist/martyrs/src/components/EditImages/EditImages.vue2.js.map +1 -1
- package/dist/martyrs/src/components/Feed/Feed.vue.cjs +2 -3
- package/dist/martyrs/src/components/Feed/Feed.vue.cjs.map +1 -1
- package/dist/martyrs/src/components/Feed/Feed.vue.js +2 -3
- package/dist/martyrs/src/components/Feed/Feed.vue.js.map +1 -1
- package/dist/martyrs/src/components/FieldTags/FieldTags.vue.cjs +1 -1
- package/dist/martyrs/src/components/FieldTags/FieldTags.vue.js +1 -1
- package/dist/martyrs/src/components/Loader/Loader.vue2.cjs +1 -1
- package/dist/martyrs/src/components/Loader/Loader.vue2.cjs.map +1 -1
- package/dist/martyrs/src/components/Loader/Loader.vue2.js +1 -1
- package/dist/martyrs/src/components/Loader/Loader.vue2.js.map +1 -1
- package/dist/martyrs/src/components/LocationMarker/{LocationMarker.vue2.cjs → LocationMarker.vue.cjs} +2 -2
- package/dist/martyrs/src/components/LocationMarker/{LocationMarker.vue2.js.map → LocationMarker.vue.cjs.map} +1 -1
- package/dist/martyrs/src/components/LocationMarker/{LocationMarker.vue2.js → LocationMarker.vue.js} +2 -2
- package/dist/martyrs/src/components/LocationMarker/LocationMarker.vue.js.map +1 -0
- package/dist/martyrs/src/components/Select/{Select.vue2.cjs → Select.vue.cjs} +2 -2
- package/dist/martyrs/src/components/Select/{Select.vue2.js.map → Select.vue.cjs.map} +1 -1
- package/dist/martyrs/src/components/Select/{Select.vue2.js → Select.vue.js} +2 -2
- package/dist/martyrs/src/components/Select/Select.vue.js.map +1 -0
- package/dist/martyrs/src/modules/auth/views/components/blocks/CardUser.vue.cjs +2 -2
- package/dist/martyrs/src/modules/auth/views/components/blocks/CardUser.vue.js +2 -2
- package/dist/martyrs/src/modules/auth/views/components/layouts/Auth.vue.cjs +1 -1
- package/dist/martyrs/src/modules/auth/views/components/layouts/Auth.vue.cjs.map +1 -1
- package/dist/martyrs/src/modules/auth/views/components/layouts/Auth.vue.js +1 -1
- package/dist/martyrs/src/modules/auth/views/components/layouts/Auth.vue.js.map +1 -1
- package/dist/martyrs/src/modules/auth/views/components/pages/Invite.vue.cjs +2 -2
- package/dist/martyrs/src/modules/auth/views/components/pages/Invite.vue.cjs.map +1 -1
- package/dist/martyrs/src/modules/auth/views/components/pages/Invite.vue.js +4 -4
- package/dist/martyrs/src/modules/auth/views/components/pages/Invite.vue.js.map +1 -1
- package/dist/martyrs/src/modules/auth/views/components/pages/Profile.vue.cjs +41 -51
- package/dist/martyrs/src/modules/auth/views/components/pages/Profile.vue.cjs.map +1 -1
- package/dist/martyrs/src/modules/auth/views/components/pages/Profile.vue.js +59 -69
- package/dist/martyrs/src/modules/auth/views/components/pages/Profile.vue.js.map +1 -1
- package/dist/martyrs/src/modules/auth/views/components/sections/SliderFeatures.vue.cjs +11 -13
- package/dist/martyrs/src/modules/auth/views/components/sections/SliderFeatures.vue.cjs.map +1 -1
- package/dist/martyrs/src/modules/auth/views/components/sections/SliderFeatures.vue.js +11 -13
- package/dist/martyrs/src/modules/auth/views/components/sections/SliderFeatures.vue.js.map +1 -1
- package/dist/martyrs/src/modules/auth/views/store/auth.cjs +10 -1
- package/dist/martyrs/src/modules/auth/views/store/auth.cjs.map +1 -1
- package/dist/martyrs/src/modules/auth/views/store/auth.js +10 -1
- package/dist/martyrs/src/modules/auth/views/store/auth.js.map +1 -1
- package/dist/martyrs/src/modules/backoffice/components/partials/Sidebar.vue.cjs +6 -0
- package/dist/martyrs/src/modules/backoffice/components/partials/Sidebar.vue.cjs.map +1 -1
- package/dist/martyrs/src/modules/backoffice/components/partials/Sidebar.vue.js +6 -0
- package/dist/martyrs/src/modules/backoffice/components/partials/Sidebar.vue.js.map +1 -1
- package/dist/martyrs/src/modules/chats/components/blocks/ChatMessage.vue.cjs +27 -11
- package/dist/martyrs/src/modules/chats/components/blocks/ChatMessage.vue.cjs.map +1 -1
- package/dist/martyrs/src/modules/chats/components/blocks/ChatMessage.vue.js +28 -12
- package/dist/martyrs/src/modules/chats/components/blocks/ChatMessage.vue.js.map +1 -1
- package/dist/martyrs/src/modules/chats/components/sections/ChatWindow.vue.cjs +62 -0
- package/dist/martyrs/src/modules/chats/components/sections/ChatWindow.vue.cjs.map +1 -1
- package/dist/martyrs/src/modules/chats/components/sections/ChatWindow.vue.js +63 -1
- package/dist/martyrs/src/modules/chats/components/sections/ChatWindow.vue.js.map +1 -1
- package/dist/martyrs/src/modules/chats/store/chat.store.cjs +60 -1
- package/dist/martyrs/src/modules/chats/store/chat.store.cjs.map +1 -1
- package/dist/martyrs/src/modules/chats/store/chat.store.js +60 -1
- package/dist/martyrs/src/modules/chats/store/chat.store.js.map +1 -1
- package/dist/martyrs/src/modules/community/components/blocks/CardBlogpost.vue.cjs +1 -1
- package/dist/martyrs/src/modules/community/components/blocks/CardBlogpost.vue.js +1 -1
- package/dist/martyrs/src/modules/community/components/layouts/Community.vue.cjs +3 -3
- package/dist/martyrs/src/modules/community/components/layouts/Community.vue.cjs.map +1 -1
- package/dist/martyrs/src/modules/community/components/layouts/Community.vue.js +3 -3
- package/dist/martyrs/src/modules/community/components/layouts/Community.vue.js.map +1 -1
- package/dist/martyrs/src/modules/community/components/pages/BlogPost.vue.cjs +2 -2
- package/dist/martyrs/src/modules/community/components/pages/BlogPost.vue.js +2 -2
- package/dist/martyrs/src/modules/community/components/pages/CreateBlogPost.vue.cjs +1 -1
- package/dist/martyrs/src/modules/community/components/pages/CreateBlogPost.vue.js +1 -1
- package/dist/martyrs/src/modules/community/components/pages/Posts.vue.cjs +50 -368
- package/dist/martyrs/src/modules/community/components/pages/Posts.vue.cjs.map +1 -1
- package/dist/martyrs/src/modules/community/components/pages/Posts.vue.js +53 -371
- package/dist/martyrs/src/modules/community/components/pages/Posts.vue.js.map +1 -1
- package/dist/martyrs/src/modules/events/components/blocks/CardEvent.vue.cjs +1 -1
- package/dist/martyrs/src/modules/events/components/blocks/CardEvent.vue.js +1 -1
- package/dist/martyrs/src/modules/events/components/pages/EditEvent.vue.cjs +1 -1
- package/dist/martyrs/src/modules/events/components/pages/EditEvent.vue.js +1 -1
- package/dist/martyrs/src/modules/events/components/pages/EditEventTickets.vue.cjs +1 -1
- package/dist/martyrs/src/modules/events/components/pages/EditEventTickets.vue.cjs.map +1 -1
- package/dist/martyrs/src/modules/events/components/pages/EditEventTickets.vue.js +1 -1
- package/dist/martyrs/src/modules/events/components/pages/EditEventTickets.vue.js.map +1 -1
- package/dist/martyrs/src/modules/events/components/pages/Event.vue.cjs +2 -3
- package/dist/martyrs/src/modules/events/components/pages/Event.vue.cjs.map +1 -1
- package/dist/martyrs/src/modules/events/components/pages/Event.vue.js +2 -3
- package/dist/martyrs/src/modules/events/components/pages/Event.vue.js.map +1 -1
- package/dist/martyrs/src/modules/events/components/pages/Events.vue.cjs +2 -2
- package/dist/martyrs/src/modules/events/components/pages/Events.vue.cjs.map +1 -1
- package/dist/martyrs/src/modules/events/components/pages/Events.vue.js +2 -2
- package/dist/martyrs/src/modules/events/components/pages/Events.vue.js.map +1 -1
- package/dist/martyrs/src/modules/gallery/components/sections/BackofficeGallery.vue.cjs +3 -3
- package/dist/martyrs/src/modules/gallery/components/sections/BackofficeGallery.vue.js +3 -3
- package/dist/martyrs/src/modules/globals/views/classes/globals.i18n.cjs +1 -1
- package/dist/martyrs/src/modules/globals/views/classes/globals.i18n.js +1 -1
- package/dist/martyrs/src/modules/globals/views/components/blocks/CardHeader.vue.cjs +2 -2
- package/dist/martyrs/src/modules/globals/views/components/blocks/CardHeader.vue.js +2 -2
- package/dist/martyrs/src/modules/globals/views/components/partials/Header.vue.cjs +2 -2
- package/dist/martyrs/src/modules/globals/views/components/partials/Header.vue.cjs.map +1 -1
- package/dist/martyrs/src/modules/globals/views/components/partials/Header.vue.js +2 -2
- package/dist/martyrs/src/modules/globals/views/components/partials/Header.vue.js.map +1 -1
- package/dist/martyrs/src/modules/globals/views/components/partials/LocationSelection.vue.cjs +2 -2
- package/dist/martyrs/src/modules/globals/views/components/partials/LocationSelection.vue.js +2 -2
- package/dist/martyrs/src/modules/globals/views/components/partials/Navigation.vue.cjs +1 -1
- package/dist/martyrs/src/modules/globals/views/components/partials/Navigation.vue.js +1 -1
- package/dist/martyrs/src/modules/globals/views/components/partials/Sidebar.vue.cjs +16 -3
- package/dist/martyrs/src/modules/globals/views/components/partials/Sidebar.vue.cjs.map +1 -1
- package/dist/martyrs/src/modules/globals/views/components/partials/Sidebar.vue.js +17 -4
- package/dist/martyrs/src/modules/globals/views/components/partials/Sidebar.vue.js.map +1 -1
- package/dist/martyrs/src/modules/globals/views/components/sections/Walkthrough.vue.cjs +1 -1
- package/dist/martyrs/src/modules/globals/views/mixins/mixins.cjs +7 -0
- package/dist/martyrs/src/modules/globals/views/mixins/mixins.cjs.map +1 -1
- package/dist/martyrs/src/modules/globals/views/mixins/mixins.js +7 -0
- package/dist/martyrs/src/modules/globals/views/mixins/mixins.js.map +1 -1
- package/dist/martyrs/src/modules/icons/pages/IconsPage.vue.cjs +1 -1
- package/dist/martyrs/src/modules/inventory/components/forms/AdjustmentForm.vue.cjs +67 -43
- package/dist/martyrs/src/modules/inventory/components/forms/AdjustmentForm.vue.cjs.map +1 -1
- package/dist/martyrs/src/modules/inventory/components/forms/AdjustmentForm.vue.js +68 -44
- package/dist/martyrs/src/modules/inventory/components/forms/AdjustmentForm.vue.js.map +1 -1
- package/dist/martyrs/src/modules/inventory/components/forms/ColumnSettingsMenu.vue.cjs +22 -7
- package/dist/martyrs/src/modules/inventory/components/forms/ColumnSettingsMenu.vue.cjs.map +1 -1
- package/dist/martyrs/src/modules/inventory/components/forms/ColumnSettingsMenu.vue.js +23 -8
- package/dist/martyrs/src/modules/inventory/components/forms/ColumnSettingsMenu.vue.js.map +1 -1
- package/dist/martyrs/src/modules/inventory/components/forms/HistoryView.vue.cjs +47 -32
- package/dist/martyrs/src/modules/inventory/components/forms/HistoryView.vue.cjs.map +1 -1
- package/dist/martyrs/src/modules/inventory/components/forms/HistoryView.vue.js +48 -33
- package/dist/martyrs/src/modules/inventory/components/forms/HistoryView.vue.js.map +1 -1
- package/dist/martyrs/src/modules/inventory/components/forms/StockAlertsForm.vue.cjs +47 -26
- package/dist/martyrs/src/modules/inventory/components/forms/StockAlertsForm.vue.cjs.map +1 -1
- package/dist/martyrs/src/modules/inventory/components/forms/StockAlertsForm.vue.js +48 -27
- package/dist/martyrs/src/modules/inventory/components/forms/StockAlertsForm.vue.js.map +1 -1
- package/dist/martyrs/src/modules/inventory/components/pages/Inventory.vue.cjs +42 -52
- package/dist/martyrs/src/modules/inventory/components/pages/Inventory.vue.cjs.map +1 -1
- package/dist/martyrs/src/modules/inventory/components/pages/Inventory.vue.js +43 -53
- package/dist/martyrs/src/modules/inventory/components/pages/Inventory.vue.js.map +1 -1
- package/dist/martyrs/src/modules/inventory/components/pages/InventoryEdit.vue.cjs +18 -18
- package/dist/martyrs/src/modules/inventory/components/pages/InventoryEdit.vue.cjs.map +1 -1
- package/dist/martyrs/src/modules/inventory/components/pages/InventoryEdit.vue.js +3 -3
- package/dist/martyrs/src/modules/inventory/components/pages/InventoryEdit.vue.js.map +1 -1
- package/dist/martyrs/src/modules/inventory/store/{ inventory.store.cjs → inventory.store.cjs} +46 -2
- package/dist/martyrs/src/modules/inventory/store/inventory.store.cjs.map +1 -0
- package/dist/martyrs/src/modules/inventory/store/{ inventory.store.js → inventory.store.js} +46 -2
- package/dist/martyrs/src/modules/inventory/store/inventory.store.js.map +1 -0
- package/dist/martyrs/src/modules/marketplace/views/components/layouts/Marketplace.vue.cjs +180 -19
- package/dist/martyrs/src/modules/marketplace/views/components/layouts/Marketplace.vue.cjs.map +1 -1
- package/dist/martyrs/src/modules/marketplace/views/components/layouts/Marketplace.vue.js +181 -20
- package/dist/martyrs/src/modules/marketplace/views/components/layouts/Marketplace.vue.js.map +1 -1
- package/dist/martyrs/src/modules/music/components/forms/AlbumForm.vue.cjs +1 -1
- package/dist/martyrs/src/modules/music/components/forms/AlbumForm.vue.js +1 -1
- package/dist/martyrs/src/modules/music/components/forms/ArtistForm.vue.cjs +1 -1
- package/dist/martyrs/src/modules/music/components/forms/ArtistForm.vue.js +1 -1
- package/dist/martyrs/src/modules/music/components/forms/TrackForm.vue.cjs +1 -1
- package/dist/martyrs/src/modules/music/components/forms/TrackForm.vue.js +1 -1
- package/dist/martyrs/src/modules/music/components/pages/Album.vue.cjs +1 -1
- package/dist/martyrs/src/modules/music/components/pages/Album.vue.js +1 -1
- package/dist/martyrs/src/modules/music/components/pages/Playlist.vue.cjs +1 -1
- package/dist/martyrs/src/modules/music/components/pages/Playlist.vue.js +1 -1
- package/dist/martyrs/src/modules/music/components/pages/Track.vue.cjs +1 -1
- package/dist/martyrs/src/modules/music/components/pages/Track.vue.js +1 -1
- package/dist/martyrs/src/modules/music/router/music.cjs +1 -2
- package/dist/martyrs/src/modules/music/router/music.cjs.map +1 -1
- package/dist/martyrs/src/modules/music/router/music.js +1 -2
- package/dist/martyrs/src/modules/music/router/music.js.map +1 -1
- package/dist/martyrs/src/modules/orders/components/blocks/CardOrderBackoffice.vue.cjs +2 -2
- package/dist/martyrs/src/modules/orders/components/blocks/CardOrderBackoffice.vue.cjs.map +1 -1
- package/dist/martyrs/src/modules/orders/components/blocks/CardOrderBackoffice.vue.js +2 -2
- package/dist/martyrs/src/modules/orders/components/blocks/CardOrderBackoffice.vue.js.map +1 -1
- package/dist/martyrs/src/modules/orders/components/forms/FormApplicationDetails.vue.cjs +1 -1
- package/dist/martyrs/src/modules/orders/components/forms/FormApplicationDetails.vue.js +1 -1
- package/dist/martyrs/src/modules/orders/components/forms/FormCustomerDetails.vue.cjs +1 -1
- package/dist/martyrs/src/modules/orders/components/forms/FormCustomerDetails.vue.js +1 -1
- package/dist/martyrs/src/modules/orders/components/pages/OrderBackoffice.vue.cjs +1 -1
- package/dist/martyrs/src/modules/orders/components/pages/OrderBackoffice.vue.js +1 -1
- package/dist/martyrs/src/modules/orders/components/sections/FormDelivery.vue.cjs +3 -4
- package/dist/martyrs/src/modules/orders/components/sections/FormDelivery.vue.cjs.map +1 -1
- package/dist/martyrs/src/modules/orders/components/sections/FormDelivery.vue.js +3 -4
- package/dist/martyrs/src/modules/orders/components/sections/FormDelivery.vue.js.map +1 -1
- package/dist/martyrs/src/modules/orders/components/sections/FormPayment.vue.cjs +1 -1
- package/dist/martyrs/src/modules/orders/components/sections/FormPayment.vue.js +1 -1
- package/dist/martyrs/src/modules/orders/orders.client.cjs +2 -2
- package/dist/martyrs/src/modules/orders/orders.client.cjs.map +1 -1
- package/dist/martyrs/src/modules/orders/orders.client.js +2 -2
- package/dist/martyrs/src/modules/orders/orders.client.js.map +1 -1
- package/dist/martyrs/src/modules/orders/router/customers.router.cjs +1 -1
- package/dist/martyrs/src/modules/orders/router/customers.router.cjs.map +1 -1
- package/dist/martyrs/src/modules/orders/router/customers.router.js +1 -1
- package/dist/martyrs/src/modules/orders/router/customers.router.js.map +1 -1
- package/dist/martyrs/src/modules/organizations/components/blocks/CardDepartment.vue.cjs +2 -24
- package/dist/martyrs/src/modules/organizations/components/blocks/CardDepartment.vue.cjs.map +1 -1
- package/dist/martyrs/src/modules/organizations/components/blocks/CardDepartment.vue.js +5 -27
- package/dist/martyrs/src/modules/organizations/components/blocks/CardDepartment.vue.js.map +1 -1
- package/dist/martyrs/src/modules/organizations/components/blocks/CardOrganization.vue.cjs +1 -1
- package/dist/martyrs/src/modules/organizations/components/blocks/CardOrganization.vue.js +1 -1
- package/dist/martyrs/src/modules/organizations/components/blocks/Socials.vue.cjs +4 -1
- package/dist/martyrs/src/modules/organizations/components/blocks/Socials.vue.cjs.map +1 -1
- package/dist/martyrs/src/modules/organizations/components/blocks/Socials.vue.js +4 -1
- package/dist/martyrs/src/modules/organizations/components/blocks/Socials.vue.js.map +1 -1
- package/dist/martyrs/src/modules/organizations/components/elements/ButtonToggleMembership.vue.cjs +3 -3
- package/dist/martyrs/src/modules/organizations/components/elements/ButtonToggleMembership.vue.cjs.map +1 -1
- package/dist/martyrs/src/modules/organizations/components/elements/ButtonToggleMembership.vue.js +3 -3
- package/dist/martyrs/src/modules/organizations/components/elements/ButtonToggleMembership.vue.js.map +1 -1
- package/dist/martyrs/src/modules/organizations/components/forms/AddExistingMembersForm.vue.cjs +195 -0
- package/dist/martyrs/src/modules/organizations/components/forms/AddExistingMembersForm.vue.cjs.map +1 -0
- package/dist/martyrs/src/modules/organizations/components/forms/AddExistingMembersForm.vue.js +195 -0
- package/dist/martyrs/src/modules/organizations/components/forms/AddExistingMembersForm.vue.js.map +1 -0
- package/dist/martyrs/src/modules/organizations/components/forms/DepartmentForm.vue.cjs +402 -0
- package/dist/martyrs/src/modules/organizations/components/forms/DepartmentForm.vue.cjs.map +1 -0
- package/dist/martyrs/src/modules/organizations/components/forms/DepartmentForm.vue.js +402 -0
- package/dist/martyrs/src/modules/organizations/components/forms/DepartmentForm.vue.js.map +1 -0
- package/dist/martyrs/src/modules/organizations/components/forms/InviteForm.vue.cjs +86 -0
- package/dist/martyrs/src/modules/organizations/components/forms/InviteForm.vue.cjs.map +1 -0
- package/dist/martyrs/src/modules/organizations/components/forms/InviteForm.vue.js +86 -0
- package/dist/martyrs/src/modules/organizations/components/forms/InviteForm.vue.js.map +1 -0
- package/dist/martyrs/src/modules/organizations/components/pages/Department.vue.cjs +10 -10
- package/dist/martyrs/src/modules/organizations/components/pages/Department.vue.cjs.map +1 -1
- package/dist/martyrs/src/modules/organizations/components/pages/Department.vue.js +11 -11
- package/dist/martyrs/src/modules/organizations/components/pages/Department.vue.js.map +1 -1
- package/dist/martyrs/src/modules/organizations/components/pages/Members.vue.cjs +279 -191
- package/dist/martyrs/src/modules/organizations/components/pages/Members.vue.cjs.map +1 -1
- package/dist/martyrs/src/modules/organizations/components/pages/Members.vue.js +285 -197
- package/dist/martyrs/src/modules/organizations/components/pages/Members.vue.js.map +1 -1
- package/dist/martyrs/src/modules/organizations/components/pages/Organization.vue.cjs +7 -7
- package/dist/martyrs/src/modules/organizations/components/pages/Organization.vue.cjs.map +1 -1
- package/dist/martyrs/src/modules/organizations/components/pages/Organization.vue.js +7 -7
- package/dist/martyrs/src/modules/organizations/components/pages/Organization.vue.js.map +1 -1
- package/dist/martyrs/src/modules/organizations/components/pages/OrganizationEdit.vue.cjs +2 -2
- package/dist/martyrs/src/modules/organizations/components/pages/OrganizationEdit.vue.cjs.map +1 -1
- package/dist/martyrs/src/modules/organizations/components/pages/OrganizationEdit.vue.js +2 -2
- package/dist/martyrs/src/modules/organizations/components/pages/OrganizationEdit.vue.js.map +1 -1
- package/dist/martyrs/src/modules/organizations/components/pages/Organizations.vue.cjs +1 -1
- package/dist/martyrs/src/modules/organizations/components/pages/Organizations.vue.cjs.map +1 -1
- package/dist/martyrs/src/modules/organizations/components/pages/Organizations.vue.js +1 -1
- package/dist/martyrs/src/modules/organizations/components/pages/Organizations.vue.js.map +1 -1
- package/dist/martyrs/src/modules/organizations/components/sections/MembersAdd.vue.cjs +1 -1
- package/dist/martyrs/src/modules/organizations/components/sections/MembersAdd.vue.js +1 -1
- package/dist/martyrs/src/modules/organizations/components/sections/Organizations.vue.cjs +3 -3
- package/dist/martyrs/src/modules/organizations/components/sections/Organizations.vue.cjs.map +1 -1
- package/dist/martyrs/src/modules/organizations/components/sections/Organizations.vue.js +3 -3
- package/dist/martyrs/src/modules/organizations/components/sections/Organizations.vue.js.map +1 -1
- package/dist/martyrs/src/modules/organizations/components/sections/Publics.vue.cjs +4 -4
- package/dist/martyrs/src/modules/organizations/components/sections/Publics.vue.cjs.map +1 -1
- package/dist/martyrs/src/modules/organizations/components/sections/Publics.vue.js +4 -4
- package/dist/martyrs/src/modules/organizations/components/sections/Publics.vue.js.map +1 -1
- package/dist/martyrs/src/modules/organizations/configs/navigation.organization.config.cjs +42 -41
- package/dist/martyrs/src/modules/organizations/configs/navigation.organization.config.cjs.map +1 -1
- package/dist/martyrs/src/modules/organizations/configs/navigation.organization.config.js +53 -52
- package/dist/martyrs/src/modules/organizations/configs/navigation.organization.config.js.map +1 -1
- package/dist/martyrs/src/modules/organizations/organizations.client.cjs +23 -16
- package/dist/martyrs/src/modules/organizations/organizations.client.cjs.map +1 -1
- package/dist/martyrs/src/modules/organizations/organizations.client.js +35 -28
- package/dist/martyrs/src/modules/organizations/organizations.client.js.map +1 -1
- package/dist/martyrs/src/modules/organizations/router/departments.router.cjs +0 -18
- package/dist/martyrs/src/modules/organizations/router/departments.router.cjs.map +1 -1
- package/dist/martyrs/src/modules/organizations/router/departments.router.js +0 -18
- package/dist/martyrs/src/modules/organizations/router/departments.router.js.map +1 -1
- package/dist/martyrs/src/modules/organizations/store/departments.store.cjs +6 -0
- package/dist/martyrs/src/modules/organizations/store/departments.store.cjs.map +1 -0
- package/dist/martyrs/src/modules/organizations/store/departments.store.js +6 -0
- package/dist/martyrs/src/modules/organizations/store/departments.store.js.map +1 -0
- package/dist/martyrs/src/modules/organizations/store/invites.store.cjs +6 -0
- package/dist/martyrs/src/modules/organizations/store/invites.store.cjs.map +1 -0
- package/dist/martyrs/src/modules/organizations/store/invites.store.js +6 -0
- package/dist/martyrs/src/modules/organizations/store/invites.store.js.map +1 -0
- package/dist/martyrs/src/modules/organizations/store/memberships.store.cjs +20 -0
- package/dist/martyrs/src/modules/organizations/store/memberships.store.cjs.map +1 -0
- package/dist/martyrs/src/modules/organizations/store/memberships.store.js +20 -0
- package/dist/martyrs/src/modules/organizations/store/memberships.store.js.map +1 -0
- package/dist/martyrs/src/modules/products/components/blocks/ProductDiscounts.vue.cjs +1 -1
- package/dist/martyrs/src/modules/products/components/blocks/ProductDiscounts.vue.js +1 -1
- package/dist/martyrs/src/modules/products/components/pages/CategoryEdit.vue.cjs +3 -4
- package/dist/martyrs/src/modules/products/components/pages/CategoryEdit.vue.cjs.map +1 -1
- package/dist/martyrs/src/modules/products/components/pages/CategoryEdit.vue.js +3 -4
- package/dist/martyrs/src/modules/products/components/pages/CategoryEdit.vue.js.map +1 -1
- package/dist/martyrs/src/modules/products/components/pages/ProductEdit.vue.cjs +2 -2
- package/dist/martyrs/src/modules/products/components/pages/ProductEdit.vue.js +2 -2
- package/dist/martyrs/src/modules/products/components/pages/Products.vue.cjs +1 -1
- package/dist/martyrs/src/modules/products/components/pages/Products.vue.cjs.map +1 -1
- package/dist/martyrs/src/modules/products/components/pages/Products.vue.js +1 -1
- package/dist/martyrs/src/modules/products/components/pages/Products.vue.js.map +1 -1
- package/dist/martyrs/src/modules/products/components/sections/EditDiscounts.vue.cjs +1 -1
- package/dist/martyrs/src/modules/products/components/sections/EditDiscounts.vue.js +1 -1
- package/dist/martyrs/src/modules/products/components/sections/EditVariants.vue.cjs +2 -2
- package/dist/martyrs/src/modules/products/components/sections/EditVariants.vue.js +2 -2
- package/dist/martyrs/src/modules/rents/views/components/pages/Gant/GanttToolbar.vue.cjs +1 -1
- package/dist/martyrs/src/modules/rents/views/components/pages/Gant/GanttToolbar.vue.js +1 -1
- package/dist/martyrs/src/modules/reports/components/sections/FormReport.vue.cjs +1 -1
- package/dist/martyrs/src/modules/reports/components/sections/FormReport.vue.js +1 -1
- package/dist/martyrs/src/modules/spots/components/blocks/CardSpot.vue.cjs +3 -3
- package/dist/martyrs/src/modules/spots/components/blocks/CardSpot.vue.cjs.map +1 -1
- package/dist/martyrs/src/modules/spots/components/blocks/CardSpot.vue.js +3 -3
- package/dist/martyrs/src/modules/spots/components/blocks/CardSpot.vue.js.map +1 -1
- package/dist/martyrs/src/modules/spots/components/blocks/SpotMemberModify.vue.cjs +1 -1
- package/dist/martyrs/src/modules/spots/components/blocks/SpotMemberModify.vue.js +1 -1
- package/dist/martyrs/src/modules/spots/components/layouts/Spots.vue.cjs +1 -1
- package/dist/martyrs/src/modules/spots/components/layouts/Spots.vue.js +1 -1
- package/dist/martyrs/src/modules/spots/components/pages/SpotEdit.vue.cjs +3 -3
- package/dist/martyrs/src/modules/spots/components/pages/SpotEdit.vue.js +3 -3
- package/dist/martyrs/src/modules/spots/components/pages/Spots.vue.cjs +60 -272
- package/dist/martyrs/src/modules/spots/components/pages/Spots.vue.cjs.map +1 -1
- package/dist/martyrs/src/modules/spots/components/pages/Spots.vue.js +62 -274
- package/dist/martyrs/src/modules/spots/components/pages/Spots.vue.js.map +1 -1
- package/dist/martyrs/src/modules/spots/components/sections/WorktimeEdit.vue.cjs +1 -1
- package/dist/martyrs/src/modules/spots/components/sections/WorktimeEdit.vue.js +1 -1
- package/dist/martyrs/src/modules/wallet/views/components/blocks/CryptoDeposit.vue.cjs +1 -1
- package/dist/martyrs/src/modules/wallet/views/components/blocks/CryptoDeposit.vue.js +1 -1
- package/dist/martyrs/src/modules/wallet/views/components/pages/Wallet.vue.cjs +4 -4
- package/dist/martyrs/src/modules/wallet/views/components/pages/Wallet.vue.js +4 -4
- package/dist/martyrs.cjs.js +1 -1
- package/dist/martyrs.css +1 -1
- package/dist/martyrs.es.js +1 -1
- package/dist/music.server.cjs +9 -9
- package/dist/music.server.js +9 -9
- package/dist/notifications.server.cjs +0 -24
- package/dist/notifications.server.js +0 -24
- package/dist/orders.server.cjs +3 -6
- package/dist/orders.server.js +3 -6
- package/dist/organizations.server.cjs +119 -43
- package/dist/organizations.server.js +119 -43
- package/dist/products.server.cjs +5 -5
- package/dist/products.server.js +5 -5
- package/dist/rents.server.cjs +3 -3
- package/dist/rents.server.js +3 -3
- package/dist/style.css +16 -17
- package/dist/wallet.server.cjs +2 -2
- package/dist/wallet.server.js +2 -2
- package/dist/{web-B5wZTKbK.cjs → web-B0cfxzgu.cjs} +1 -1
- package/dist/{web-520xCgXy.js → web-DVR8m2fm.js} +1 -1
- package/package.json +1 -1
- package/src/builder/modes/ssr.rspack.dev.js +20 -12
- package/src/builder/rspack/rspack.config.base.js +16 -15
- package/src/components/Button/Button.vue +1 -1
- package/src/components/Feed/Feed.old.vue +0 -1
- package/src/components/Feed/Feed.vue +1 -31
- package/src/components/Loader/Loader.vue +1 -1
- package/src/modules/auth/FIXES.md +61 -0
- package/src/modules/auth/PROMT.md +33 -0
- package/src/modules/auth/auth.server.js +1 -0
- package/src/modules/auth/views/components/blocks/CardUser.vue +2 -2
- package/src/modules/auth/views/components/layouts/Auth.vue +1 -1
- package/src/modules/auth/views/components/pages/Invite.vue +2 -2
- package/src/modules/auth/views/components/pages/Profile.vue +33 -48
- package/src/modules/auth/views/components/sections/SliderFeatures.vue +5 -7
- package/src/modules/auth/views/store/auth.js +16 -1
- package/src/modules/auth//320/220/320/240/320/245/320/230/320/242/320/225/320/232/320/242/320/243/320/240/320/220.md +445 -0
- package/src/modules/backoffice/components/partials/Sidebar.vue +6 -0
- package/src/modules/chats/CLAUDE.md +137 -0
- package/src/modules/chats/components/blocks/ChatMessage.vue +12 -0
- package/src/modules/chats/components/sections/ChatWindow.vue +84 -2
- package/src/modules/chats/controllers/chats.controller.js +187 -0
- package/src/modules/chats/models/chat.model.js +21 -0
- package/src/modules/chats/routes/chats.routes.js +46 -0
- package/src/modules/chats/store/chat.store.js +67 -0
- package/src/modules/community/components/layouts/Community.vue +2 -2
- package/src/modules/community/components/pages/Posts.vue +3 -328
- package/src/modules/events/components/pages/EditEventTickets.vue +1 -1
- package/src/modules/events/components/pages/Events.vue +2 -2
- package/src/modules/globals/controllers/classes/globals.cache.js +64 -55
- package/src/modules/globals/controllers/classes/globals.logger.js +40 -4
- package/src/modules/globals/controllers/classes/globals.observer.js +54 -4
- package/src/modules/globals/views/components/partials/Header.vue +1 -1
- package/src/modules/globals/views/components/partials/Sidebar.vue +17 -13
- package/src/modules/globals/views/mixins/mixins.js +7 -0
- package/src/modules/inventory/CLAUDE.md +330 -0
- package/src/modules/inventory/PROMT.md +25 -0
- package/src/modules/inventory/components/forms/AdjustmentForm.vue +53 -36
- package/src/modules/inventory/components/forms/ColumnSettingsMenu.vue +11 -6
- package/src/modules/inventory/components/forms/HistoryView.vue +21 -9
- package/src/modules/inventory/components/forms/StockAlertsForm.vue +33 -22
- package/src/modules/inventory/components/pages/Inventory.vue +40 -40
- package/src/modules/inventory/components/pages/InventoryEdit.vue +1 -1
- package/src/modules/inventory/docs/01-intro.md +126 -0
- package/src/modules/inventory/docs/02-architecture.md +266 -0
- package/src/modules/inventory/docs/03-components-and-relationships.md +338 -0
- package/src/modules/inventory/docs/04-business-logic-and-algorithms.md +376 -0
- package/src/modules/inventory/docs/05-api-specification.md +356 -0
- package/src/modules/inventory/docs/06-access-control.md +320 -0
- package/src/modules/inventory/inventory.server.js +6 -2
- package/src/modules/inventory/{services → middlewares}/inventory.verifier.js +5 -16
- package/src/modules/inventory/models/stock.availability.model.js +20 -7
- package/src/modules/inventory/routes/inventory.routes.js +14 -17
- package/src/modules/inventory/services/adjustment.service.js +137 -0
- package/src/modules/inventory/services/audit.service.js +160 -0
- package/src/modules/inventory/services/availability.service.js +323 -0
- package/src/modules/inventory/services/inventory.helpers.old.js +217 -0
- package/src/modules/inventory/store/{ inventory.store.js → inventory.store.js} +0 -14
- package/src/modules/inventory/workers/inventory.availability.worker.js +29 -30
- package/src/modules/marketplace/views/components/layouts/Marketplace.vue +160 -8
- package/src/modules/notifications/controllers/notifications.controller.js +0 -6
- package/src/modules/notifications/services/notification.service.js +1 -17
- package/src/modules/notifications/services/web-push.service.js +0 -2
- package/src/modules/orders/components/blocks/CardOrderBackoffice.vue +2 -2
- package/src/modules/orders/components/blocks/CardOrderVar1.vue +1 -1
- package/src/modules/orders/controllers/orders.controller.js +2 -4
- package/src/modules/orders/orders.client.js +2 -2
- package/src/modules/orders/router/customers.router.js +1 -1
- package/src/modules/organizations/CLAUDE.md +259 -0
- package/src/modules/organizations/components/blocks/CardDepartment.vue +1 -22
- package/src/modules/organizations/components/blocks/Socials.vue +1 -1
- package/src/modules/organizations/components/elements/ButtonToggleMembership.vue +3 -3
- package/src/modules/organizations/components/forms/AddExistingMembersForm.vue +191 -0
- package/src/modules/organizations/components/forms/DepartmentForm.vue +390 -0
- package/src/modules/organizations/components/forms/InviteForm.vue +81 -0
- package/src/modules/organizations/components/pages/Department.vue +10 -10
- package/src/modules/organizations/components/pages/DepartmentEdit.vue +8 -8
- package/src/modules/organizations/components/pages/Members.vue +265 -171
- package/src/modules/organizations/components/pages/Organization.new.vue +172 -183
- package/src/modules/organizations/components/pages/Organization.vue +6 -6
- package/src/modules/organizations/components/pages/OrganizationEdit.vue +1 -1
- package/src/modules/organizations/components/pages/Organizations.vue +1 -1
- package/src/modules/organizations/components/sections/Organizations.vue +2 -2
- package/src/modules/organizations/components/sections/Publics.vue +4 -4
- package/src/modules/organizations/configs/navigation.organization.config.js +40 -39
- package/src/modules/organizations/controllers/departments.controller.js +53 -34
- package/src/modules/organizations/controllers/invites.controller.js +44 -5
- package/src/modules/organizations/controllers/memberships.controller.js +43 -4
- package/src/modules/organizations/organizations.client.js +24 -15
- package/src/modules/organizations/router/departments.router.js +0 -18
- package/src/modules/organizations/routes/departments.routes.js +6 -8
- package/src/modules/organizations/routes/invites.routes.js +6 -4
- package/src/modules/organizations/routes/memberships.routes.js +6 -5
- package/src/modules/organizations/routes/organizations.routes.js +1 -1
- package/src/modules/organizations/store/departments.store.js +5 -0
- package/src/modules/organizations/store/invites.store.js +5 -0
- package/src/modules/organizations/store/memberships.store.js +23 -0
- package/src/modules/products/components/pages/Products.vue +0 -1
- package/src/modules/spots/components/blocks/CardSpot.vue +1 -1
- package/src/modules/spots/components/pages/Spots.vue +3 -203
- package/src/styles/base/all.scss +0 -15
- package/src/styles/responsive.scss +1 -31
- package/src/styles/typography.scss +20 -5
- package/dist/main-CSzPfQYR.cjs +0 -11
- package/dist/martyrs/src/components/Address/Address.vue2.cjs.map +0 -1
- package/dist/martyrs/src/components/Chips/Chips.vue.cjs.map +0 -1
- package/dist/martyrs/src/components/Chips/Chips.vue.js.map +0 -1
- package/dist/martyrs/src/components/Dropdown/Dropdown.vue.js.map +0 -1
- package/dist/martyrs/src/components/LocationMarker/LocationMarker.vue2.cjs.map +0 -1
- package/dist/martyrs/src/components/Select/Select.vue2.cjs.map +0 -1
- package/dist/martyrs/src/modules/globals/views/components/blocks/BlockFilter.vue.cjs +0 -76
- package/dist/martyrs/src/modules/globals/views/components/blocks/BlockFilter.vue.cjs.map +0 -1
- package/dist/martyrs/src/modules/globals/views/components/blocks/BlockFilter.vue.js +0 -76
- package/dist/martyrs/src/modules/globals/views/components/blocks/BlockFilter.vue.js.map +0 -1
- package/dist/martyrs/src/modules/inventory/store/ inventory.store.cjs.map +0 -1
- package/dist/martyrs/src/modules/inventory/store/ inventory.store.js.map +0 -1
- package/dist/martyrs/src/modules/organizations/components/pages/DepartmentEdit.vue.cjs +0 -280
- package/dist/martyrs/src/modules/organizations/components/pages/DepartmentEdit.vue.cjs.map +0 -1
- package/dist/martyrs/src/modules/organizations/components/pages/DepartmentEdit.vue.js +0 -280
- package/dist/martyrs/src/modules/organizations/components/pages/DepartmentEdit.vue.js.map +0 -1
- package/dist/martyrs/src/modules/organizations/store/departments.cjs +0 -121
- package/dist/martyrs/src/modules/organizations/store/departments.cjs.map +0 -1
- package/dist/martyrs/src/modules/organizations/store/departments.js +0 -121
- package/dist/martyrs/src/modules/organizations/store/departments.js.map +0 -1
- package/dist/martyrs/src/modules/organizations/store/invites.cjs +0 -64
- package/dist/martyrs/src/modules/organizations/store/invites.cjs.map +0 -1
- package/dist/martyrs/src/modules/organizations/store/invites.js +0 -64
- package/dist/martyrs/src/modules/organizations/store/invites.js.map +0 -1
- package/dist/martyrs/src/modules/organizations/store/memberships.cjs +0 -87
- package/dist/martyrs/src/modules/organizations/store/memberships.cjs.map +0 -1
- package/dist/martyrs/src/modules/organizations/store/memberships.js +0 -87
- package/dist/martyrs/src/modules/organizations/store/memberships.js.map +0 -1
- package/src/modules/globals/controllers/classes/globals.websocket.ws.js +0 -102
- package/src/modules/globals/views/components/blocks/BlockFilter.vue +0 -60
- package/src/modules/inventory/docs/README.md +0 -291
- package/src/modules/inventory/models/stock.balance.model.js +0 -43
- package/src/modules/inventory/services/inventory.crud.js +0 -710
- package/src/modules/inventory/tests/inventory.test.js +0 -281
- package/src/modules/organizations/store/departments.js +0 -137
- package/src/modules/organizations/store/invites.js +0 -76
- package/src/modules/organizations/store/memberships.js +0 -110
|
@@ -1,281 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Inventory Module Integration Tests
|
|
3
|
-
* Tests for StockAdjustment, StockBalance, StockAvailability, and StockAudit
|
|
4
|
-
* Uses real database data - no mocks
|
|
5
|
-
*/
|
|
6
|
-
|
|
7
|
-
import { describe, test, expect, beforeAll, afterAll } from '@jest/globals';
|
|
8
|
-
import mongoose from 'mongoose';
|
|
9
|
-
import request from 'supertest';
|
|
10
|
-
|
|
11
|
-
// Import the main app
|
|
12
|
-
import app from '../../../app.js'; // Adjust path as needed
|
|
13
|
-
|
|
14
|
-
// Test configuration
|
|
15
|
-
const TEST_CONFIG = {
|
|
16
|
-
timeout: 30000,
|
|
17
|
-
storage: null, // Will be set from real data
|
|
18
|
-
product: null, // Will be set from real data
|
|
19
|
-
variant: null, // Will be set from real data
|
|
20
|
-
organization: null, // Will be set from real data
|
|
21
|
-
user: null, // Will be set from real data
|
|
22
|
-
authToken: null // Will be set from login
|
|
23
|
-
};
|
|
24
|
-
|
|
25
|
-
describe('Inventory Module Integration Tests', () => {
|
|
26
|
-
beforeAll(async () => {
|
|
27
|
-
// Ensure database connection
|
|
28
|
-
if (mongoose.connection.readyState !== 1) {
|
|
29
|
-
await mongoose.connect(process.env.MONGODB_URI || 'mongodb://localhost:27017/test');
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
// Get real test data from database
|
|
33
|
-
const spotDoc = await mongoose.connection.db.collection('spots').findOne({});
|
|
34
|
-
if (spotDoc) TEST_CONFIG.storage = spotDoc._id;
|
|
35
|
-
|
|
36
|
-
const productDoc = await mongoose.connection.db.collection('products').findOne({});
|
|
37
|
-
if (productDoc) TEST_CONFIG.product = productDoc._id;
|
|
38
|
-
|
|
39
|
-
const variantDoc = await mongoose.connection.db.collection('variants').findOne({});
|
|
40
|
-
if (variantDoc) TEST_CONFIG.variant = variantDoc._id;
|
|
41
|
-
|
|
42
|
-
const orgDoc = await mongoose.connection.db.collection('organizations').findOne({});
|
|
43
|
-
if (orgDoc) TEST_CONFIG.organization = orgDoc._id;
|
|
44
|
-
|
|
45
|
-
const userDoc = await mongoose.connection.db.collection('users').findOne({});
|
|
46
|
-
if (userDoc) TEST_CONFIG.user = userDoc._id;
|
|
47
|
-
|
|
48
|
-
// TODO: Add authentication setup here if needed
|
|
49
|
-
// TEST_CONFIG.authToken = await getAuthToken();
|
|
50
|
-
|
|
51
|
-
console.log('Test configuration:', {
|
|
52
|
-
storage: !!TEST_CONFIG.storage,
|
|
53
|
-
product: !!TEST_CONFIG.product,
|
|
54
|
-
variant: !!TEST_CONFIG.variant,
|
|
55
|
-
organization: !!TEST_CONFIG.organization,
|
|
56
|
-
user: !!TEST_CONFIG.user
|
|
57
|
-
});
|
|
58
|
-
}, TEST_CONFIG.timeout);
|
|
59
|
-
|
|
60
|
-
describe('StockAdjustment API', () => {
|
|
61
|
-
let createdAdjustmentId = null;
|
|
62
|
-
|
|
63
|
-
test('POST /api/inventory/adjustments/create - Create stock adjustment', async () => {
|
|
64
|
-
if (!TEST_CONFIG.product || !TEST_CONFIG.storage) {
|
|
65
|
-
console.warn('Skipping test: Missing required test data');
|
|
66
|
-
return;
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
const adjustmentData = {
|
|
70
|
-
product: TEST_CONFIG.product,
|
|
71
|
-
variant: TEST_CONFIG.variant,
|
|
72
|
-
storage: TEST_CONFIG.storage,
|
|
73
|
-
quantity: 10,
|
|
74
|
-
reason: 'restock',
|
|
75
|
-
comment: 'Test restock adjustment',
|
|
76
|
-
owner: {
|
|
77
|
-
type: 'organization',
|
|
78
|
-
target: TEST_CONFIG.organization
|
|
79
|
-
}
|
|
80
|
-
};
|
|
81
|
-
|
|
82
|
-
const response = await request(app)
|
|
83
|
-
.post('/api/inventory/adjustments/create')
|
|
84
|
-
.send(adjustmentData)
|
|
85
|
-
.expect(201);
|
|
86
|
-
|
|
87
|
-
expect(response.body).toHaveProperty('_id');
|
|
88
|
-
expect(response.body.quantity).toBe(10);
|
|
89
|
-
expect(response.body.reason).toBe('restock');
|
|
90
|
-
|
|
91
|
-
createdAdjustmentId = response.body._id;
|
|
92
|
-
});
|
|
93
|
-
|
|
94
|
-
test('GET /api/inventory/adjustments - Read stock adjustments', async () => {
|
|
95
|
-
const response = await request(app)
|
|
96
|
-
.get('/api/inventory/adjustments')
|
|
97
|
-
.query({
|
|
98
|
-
limit: 10,
|
|
99
|
-
...(TEST_CONFIG.product && { product: TEST_CONFIG.product })
|
|
100
|
-
})
|
|
101
|
-
.expect(200);
|
|
102
|
-
|
|
103
|
-
expect(Array.isArray(response.body)).toBe(true);
|
|
104
|
-
if (response.body.length > 0) {
|
|
105
|
-
expect(response.body[0]).toHaveProperty('_id');
|
|
106
|
-
expect(response.body[0]).toHaveProperty('quantity');
|
|
107
|
-
expect(response.body[0]).toHaveProperty('reason');
|
|
108
|
-
}
|
|
109
|
-
});
|
|
110
|
-
});
|
|
111
|
-
|
|
112
|
-
describe('StockBalance API', () => {
|
|
113
|
-
test('GET /api/inventory/balance - Read stock balances', async () => {
|
|
114
|
-
const response = await request(app)
|
|
115
|
-
.get('/api/inventory/balance')
|
|
116
|
-
.query({
|
|
117
|
-
limit: 10,
|
|
118
|
-
...(TEST_CONFIG.storage && { storage: TEST_CONFIG.storage })
|
|
119
|
-
})
|
|
120
|
-
.expect(200);
|
|
121
|
-
|
|
122
|
-
expect(Array.isArray(response.body)).toBe(true);
|
|
123
|
-
if (response.body.length > 0) {
|
|
124
|
-
expect(response.body[0]).toHaveProperty('quantity');
|
|
125
|
-
expect(response.body[0]).toHaveProperty('product');
|
|
126
|
-
expect(response.body[0]).toHaveProperty('storage');
|
|
127
|
-
}
|
|
128
|
-
});
|
|
129
|
-
});
|
|
130
|
-
|
|
131
|
-
describe('StockAvailability API', () => {
|
|
132
|
-
test('GET /api/inventory/availability - Read stock availability', async () => {
|
|
133
|
-
const response = await request(app)
|
|
134
|
-
.get('/api/inventory/availability')
|
|
135
|
-
.query({
|
|
136
|
-
limit: 10,
|
|
137
|
-
details: 'true',
|
|
138
|
-
...(TEST_CONFIG.storage && { storage: TEST_CONFIG.storage })
|
|
139
|
-
})
|
|
140
|
-
.expect(200);
|
|
141
|
-
|
|
142
|
-
expect(Array.isArray(response.body)).toBe(true);
|
|
143
|
-
if (response.body.length > 0) {
|
|
144
|
-
expect(response.body[0]).toHaveProperty('available');
|
|
145
|
-
expect(response.body[0]).toHaveProperty('quantity');
|
|
146
|
-
expect(response.body[0]).toHaveProperty('product');
|
|
147
|
-
}
|
|
148
|
-
});
|
|
149
|
-
});
|
|
150
|
-
|
|
151
|
-
describe('StockAudit API', () => {
|
|
152
|
-
let createdInventoryId = null;
|
|
153
|
-
|
|
154
|
-
test('POST /api/inventory/audits/create - Create inventory audit', async () => {
|
|
155
|
-
if (!TEST_CONFIG.storage || !TEST_CONFIG.product) {
|
|
156
|
-
console.warn('Skipping test: Missing required test data');
|
|
157
|
-
return;
|
|
158
|
-
}
|
|
159
|
-
|
|
160
|
-
const inventoryData = {
|
|
161
|
-
storage: TEST_CONFIG.storage,
|
|
162
|
-
comment: 'Test inventory audit',
|
|
163
|
-
positions: [{
|
|
164
|
-
product: TEST_CONFIG.product,
|
|
165
|
-
variant: TEST_CONFIG.variant,
|
|
166
|
-
storage: TEST_CONFIG.storage,
|
|
167
|
-
quantity: 5,
|
|
168
|
-
reason: 'stocktake',
|
|
169
|
-
comment: 'Test stocktake position'
|
|
170
|
-
}],
|
|
171
|
-
owner: {
|
|
172
|
-
type: 'organization',
|
|
173
|
-
target: TEST_CONFIG.organization
|
|
174
|
-
}
|
|
175
|
-
};
|
|
176
|
-
|
|
177
|
-
const response = await request(app)
|
|
178
|
-
.post('/api/inventory/audits/create')
|
|
179
|
-
.send(inventoryData)
|
|
180
|
-
.expect(201);
|
|
181
|
-
|
|
182
|
-
expect(response.body).toHaveProperty('_id');
|
|
183
|
-
expect(response.body.status).toBe('draft');
|
|
184
|
-
expect(response.body.storage.toString()).toBe(TEST_CONFIG.storage.toString());
|
|
185
|
-
|
|
186
|
-
createdInventoryId = response.body._id;
|
|
187
|
-
});
|
|
188
|
-
|
|
189
|
-
test('GET /api/inventory/audits - Read inventory audits', async () => {
|
|
190
|
-
const response = await request(app)
|
|
191
|
-
.get('/api/inventory/audits')
|
|
192
|
-
.query({ limit: 10 })
|
|
193
|
-
.expect(200);
|
|
194
|
-
|
|
195
|
-
expect(Array.isArray(response.body)).toBe(true);
|
|
196
|
-
if (response.body.length > 0) {
|
|
197
|
-
expect(response.body[0]).toHaveProperty('_id');
|
|
198
|
-
expect(response.body[0]).toHaveProperty('status');
|
|
199
|
-
expect(response.body[0]).toHaveProperty('storage');
|
|
200
|
-
}
|
|
201
|
-
});
|
|
202
|
-
|
|
203
|
-
test('POST /api/inventory/audits/complete - Complete inventory audit', async () => {
|
|
204
|
-
if (!createdInventoryId) {
|
|
205
|
-
console.warn('Skipping test: No inventory to complete');
|
|
206
|
-
return;
|
|
207
|
-
}
|
|
208
|
-
|
|
209
|
-
const response = await request(app)
|
|
210
|
-
.post('/api/inventory/audits/complete')
|
|
211
|
-
.send({ _id: createdInventoryId })
|
|
212
|
-
.expect(200);
|
|
213
|
-
|
|
214
|
-
expect(response.body).toHaveProperty('_id');
|
|
215
|
-
expect(response.body.status).toBe('completed');
|
|
216
|
-
});
|
|
217
|
-
});
|
|
218
|
-
|
|
219
|
-
describe('Data Consistency Tests', () => {
|
|
220
|
-
test('Adjustment creation updates balance and availability', async () => {
|
|
221
|
-
if (!TEST_CONFIG.product || !TEST_CONFIG.storage) {
|
|
222
|
-
console.warn('Skipping test: Missing required test data');
|
|
223
|
-
return;
|
|
224
|
-
}
|
|
225
|
-
|
|
226
|
-
// Get initial balance
|
|
227
|
-
const initialBalance = await request(app)
|
|
228
|
-
.get('/api/inventory/balance')
|
|
229
|
-
.query({
|
|
230
|
-
product: TEST_CONFIG.product,
|
|
231
|
-
storage: TEST_CONFIG.storage
|
|
232
|
-
});
|
|
233
|
-
|
|
234
|
-
const initialQuantity = initialBalance.body[0]?.quantity || 0;
|
|
235
|
-
|
|
236
|
-
// Create adjustment
|
|
237
|
-
const adjustmentData = {
|
|
238
|
-
product: TEST_CONFIG.product,
|
|
239
|
-
variant: TEST_CONFIG.variant,
|
|
240
|
-
storage: TEST_CONFIG.storage,
|
|
241
|
-
quantity: 15,
|
|
242
|
-
reason: 'restock',
|
|
243
|
-
comment: 'Consistency test adjustment'
|
|
244
|
-
};
|
|
245
|
-
|
|
246
|
-
await request(app)
|
|
247
|
-
.post('/api/inventory/adjustments/create')
|
|
248
|
-
.send(adjustmentData)
|
|
249
|
-
.expect(201);
|
|
250
|
-
|
|
251
|
-
// Check updated balance
|
|
252
|
-
const updatedBalance = await request(app)
|
|
253
|
-
.get('/api/inventory/balance')
|
|
254
|
-
.query({
|
|
255
|
-
product: TEST_CONFIG.product,
|
|
256
|
-
storage: TEST_CONFIG.storage
|
|
257
|
-
});
|
|
258
|
-
|
|
259
|
-
const newQuantity = updatedBalance.body[0]?.quantity || 0;
|
|
260
|
-
expect(newQuantity).toBe(initialQuantity + 15);
|
|
261
|
-
|
|
262
|
-
// Check availability is recalculated
|
|
263
|
-
const availability = await request(app)
|
|
264
|
-
.get('/api/inventory/availability')
|
|
265
|
-
.query({
|
|
266
|
-
product: TEST_CONFIG.product,
|
|
267
|
-
storage: TEST_CONFIG.storage
|
|
268
|
-
});
|
|
269
|
-
|
|
270
|
-
expect(availability.body.length).toBeGreaterThan(0);
|
|
271
|
-
expect(availability.body[0]).toHaveProperty('available');
|
|
272
|
-
});
|
|
273
|
-
});
|
|
274
|
-
|
|
275
|
-
afterAll(async () => {
|
|
276
|
-
// Cleanup test data if needed
|
|
277
|
-
if (mongoose.connection.readyState === 1) {
|
|
278
|
-
await mongoose.disconnect();
|
|
279
|
-
}
|
|
280
|
-
});
|
|
281
|
-
});
|
|
@@ -1,137 +0,0 @@
|
|
|
1
|
-
// Vue modules
|
|
2
|
-
import { reactive, watch } from 'vue';
|
|
3
|
-
// Globals
|
|
4
|
-
import { setError } from '@martyrs/src/modules/globals/views/store/globals.js';
|
|
5
|
-
// Setup Axios
|
|
6
|
-
import $axios from '@martyrs/src/modules/globals/views/utils/axios-instance.js';
|
|
7
|
-
// State
|
|
8
|
-
const state = reactive({
|
|
9
|
-
departments: [],
|
|
10
|
-
department: {
|
|
11
|
-
organization: '',
|
|
12
|
-
profile: {
|
|
13
|
-
photo: '',
|
|
14
|
-
name: '',
|
|
15
|
-
description: '',
|
|
16
|
-
categories: [],
|
|
17
|
-
},
|
|
18
|
-
address: '',
|
|
19
|
-
location: {
|
|
20
|
-
lat: null,
|
|
21
|
-
lng: null,
|
|
22
|
-
},
|
|
23
|
-
worktime: [],
|
|
24
|
-
delivery: [],
|
|
25
|
-
payment: [],
|
|
26
|
-
members: [],
|
|
27
|
-
subdepartments: [],
|
|
28
|
-
|
|
29
|
-
// Accesses
|
|
30
|
-
hidden: false,
|
|
31
|
-
accesses: {
|
|
32
|
-
events: {
|
|
33
|
-
read: false,
|
|
34
|
-
edit: false,
|
|
35
|
-
delete: false,
|
|
36
|
-
},
|
|
37
|
-
gallery: {
|
|
38
|
-
read: false,
|
|
39
|
-
edit: false,
|
|
40
|
-
delete: false,
|
|
41
|
-
},
|
|
42
|
-
products: {
|
|
43
|
-
read: false,
|
|
44
|
-
edit: false,
|
|
45
|
-
delete: false,
|
|
46
|
-
},
|
|
47
|
-
orders: {
|
|
48
|
-
read: false,
|
|
49
|
-
confirm: false, // This property was added based on the schema
|
|
50
|
-
delete: false,
|
|
51
|
-
},
|
|
52
|
-
departments: {
|
|
53
|
-
read: false,
|
|
54
|
-
edit: false,
|
|
55
|
-
delete: false,
|
|
56
|
-
},
|
|
57
|
-
},
|
|
58
|
-
},
|
|
59
|
-
error: null,
|
|
60
|
-
});
|
|
61
|
-
|
|
62
|
-
// Methods
|
|
63
|
-
const actions = {
|
|
64
|
-
async readOne(departmentID) {
|
|
65
|
-
try {
|
|
66
|
-
const response = await $axios.get(`/api/departments/get/${departmentID}`);
|
|
67
|
-
state.department = response.data;
|
|
68
|
-
state.error = null;
|
|
69
|
-
return response.data; // Return the response data
|
|
70
|
-
} catch (error) {
|
|
71
|
-
setError(error);
|
|
72
|
-
return null; // Return null or appropriate error response
|
|
73
|
-
}
|
|
74
|
-
},
|
|
75
|
-
|
|
76
|
-
async read(options = {}) {
|
|
77
|
-
try {
|
|
78
|
-
const response = await $axios.get(`/api/departments/read`, { params: options });
|
|
79
|
-
|
|
80
|
-
console.log('Response:', response);
|
|
81
|
-
state.departments = response.data;
|
|
82
|
-
state.error = null;
|
|
83
|
-
return response.data; // Return the response data
|
|
84
|
-
} catch (error) {
|
|
85
|
-
console.log(error);
|
|
86
|
-
setError(error);
|
|
87
|
-
return null; // Return null or appropriate error response
|
|
88
|
-
}
|
|
89
|
-
},
|
|
90
|
-
|
|
91
|
-
async create(organizationId, department) {
|
|
92
|
-
try {
|
|
93
|
-
const response = await $axios.post(`/api/departments/${organizationId}/create`, department);
|
|
94
|
-
state.error = null;
|
|
95
|
-
return response.data; // Return the response data
|
|
96
|
-
} catch (error) {
|
|
97
|
-
setError(error);
|
|
98
|
-
return null; // Return null or appropriate error response
|
|
99
|
-
}
|
|
100
|
-
},
|
|
101
|
-
|
|
102
|
-
async update(organizationId, department) {
|
|
103
|
-
try {
|
|
104
|
-
const response = await $axios.post(`/api/departments/${organizationId}/update`, department);
|
|
105
|
-
state.error = null;
|
|
106
|
-
return response; // Return the response for update operations, might not have body data
|
|
107
|
-
} catch (error) {
|
|
108
|
-
setError(error);
|
|
109
|
-
return null; // Return null or appropriate error response
|
|
110
|
-
}
|
|
111
|
-
},
|
|
112
|
-
|
|
113
|
-
async delete(organizationId, departmentId) {
|
|
114
|
-
try {
|
|
115
|
-
await $axios.delete(`/api/departments/${organizationId}/delete`, {
|
|
116
|
-
data: { _id: departmentId },
|
|
117
|
-
});
|
|
118
|
-
state.error = null;
|
|
119
|
-
return true; // Return true to indicate successful deletion
|
|
120
|
-
} catch (error) {
|
|
121
|
-
setError(error);
|
|
122
|
-
return false; // Return false or appropriate error response
|
|
123
|
-
}
|
|
124
|
-
},
|
|
125
|
-
};
|
|
126
|
-
|
|
127
|
-
// History
|
|
128
|
-
const history = [];
|
|
129
|
-
history.push(state);
|
|
130
|
-
|
|
131
|
-
// Watch
|
|
132
|
-
watch(state, (newState, oldState) => {
|
|
133
|
-
history.push(newState);
|
|
134
|
-
});
|
|
135
|
-
|
|
136
|
-
// Module Export
|
|
137
|
-
export { actions, state };
|
|
@@ -1,76 +0,0 @@
|
|
|
1
|
-
// Dependencies
|
|
2
|
-
import axios from 'axios';
|
|
3
|
-
// Vue modules
|
|
4
|
-
import { reactive, watch } from 'vue';
|
|
5
|
-
// Globals
|
|
6
|
-
import { setError } from '@martyrs/src/modules/globals/views/store/globals.js';
|
|
7
|
-
// State
|
|
8
|
-
import * as auth from '@martyrs/src/modules/auth/views/store/auth.js';
|
|
9
|
-
// Setup Axios
|
|
10
|
-
const $axios = axios.create({ baseURL: process.env.API_URL, withCredentials: true });
|
|
11
|
-
// State
|
|
12
|
-
const state = reactive({
|
|
13
|
-
invites: [],
|
|
14
|
-
invite: null,
|
|
15
|
-
error: null,
|
|
16
|
-
});
|
|
17
|
-
// Methods
|
|
18
|
-
const actions = {
|
|
19
|
-
async read(options) {
|
|
20
|
-
try {
|
|
21
|
-
const response = await $axios.get(`/api/invites/${options.owner}`);
|
|
22
|
-
state.invites = response.data;
|
|
23
|
-
state.error = null;
|
|
24
|
-
return response.data;
|
|
25
|
-
} catch (error) {
|
|
26
|
-
setError(error);
|
|
27
|
-
}
|
|
28
|
-
},
|
|
29
|
-
async readOne(inviteId) {
|
|
30
|
-
try {
|
|
31
|
-
const response = await $axios.get(`/api/invites/get/${inviteId}`);
|
|
32
|
-
state.invite = response.data;
|
|
33
|
-
auth.state.user.phone = response.data.phone;
|
|
34
|
-
auth.state.user.email = response.data.email;
|
|
35
|
-
} catch (error) {
|
|
36
|
-
setError(error);
|
|
37
|
-
}
|
|
38
|
-
},
|
|
39
|
-
async create(invites) {
|
|
40
|
-
try {
|
|
41
|
-
const response = await $axios.post(`/api/invites/create`, invites);
|
|
42
|
-
return Promise.resolve(response.data);
|
|
43
|
-
state.error = null;
|
|
44
|
-
} catch (error) {
|
|
45
|
-
setError(error);
|
|
46
|
-
}
|
|
47
|
-
},
|
|
48
|
-
async update(organizationId, membership) {
|
|
49
|
-
try {
|
|
50
|
-
await $axios.put(`/api/invites/update`, membership);
|
|
51
|
-
state.error = null;
|
|
52
|
-
} catch (error) {
|
|
53
|
-
setError(error);
|
|
54
|
-
}
|
|
55
|
-
},
|
|
56
|
-
async delete(inviteID) {
|
|
57
|
-
try {
|
|
58
|
-
await $axios.delete(`/api/invites/delete/${inviteID}`);
|
|
59
|
-
state.error = null;
|
|
60
|
-
} catch (error) {
|
|
61
|
-
setError(error);
|
|
62
|
-
}
|
|
63
|
-
},
|
|
64
|
-
};
|
|
65
|
-
|
|
66
|
-
// History
|
|
67
|
-
const history = [];
|
|
68
|
-
history.push(state);
|
|
69
|
-
|
|
70
|
-
// Watch
|
|
71
|
-
watch(state, (newState, oldState) => {
|
|
72
|
-
history.push(newState);
|
|
73
|
-
});
|
|
74
|
-
|
|
75
|
-
// Module Export
|
|
76
|
-
export { actions, state };
|
|
@@ -1,110 +0,0 @@
|
|
|
1
|
-
// Dependencies
|
|
2
|
-
import axios from 'axios';
|
|
3
|
-
|
|
4
|
-
// Vue modules
|
|
5
|
-
import { reactive, watch } from 'vue';
|
|
6
|
-
|
|
7
|
-
// Globals
|
|
8
|
-
import { setError } from '@martyrs/src/modules/globals/views/store/globals.js';
|
|
9
|
-
|
|
10
|
-
// Setup Axios
|
|
11
|
-
const $axios = axios.create({
|
|
12
|
-
baseURL: process.env.API_URL,
|
|
13
|
-
withCredentials: true,
|
|
14
|
-
});
|
|
15
|
-
|
|
16
|
-
// State
|
|
17
|
-
const state = reactive({
|
|
18
|
-
memberships: [],
|
|
19
|
-
error: null,
|
|
20
|
-
});
|
|
21
|
-
|
|
22
|
-
// Methods
|
|
23
|
-
const actions = {
|
|
24
|
-
async read(options = {}) {
|
|
25
|
-
try {
|
|
26
|
-
const response = await $axios.get(`/api/memberships`, { params: options });
|
|
27
|
-
state.error = null;
|
|
28
|
-
state.memberships = response.data;
|
|
29
|
-
return Promise.resolve(response.data);
|
|
30
|
-
} catch (error) {
|
|
31
|
-
setError(error);
|
|
32
|
-
return Promise.reject(error);
|
|
33
|
-
}
|
|
34
|
-
},
|
|
35
|
-
async create(membership) {
|
|
36
|
-
try {
|
|
37
|
-
const response = await $axios.post(`/api/memberships/create`, membership);
|
|
38
|
-
state.error = null;
|
|
39
|
-
return Promise.resolve(response.data);
|
|
40
|
-
} catch (error) {
|
|
41
|
-
setError(error);
|
|
42
|
-
return Promise.reject(error);
|
|
43
|
-
}
|
|
44
|
-
},
|
|
45
|
-
async update(membership) {
|
|
46
|
-
try {
|
|
47
|
-
const response = await $axios.post(`/api/memberships/update`, membership);
|
|
48
|
-
state.error = null;
|
|
49
|
-
return Promise.resolve(response.data);
|
|
50
|
-
} catch (error) {
|
|
51
|
-
setError(error);
|
|
52
|
-
return Promise.reject(error);
|
|
53
|
-
}
|
|
54
|
-
},
|
|
55
|
-
async delete(membership) {
|
|
56
|
-
try {
|
|
57
|
-
const response = await $axios.post(`/api/memberships/delete`, membership);
|
|
58
|
-
state.error = null;
|
|
59
|
-
return Promise.resolve(response.data);
|
|
60
|
-
} catch (error) {
|
|
61
|
-
setError(error);
|
|
62
|
-
return Promise.reject(error);
|
|
63
|
-
}
|
|
64
|
-
},
|
|
65
|
-
};
|
|
66
|
-
|
|
67
|
-
const mutations = {
|
|
68
|
-
handleMembershipUpdate(data, membership, status, target, statusName, statusNumber) {
|
|
69
|
-
let entity;
|
|
70
|
-
|
|
71
|
-
console.log('public is', data);
|
|
72
|
-
console.log('isArray', Array.isArray(data));
|
|
73
|
-
|
|
74
|
-
if (Array.isArray(data)) {
|
|
75
|
-
// Если data - это массив, ищем в нем сущность
|
|
76
|
-
entity = data.find(o => o._id === membership.target);
|
|
77
|
-
} else if (typeof data === 'object' && data._id === membership.target) {
|
|
78
|
-
// Если data - это объект и он соответствует целевой сущности, присваиваем его
|
|
79
|
-
entity = data;
|
|
80
|
-
}
|
|
81
|
-
|
|
82
|
-
if (entity) {
|
|
83
|
-
entity[statusName] = status;
|
|
84
|
-
|
|
85
|
-
if (status) {
|
|
86
|
-
entity.memberships.push(membership);
|
|
87
|
-
entity[statusNumber] += 1;
|
|
88
|
-
} else {
|
|
89
|
-
const index = entity.memberships.findIndex(m => m._id === membership._id);
|
|
90
|
-
|
|
91
|
-
if (index !== -1) {
|
|
92
|
-
entity.memberships.splice(index, 1);
|
|
93
|
-
entity[statusNumber] -= 1;
|
|
94
|
-
}
|
|
95
|
-
}
|
|
96
|
-
}
|
|
97
|
-
},
|
|
98
|
-
};
|
|
99
|
-
|
|
100
|
-
// History
|
|
101
|
-
const history = [];
|
|
102
|
-
history.push(state);
|
|
103
|
-
|
|
104
|
-
// Watch
|
|
105
|
-
watch(state, newState => {
|
|
106
|
-
history.push(newState);
|
|
107
|
-
});
|
|
108
|
-
|
|
109
|
-
// Module Export
|
|
110
|
-
export { actions, mutations, state };
|