Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: 3.0.0-rc.1 #209

Merged
merged 17 commits into from
May 22, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading