Remove external img provider

Signed-off-by: Al Asad Nur Riyad <asadnurriyad@gmail.com>
This commit is contained in:
Al Asad Nur Riyad
2023-05-06 22:51:17 +06:00
parent 0a2369bc71
commit dc7f69fbc9
20 changed files with 151 additions and 481 deletions

View File

@@ -7,7 +7,6 @@ interface Props {
image: string
alt: string
ogImage: string
provider: string
tags: Array<string>
published: boolean
}
@@ -20,7 +19,6 @@ withDefaults(defineProps<Props>(), {
image: '/nuxt-blog/no-image_cyyits.png',
alt: 'no-alt',
ogImage: '/nuxt-blog/no-image_cyyits.png',
provider: 'cloudinary',
tags: () => [],
published: false,
})
@@ -32,7 +30,6 @@ withDefaults(defineProps<Props>(), {
<div class="sm:col-span-3">
<NuxtImg
class="h-full w-full object-cover object-center rounded-t-2xl sm:rounded-l-2xl sm:rounded-t-none shadow-lg group-hover:scale-[1.02] transition-all duration-500"
:provider="provider"
:src="image"
:alt="alt"
/>

View File

@@ -7,7 +7,6 @@ interface Props {
image: string
alt: string
ogImage: string
provider: string
tags: Array<string>
published: boolean
}
@@ -20,7 +19,6 @@ withDefaults(defineProps<Props>(), {
image: '/nuxt-blog/no-image_cyyits.png',
alt: 'no-alt',
ogImage: '/nuxt-blog/no-image_cyyits.png',
provider: 'cloudinary',
tags: () => [],
published: false,
})
@@ -30,7 +28,6 @@ withDefaults(defineProps<Props>(), {
<article class="group border m-2 overflow-hidden rounded-2xl shadow-md text-zinc-700">
<NuxtLink :to="path">
<NuxtImg
:provider="provider"
class="lg:h-48 md:h-36 w-full object-cover object-center rounded-t-2xl shadow-lg group-hover:scale-[1.02] transition-all duration-500"
:src="image"
:alt="alt"

View File

@@ -13,7 +13,6 @@ const formatedData = computed(() => {
image: articles.image || '/nuxt-blog/no-image_cyyits.png',
alt: articles.alt || 'no alter data available',
ogImage: articles.ogImage || '/nuxt-blog/no-image_cyyits.png',
provider: articles.provider,
date: articles.date || 'not-date-available',
tags: articles.tags || [],
published: articles.published || false,
@@ -54,7 +53,6 @@ useHead({
:image="post.image"
:alt="post.alt"
:og-image="post.ogImage"
:provider="post.provider"
:tags="post.tags"
:published="post.published"
/>

View File

@@ -13,7 +13,6 @@ const formatedData = computed(() => {
image: articles.image || '/nuxt-blog/no-image_cyyits.png',
alt: articles.alt || 'no alter data available',
ogImage: articles.ogImage || '/nuxt-blog/no-image_cyyits.png',
provider: articles.provider,
date: articles.date || 'not-date-available',
tags: articles.tags || [],
published: articles.published || false,
@@ -54,7 +53,6 @@ useHead({
:image="post.image"
:alt="post.alt"
:og-image="post.ogImage"
:provider="post.provider"
:tags="post.tags"
:published="post.published"
/>