Skip to content

Commit

Permalink
Merge pull request #209 from nuxt-modules/chore/3.0.0-rc.1
Browse files Browse the repository at this point in the history
chore: 3.0.0-rc.1
  • Loading branch information
Baroshem committed May 22, 2024
2 parents a57debb + 9d41fec commit b3f1fe2
Show file tree
Hide file tree
Showing 42 changed files with 12,719 additions and 9,070 deletions.
3 changes: 0 additions & 3 deletions .eslintignore

This file was deleted.

10 changes: 0 additions & 10 deletions .eslintrc

This file was deleted.

2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
strategy:
matrix:
os: [ubuntu-latest]
node: [16]
node: [18]

steps:
- uses: actions/setup-node@v3
Expand Down
38 changes: 25 additions & 13 deletions .stackblitz/app.vue
Original file line number Diff line number Diff line change
@@ -1,25 +1,30 @@
<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)
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' },
{ tag: 'electric_car_360_product_gallery_demo', mediaType: 'spin' },
]
const buttonId = "open-btn";
const buttonId = 'open-btn'
</script>

<template>
<!-- Usage of `CldImage.vue` component -->
<CldImage src="cld-sample-5" width="987" height="987" alt="Sample Product" />
<CldImage
src="cld-sample-5"
width="987"
height="987"
alt="Sample Product"
/>
<CldVideoPlayer
width="1620"
height="1080"
Expand All @@ -36,7 +41,12 @@ const buttonId = "open-btn";
}
"
>
<button type="button" @click="open">Upload an Image</button>
<button
type="button"
@click="open"
>
Upload an Image
</button>
</CldUploadWidget>
<!-- Usage of `CldUploadButton.vue` component -->
<CldUploadButton upload-preset="nuxt-cloudinary-unsigned">
Expand Down Expand Up @@ -93,7 +103,9 @@ const buttonId = "open-btn";
]"
/>

<button :id="buttonId">Select Image or Video</button>
<button :id="buttonId">
Select Image or Video
</button>
<CldMediaLibrary
api-key="12345"
:button-id="buttonId"
Expand Down
6 changes: 3 additions & 3 deletions .stackblitz/nuxt.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@
export default defineNuxtConfig({
modules: ['@nuxtjs/cloudinary'],
cloudinary: {
cloudName: 'nuxt-cloudinary'
}
});
cloudName: 'nuxt-cloudinary',
},
})
4 changes: 2 additions & 2 deletions .stackblitz/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@
"postinstall": "nuxt prepare"
},
"devDependencies": {
"nuxt": "^3.8.0"
"nuxt": "^3.11.2"
},
"dependencies": {
"@nuxtjs/cloudinary": "^2.7.3"
"@nuxtjs/cloudinary": "^3.0.0-rc.1"
}
}
Loading

0 comments on commit b3f1fe2

Please sign in to comment.