chore: fix build

This commit is contained in:
zernonia 2024-10-28 00:44:32 +08:00
parent 99c5f9f7df
commit 69bab32fc6
3 changed files with 857 additions and 903 deletions

View File

@ -12,6 +12,10 @@ const props = defineProps<{
const isLoading = ref(true) const isLoading = ref(true)
const iframeURL = computed(() => { const iframeURL = computed(() => {
// @ts-expect-error env available in import.meta
if (import.meta.env.SSR)
return ''
const url = new URL(`${window.location.origin}/blocks/renderer`) const url = new URL(`${window.location.origin}/blocks/renderer`)
Object.entries(props).forEach(([key, value]) => { Object.entries(props).forEach(([key, value]) => {
if (value) if (value)

View File

@ -4,3 +4,9 @@ description: A composable, themeable and customizable sidebar component.
--- ---
<BlockPreview name="Sidebar07" ></BlockPreview> <BlockPreview name="Sidebar07" ></BlockPreview>
## Installation
```bash
npx shadcn-vue@latest add sidebar
```

File diff suppressed because it is too large Load Diff