From 594b0414e71c6b98178f83d5f8e2cc12b7eee60c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tu=C4=9F=C3=A7e=20K=C3=BC=C3=A7=C3=BCko=C4=9Flu?= Date: Wed, 18 Oct 2023 10:06:37 +0300 Subject: [PATCH] Embedded example updates --- components/doc/codeeditor/templates.js | 6 +- doc/dynamicdialog/theming/TailwindDoc.vue | 116 +--------------------- 2 files changed, 5 insertions(+), 117 deletions(-) diff --git a/components/doc/codeeditor/templates.js b/components/doc/codeeditor/templates.js index d303acb2e..0175d6d84 100644 --- a/components/doc/codeeditor/templates.js +++ b/components/doc/codeeditor/templates.js @@ -42,7 +42,9 @@ const getVueApp = (props = {}, sourceType) => { }); let extFilesSource = extFiles - ? extFiles[sourceType.language] + ? embedded + ? extFiles['composition'] + : extFiles[sourceType.language] ? { ...extFiles[sourceType.language] } : Object.keys(extFiles) .filter((k) => !sourceTypes.includes(k)) @@ -473,7 +475,7 @@ const onThemeToggler = () => { const root = document.getElementsByTagName('html')[0]; root.classList.toggle('dark'); - iconClass.value = iconClass.value==='pi-moon' ? 'pi-sun': 'pi-moon'; + iconClass.value = iconClass.value === 'pi-moon' ? 'pi-sun': 'pi-moon'; }; ` }; diff --git a/doc/dynamicdialog/theming/TailwindDoc.vue b/doc/dynamicdialog/theming/TailwindDoc.vue index 5e79dabfd..d6dcbced7 100644 --- a/doc/dynamicdialog/theming/TailwindDoc.vue +++ b/doc/dynamicdialog/theming/TailwindDoc.vue @@ -6,7 +6,7 @@

A playground sample with the pre-built Tailwind theme.

- + @@ -153,120 +153,6 @@ const showProducts = () => { ` }, extFiles: { - options: { - 'src/components/ProductListDemo.vue': { - content: ` - - -