stable

Clone or download

Read-only

Convert document permissions rest querier to typescript

part of request #18402 Convert document plugin into typescript This patch extract rest permissions functions into typescript and add missing unit tests. It also split actions into a new substore I can not convert the substore for now, as it still depends on javascript code Change-Id: Idd5e8facdd9c6d5befa14fb744412ab5a1c302c9

Modified Files

Name
A plugins/document/scripts/document/api/permissions-rest-querier.test.ts +109 −0 Go to diff View file
A plugins/document/scripts/document/api/permissions-rest-querier.ts +84 −0 Go to diff View file
M plugins/document/scripts/document/api/rest-querier.js +1 −61 Go to diff View file
M plugins/document/scripts/document/api/rest-querier.test.js +0 −81 Go to diff View file
M plugins/document/scripts/document/components/Folder/ModalNewItem/NewFolderModal.test.js +4 −2 Go to diff View file
M plugins/document/scripts/document/components/Folder/ModalNewItem/NewFolderModal.vue +6 −2 Go to diff View file
M plugins/document/scripts/document/components/Folder/ModalNewItem/NewItemModal.test.js +4 −2 Go to diff View file
M plugins/document/scripts/document/components/Folder/ModalNewItem/NewItemModal.vue +5 −2 Go to diff View file
M plugins/document/scripts/document/components/Folder/Permissions/PermissionsUpdateModal.test.js +7 −5 Go to diff View file
M plugins/document/scripts/document/components/Folder/Permissions/PermissionsUpdateModal.vue +10 −3 Go to diff View file
M plugins/document/scripts/document/store/actions.js +0 −59 Go to diff View file
M plugins/document/scripts/document/store/actions.test.js +0 −234 Go to diff View file
M plugins/document/scripts/document/store/index.js +2 −0 Go to diff View file
M plugins/document/scripts/document/store/mutations-global.js +0 −5 Go to diff View file
M plugins/document/scripts/document/store/mutations-global.test.js +0 −10 Go to diff View file
A plugins/document/scripts/document/store/permissions/module.js +29 −0 Go to diff View file
A plugins/document/scripts/document/store/permissions/permissions-actions.js +89 −0 Go to diff View file
A plugins/document/scripts/document/store/permissions/permissions-actions.test.js +293 −0 Go to diff View file
A plugins/document/scripts/document/store/permissions/permissions-default-state.js +24 −0 Go to diff View file
A plugins/document/scripts/document/store/permissions/permissions-mutations.js +22 −0 Go to diff View file
A plugins/document/scripts/document/store/permissions/permissions-mutations.test.js +32 −0 Go to diff View file
M plugins/document/scripts/document/type.ts +15 −0 Go to diff View file