Skip to content
This repository has been archived by the owner on Nov 20, 2024. It is now read-only.

Commit

Permalink
chore: update playground
Browse files Browse the repository at this point in the history
  • Loading branch information
DanSnow committed Jun 14, 2024
1 parent 2cb1313 commit 2eb8e03
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 4 deletions.
3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,5 @@
"@nuxt/schema": "3.7.3",
"giget": "1.1.3",
"nuxt": "3.7.3"
},
"packageManager": "yarn@4.3.0"
}
}
8 changes: 6 additions & 2 deletions packages/playground/pages/examples/fill-article.vue
Original file line number Diff line number Diff line change
@@ -1,10 +1,14 @@
<script lang="ts" setup>
const { articles: alphabetArticles } = useFillArticles(2, [{ key: 'slug', value: 'alphabet' }])
const { articles: first2Articles } = useFillArticles(2)
const { articles: another2Articles } = useFillArticles(2)
</script>

<template>
<div class="flex">
<div v-for="article in alphabetArticles" :key="article.id" class="border border-black">
<div v-for="article in first2Articles" :key="article.id" class="border border-black">
<ArticleLayout :article="article" />
</div>
<div v-for="article in another2Articles" :key="article.id" class="border border-black">
<ArticleLayout :article="article" />
</div>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ const foo = computed(() => site.foo)
<template>
<div>
This is bar layout
<div>id: {{ article.id }}</div>
<div>article id from custom field: {{ currentID }}</div>
<div>
Content:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ const socialLinks = {}
<div class="my-[50px] mx-auto w-[1140px] max-w-[min(calc(100vw-30px),100%)]">
<!-- article -->
<div class="my-[50px] mx-auto w-[43.75rem] max-w-full">
<div>id: {{ article.id }}</div>
<!-- article image -->
<ArticleHeroPhoto
v-if="cover?.url"
Expand Down

0 comments on commit 2eb8e03

Please sign in to comment.