-
Notifications
You must be signed in to change notification settings - Fork 34
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
151 additions
and
149 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 |
---|---|---|
@@ -1,40 +1,38 @@ | ||
<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" } }); | ||
Check failure on line 3 in playground/app.vue GitHub Actions / ci (ubuntu-latest, 18)
|
||
console.log(url); | ||
const { url: videoUrl } = useCldVideoUrl({ | ||
options: { src: 'videos/mountain-stars' }, | ||
}) | ||
console.log(videoUrl) | ||
options: { src: "videos/mountain-stars" }, | ||
}); | ||
console.log(videoUrl); | ||
const mediaAssets = [ | ||
{ tag: 'electric_car_product_gallery_demo' }, // by default mediaType: "image" | ||
{ tag: 'electric_car_product_gallery_demo', mediaType: 'video' }, | ||
{ tag: 'electric_car_360_product_gallery_demo', mediaType: 'spin' }, | ||
] | ||
{ tag: "electric_car_product_gallery_demo" }, // by default mediaType: "image" | ||
{ tag: "electric_car_product_gallery_demo", mediaType: "video" }, | ||
Check failure on line 13 in playground/app.vue GitHub Actions / ci (ubuntu-latest, 18)
|
||
{ tag: "electric_car_360_product_gallery_demo", mediaType: "spin" }, | ||
]; | ||
const buttonId = 'open-btn' | ||
const buttonId = "open-btn"; | ||
const cldVideoRef = ref() | ||
const cldVideoRef = ref(); | ||
const chapters = { | ||
0: 'Chapter 1', | ||
6: 'Chapter 2', | ||
9: 'Chapter 3', | ||
} | ||
0: "Chapter 1", | ||
6: "Chapter 2", | ||
9: "Chapter 3", | ||
}; | ||
const colors = { | ||
accent: '#ff0000', | ||
base: '#00ff00', | ||
text: '#0000ff', | ||
} | ||
accent: "#ff0000", | ||
base: "#00ff00", | ||
text: "#0000ff", | ||
}; | ||
</script> | ||
|
||
<template> | ||
<button :id="buttonId"> | ||
Select Image or Video | ||
</button> | ||
<button :id="buttonId">Select Image or Video</button> | ||
Check warning on line 35 in playground/app.vue GitHub Actions / ci (ubuntu-latest, 18)
|
||
<CldMediaLibrary | ||
api-key="12345" | ||
:button-id="buttonId" | ||
|
@@ -45,10 +43,7 @@ const colors = { | |
cloud-name="demo" | ||
:button-id="buttonId" | ||
/> | ||
<CldOgImage | ||
src="cld-sample-2" | ||
twitter-title="test" | ||
/> | ||
<CldOgImage src="cld-sample-2" twitter-title="test" /> | ||
<CldVideoPlayer | ||
ref="cldVideoRef" | ||
width="1620" | ||
|
@@ -65,12 +60,7 @@ const colors = { | |
upload-preset="nuxt-cloudinary-unsigned" | ||
:tags="['sad', 'music']" | ||
> | ||
<button | ||
type="button" | ||
@click="open" | ||
> | ||
Upload an Image | ||
</button> | ||
<button type="button" @click="open">Upload an Image</button> | ||
Check warning on line 63 in playground/app.vue GitHub Actions / ci (ubuntu-latest, 18)
Check warning on line 63 in playground/app.vue GitHub Actions / ci (ubuntu-latest, 18)
|
||
</CldUploadWidget> | ||
<CldUploadButton upload-preset="nuxt-cloudinary-unsigned"> | ||
Upload | ||
|
@@ -84,6 +74,7 @@ const colors = { | |
priority | ||
sizes="(max-width: 600px) 480px, | ||
800px" | ||
:replaceBackground="{ prompt: 'fish tank', seed: 3 }" | ||
/> | ||
<CldImage | ||
src="cld-sample-5" | ||
|
Oops, something went wrong.