stable

Clone or download

Read-only

refactor: using provide/inject instead of slots and props

For read only document we used slots to manage sections display and skeleton. But for edit mode, it's not efficient, so now we are using provide/inject to manage sections and loading state like a store. It's a requirement for the others development on edit mode. Part of story #37543: edit ArtifactsAsDocument sections Change-Id: I4f723adf7a3dcfb6a1825a68fc033131a55fa7f0

Modified Files

Name
M plugins/artidoc/scripts/artidoc/package.json +1 βˆ’0 Go to diff View file
M plugins/artidoc/scripts/artidoc/pnpm-lock.yaml +3 βˆ’0 Go to diff View file
M plugins/artidoc/scripts/artidoc/src/App.test.ts +10 βˆ’24 Go to diff View file
M plugins/artidoc/scripts/artidoc/src/App.vue +14 βˆ’14 Go to diff View file
M plugins/artidoc/scripts/artidoc/src/components/DocumentContent.test.ts +2 βˆ’24 Go to diff View file
M plugins/artidoc/scripts/artidoc/src/components/DocumentContent.vue +3 βˆ’27 Go to diff View file
M plugins/artidoc/scripts/artidoc/src/components/DocumentLayout.test.ts +13 βˆ’12 Go to diff View file
M plugins/artidoc/scripts/artidoc/src/components/DocumentLayout.vue +11 βˆ’3 Go to diff View file
A plugins/artidoc/scripts/artidoc/src/components/SectionContent.test.ts +74 βˆ’0 Go to diff View file
A plugins/artidoc/scripts/artidoc/src/components/SectionContent.vue +57 βˆ’0 Go to diff View file
M plugins/artidoc/scripts/artidoc/src/components/SectionDescription.test.ts +22 βˆ’8 Go to diff View file
M plugins/artidoc/scripts/artidoc/src/components/SectionDescription.vue +8 βˆ’4 Go to diff View file
R plugins/artidoc/scripts/artidoc/src/views/DocumentViewSkeleton.test.ts Go to diff View file
A plugins/artidoc/scripts/artidoc/src/components/SectionDescriptionSkeleton.vue +33 βˆ’0 Go to diff View file
M plugins/artidoc/scripts/artidoc/src/components/SectionTitleWithArtifactId.test.ts +17 βˆ’16 Go to diff View file
M plugins/artidoc/scripts/artidoc/src/components/SectionTitleWithArtifactId.vue +14 βˆ’1 Go to diff View file
A plugins/artidoc/scripts/artidoc/src/components/SectionTitleWithArtifactIdSkeleton.test.ts +31 βˆ’0 Go to diff View file
A plugins/artidoc/scripts/artidoc/src/components/SectionTitleWithArtifactIdSkeleton.vue +25 βˆ’0 Go to diff View file
M plugins/artidoc/scripts/artidoc/src/components/TableOfContents.test.ts +55 βˆ’39 Go to diff View file
M plugins/artidoc/scripts/artidoc/src/components/TableOfContents.vue +4 βˆ’4 Go to diff View file
M plugins/artidoc/scripts/artidoc/src/helpers/artidoc-section.factory.ts +2 βˆ’2 Go to diff View file
M plugins/artidoc/scripts/artidoc/src/index.ts +6 βˆ’0 Go to diff View file
A plugins/artidoc/scripts/artidoc/src/stores/sectionsStoreKey.ts +22 βˆ’0 Go to diff View file
A plugins/artidoc/scripts/artidoc/src/stores/useSectionsStore.ts +68 βˆ’0 Go to diff View file
M plugins/artidoc/scripts/artidoc/src/views/DocumentView.test.ts +26 βˆ’29 Go to diff View file
M plugins/artidoc/scripts/artidoc/src/views/DocumentView.vue +3 βˆ’42 Go to diff View file
D plugins/artidoc/scripts/artidoc/src/views/DocumentViewSkeleton.vue +0 βˆ’65 Go to diff View file