stable

Clone or download

Read-only

Convert lock rest querier to typescript

part of request #18402 Convert document plugin into typescript This patch extract rest querier lock 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: I5dd8671662f46bcbf3403693b91a1e6751dd2b95

Modified Files

Name
A plugins/document/scripts/document/api/lock-rest-querier.test.ts +118 −0 Go to diff View file
A plugins/document/scripts/document/api/lock-rest-querier.ts +114 −0 Go to diff View file
M plugins/document/scripts/document/api/rest-querier.js +0 −90 Go to diff View file
M plugins/document/scripts/document/components/Folder/DropDown/LockItem.test.js +1 −1 Go to diff View file
M plugins/document/scripts/document/components/Folder/DropDown/LockItem.vue +1 −1 Go to diff View file
M plugins/document/scripts/document/components/Folder/DropDown/UnlockItem.test.js +1 −1 Go to diff View file
M plugins/document/scripts/document/components/Folder/DropDown/UnlockItem.vue +1 −1 Go to diff View file
M plugins/document/scripts/document/store/actions.js +0 −68 Go to diff View file
M plugins/document/scripts/document/store/actions.test.js +0 −174 Go to diff View file
M plugins/document/scripts/document/store/index.js +2 −0 Go to diff View file
A plugins/document/scripts/document/store/lock/lock-actions.js +91 −0 Go to diff View file
A plugins/document/scripts/document/store/lock/lock-actions.test.js +190 −0 Go to diff View file
A plugins/document/scripts/document/store/lock/lock-mutations.js +22 −0 Go to diff View file
A plugins/document/scripts/document/store/lock/module.js +27 −0 Go to diff View file
M plugins/document/scripts/document/store/mutations-upload.js +0 −5 Go to diff View file
M plugins/document/scripts/document/type.ts +17 −0 Go to diff View file