From 64c0371280a0a50b22e3cc653bd25e17d0b34e52 Mon Sep 17 00:00:00 2001 From: zernonia Date: Tue, 22 Oct 2024 12:46:09 +0200 Subject: [PATCH] docs: fix block preview --- .../theme/components/BlockContainer.vue | 237 +++++++++++++++++ .../.vitepress/theme/components/BlockPage.vue | 4 +- .../theme/components/BlockPreview.vue | 251 ++---------------- .../.vitepress/theme/components/Blocks.vue | 4 +- apps/www/.vitepress/theme/components/index.ts | 1 + apps/www/.vitepress/theme/style.css | 47 ++-- apps/www/__registry__/index.ts | 28 ++ apps/www/scripts/build-registry.ts | 101 +++---- apps/www/tailwind.config.js | 10 + 9 files changed, 379 insertions(+), 304 deletions(-) create mode 100644 apps/www/.vitepress/theme/components/BlockContainer.vue diff --git a/apps/www/.vitepress/theme/components/BlockContainer.vue b/apps/www/.vitepress/theme/components/BlockContainer.vue new file mode 100644 index 00000000..b3ad339b --- /dev/null +++ b/apps/www/.vitepress/theme/components/BlockContainer.vue @@ -0,0 +1,237 @@ + + + diff --git a/apps/www/.vitepress/theme/components/BlockPage.vue b/apps/www/.vitepress/theme/components/BlockPage.vue index 83c757f0..be644b62 100644 --- a/apps/www/.vitepress/theme/components/BlockPage.vue +++ b/apps/www/.vitepress/theme/components/BlockPage.vue @@ -2,11 +2,11 @@ import { useUrlSearchParams } from '@vueuse/core' import ComponentLoader from './ComponentLoader.vue' -const params = useUrlSearchParams('hash-params') +const params = useUrlSearchParams('history') diff --git a/apps/www/.vitepress/theme/components/BlockPreview.vue b/apps/www/.vitepress/theme/components/BlockPreview.vue index ccfcc04a..d94b2786 100644 --- a/apps/www/.vitepress/theme/components/BlockPreview.vue +++ b/apps/www/.vitepress/theme/components/BlockPreview.vue @@ -1,245 +1,40 @@