From 922e74c8895787205027ae4c3db72fb2dbabf92d Mon Sep 17 00:00:00 2001 From: Tim Hanlon Date: Fri, 24 Jan 2025 14:28:03 +1100 Subject: [PATCH] feat: update custom playground --- playground-custom/components/CustomButton.vue | 46 +++++++++ .../components/NuxtAvatar.story.vue | 10 -- .../components/ReallyLongStory.story.vue | 76 ++++++++++++++ playground-custom/layouts/CustomViewer.vue | 98 ++++++++++++++----- playground-custom/nuxt.config.ts | 11 ++- playground-custom/package.json | 2 +- .../custom/{[[slug]].vue => [...slug].vue} | 0 7 files changed, 202 insertions(+), 41 deletions(-) create mode 100644 playground-custom/components/CustomButton.vue delete mode 100644 playground-custom/components/NuxtAvatar.story.vue create mode 100644 playground-custom/components/ReallyLongStory.story.vue rename playground-custom/pages/custom/{[[slug]].vue => [...slug].vue} (100%) diff --git a/playground-custom/components/CustomButton.vue b/playground-custom/components/CustomButton.vue new file mode 100644 index 0000000..3c1c111 --- /dev/null +++ b/playground-custom/components/CustomButton.vue @@ -0,0 +1,46 @@ + + + diff --git a/playground-custom/components/NuxtAvatar.story.vue b/playground-custom/components/NuxtAvatar.story.vue deleted file mode 100644 index 7fe8141..0000000 --- a/playground-custom/components/NuxtAvatar.story.vue +++ /dev/null @@ -1,10 +0,0 @@ - diff --git a/playground-custom/components/ReallyLongStory.story.vue b/playground-custom/components/ReallyLongStory.story.vue new file mode 100644 index 0000000..346797e --- /dev/null +++ b/playground-custom/components/ReallyLongStory.story.vue @@ -0,0 +1,76 @@ + diff --git a/playground-custom/layouts/CustomViewer.vue b/playground-custom/layouts/CustomViewer.vue index c4a552a..e868743 100644 --- a/playground-custom/layouts/CustomViewer.vue +++ b/playground-custom/layouts/CustomViewer.vue @@ -1,7 +1,7 @@ + + diff --git a/playground-custom/nuxt.config.ts b/playground-custom/nuxt.config.ts index b8db626..f7c8a41 100644 --- a/playground-custom/nuxt.config.ts +++ b/playground-custom/nuxt.config.ts @@ -15,15 +15,15 @@ export default defineNuxtConfig({ classes: { story: { actions: 'flex items-center gap-2', - container: 'space-y-2', + container: 'space-y-4', content: 'space-y-4', header: 'flex items-center gap-2', title: 'text-lg font-medium tracking-tight', }, variant: { actions: 'flex items-center gap-2', - container: 'space-y-2', - content: 'p-4 border border-gray-200 rounded-md', + container: 'space-y-2 group', + content: 'p-4 border border-gray-200 rounded-md group-data-[active="true"]:border-gray-400', header: 'flex items-center gap-2', title: 'text-md font-medium tracking-tight', }, @@ -33,4 +33,9 @@ export default defineNuxtConfig({ theme: false, }, }, + + shiki: { + defaultTheme: 'catppuccin-latte', + defaultLang: 'vue', + }, }) diff --git a/playground-custom/package.json b/playground-custom/package.json index 1d52c88..c0bbecc 100644 --- a/playground-custom/package.json +++ b/playground-custom/package.json @@ -1,6 +1,6 @@ { "private": true, - "name": "bedtime-playground", + "name": "bedtime-playground-custom", "type": "module", "scripts": { "dev": "nuxi dev", diff --git a/playground-custom/pages/custom/[[slug]].vue b/playground-custom/pages/custom/[...slug].vue similarity index 100% rename from playground-custom/pages/custom/[[slug]].vue rename to playground-custom/pages/custom/[...slug].vue