11<script lang="ts" setup>
22// Usage of `useCldImageUrl` composable
3- const { url } = useCldImageUrl ({ options: { src: " /cld-sample-5.jpg" } });
4- console .log (url );
3+ const { url } = useCldImageUrl ({ options: { src: ' /cld-sample-5.jpg' } })
4+ console .log (url )
55
66const { url : videoUrl } = useCldVideoUrl ({
7- options: { src: " videos/mountain-stars" },
8- });
9- console .log (videoUrl );
7+ options: { src: ' videos/mountain-stars' },
8+ })
9+ console .log (videoUrl )
1010
1111const mediaAssets = [
12- { tag: " electric_car_product_gallery_demo" }, // by default mediaType: "image"
13- { tag: " electric_car_product_gallery_demo" , mediaType: " video" },
14- { tag: " electric_car_360_product_gallery_demo" , mediaType: " spin" },
15- ];
12+ { tag: ' electric_car_product_gallery_demo' }, // by default mediaType: "image"
13+ { tag: ' electric_car_product_gallery_demo' , mediaType: ' video' },
14+ { tag: ' electric_car_360_product_gallery_demo' , mediaType: ' spin' },
15+ ]
1616
17- const buttonId = " open-btn" ;
17+ const buttonId = ' open-btn'
1818 </script >
1919
2020<template >
2121 <!-- Usage of `CldImage.vue` component -->
22- <CldImage src="cld-sample-5" width="987" height="987" alt="Sample Product" />
22+ <CldImage
23+ src="cld-sample-5"
24+ width="987"
25+ height="987"
26+ alt="Sample Product"
27+ />
2328 <CldVideoPlayer
2429 width="1620"
2530 height="1080"
@@ -36,7 +41,12 @@ const buttonId = "open-btn";
3641 }
3742 "
3843 >
39- <button type =" button" @click =" open" >Upload an Image</button >
44+ <button
45+ type =" button"
46+ @click =" open"
47+ >
48+ Upload an Image
49+ </button >
4050 </CldUploadWidget >
4151 <!-- Usage of `CldUploadButton.vue` component -->
4252 <CldUploadButton upload-preset="nuxt-cloudinary-unsigned">
@@ -93,7 +103,9 @@ const buttonId = "open-btn";
93103 ] "
94104 />
95105
96- <button :id =" buttonId" >Select Image or Video</button >
106+ <button :id =" buttonId" >
107+ Select Image or Video
108+ </button >
97109 <CldMediaLibrary
98110 api-key="12345"
99111 :button-id =" buttonId "
0 commit comments