-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(playground): added playground and tests for component resolver
- Loading branch information
1 parent
39a9f72
commit 55e1e1d
Showing
15 changed files
with
217 additions
and
42 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
<script setup lang="ts"> | ||
defineProps({ | ||
blok: { | ||
type: Object, | ||
required: true, | ||
}, | ||
}); | ||
</script> | ||
<template> | ||
<iframe | ||
:src="blok.url.url" | ||
class="w-full aspect-video" | ||
frameborder="0" | ||
></iframe> | ||
</template> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
<script setup lang="ts"> | ||
import RichTextChild from "./RichTextChild.vue"; | ||
</script> | ||
<template> | ||
<div data-test="root"> | ||
<Suspense> | ||
<RichTextChild /> | ||
</Suspense> | ||
</div> | ||
</template> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
<script setup> | ||
import { useStoryblok, StoryblokRichText } from "@storyblok/vue"; | ||
const story = await useStoryblok("vue/test-richtext", { version: "draft" }); | ||
</script> | ||
|
||
<template> | ||
<h2>RichText</h2> | ||
<!-- <pre>{{ story.content.richText }}</pre> --> | ||
<StoryblokRichText v-if="story.content" :doc="story.content.richText" /> | ||
</template> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.