Skip to content

Commit

Permalink
Merge pull request #150 from nuxt-modules/fix/sizes-in-playground
Browse files Browse the repository at this point in the history
fix: sizes in playground
  • Loading branch information
Baroshem authored Aug 30, 2023
2 parents b9bd3eb + b2b3588 commit 9af8ae3
Showing 1 changed file with 15 additions and 30 deletions.
45 changes: 15 additions & 30 deletions playground/app.vue
Original file line number Diff line number Diff line change
@@ -1,37 +1,20 @@
<script lang="ts" setup>
// Usage of `useCldImageUrl` composable
const { url } = useCldImageUrl({ options: { src: '/cld-sample-5.jpg' } })
console.log(url)
const { url } = useCldImageUrl({ options: { src: "/cld-sample-5.jpg" } });
console.log(url);
</script>

<template>
<!-- Usage of `CldOgImage.vue` component -->
<CldOgImage
src="cld-sample-2"
twitter-title="test"
/>
<CldOgImage src="cld-sample-2" twitter-title="test" />

Check warning on line 9 in playground/app.vue

View workflow job for this annotation

GitHub Actions / ci (ubuntu-latest, 16)

'twitter-title' should be on a new line
<!-- Usage of `CldVideoPlayer.vue` component -->
<CldVideoPlayer
width="1620"
height="1080"
src="videos/mountain-stars"
/>
<CldVideoPlayer width="1620" height="1080" src="videos/mountain-stars" />

Check warning on line 11 in playground/app.vue

View workflow job for this annotation

GitHub Actions / ci (ubuntu-latest, 16)

'height' should be on a new line

Check warning on line 11 in playground/app.vue

View workflow job for this annotation

GitHub Actions / ci (ubuntu-latest, 16)

'src' should be on a new line
<!-- Usage of `CldUploadWidget.vue` component -->
<CldUploadWidget
v-slot="{ open }"
upload-preset="nuxt-cloudinary-unsigned"
>
<button
type="button"
@click="open"
>
Upload an Image
</button>
<CldUploadWidget v-slot="{ open }" upload-preset="nuxt-cloudinary-unsigned">

Check warning on line 13 in playground/app.vue

View workflow job for this annotation

GitHub Actions / ci (ubuntu-latest, 16)

'upload-preset' should be on a new line
<button type="button" @click="open">Upload an Image</button>
</CldUploadWidget>
<!-- Usage of `CldUploadButton.vue` component -->
<CldUploadButton
upload-preset="nuxt-cloudinary-unsigned"
>
<CldUploadButton upload-preset="nuxt-cloudinary-unsigned">
Upload
</CldUploadButton>
<!-- Usage of `CldImage.vue` component -->
Expand All @@ -41,7 +24,9 @@ console.log(url)
height="987"
alt="Sample Product"
crop="fill"
sizes="sm:100vw md:50vw lg:400px"
loading="lazy"
sizes="(max-width: 600px) 480px,
800px"
/>
<CldImage
src="cld-sample-5"
Expand All @@ -53,7 +38,7 @@ console.log(url)
{
position: {
gravity: 'north',
y: 60
y: 60,
},
text: {
color: 'rgb:52a4ff80',
Expand All @@ -65,12 +50,12 @@ console.log(url)
lineSpacing: -100,
stroke: true,
border: '20px_solid_rgb:2d0eff99',
}
},
},
{
position: {
gravity: 'south',
y: 60
y: 60,
},
text: {
color: 'rgb:52a4ff80',
Expand All @@ -82,8 +67,8 @@ console.log(url)
lineSpacing: -100,
stroke: true,
border: '20px_solid_rgb:2d0eff99',
}
}
},
},
]"
/>
</template>

0 comments on commit 9af8ae3

Please sign in to comment.