From 96871e3a5f43258053bb1830b33ae07b80d3c3d4 Mon Sep 17 00:00:00 2001 From: Adam Date: Wed, 17 Nov 2021 16:57:43 +0100 Subject: [PATCH] feat: make it compatible with nuxt-typo3 1.0.0 (#33) --- example/nuxt.config.js | 3 + example/package.json | 4 +- example/yarn.lock | 82 ++++------- packages/nuxt-typo3-ce/index.ts | 66 ++++----- packages/nuxt-typo3-ce/jest.config.js | 3 + packages/nuxt-typo3-ce/package.json | 2 +- .../src/components/CeBullets/index.ts | 1 - .../src/components/CeDebug/CeDebug.data.ts | 22 --- .../src/components/CeDebug/CeDebug.spec.js | 16 --- .../src/components/CeDebug/CeDebug.vue | 48 ------- .../src/components/CeDebug/index.ts | 1 - .../src/components/CeDefault/index.ts | 1 - .../src/components/CeDiv/index.ts | 1 - .../components/CeDynamic/CeDynamic.data.ts | 56 -------- .../components/CeDynamic/CeDynamic.spec.js | 22 --- .../components/CeDynamic/CeDynamic.types.ts | 9 -- .../src/components/CeDynamic/CeDynamic.vue | 78 ---------- .../src/components/CeDynamic/index.ts | 1 - .../src/components/CeDynamic/useCeTag.ts | 0 .../src/components/CeFrame/CeFrame.spec.js | 39 ----- .../src/components/CeFrame/CeFrame.vue | 37 ----- .../src/components/CeFrame/index.ts | 1 - .../src/components/CeGallery/CeMediaFile.vue | 49 ------- .../src/components/CeGallery/index.ts | 1 - .../src/components/CeGallery/type/Audio.vue | 20 --- .../src/components/CeGallery/type/Image.vue | 38 ----- .../src/components/CeGallery/type/Video.vue | 25 ---- .../src/components/CeGallery/type/Vimeo.vue | 29 ---- .../src/components/CeGallery/type/Youtube.vue | 27 ---- .../src/components/CeHeader/index.ts | 1 - .../src/components/CeHtml/index.ts | 1 - .../src/components/CeHtmlParser/index.ts | 1 - .../src/components/CeImage/index.ts | 1 - .../src/components/CeLink/CeLink.spec.js | 66 --------- .../src/components/CeLink/CeLink.vue | 59 -------- .../src/components/CeLink/index.ts | 1 - .../CeMenuPages/CeMenuPages.types.ts | 11 -- .../src/components/CeMenuPages/index.ts | 1 - .../components/CeRenderer/CeRenderer.data.ts | 114 --------------- .../components/CeRenderer/CeRenderer.spec.js | 134 ------------------ .../components/CeRenderer/CeRenderer.types.ts | 11 -- .../src/components/CeRenderer/CeRenderer.vue | 61 -------- .../src/components/CeRenderer/index.ts | 1 - .../components/CeShortcut/CeShortcut.spec.js | 32 ----- .../src/components/CeShortcut/CeShortcut.vue | 21 --- .../src/components/CeShortcut/index.ts | 1 - .../src/components/CeTable/index.ts | 1 - .../src/components/CeText/index.ts | 1 - .../src/components/CeTextpic/index.ts | 1 - .../src/components/CeUploads/index.ts | 1 - .../T3CeBullets.data.ts} | 0 .../T3CeBullets.stories.ts} | 8 +- .../T3CeBullets.vue} | 8 +- .../src/components/T3CeBullets/index.ts | 1 + .../T3CeDefault.data.ts} | 0 .../T3CeDefault.spec.js} | 10 +- .../T3CeDefault.vue} | 2 +- .../src/components/T3CeDefault/index.ts | 1 + .../T3CeDiv.stories.ts} | 4 +- .../{CeDiv/CeDiv.vue => T3CeDiv/T3CeDiv.vue} | 4 +- .../src/components/T3CeDiv/index.ts | 1 + .../T3CeGallery.types.ts} | 10 +- .../T3CeGallery.vue} | 30 ++-- .../src/components/T3CeGallery/index.ts | 1 + .../T3CeHeader.data.ts} | 0 .../T3CeHeader.spec.js} | 10 +- .../T3CeHeader.stories.ts} | 16 +-- .../T3CeHeader.types.ts} | 6 +- .../T3CeHeader.vue} | 8 +- .../src/components/T3CeHeader/index.ts | 1 + .../T3CeHtml.data.ts} | 0 .../T3CeHtml.stories.ts} | 12 +- .../CeHtml.vue => T3CeHtml/T3CeHtml.vue} | 6 +- .../src/components/T3CeHtml/index.ts | 1 + .../T3CeHtmlParser.vue} | 4 +- .../src/components/T3CeHtmlParser/index.ts | 1 + .../T3CeImage.data.ts} | 0 .../T3CeImage.stories.ts} | 12 +- .../CeImage.vue => T3CeImage/T3CeImage.vue} | 16 +-- .../src/components/T3CeImage/index.ts | 1 + .../T3CeMenuPages/T3CeMenuPages.types.ts | 11 ++ .../T3CeMenuPages.vue} | 20 +-- .../T3CeMenuPagesList.vue} | 10 +- .../src/components/T3CeMenuPages/index.ts | 1 + .../T3CeShortcut.data.ts} | 0 .../T3CeShortcut/T3CeShortcut.spec.js | 32 +++++ .../T3CeShortcut.types.ts} | 0 .../components/T3CeShortcut/T3CeShortcut.vue | 20 +++ .../src/components/T3CeShortcut/index.ts | 1 + .../CeTable.vue => T3CeTable/T3CeTable.vue} | 8 +- .../src/components/T3CeTable/index.ts | 1 + .../T3CeText.data.ts} | 0 .../T3CeText.stories.ts} | 16 +-- .../CeText.vue => T3CeText/T3CeText.vue} | 12 +- .../src/components/T3CeText/index.ts | 1 + .../T3CeTextpic.vue} | 20 +-- .../src/components/T3CeTextpic/index.ts | 1 + .../T3CeUploads.data.ts} | 0 .../T3CeUploads.spec.js} | 22 +-- .../T3CeUploads.types.ts} | 0 .../T3CeUploads.vue} | 19 ++- .../src/components/T3CeUploads/index.ts | 1 + .../appearanceProps.types.ts | 20 +-- .../useAppearanceProps/useAppearanceProps.ts | 8 +- .../useHeaderTags/useHeaderTags.ts | 6 +- .../useSharedProps/getSharedProps.ts | 6 +- .../useSharedProps/sharedProps.types.ts | 8 +- .../useSharedProps/useSharedProps.ts | 12 +- packages/nuxt-typo3-ce/types/index.d.ts | 73 ++++------ .../src/components/CeBullets/index.ts | 1 - .../src/components/CeDiv/CeDiv.stories.ts | 10 -- .../src/components/CeDiv/index.ts | 1 - .../src/components/CeFrame/index.ts | 1 - .../src/components/CeGallery/index.ts | 1 - .../components/CeHeader/CeHeader.stories.ts | 18 --- .../src/components/CeHeader/index.ts | 1 - .../components/CeHtmlParser/CeHtmlParser.vue | 16 --- .../src/components/CeHtmlParser/index.ts | 1 - .../src/components/CeImage/CeImage.vue | 21 --- .../src/components/CeImage/index.ts | 1 - .../src/components/CeMenuPages/index.ts | 1 - .../src/components/CeNewsPi1/index.ts | 1 - .../src/components/CeText/CeText.vue | 17 --- .../src/components/CeText/index.ts | 1 - .../src/components/CeTextpic/index.ts | 1 - .../src/components/CeUploads/index.ts | 1 - .../src/components/CwFooter/CwFooter.vue | 4 +- .../src/components/CwHeader/CwHeader.vue | 2 +- .../CeBullets.stories.ts | 12 +- .../T3CeBullets.data.ts} | 0 .../T3CeBullets.vue} | 14 +- .../src/components/T3CeBullets/index.ts | 1 + .../src/components/T3CeDiv/T3CeDiv.stories.ts | 10 ++ .../CeDiv.type.ts => T3CeDiv/T3CeDiv.type.ts} | 0 .../{CeDiv/CeDiv.vue => T3CeDiv/T3CeDiv.vue} | 14 +- .../src/components/T3CeDiv/index.ts | 1 + .../T3CeGallery.vue} | 30 ++-- .../src/components/T3CeGallery/index.ts | 1 + .../T3CeHeader/T3CeHeader.stories.ts | 18 +++ .../T3CeHeader.vue} | 14 +- .../src/components/T3CeHeader/index.ts | 1 + .../T3CeHtmlParser/T3CeHtmlParser.vue | 16 +++ .../src/components/T3CeHtmlParser/index.ts | 1 + .../T3CeImage.data.ts} | 0 .../T3CeImage.stories.ts} | 12 +- .../src/components/T3CeImage/T3CeImage.vue | 21 +++ .../src/components/T3CeImage/index.ts | 1 + .../T3CeMenuPages.data.ts} | 0 .../T3CeMenuPages.stories.ts} | 12 +- .../T3CeMenuPages.vue} | 20 +-- .../T3CeMenuPagesList.vue} | 20 +-- .../src/components/T3CeMenuPages/index.ts | 1 + .../T3CeNewsPi1.types.ts} | 0 .../T3CeNewsPi1.vue} | 6 +- .../src/components/T3CeNewsPi1/index.ts | 1 + .../T3CeTable.data.ts} | 0 .../T3CeTable.stories.ts} | 12 +- .../T3CeText.data.ts} | 0 .../T3CeText.stories.ts} | 10 +- .../src/components/T3CeText/T3CeText.vue | 17 +++ .../src/components/T3CeText/index.ts | 1 + .../T3CeTextpic.data.ts} | 0 .../T3CeTextpic.stories.ts} | 20 +-- .../T3CeTextpic.type.ts} | 0 .../T3CeTextpic.vue} | 30 ++-- .../src/components/T3CeTextpic/index.ts | 1 + .../T3CeUploads.data.ts} | 0 .../T3CeUploads.spec.js} | 12 +- .../T3CeUploads.stories.ts} | 14 +- .../T3CeUploads.vue} | 12 +- .../src/components/T3CeUploads/index.ts | 1 + .../T3Frame.stories.ts} | 6 +- .../CeFrame.vue => T3Frame/T3Frame.vue} | 4 +- .../src/components/T3Frame/index.ts | 1 + .../src/components/UiButton/UiButton.vue | 4 +- .../src/components/UiFrame/UiFrame.spec.js | 10 +- .../src/components/UiHero/UiHero.vue | 2 +- .../components/UiIconsList/UiIconsList.vue | 4 +- .../components/UiLinksList/UiLinksList.vue | 4 +- .../src/components/UiLogo/UiLogo.vue | 4 +- .../UiNavigation/UiNavigation.spec.js | 2 +- .../UiNavigation/UiNavigation.types.ts | 4 +- .../UiNavigationLink/UiNavigationLink.vue | 2 +- .../UiNewsDetail/UiNewsDetail.stories.ts | 2 +- .../UiNews/UiNewsDetail/UiNewsDetail.vue | 2 +- .../UiNews/UiNewsElement/UiNewsElement.vue | 8 +- packages/nuxt-typo3-theme/src/index.ts | 6 +- packages/nuxt-typo3-theme/src/nuxt/module.ts | 2 + packages/nuxt-typo3-theme/src/nuxt/plugin.ts | 42 +++--- .../nuxt-typo3-theme/src/plugin/plugin.ts | 42 +++--- packages/nuxt-typo3-theme/src/store/index.ts | 13 +- yarn.lock | 47 ++---- 192 files changed, 668 insertions(+), 1706 deletions(-) delete mode 100644 packages/nuxt-typo3-ce/src/components/CeBullets/index.ts delete mode 100644 packages/nuxt-typo3-ce/src/components/CeDebug/CeDebug.data.ts delete mode 100644 packages/nuxt-typo3-ce/src/components/CeDebug/CeDebug.spec.js delete mode 100644 packages/nuxt-typo3-ce/src/components/CeDebug/CeDebug.vue delete mode 100644 packages/nuxt-typo3-ce/src/components/CeDebug/index.ts delete mode 100644 packages/nuxt-typo3-ce/src/components/CeDefault/index.ts delete mode 100644 packages/nuxt-typo3-ce/src/components/CeDiv/index.ts delete mode 100644 packages/nuxt-typo3-ce/src/components/CeDynamic/CeDynamic.data.ts delete mode 100644 packages/nuxt-typo3-ce/src/components/CeDynamic/CeDynamic.spec.js delete mode 100644 packages/nuxt-typo3-ce/src/components/CeDynamic/CeDynamic.types.ts delete mode 100644 packages/nuxt-typo3-ce/src/components/CeDynamic/CeDynamic.vue delete mode 100644 packages/nuxt-typo3-ce/src/components/CeDynamic/index.ts delete mode 100644 packages/nuxt-typo3-ce/src/components/CeDynamic/useCeTag.ts delete mode 100644 packages/nuxt-typo3-ce/src/components/CeFrame/CeFrame.spec.js delete mode 100644 packages/nuxt-typo3-ce/src/components/CeFrame/CeFrame.vue delete mode 100644 packages/nuxt-typo3-ce/src/components/CeFrame/index.ts delete mode 100644 packages/nuxt-typo3-ce/src/components/CeGallery/CeMediaFile.vue delete mode 100644 packages/nuxt-typo3-ce/src/components/CeGallery/index.ts delete mode 100644 packages/nuxt-typo3-ce/src/components/CeGallery/type/Audio.vue delete mode 100644 packages/nuxt-typo3-ce/src/components/CeGallery/type/Image.vue delete mode 100644 packages/nuxt-typo3-ce/src/components/CeGallery/type/Video.vue delete mode 100644 packages/nuxt-typo3-ce/src/components/CeGallery/type/Vimeo.vue delete mode 100644 packages/nuxt-typo3-ce/src/components/CeGallery/type/Youtube.vue delete mode 100644 packages/nuxt-typo3-ce/src/components/CeHeader/index.ts delete mode 100644 packages/nuxt-typo3-ce/src/components/CeHtml/index.ts delete mode 100644 packages/nuxt-typo3-ce/src/components/CeHtmlParser/index.ts delete mode 100644 packages/nuxt-typo3-ce/src/components/CeImage/index.ts delete mode 100644 packages/nuxt-typo3-ce/src/components/CeLink/CeLink.spec.js delete mode 100644 packages/nuxt-typo3-ce/src/components/CeLink/CeLink.vue delete mode 100644 packages/nuxt-typo3-ce/src/components/CeLink/index.ts delete mode 100644 packages/nuxt-typo3-ce/src/components/CeMenuPages/CeMenuPages.types.ts delete mode 100644 packages/nuxt-typo3-ce/src/components/CeMenuPages/index.ts delete mode 100644 packages/nuxt-typo3-ce/src/components/CeRenderer/CeRenderer.data.ts delete mode 100644 packages/nuxt-typo3-ce/src/components/CeRenderer/CeRenderer.spec.js delete mode 100644 packages/nuxt-typo3-ce/src/components/CeRenderer/CeRenderer.types.ts delete mode 100644 packages/nuxt-typo3-ce/src/components/CeRenderer/CeRenderer.vue delete mode 100644 packages/nuxt-typo3-ce/src/components/CeRenderer/index.ts delete mode 100644 packages/nuxt-typo3-ce/src/components/CeShortcut/CeShortcut.spec.js delete mode 100644 packages/nuxt-typo3-ce/src/components/CeShortcut/CeShortcut.vue delete mode 100644 packages/nuxt-typo3-ce/src/components/CeShortcut/index.ts delete mode 100644 packages/nuxt-typo3-ce/src/components/CeTable/index.ts delete mode 100644 packages/nuxt-typo3-ce/src/components/CeText/index.ts delete mode 100644 packages/nuxt-typo3-ce/src/components/CeTextpic/index.ts delete mode 100644 packages/nuxt-typo3-ce/src/components/CeUploads/index.ts rename packages/nuxt-typo3-ce/src/components/{CeBullets/CeBullets.data.ts => T3CeBullets/T3CeBullets.data.ts} (100%) rename packages/nuxt-typo3-ce/src/components/{CeBullets/CeBullets.stories.ts => T3CeBullets/T3CeBullets.stories.ts} (87%) rename packages/nuxt-typo3-ce/src/components/{CeBullets/CeBullets.vue => T3CeBullets/T3CeBullets.vue} (85%) create mode 100644 packages/nuxt-typo3-ce/src/components/T3CeBullets/index.ts rename packages/nuxt-typo3-ce/src/components/{CeDefault/CeDefault.data.ts => T3CeDefault/T3CeDefault.data.ts} (100%) rename packages/nuxt-typo3-ce/src/components/{CeDefault/CeDefault.spec.js => T3CeDefault/T3CeDefault.spec.js} (64%) rename packages/nuxt-typo3-ce/src/components/{CeDefault/CeDefault.vue => T3CeDefault/T3CeDefault.vue} (96%) create mode 100644 packages/nuxt-typo3-ce/src/components/T3CeDefault/index.ts rename packages/nuxt-typo3-ce/src/components/{CeDiv/CeDiv.stories.ts => T3CeDiv/T3CeDiv.stories.ts} (82%) rename packages/nuxt-typo3-ce/src/components/{CeDiv/CeDiv.vue => T3CeDiv/T3CeDiv.vue} (76%) create mode 100644 packages/nuxt-typo3-ce/src/components/T3CeDiv/index.ts rename packages/nuxt-typo3-ce/src/components/{CeGallery/CeGallery.types.ts => T3CeGallery/T3CeGallery.types.ts} (79%) rename packages/nuxt-typo3-ce/src/components/{CeGallery/CeGallery.vue => T3CeGallery/T3CeGallery.vue} (51%) create mode 100644 packages/nuxt-typo3-ce/src/components/T3CeGallery/index.ts rename packages/nuxt-typo3-ce/src/components/{CeHeader/CeHeader.data.ts => T3CeHeader/T3CeHeader.data.ts} (100%) rename packages/nuxt-typo3-ce/src/components/{CeHeader/CeHeader.spec.js => T3CeHeader/T3CeHeader.spec.js} (81%) rename packages/nuxt-typo3-ce/src/components/{CeHeader/CeHeader.stories.ts => T3CeHeader/T3CeHeader.stories.ts} (76%) rename packages/nuxt-typo3-ce/src/components/{CeHeader/CeHeader.types.ts => T3CeHeader/T3CeHeader.types.ts} (64%) rename packages/nuxt-typo3-ce/src/components/{CeHeader/CeHeader.vue => T3CeHeader/T3CeHeader.vue} (88%) create mode 100644 packages/nuxt-typo3-ce/src/components/T3CeHeader/index.ts rename packages/nuxt-typo3-ce/src/components/{CeHtml/CeHtml.data.ts => T3CeHtml/T3CeHtml.data.ts} (100%) rename packages/nuxt-typo3-ce/src/components/{CeHtml/CeHtml.stories.ts => T3CeHtml/T3CeHtml.stories.ts} (56%) rename packages/nuxt-typo3-ce/src/components/{CeHtml/CeHtml.vue => T3CeHtml/T3CeHtml.vue} (71%) create mode 100644 packages/nuxt-typo3-ce/src/components/T3CeHtml/index.ts rename packages/nuxt-typo3-ce/src/components/{CeHtmlParser/CeHtmlParser.vue => T3CeHtmlParser/T3CeHtmlParser.vue} (96%) create mode 100644 packages/nuxt-typo3-ce/src/components/T3CeHtmlParser/index.ts rename packages/nuxt-typo3-ce/src/components/{CeImage/CeImage.data.ts => T3CeImage/T3CeImage.data.ts} (100%) rename packages/nuxt-typo3-ce/src/components/{CeImage/CeImage.stories.ts => T3CeImage/T3CeImage.stories.ts} (74%) rename packages/nuxt-typo3-ce/src/components/{CeImage/CeImage.vue => T3CeImage/T3CeImage.vue} (60%) create mode 100644 packages/nuxt-typo3-ce/src/components/T3CeImage/index.ts create mode 100644 packages/nuxt-typo3-ce/src/components/T3CeMenuPages/T3CeMenuPages.types.ts rename packages/nuxt-typo3-ce/src/components/{CeMenuPages/CeMenuPages.vue => T3CeMenuPages/T3CeMenuPages.vue} (50%) rename packages/nuxt-typo3-ce/src/components/{CeMenuPages/CeMenuPagesList.vue => T3CeMenuPages/T3CeMenuPagesList.vue} (70%) create mode 100644 packages/nuxt-typo3-ce/src/components/T3CeMenuPages/index.ts rename packages/nuxt-typo3-ce/src/components/{CeShortcut/CeShortcut.data.ts => T3CeShortcut/T3CeShortcut.data.ts} (100%) create mode 100644 packages/nuxt-typo3-ce/src/components/T3CeShortcut/T3CeShortcut.spec.js rename packages/nuxt-typo3-ce/src/components/{CeShortcut/CeShortcut.types.ts => T3CeShortcut/T3CeShortcut.types.ts} (100%) create mode 100644 packages/nuxt-typo3-ce/src/components/T3CeShortcut/T3CeShortcut.vue create mode 100644 packages/nuxt-typo3-ce/src/components/T3CeShortcut/index.ts rename packages/nuxt-typo3-ce/src/components/{CeTable/CeTable.vue => T3CeTable/T3CeTable.vue} (91%) create mode 100644 packages/nuxt-typo3-ce/src/components/T3CeTable/index.ts rename packages/nuxt-typo3-ce/src/components/{CeText/CeText.data.ts => T3CeText/T3CeText.data.ts} (100%) rename packages/nuxt-typo3-ce/src/components/{CeText/CeText.stories.ts => T3CeText/T3CeText.stories.ts} (79%) rename packages/nuxt-typo3-ce/src/components/{CeText/CeText.vue => T3CeText/T3CeText.vue} (66%) create mode 100644 packages/nuxt-typo3-ce/src/components/T3CeText/index.ts rename packages/nuxt-typo3-ce/src/components/{CeTextpic/CeTextpic.vue => T3CeTextpic/T3CeTextpic.vue} (57%) create mode 100644 packages/nuxt-typo3-ce/src/components/T3CeTextpic/index.ts rename packages/nuxt-typo3-ce/src/components/{CeUploads/CeUploads.data.ts => T3CeUploads/T3CeUploads.data.ts} (100%) rename packages/nuxt-typo3-ce/src/components/{CeUploads/CeUploads.spec.js => T3CeUploads/T3CeUploads.spec.js} (81%) rename packages/nuxt-typo3-ce/src/components/{CeUploads/CeUploads.types.ts => T3CeUploads/T3CeUploads.types.ts} (100%) rename packages/nuxt-typo3-ce/src/components/{CeUploads/CeUploads.vue => T3CeUploads/T3CeUploads.vue} (86%) create mode 100644 packages/nuxt-typo3-ce/src/components/T3CeUploads/index.ts delete mode 100644 packages/nuxt-typo3-theme/src/components/CeBullets/index.ts delete mode 100644 packages/nuxt-typo3-theme/src/components/CeDiv/CeDiv.stories.ts delete mode 100644 packages/nuxt-typo3-theme/src/components/CeDiv/index.ts delete mode 100644 packages/nuxt-typo3-theme/src/components/CeFrame/index.ts delete mode 100644 packages/nuxt-typo3-theme/src/components/CeGallery/index.ts delete mode 100644 packages/nuxt-typo3-theme/src/components/CeHeader/CeHeader.stories.ts delete mode 100644 packages/nuxt-typo3-theme/src/components/CeHeader/index.ts delete mode 100644 packages/nuxt-typo3-theme/src/components/CeHtmlParser/CeHtmlParser.vue delete mode 100644 packages/nuxt-typo3-theme/src/components/CeHtmlParser/index.ts delete mode 100644 packages/nuxt-typo3-theme/src/components/CeImage/CeImage.vue delete mode 100644 packages/nuxt-typo3-theme/src/components/CeImage/index.ts delete mode 100644 packages/nuxt-typo3-theme/src/components/CeMenuPages/index.ts delete mode 100644 packages/nuxt-typo3-theme/src/components/CeNewsPi1/index.ts delete mode 100644 packages/nuxt-typo3-theme/src/components/CeText/CeText.vue delete mode 100644 packages/nuxt-typo3-theme/src/components/CeText/index.ts delete mode 100644 packages/nuxt-typo3-theme/src/components/CeTextpic/index.ts delete mode 100644 packages/nuxt-typo3-theme/src/components/CeUploads/index.ts rename packages/nuxt-typo3-theme/src/components/{CeBullets => T3CeBullets}/CeBullets.stories.ts (69%) rename packages/nuxt-typo3-theme/src/components/{CeBullets/CeBullets.data.ts => T3CeBullets/T3CeBullets.data.ts} (100%) rename packages/nuxt-typo3-theme/src/components/{CeBullets/CeBullets.vue => T3CeBullets/T3CeBullets.vue} (60%) create mode 100644 packages/nuxt-typo3-theme/src/components/T3CeBullets/index.ts create mode 100644 packages/nuxt-typo3-theme/src/components/T3CeDiv/T3CeDiv.stories.ts rename packages/nuxt-typo3-theme/src/components/{CeDiv/CeDiv.type.ts => T3CeDiv/T3CeDiv.type.ts} (100%) rename packages/nuxt-typo3-theme/src/components/{CeDiv/CeDiv.vue => T3CeDiv/T3CeDiv.vue} (73%) create mode 100644 packages/nuxt-typo3-theme/src/components/T3CeDiv/index.ts rename packages/nuxt-typo3-theme/src/components/{CeGallery/CeGallery.vue => T3CeGallery/T3CeGallery.vue} (85%) create mode 100644 packages/nuxt-typo3-theme/src/components/T3CeGallery/index.ts create mode 100644 packages/nuxt-typo3-theme/src/components/T3CeHeader/T3CeHeader.stories.ts rename packages/nuxt-typo3-theme/src/components/{CeHeader/CeHeader.vue => T3CeHeader/T3CeHeader.vue} (65%) create mode 100644 packages/nuxt-typo3-theme/src/components/T3CeHeader/index.ts create mode 100644 packages/nuxt-typo3-theme/src/components/T3CeHtmlParser/T3CeHtmlParser.vue create mode 100644 packages/nuxt-typo3-theme/src/components/T3CeHtmlParser/index.ts rename packages/nuxt-typo3-theme/src/components/{CeImage/CeImage.data.ts => T3CeImage/T3CeImage.data.ts} (100%) rename packages/nuxt-typo3-theme/src/components/{CeImage/CeImage.stories.ts => T3CeImage/T3CeImage.stories.ts} (65%) create mode 100644 packages/nuxt-typo3-theme/src/components/T3CeImage/T3CeImage.vue create mode 100644 packages/nuxt-typo3-theme/src/components/T3CeImage/index.ts rename packages/nuxt-typo3-theme/src/components/{CeMenuPages/CeMenuPages.data.ts => T3CeMenuPages/T3CeMenuPages.data.ts} (100%) rename packages/nuxt-typo3-theme/src/components/{CeMenuPages/CeMenuPages.stories.ts => T3CeMenuPages/T3CeMenuPages.stories.ts} (61%) rename packages/nuxt-typo3-theme/src/components/{CeMenuPages/CeMenuPages.vue => T3CeMenuPages/T3CeMenuPages.vue} (82%) rename packages/nuxt-typo3-theme/src/components/{CeMenuPages/CeMenuPagesList.vue => T3CeMenuPages/T3CeMenuPagesList.vue} (68%) create mode 100644 packages/nuxt-typo3-theme/src/components/T3CeMenuPages/index.ts rename packages/nuxt-typo3-theme/src/components/{CeNewsPi1/CeNewsPi1.types.ts => T3CeNewsPi1/T3CeNewsPi1.types.ts} (100%) rename packages/nuxt-typo3-theme/src/components/{CeNewsPi1/CeNewsPi1.vue => T3CeNewsPi1/T3CeNewsPi1.vue} (91%) create mode 100644 packages/nuxt-typo3-theme/src/components/T3CeNewsPi1/index.ts rename packages/nuxt-typo3-theme/src/components/{CeTable/CeTable.data.ts => T3CeTable/T3CeTable.data.ts} (100%) rename packages/nuxt-typo3-theme/src/components/{CeTable/CeTable.stories.ts => T3CeTable/T3CeTable.stories.ts} (73%) rename packages/nuxt-typo3-theme/src/components/{CeText/CeText.data.ts => T3CeText/T3CeText.data.ts} (100%) rename packages/nuxt-typo3-theme/src/components/{CeText/CeText.stories.ts => T3CeText/T3CeText.stories.ts} (65%) create mode 100644 packages/nuxt-typo3-theme/src/components/T3CeText/T3CeText.vue create mode 100644 packages/nuxt-typo3-theme/src/components/T3CeText/index.ts rename packages/nuxt-typo3-theme/src/components/{CeTextpic/CeTextpic.data.ts => T3CeTextpic/T3CeTextpic.data.ts} (100%) rename packages/nuxt-typo3-theme/src/components/{CeTextpic/CeTextpic.stories.ts => T3CeTextpic/T3CeTextpic.stories.ts} (64%) rename packages/nuxt-typo3-theme/src/components/{CeTextpic/CeTextpic.type.ts => T3CeTextpic/T3CeTextpic.type.ts} (100%) rename packages/nuxt-typo3-theme/src/components/{CeTextpic/CeTextpic.vue => T3CeTextpic/T3CeTextpic.vue} (52%) create mode 100644 packages/nuxt-typo3-theme/src/components/T3CeTextpic/index.ts rename packages/nuxt-typo3-theme/src/components/{CeUploads/CeUploads.data.ts => T3CeUploads/T3CeUploads.data.ts} (100%) rename packages/nuxt-typo3-theme/src/components/{CeUploads/CeUploads.spec.js => T3CeUploads/T3CeUploads.spec.js} (89%) rename packages/nuxt-typo3-theme/src/components/{CeUploads/CeUploads.stories.ts => T3CeUploads/T3CeUploads.stories.ts} (80%) rename packages/nuxt-typo3-theme/src/components/{CeUploads/CeUploads.vue => T3CeUploads/T3CeUploads.vue} (85%) create mode 100644 packages/nuxt-typo3-theme/src/components/T3CeUploads/index.ts rename packages/nuxt-typo3-theme/src/components/{CeFrame/CeFrame.stories.ts => T3Frame/T3Frame.stories.ts} (91%) rename packages/nuxt-typo3-theme/src/components/{CeFrame/CeFrame.vue => T3Frame/T3Frame.vue} (62%) create mode 100644 packages/nuxt-typo3-theme/src/components/T3Frame/index.ts diff --git a/example/nuxt.config.js b/example/nuxt.config.js index 6a52f94..11a3698 100644 --- a/example/nuxt.config.js +++ b/example/nuxt.config.js @@ -50,8 +50,10 @@ export default { */ typo3: { baseURL: process.env.NUXT_HOST, + registerForms: true, api: { baseURL: 'https://api.t3pwa.com' + // baseURL: 'https://api.pwa-demo.ddev.site' }, i18n: { locales: ['en', 'pl', 'de'], @@ -65,6 +67,7 @@ export default { ** Build configuration */ build: { + transpile: ['nuxt-typo3'], /* ** You can extend webpack config here */ diff --git a/example/package.json b/example/package.json index 84ad8a4..413e0e7 100644 --- a/example/package.json +++ b/example/package.json @@ -14,8 +14,8 @@ "dependencies": { "@nuxtjs/pwa": "^3.0.0-0", "nuxt": "^2.0.0", - "nuxt-typo3": "latest", - "nuxt-typo3-theme": "^0.0.3-alpha.1" + "nuxt-typo3": "^1.0.0-alpha.0", + "nuxt-typo3-theme": "^0.0.3-alpha.3" }, "devDependencies": { "@nuxt/typescript-build": "^0.6.0", diff --git a/example/yarn.lock b/example/yarn.lock index c4957ff..6a7c5ba 100644 --- a/example/yarn.lock +++ b/example/yarn.lock @@ -929,21 +929,6 @@ "@babel/helper-validator-identifier" "^7.14.9" to-fast-properties "^2.0.0" -"@braid/vue-formulate-i18n@^1.16.0": - version "1.16.0" - resolved "https://registry.yarnpkg.com/@braid/vue-formulate-i18n/-/vue-formulate-i18n-1.16.0.tgz#71c9121c909c7bbdfd4dfcf6a57d554f5bb1ec75" - integrity sha512-CuX1kN7bWg4ukynnTS3LGsmPKrUvS2Wh75zKatIe+nHQQy0gSvfmggQsCz4QZey7Ois+pGYmOIgrE1SvX+zQTw== - -"@braid/vue-formulate@^2.4.2": - version "2.5.2" - resolved "https://registry.yarnpkg.com/@braid/vue-formulate/-/vue-formulate-2.5.2.tgz#32076d6a513760763a3a89dd69e8911c1bad1fcb" - integrity sha512-0LWKp3Rjq2a+WwA4y49VaXqQOVClJGy6mmdivxJJyRvNB0aUcTOKOINLumeU/XHf7/c0HNhtbZih2vs6hMDyvQ== - dependencies: - "@braid/vue-formulate-i18n" "^1.16.0" - is-plain-object "^3.0.1" - is-url "^1.2.4" - nanoid "^2.1.11" - "@csstools/convert-colors@^1.4.0": version "1.4.0" resolved "https://registry.yarnpkg.com/@csstools/convert-colors/-/convert-colors-1.4.0.tgz#ad495dc41b12e75d588c6db8b9834f08fa131eb7" @@ -1462,7 +1447,7 @@ webpack-node-externals "^3.0.0" webpackbar "^4.0.0" -"@nuxtjs/axios@^5.9.0": +"@nuxtjs/axios@^5.13.6": version "5.13.6" resolved "https://registry.yarnpkg.com/@nuxtjs/axios/-/axios-5.13.6.tgz#6f4bbd98a3a7799a5d2c0726c6ad2a98aa111881" integrity sha512-XS+pOE0xsDODs1zAIbo95A0LKlilvJi8YW0NoXYuq3/jjxGgWDxizZ6Yx0AIIjZOoGsXJOPc0/BcnSEUQ2mFBA== @@ -2262,12 +2247,12 @@ optionalDependencies: prettier "^1.18.2" -"@vue/composition-api@^1.0.0-rc.5": - version "1.2.4" - resolved "https://registry.yarnpkg.com/@vue/composition-api/-/composition-api-1.2.4.tgz#4befcefc0e1c570fd0879a2d8b8f901f3a4e35d0" - integrity sha512-8LVV6O4slsroBhRKxly3em5H3D5Q+ggPG75lcilh5MfLGs69LEdwm6dKhSOXtQoSyMGF4Rq30E4DcouopM8Rxg== +"@vue/composition-api@1.3.3": + version "1.3.3" + resolved "https://registry.yarnpkg.com/@vue/composition-api/-/composition-api-1.3.3.tgz#a782f2d40e41d4cbb6b4550692c7e01d2182d457" + integrity sha512-mjhfLjpCBecARYVJX65F0TYerlJQWtEgKjom4Btuu0x7k701EcvL66zyWQryf64HuIj9YR4h6aNRhM0AP/E3eQ== dependencies: - tslib "^2.3.0" + tslib "^2.3.1" "@vue/eslint-config-standard@^6.0.0": version "6.1.0" @@ -7200,11 +7185,6 @@ is-plain-object@^2.0.3, is-plain-object@^2.0.4: dependencies: isobject "^3.0.1" -is-plain-object@^3.0.1: - version "3.0.1" - resolved "https://registry.yarnpkg.com/is-plain-object/-/is-plain-object-3.0.1.tgz#662d92d24c0aa4302407b0d45d21f2251c85f85b" - integrity sha512-Xnpx182SBMrr/aBik8y+GuR4U1L9FqMSojwDQwPMmxyC6bvEqly9UBCxhauBF5vNh2gwWJNX6oDV7O+OM4z34g== - is-regex@^1.0.4, is-regex@^1.1.3, is-regex@^1.1.4: version "1.1.4" resolved "https://registry.yarnpkg.com/is-regex/-/is-regex-1.1.4.tgz#eef5663cd59fa4c0ae339505323df6854bb15958" @@ -7279,11 +7259,6 @@ is-typedarray@~1.0.0: resolved "https://registry.yarnpkg.com/is-typedarray/-/is-typedarray-1.0.0.tgz#e479c80858df0c1b11ddda6940f96011fcda4a9a" integrity sha1-5HnICFjfDBsR3dppQPlgEfzaSpo= -is-url@^1.2.4: - version "1.2.4" - resolved "https://registry.yarnpkg.com/is-url/-/is-url-1.2.4.tgz#04a4df46d28c4cff3d73d01ff06abeb318a1aa52" - integrity sha512-ITvGim8FhRiYe4IQ5uHSkj7pVaPDrCTkNd3yq3cV7iZAcJdHTUMPMEHcqSOy9xZ9qFenQCvi+2wjH9a1nXqHww== - is-weakref@^1.0.1: version "1.0.1" resolved "https://registry.yarnpkg.com/is-weakref/-/is-weakref-1.0.1.tgz#842dba4ec17fa9ac9850df2d6efbc1737274f2a2" @@ -8336,11 +8311,6 @@ nan@^2.12.1: resolved "https://registry.yarnpkg.com/nan/-/nan-2.15.0.tgz#3f34a473ff18e15c1b5626b62903b5ad6e665fee" integrity sha512-8ZtvEnA2c5aYCZYd1cvgdnU6cqwixRoYg70xPLWUws5ORTa/lnw+u4amixRS/Ac5U5mQVgp9pnlSUnbNWFaWZQ== -nanoid@^2.1.11: - version "2.1.11" - resolved "https://registry.yarnpkg.com/nanoid/-/nanoid-2.1.11.tgz#ec24b8a758d591561531b4176a01e3ab4f0f0280" - integrity sha512-s/snB+WGm6uwi0WjsZdaVcuf3KJXlfGl2LcxgwkEwJF0D/BWzVWAZW/XY4bFaiR7s0Jk3FPvlnepg1H1b1UwlA== - nanoid@^3.1.23: version "3.1.30" resolved "https://registry.yarnpkg.com/nanoid/-/nanoid-3.1.30.tgz#63f93cc548d2a113dc5dfbc63bfa09e2b9b64362" @@ -8567,33 +8537,32 @@ number-is-nan@^1.0.0: resolved "https://registry.yarnpkg.com/number-is-nan/-/number-is-nan-1.0.1.tgz#097b602b53422a522c1afb8790318336941a011d" integrity sha1-CXtgK1NCKlIsGvuHkDGDNpQaAR0= -nuxt-typo3-ce@^0.0.2: - version "0.0.2" - resolved "https://registry.yarnpkg.com/nuxt-typo3-ce/-/nuxt-typo3-ce-0.0.2.tgz#326ad2232bfbaa699d1bea18d6c9517f4df695ef" - integrity sha512-+Q6dT7bVllKVbRccTKhKd1SNIhRKR6pke7s02JXad6VER/xlx8Srz6N5BWTse9CXcjcc93ZVDbrbkKBgg9u54A== +nuxt-typo3-ce@^0.0.3-alpha.3: + version "0.0.3-alpha.3" + resolved "https://registry.yarnpkg.com/nuxt-typo3-ce/-/nuxt-typo3-ce-0.0.3-alpha.3.tgz#f33fb48f2f2b8dd1e0f91eb21f6fb48c41aa9552" + integrity sha512-LNu90JmER6VFPHGcuUzj8FK+wdp/JTDjAovdSQzyLmgwU9icdFfBABByli/dgVOhsf04ccj6PKCuoqcJtGsbkg== dependencies: - "@vue/composition-api" "^1.0.0-rc.5" + "@vue/composition-api" "1.3.3" -nuxt-typo3-theme@^0.0.3-alpha.1: - version "0.0.3-alpha.1" - resolved "https://registry.yarnpkg.com/nuxt-typo3-theme/-/nuxt-typo3-theme-0.0.3-alpha.1.tgz#8edbe4ef151489dcf6f27e7390c1b9602716908c" - integrity sha512-8ddpY/LoAm8+N/IuvUNr6NBjv7D0DD4ovE1AxJBaSBwk83TeoVinnKwmF6J+/NIY+rBqEdGOl8I0NU4/u55H8Q== +nuxt-typo3-theme@^0.0.3-alpha.3: + version "0.0.3-alpha.3" + resolved "https://registry.yarnpkg.com/nuxt-typo3-theme/-/nuxt-typo3-theme-0.0.3-alpha.3.tgz#d0083a81545eacd49bab11133598bdf43ffca3a2" + integrity sha512-khHk3GsYYuDZ79I1Asf/1fQfxoYWdNq2chqx8Rjtibfi6S1tFqJHCYCtU93Rncs1HFoGFmFj7Is0UWJ9jffaxg== dependencies: "@nuxtjs/google-fonts" "^1.3.0" body-scroll-lock "^3.1.5" - nuxt-typo3-ce "^0.0.2" + nuxt-typo3-ce "^0.0.3-alpha.3" sanitize.css "^12.0.1" vue-mq "^1.0.1" vue-svgicon "^3.2.9" -nuxt-typo3@latest: - version "0.9.4" - resolved "https://registry.yarnpkg.com/nuxt-typo3/-/nuxt-typo3-0.9.4.tgz#19f8407cce84abc0a8c1b26cecde10280b3240d7" - integrity sha512-illD3jylZ1aGteCFAru16JjSZiKiz65QgXxDaSjXGBCOtQRreGWdpy1wa2Huh/v3fRKjCVL9s2KKXOi9eccLbg== +nuxt-typo3@^1.0.0-alpha.0: + version "1.0.0-alpha.0" + resolved "https://registry.yarnpkg.com/nuxt-typo3/-/nuxt-typo3-1.0.0-alpha.0.tgz#6b8bff11e27fbaaa707da5540aa64c61913f272c" + integrity sha512-IUAVxEx9oX4zh4nOhPzphFIY59S0vzgnfyOHt82HAdiVy6X1fXrs9OA0l2560w6gK7j16rRfC9qULuLUWXAeeQ== dependencies: - "@braid/vue-formulate" "^2.4.2" - "@nuxtjs/axios" "^5.9.0" - defu "^2.0.4" + "@nuxtjs/axios" "^5.13.6" + vee-validate "^3.4.13" nuxt@^2.0.0: version "2.15.8" @@ -12131,7 +12100,7 @@ tslib@1.14.1, tslib@^1.10.0, tslib@^1.8.1, tslib@^1.9.0, tslib@^1.9.3: resolved "https://registry.yarnpkg.com/tslib/-/tslib-1.14.1.tgz#cf2d38bdc34a134bcaf1091c41f6619e2f672d00" integrity sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg== -tslib@^2.0.3, tslib@^2.3.0: +tslib@^2.0.3, tslib@^2.3.1: version "2.3.1" resolved "https://registry.yarnpkg.com/tslib/-/tslib-2.3.1.tgz#e8a335add5ceae51aa261d32a490158ef042ef01" integrity sha512-77EbyPPpMz+FRFRuAFlWMtmgUWGe9UOG2Z25NqCwiIjRhOf5iKGuzSe5P2w1laq+FkRy4p+PCuVkJSGkzTEKVw== @@ -12576,6 +12545,11 @@ vary@^1.1.2, vary@~1.1.2: resolved "https://registry.yarnpkg.com/vary/-/vary-1.1.2.tgz#2299f02c6ded30d4a5961b0b9f74524a18f634fc" integrity sha1-IpnwLG3tMNSllhsLn3RSShj2NPw= +vee-validate@^3.4.13: + version "3.4.14" + resolved "https://registry.yarnpkg.com/vee-validate/-/vee-validate-3.4.14.tgz#51f91c01d6660c43c6252c417c89fb07cdf8b8dd" + integrity sha512-Hqqic8G9WcRSIzCxiCPqMZv4qB8JE1lIQqIOLDm2K5BXUiL8d4a2+kqkanv8gQSGDzYpnCQZ7BO/T99Aj05T1Q== + vendors@^1.0.0: version "1.0.4" resolved "https://registry.yarnpkg.com/vendors/-/vendors-1.0.4.tgz#e2b800a53e7a29b93506c3cf41100d16c4c4ad8e" diff --git a/packages/nuxt-typo3-ce/index.ts b/packages/nuxt-typo3-ce/index.ts index f71b9d8..d4bbdf5 100644 --- a/packages/nuxt-typo3-ce/index.ts +++ b/packages/nuxt-typo3-ce/index.ts @@ -1,47 +1,37 @@ import VueCompositionAPI from '@vue/composition-api' -import Vue, { VueConstructor } from 'vue' -import CeFrame from './src/components/CeFrame' -import CeRenderer from './src/components/CeRenderer' -import CeDebug from './src/components/CeDebug' -import CeDynamic from './src/components/CeDynamic' -import CeDefault from './src/components/CeDefault' -import CeShortcut from './src/components/CeShortcut' -import CeHeader from './src/components/CeHeader' -import CeText from './src/components/CeText' -import CeHtmlParser from './src/components/CeHtmlParser' -import CeLink from './src/components/CeLink' -import CeTable from './src/components/CeTable' -import CeBullets from './src/components/CeBullets' -import CeDiv from './src/components/CeDiv' -import CeHtml from './src/components/CeHtml' -import CeImage from './src/components/CeImage' -import CeMenuPages from './src/components/CeMenuPages' +import { VueConstructor } from 'vue' +import T3CeDefault from './src/components/T3CeDefault' +import T3CeShortcut from './src/components/T3CeShortcut' +import T3CeHeader from './src/components/T3CeHeader' +import T3CeText from './src/components/T3CeText' +import T3CeHtmlParser from './src/components/T3CeHtmlParser' +import T3CeTable from './src/components/T3CeTable' +import T3CeBullets from './src/components/T3CeBullets' +import T3CeDiv from './src/components/T3CeDiv' +import T3CeHtml from './src/components/T3CeHtml' +import T3CeImage from './src/components/T3CeImage' +import T3CeMenuPages from './src/components/T3CeMenuPages' const globalComponents: Record< string, Vue.VueConstructor | Vue.FunctionalComponentOptions > = { - CeFrame, - CeRenderer, - CeDebug, - CeDynamic, - CeDefault, - CeShortcut, - CeHeader, - CeText, - CeHtmlParser, - CeLink, - CeBullets, - CeDiv, - CeHtml, - CeImage, - CeMenuPages, - CeTable, - CeMenuSubpages: CeMenuPages, - CeMenuRelatedPages: CeMenuPages, - CeMenuRecentlyUpdated: CeMenuPages, - CeMenuSectionPages: CeMenuPages, - CeMenuCategorizedPages: CeMenuPages + T3CeDefault, + T3CeShortcut, + T3CeHeader, + T3CeText, + T3CeHtmlParser, + T3CeBullets, + T3CeDiv, + T3CeHtml, + T3CeImage, + T3CeMenuPages, + T3CeTable, + CeMenuSubpages: T3CeMenuPages, + CeMenuRelatedPages: T3CeMenuPages, + CeMenuRecentlyUpdated: T3CeMenuPages, + CeMenuSectionPages: T3CeMenuPages, + CeMenuCategorizedPages: T3CeMenuPages } const UiPlugin = { diff --git a/packages/nuxt-typo3-ce/jest.config.js b/packages/nuxt-typo3-ce/jest.config.js index 56427fc..9f907fc 100644 --- a/packages/nuxt-typo3-ce/jest.config.js +++ b/packages/nuxt-typo3-ce/jest.config.js @@ -5,6 +5,9 @@ module.exports = { '^.+\\.js$': 'babel-jest', '^.+\\.vue$': 'vue-jest' }, + transformIgnorePatterns: [ + '/node_modules/(?!nuxt-typo3)', + ], moduleNameMapper: { '^@/(.*)$': '/$1', '^~/(.*)$': '/$1', diff --git a/packages/nuxt-typo3-ce/package.json b/packages/nuxt-typo3-ce/package.json index 4fbed1f..bdaba7a 100644 --- a/packages/nuxt-typo3-ce/package.json +++ b/packages/nuxt-typo3-ce/package.json @@ -37,7 +37,7 @@ "eslint-config-macopedia": "^0.2.0-alpha.1", "flush-promises": "^1.0.2", "fork-ts-checker-webpack-plugin": "^5.2.0", - "nuxt-typo3": "^0.9.3", + "nuxt-typo3": "^1.0.0-alpha.0", "prettier-standard": "^16.4.1", "react-is": "^16.13.1", "sass": "^1.26.5", diff --git a/packages/nuxt-typo3-ce/src/components/CeBullets/index.ts b/packages/nuxt-typo3-ce/src/components/CeBullets/index.ts deleted file mode 100644 index d60fe08..0000000 --- a/packages/nuxt-typo3-ce/src/components/CeBullets/index.ts +++ /dev/null @@ -1 +0,0 @@ -export { default } from './CeBullets.vue' diff --git a/packages/nuxt-typo3-ce/src/components/CeDebug/CeDebug.data.ts b/packages/nuxt-typo3-ce/src/components/CeDebug/CeDebug.data.ts deleted file mode 100644 index 08c1eed..0000000 --- a/packages/nuxt-typo3-ce/src/components/CeDebug/CeDebug.data.ts +++ /dev/null @@ -1,22 +0,0 @@ -export default { - id: 72, - pid: 1, - type: 'text', - colPos: 0, - categories: '', - appearance: { - layout: 'default1', - frameClass: 'container', - spaceBefore: 'medium', - spaceAfter: 'medium' - }, - content: { - header: 'Header 3', - subheader: 'Sub-Header 4', - headerLayout: 3, - headerPosition: '', - headerLink: '', - bodytext: - '

Paragraph: Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

\r\n

Title

\r\n
    \t
  • List Element 1
  • \t
  • List Element 1 \t
      \t\t
    1. List Element 1
    2. \t\t
    3. List Element 1
    4. \t\t
    5. List Element 1
    6. \t
    \t
  • \t
  • List Element 1
  • \t
  • List Element 1
\r\n\r\n

I am main CTA

' - } -} diff --git a/packages/nuxt-typo3-ce/src/components/CeDebug/CeDebug.spec.js b/packages/nuxt-typo3-ce/src/components/CeDebug/CeDebug.spec.js deleted file mode 100644 index 0de8a66..0000000 --- a/packages/nuxt-typo3-ce/src/components/CeDebug/CeDebug.spec.js +++ /dev/null @@ -1,16 +0,0 @@ -import { mount } from '@vue/test-utils' -import CeDebug from './CeDebug.vue' -import CeDebugData from './CeDebug.data' - -describe('CeDebug', () => { - let wrapper - - beforeEach(() => { - wrapper = mount(CeDebug, { - propsData: CeDebugData - }) - }) - it('renders all props', () => { - expect(wrapper.text()).toContain('content') - }) -}) diff --git a/packages/nuxt-typo3-ce/src/components/CeDebug/CeDebug.vue b/packages/nuxt-typo3-ce/src/components/CeDebug/CeDebug.vue deleted file mode 100644 index 61a6497..0000000 --- a/packages/nuxt-typo3-ce/src/components/CeDebug/CeDebug.vue +++ /dev/null @@ -1,48 +0,0 @@ - diff --git a/packages/nuxt-typo3-ce/src/components/CeDebug/index.ts b/packages/nuxt-typo3-ce/src/components/CeDebug/index.ts deleted file mode 100644 index b6effff..0000000 --- a/packages/nuxt-typo3-ce/src/components/CeDebug/index.ts +++ /dev/null @@ -1 +0,0 @@ -export { default } from './CeDebug.vue' diff --git a/packages/nuxt-typo3-ce/src/components/CeDefault/index.ts b/packages/nuxt-typo3-ce/src/components/CeDefault/index.ts deleted file mode 100644 index deeeefb..0000000 --- a/packages/nuxt-typo3-ce/src/components/CeDefault/index.ts +++ /dev/null @@ -1 +0,0 @@ -export { default } from './CeDefault.vue' diff --git a/packages/nuxt-typo3-ce/src/components/CeDiv/index.ts b/packages/nuxt-typo3-ce/src/components/CeDiv/index.ts deleted file mode 100644 index 578f1b0..0000000 --- a/packages/nuxt-typo3-ce/src/components/CeDiv/index.ts +++ /dev/null @@ -1 +0,0 @@ -export { default } from './CeDiv.vue' diff --git a/packages/nuxt-typo3-ce/src/components/CeDynamic/CeDynamic.data.ts b/packages/nuxt-typo3-ce/src/components/CeDynamic/CeDynamic.data.ts deleted file mode 100644 index 0349190..0000000 --- a/packages/nuxt-typo3-ce/src/components/CeDynamic/CeDynamic.data.ts +++ /dev/null @@ -1,56 +0,0 @@ -import type { CeDynamicInterface } from './CeDynamic.types' - -export const CeDynamicMockData: Record = { - text: { - type: 'text', - index: 1, - data: { - id: 72, - pid: 1, - type: 'text', - colPos: 0, - categories: '', - appearance: { - layout: 'default', - frameClass: 'container', - spaceBefore: 'medium', - spaceAfter: 'medium' - }, - content: { - header: 'Header 3', - subheader: 'Sub-Header 4', - headerLayout: 3, - headerPosition: '', - headerLink: '', - bodytext: - '

Paragraph: Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

\r\n

Title

\r\n
    \t
  • List Element 1
  • \t
  • List Element 1 \t
      \t\t
    1. List Element 1
    2. \t\t
    3. List Element 1
    4. \t\t
    5. List Element 1
    6. \t
    \t
  • \t
  • List Element 1
  • \t
  • List Element 1
\r\n\r\n

I am main CTA

' - } - } - }, - textpic: { - type: 'textpic', - index: 2, - data: { - id: 73, - pid: 1, - type: 'textpic', - colPos: 0, - categories: '', - appearance: { - layout: 'default', - frameClass: 'none', - spaceBefore: 'medium', - spaceAfter: 'medium' - }, - content: { - header: 'Header 3', - subheader: 'Sub-Header 4', - headerLayout: 3, - headerPosition: '', - headerLink: '', - bodytext: - '

Paragraph: Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

\r\n

Title

\r\n
    \t
  • List Element 1
  • \t
  • List Element 1 \t
      \t\t
    1. List Element 1
    2. \t\t
    3. List Element 1
    4. \t\t
    5. List Element 1
    6. \t
    \t
  • \t
  • List Element 1
  • \t
  • List Element 1
\r\n\r\n

I am main CTA

' - } - } - } -} diff --git a/packages/nuxt-typo3-ce/src/components/CeDynamic/CeDynamic.spec.js b/packages/nuxt-typo3-ce/src/components/CeDynamic/CeDynamic.spec.js deleted file mode 100644 index 8af7652..0000000 --- a/packages/nuxt-typo3-ce/src/components/CeDynamic/CeDynamic.spec.js +++ /dev/null @@ -1,22 +0,0 @@ -import { mount } from '@vue/test-utils' -import { CeDynamicMockData } from './CeDynamic.data' -import CeDynamic from './CeDynamic.vue' - -// Mock CeDynamic -const CeTextMock = { - name: 'CeText', - props: ['id', 'header', 'bodytext'], - template: '

{{header}}

{{bodytext}}
' -} - -describe('CeDynamic', () => { - it('renders dynamic components based on data', () => { - const wrapper = mount(CeDynamic, { - stubs: { CeText: CeTextMock }, - propsData: CeDynamicMockData.text - }) - const components = wrapper.findAllComponents(CeTextMock) - const firstCe = components.at(0) - expect(firstCe.exists()).toBeTruthy() - }) -}) diff --git a/packages/nuxt-typo3-ce/src/components/CeDynamic/CeDynamic.types.ts b/packages/nuxt-typo3-ce/src/components/CeDynamic/CeDynamic.types.ts deleted file mode 100644 index 3529d72..0000000 --- a/packages/nuxt-typo3-ce/src/components/CeDynamic/CeDynamic.types.ts +++ /dev/null @@ -1,9 +0,0 @@ -import type { CeRendererContentItem } from '../CeRenderer/CeRenderer.types' - -export type CeDynamicData = CeRendererContentItem - -export interface CeDynamicInterface { - data: CeRendererContentItem - type: string - index: number -} diff --git a/packages/nuxt-typo3-ce/src/components/CeDynamic/CeDynamic.vue b/packages/nuxt-typo3-ce/src/components/CeDynamic/CeDynamic.vue deleted file mode 100644 index 1b10239..0000000 --- a/packages/nuxt-typo3-ce/src/components/CeDynamic/CeDynamic.vue +++ /dev/null @@ -1,78 +0,0 @@ - diff --git a/packages/nuxt-typo3-ce/src/components/CeDynamic/index.ts b/packages/nuxt-typo3-ce/src/components/CeDynamic/index.ts deleted file mode 100644 index 561c9a1..0000000 --- a/packages/nuxt-typo3-ce/src/components/CeDynamic/index.ts +++ /dev/null @@ -1 +0,0 @@ -export { default } from './CeDynamic.vue' diff --git a/packages/nuxt-typo3-ce/src/components/CeDynamic/useCeTag.ts b/packages/nuxt-typo3-ce/src/components/CeDynamic/useCeTag.ts deleted file mode 100644 index e69de29..0000000 diff --git a/packages/nuxt-typo3-ce/src/components/CeFrame/CeFrame.spec.js b/packages/nuxt-typo3-ce/src/components/CeFrame/CeFrame.spec.js deleted file mode 100644 index cb88ebf..0000000 --- a/packages/nuxt-typo3-ce/src/components/CeFrame/CeFrame.spec.js +++ /dev/null @@ -1,39 +0,0 @@ -import { mount } from '@vue/test-utils' -import CeFrame from './CeFrame.vue' -import CeDiv from '../CeDiv' - -describe('CeFrame', () => { - let wrapper - const prepareFrame = { - propsData: { - frameClass: 'custom-class', - layout: 'custom-layout', - spaceBefore: 'large', - spaceAfter: 'extra-large' - }, - slots: { - default: [CeDiv] - } - } - - beforeEach(() => { - wrapper = mount(CeFrame, prepareFrame) - }) - it('renders children', () => { - expect(wrapper.html()).toContain('hr') - }) - it('has custom frame class', () => { - expect(wrapper.classes().includes('frame-custom-class')).toBeTruthy() - }) - it('has custom custom layout', () => { - expect(wrapper.classes().includes('layout-custom-layout')).toBeTruthy() - }) - - it('has large space at the top', () => { - expect(wrapper.classes().includes('space-before-large')).toBeTruthy() - }) - - it('has extra-large space at the bottom', () => { - expect(wrapper.classes().includes('space-after-extra-large')).toBeTruthy() - }) -}) diff --git a/packages/nuxt-typo3-ce/src/components/CeFrame/CeFrame.vue b/packages/nuxt-typo3-ce/src/components/CeFrame/CeFrame.vue deleted file mode 100644 index 3c7011e..0000000 --- a/packages/nuxt-typo3-ce/src/components/CeFrame/CeFrame.vue +++ /dev/null @@ -1,37 +0,0 @@ - diff --git a/packages/nuxt-typo3-ce/src/components/CeFrame/index.ts b/packages/nuxt-typo3-ce/src/components/CeFrame/index.ts deleted file mode 100644 index a9f44ac..0000000 --- a/packages/nuxt-typo3-ce/src/components/CeFrame/index.ts +++ /dev/null @@ -1 +0,0 @@ -export { default } from './CeFrame.vue' diff --git a/packages/nuxt-typo3-ce/src/components/CeGallery/CeMediaFile.vue b/packages/nuxt-typo3-ce/src/components/CeGallery/CeMediaFile.vue deleted file mode 100644 index 55f073e..0000000 --- a/packages/nuxt-typo3-ce/src/components/CeGallery/CeMediaFile.vue +++ /dev/null @@ -1,49 +0,0 @@ - - diff --git a/packages/nuxt-typo3-ce/src/components/CeGallery/index.ts b/packages/nuxt-typo3-ce/src/components/CeGallery/index.ts deleted file mode 100644 index 30e726b..0000000 --- a/packages/nuxt-typo3-ce/src/components/CeGallery/index.ts +++ /dev/null @@ -1 +0,0 @@ -export { default } from './CeGallery.vue' diff --git a/packages/nuxt-typo3-ce/src/components/CeGallery/type/Audio.vue b/packages/nuxt-typo3-ce/src/components/CeGallery/type/Audio.vue deleted file mode 100644 index 84cad19..0000000 --- a/packages/nuxt-typo3-ce/src/components/CeGallery/type/Audio.vue +++ /dev/null @@ -1,20 +0,0 @@ - - diff --git a/packages/nuxt-typo3-ce/src/components/CeGallery/type/Image.vue b/packages/nuxt-typo3-ce/src/components/CeGallery/type/Image.vue deleted file mode 100644 index 0db39af..0000000 --- a/packages/nuxt-typo3-ce/src/components/CeGallery/type/Image.vue +++ /dev/null @@ -1,38 +0,0 @@ - - - diff --git a/packages/nuxt-typo3-ce/src/components/CeGallery/type/Video.vue b/packages/nuxt-typo3-ce/src/components/CeGallery/type/Video.vue deleted file mode 100644 index 8ca7a66..0000000 --- a/packages/nuxt-typo3-ce/src/components/CeGallery/type/Video.vue +++ /dev/null @@ -1,25 +0,0 @@ - - diff --git a/packages/nuxt-typo3-ce/src/components/CeGallery/type/Vimeo.vue b/packages/nuxt-typo3-ce/src/components/CeGallery/type/Vimeo.vue deleted file mode 100644 index f5f64df..0000000 --- a/packages/nuxt-typo3-ce/src/components/CeGallery/type/Vimeo.vue +++ /dev/null @@ -1,29 +0,0 @@ -