stable

Clone or download

Read-only

Extract preferencies from rest-querier

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

Modified Files

Name
A plugins/document/scripts/document/api/preferencies-rest-querier.ts +120 −0 Go to diff View file
A plugins/document/scripts/document/api/preferencies-test-querier.test.ts +78 −0 Go to diff View file
M plugins/document/scripts/document/api/rest-querier.js +1 −78 Go to diff View file
M plugins/document/scripts/document/api/rest-querier.test.js +8 −60 Go to diff View file
M plugins/document/scripts/document/components/Folder/ItemDisplay/DisplayEmbedded.vue +2 −2 Go to diff View file
M plugins/document/scripts/document/components/Folder/ItemDisplay/DisplayEmbeddedContent.test.js +9 −0 Go to diff View file
M plugins/document/scripts/document/components/Folder/ItemDisplay/DisplayEmbeddedContent.vue +2 −1 Go to diff View file
M plugins/document/scripts/document/components/Folder/ItemDisplay/EmbeddedFileEditionSwitcher.test.js +14 −6 Go to diff View file
M plugins/document/scripts/document/components/Folder/ItemDisplay/EmbeddedFileEditionSwitcher.vue +10 −3 Go to diff View file
M plugins/document/scripts/document/components/Folder/ItemTitle/FolderCellTitle.test.js +12 −12 Go to diff View file
M plugins/document/scripts/document/components/Folder/ItemTitle/FolderCellTitle.vue +4 −1 Go to diff View file
M plugins/document/scripts/document/components/Folder/SwitchToOldUI.vue +1 −1 Go to diff View file
M plugins/document/scripts/document/store/actions.js +0 −76 Go to diff View file
M plugins/document/scripts/document/store/actions.test.js +0 −126 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 −4 Go to diff View file
A plugins/document/scripts/document/store/preferencies/module.js +29 −0 Go to diff View file
A plugins/document/scripts/document/store/preferencies/preferencies-actions.js +101 −0 Go to diff View file
A plugins/document/scripts/document/store/preferencies/preferencies-actions.test.js +148 −0 Go to diff View file
A plugins/document/scripts/document/store/preferencies/preferencies-default-state.js +24 −0 Go to diff View file
A plugins/document/scripts/document/store/preferencies/preferencies-mutations.js +22 −0 Go to diff View file
M plugins/document/scripts/document/store/state.js +0 −1 Go to diff View file