Skip to content

Commit b3f1fe2

Browse files
authored
Merge pull request #209 from nuxt-modules/chore/3.0.0-rc.1
chore: 3.0.0-rc.1
2 parents a57debb + 9d41fec commit b3f1fe2

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

42 files changed

+12719
-9070
lines changed

.eslintignore

Lines changed: 0 additions & 3 deletions
This file was deleted.

.eslintrc

Lines changed: 0 additions & 10 deletions
This file was deleted.

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
strategy:
1616
matrix:
1717
os: [ubuntu-latest]
18-
node: [16]
18+
node: [18]
1919

2020
steps:
2121
- uses: actions/setup-node@v3

.stackblitz/app.vue

Lines changed: 25 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,30 @@
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
66
const { 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
1111
const 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"

.stackblitz/nuxt.config.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@
22
export default defineNuxtConfig({
33
modules: ['@nuxtjs/cloudinary'],
44
cloudinary: {
5-
cloudName: 'nuxt-cloudinary'
6-
}
7-
});
5+
cloudName: 'nuxt-cloudinary',
6+
},
7+
})

.stackblitz/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@
88
"postinstall": "nuxt prepare"
99
},
1010
"devDependencies": {
11-
"nuxt": "^3.8.0"
11+
"nuxt": "^3.11.2"
1212
},
1313
"dependencies": {
14-
"@nuxtjs/cloudinary": "^2.7.3"
14+
"@nuxtjs/cloudinary": "^3.0.0-rc.1"
1515
}
1616
}

0 commit comments

Comments
 (0)