diff --git a/apps/www/.vitepress/theme/components/BlockPage.vue b/apps/www/.vitepress/theme/components/BlockPage.vue new file mode 100644 index 00000000..69e58caa --- /dev/null +++ b/apps/www/.vitepress/theme/components/BlockPage.vue @@ -0,0 +1,12 @@ + + + + + + + diff --git a/apps/www/.vitepress/theme/components/BlockPreview.vue b/apps/www/.vitepress/theme/components/BlockPreview.vue index 10352231..c1f6edc1 100644 --- a/apps/www/.vitepress/theme/components/BlockPreview.vue +++ b/apps/www/.vitepress/theme/components/BlockPreview.vue @@ -7,7 +7,6 @@ import MagicString from 'magic-string' import { cssVariables } from '../config/shiki' import StyleSwitcher from './StyleSwitcher.vue' import Spinner from './Spinner.vue' -import ComponentLoader from './ComponentLoader.vue' import { useConfigStore } from '@/stores/config' // import { BlockCopyCodeButton } from '@/components/block-copy-code-button' @@ -26,7 +25,10 @@ const props = defineProps<{ const { style, codeConfig } = useConfigStore() +const isLoading = ref(true) +const tabValue = ref('preview') const resizableRef = ref>() + const rawString = ref('') const codeHtml = ref('') const metadata = reactive({ @@ -90,10 +92,10 @@ watch([style, codeConfig], async () => { @@ -205,6 +207,8 @@ watch([style, codeConfig], async () => { @@ -216,9 +220,15 @@ watch([style, codeConfig], async () => { :default-size="100" :min-size="25" > - - + + + @@ -226,7 +236,7 @@ watch([style, codeConfig], async () => { diff --git a/apps/www/.vitepress/theme/components/Blocks.vue b/apps/www/.vitepress/theme/components/Blocks.vue index 0b60c559..14d9ce5c 100644 --- a/apps/www/.vitepress/theme/components/Blocks.vue +++ b/apps/www/.vitepress/theme/components/Blocks.vue @@ -57,7 +57,7 @@ import('../../../__registry__/index').then((res) => { - + diff --git a/apps/www/.vitepress/theme/layout/MainLayout.vue b/apps/www/.vitepress/theme/layout/MainLayout.vue index 62c299ce..e8b12ddc 100644 --- a/apps/www/.vitepress/theme/layout/MainLayout.vue +++ b/apps/www/.vitepress/theme/layout/MainLayout.vue @@ -84,7 +84,10 @@ watch(() => $route.path, (n) => { - + + + + $route.path, (n) => { -../components/CodeConfigCustomizer.vue + diff --git a/apps/www/__registry__/index.ts b/apps/www/__registry__/index.ts index 01ba753b..522f8bd6 100644 --- a/apps/www/__registry__/index.ts +++ b/apps/www/__registry__/index.ts @@ -1109,6 +1109,27 @@ export const Index = { component: () => import("../src/lib/registry/default/block/Authentication01.vue").then((m) => m.default), files: ["../src/lib/registry/default/block/Authentication01.vue"], }, + "Authentication02": { + name: "Authentication02", + type: "components:block", + registryDependencies: ["button","card","input","label"], + component: () => import("../src/lib/registry/default/block/Authentication02.vue").then((m) => m.default), + files: ["../src/lib/registry/default/block/Authentication02.vue"], + }, + "Authentication03": { + name: "Authentication03", + type: "components:block", + registryDependencies: ["button","card","input","label"], + component: () => import("../src/lib/registry/default/block/Authentication03.vue").then((m) => m.default), + files: ["../src/lib/registry/default/block/Authentication03.vue"], + }, + "Authentication04": { + name: "Authentication04", + type: "components:block", + registryDependencies: ["button","input","label"], + component: () => import("../src/lib/registry/default/block/Authentication04.vue").then((m) => m.default), + files: ["../src/lib/registry/default/block/Authentication04.vue"], + }, }, "new-york": { "AccordionDemo": { name: "AccordionDemo", @@ -2216,5 +2237,26 @@ export const Index = { component: () => import("../src/lib/registry/new-york/block/Authentication01.vue").then((m) => m.default), files: ["../src/lib/registry/new-york/block/Authentication01.vue"], }, + "Authentication02": { + name: "Authentication02", + type: "components:block", + registryDependencies: ["button","card","input","label"], + component: () => import("../src/lib/registry/new-york/block/Authentication02.vue").then((m) => m.default), + files: ["../src/lib/registry/new-york/block/Authentication02.vue"], + }, + "Authentication03": { + name: "Authentication03", + type: "components:block", + registryDependencies: ["button","card","input","label"], + component: () => import("../src/lib/registry/new-york/block/Authentication03.vue").then((m) => m.default), + files: ["../src/lib/registry/new-york/block/Authentication03.vue"], + }, + "Authentication04": { + name: "Authentication04", + type: "components:block", + registryDependencies: ["button","input","label"], + component: () => import("../src/lib/registry/new-york/block/Authentication04.vue").then((m) => m.default), + files: ["../src/lib/registry/new-york/block/Authentication04.vue"], + }, }, } diff --git a/apps/www/src/content/blocks/renderer.md b/apps/www/src/content/blocks/renderer.md new file mode 100644 index 00000000..e91c7cfd --- /dev/null +++ b/apps/www/src/content/blocks/renderer.md @@ -0,0 +1,10 @@ +--- +title: Blocks - shadcn-vue +layout: false +--- + + + + diff --git a/apps/www/src/lib/registry/default/block/Authentication01.vue b/apps/www/src/lib/registry/default/block/Authentication01.vue index 05760fe1..c4baaa9b 100644 --- a/apps/www/src/lib/registry/default/block/Authentication01.vue +++ b/apps/www/src/lib/registry/default/block/Authentication01.vue @@ -2,7 +2,7 @@ export const description = 'A simple login form with email and password. The submit button says \'Sign in\'.' export const iframeHeight = '600px' -export const containerClass = 'w-full h-full flex items-center justify-center px-4' +export const containerClass = 'w-full h-screen flex items-center justify-center px-4' + + + + + + + + Login + + + Enter your email below to login to your account + + + + + + Email + + + + + Password + + Forgot your password? + + + + + + Login + + + Login with Google + + + + Don't have an account? + + Sign up + + + + + diff --git a/apps/www/src/lib/registry/default/block/Authentication03.vue b/apps/www/src/lib/registry/default/block/Authentication03.vue new file mode 100644 index 00000000..a3d976ec --- /dev/null +++ b/apps/www/src/lib/registry/default/block/Authentication03.vue @@ -0,0 +1,65 @@ + + + + + + + + + Sign Up + + + Enter your information to create an account + + + + + + + First name + + + + Last name + + + + + Email + + + + Password + + + + Create an account + + + Sign up with GitHub + + + + Already have an account? + + Sign in + + + + + diff --git a/apps/www/src/lib/registry/default/block/Authentication04.vue b/apps/www/src/lib/registry/default/block/Authentication04.vue new file mode 100644 index 00000000..d1344054 --- /dev/null +++ b/apps/www/src/lib/registry/default/block/Authentication04.vue @@ -0,0 +1,73 @@ + + + + + + + + + + + Login + + + Enter your email below to login to your account + + + + + Email + + + + + Password + + Forgot your password? + + + + + + Login + + + Login with Google + + + + Don't have an account? + + Sign up + + + + + + + + + diff --git a/apps/www/src/lib/registry/new-york/block/Authentication01.vue b/apps/www/src/lib/registry/new-york/block/Authentication01.vue index a679a45f..10132fb6 100644 --- a/apps/www/src/lib/registry/new-york/block/Authentication01.vue +++ b/apps/www/src/lib/registry/new-york/block/Authentication01.vue @@ -2,7 +2,7 @@ export const description = 'A simple login form with email and password. The submit button says \'Sign in\'.' export const iframeHeight = '600px' -export const containerClass = 'w-full h-full flex items-center justify-center px-4' +export const containerClass = 'w-full h-screen flex items-center justify-center px-4' + + + + + + + + Login + + + Enter your email below to login to your account + + + + + + Email + + + + + Password + + Forgot your password? + + + + + + Login + + + Login with Google + + + + Don't have an account? + + Sign up + + + + + diff --git a/apps/www/src/lib/registry/new-york/block/Authentication03.vue b/apps/www/src/lib/registry/new-york/block/Authentication03.vue new file mode 100644 index 00000000..7f16bee2 --- /dev/null +++ b/apps/www/src/lib/registry/new-york/block/Authentication03.vue @@ -0,0 +1,65 @@ + + + + + + + + + Sign Up + + + Enter your information to create an account + + + + + + + First name + + + + Last name + + + + + Email + + + + Password + + + + Create an account + + + Sign up with GitHub + + + + Already have an account? + + Sign in + + + + + diff --git a/apps/www/src/lib/registry/new-york/block/Authentication04.vue b/apps/www/src/lib/registry/new-york/block/Authentication04.vue new file mode 100644 index 00000000..9e8f044e --- /dev/null +++ b/apps/www/src/lib/registry/new-york/block/Authentication04.vue @@ -0,0 +1,73 @@ + + + + + + + + + + + Login + + + Enter your email below to login to your account + + + + + Email + + + + + Password + + Forgot your password? + + + + + + Login + + + Login with Google + + + + Don't have an account? + + Sign up + + + + + + + + + diff --git a/apps/www/src/public/placeholder.svg b/apps/www/src/public/placeholder.svg new file mode 100644 index 00000000..e763910b --- /dev/null +++ b/apps/www/src/public/placeholder.svg @@ -0,0 +1 @@ + \ No newline at end of file
+ Enter your email below to login to your account +