Skip to content

Commit

Permalink
fix: lint
Browse files Browse the repository at this point in the history
  • Loading branch information
Baroshem committed Jan 23, 2024
1 parent 05c57f8 commit d4654fb
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 7 deletions.
3 changes: 2 additions & 1 deletion .eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,6 @@
],
"rules": {
"vue/multi-word-component-names": "off"
}
},
"ignorePatterns": ["**/docs"]
}
23 changes: 18 additions & 5 deletions playground/app.vue
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,9 @@ const cldVideoRef = ref();
</script>

<template>
<button :id="buttonId">Select Image or Video</button>
<button :id="buttonId">
Select Image or Video
</button>
<CldMediaLibrary
api-key="12345"
:button-id="buttonId"
Expand All @@ -27,17 +29,28 @@ const cldVideoRef = ref();
:button-id="buttonId"
/>
<!-- Usage of `CldOgImage.vue` component -->
<CldOgImage src="cld-sample-2" twitter-title="test" />
<CldOgImage
src="cld-sample-2"
twitter-title="test"
/>
<!-- Usage of `CldVideoPlayer.vue` component -->
<CldVideoPlayer
ref="cldVideoRef"
width="1620"
height="1080"
src="videos/mountain-stars"
ref="cldVideoRef"
/>
<!-- Usage of `CldUploadWidget.vue` component -->
<CldUploadWidget v-slot="{ open }" upload-preset="nuxt-cloudinary-unsigned">
<button type="button" @click="open">Upload an Image</button>
<CldUploadWidget
v-slot="{ open }"
upload-preset="nuxt-cloudinary-unsigned"
>
<button
type="button"
@click="open"
>
Upload an Image
</button>
</CldUploadWidget>
<!-- Usage of `CldUploadButton.vue` component -->
<CldUploadButton upload-preset="nuxt-cloudinary-unsigned">
Expand Down
5 changes: 4 additions & 1 deletion src/runtime/components/CldUploadButton.vue
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,10 @@ defineProps<CldUploadWidgetProps>();
</script>

<template>
<CldUploadWidget v-slot="{ open, isLoading }" :upload-preset="uploadPreset">
<CldUploadWidget
v-slot="{ open, isLoading }"
:upload-preset="uploadPreset"
>
<button
type="button"
v-bind="$attrs"
Expand Down

0 comments on commit d4654fb

Please sign in to comment.