fix: remove wrong urls
All checks were successful
Deploy to SFTP Server / build (push) Successful in 15m25s
All checks were successful
Deploy to SFTP Server / build (push) Successful in 15m25s
This commit is contained in:
@@ -1,10 +1,10 @@
|
|||||||
---
|
---
|
||||||
import type { ImageMetadata } from "astro";
|
import type { ImageMetadata } from "astro";
|
||||||
import { Picture as AstroImage } from "astro:assets";
|
import { Picture as AstroImage } from "astro:assets";
|
||||||
import { inferRemoteSize } from 'astro/assets/utils';
|
import { inferRemoteSize } from "astro/assets/utils";
|
||||||
import { generateThumbHash, getExifData } from "@helpers/image";
|
import { generateThumbHash, getExifData } from "@helpers/image";
|
||||||
interface Props {
|
interface Props {
|
||||||
src: ImageMetadata & { fsPath?: string, src?: string };
|
src: ImageMetadata & { fsPath?: string; src?: string };
|
||||||
alt: string;
|
alt: string;
|
||||||
pictureClass?: string;
|
pictureClass?: string;
|
||||||
class?: string;
|
class?: string;
|
||||||
@@ -16,20 +16,20 @@ interface Props {
|
|||||||
|
|
||||||
async function checkImage(image: ImageMetadata) {
|
async function checkImage(image: ImageMetadata) {
|
||||||
const src = image.src;
|
const src = image.src;
|
||||||
if(!src) return false;
|
if (!src) return false;
|
||||||
try {
|
try {
|
||||||
if (src.startsWith("/@fs") || src.startsWith("/_astro")) return true;
|
if (src.startsWith("/@fs") || src.startsWith("/_astro")) return true;
|
||||||
const res = await inferRemoteSize(src);
|
const res = await inferRemoteSize(src);
|
||||||
if (res.format) {
|
if (res.format) {
|
||||||
image.format = res.format;
|
image.format = res.format;
|
||||||
return true;
|
return true;
|
||||||
}else {
|
} else {
|
||||||
console.log("Failed to load: ", src);
|
console.log("Failed to load: ", src);
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
|
console.log("\n");
|
||||||
console.log("Failed to fetch: ", src);
|
console.log("Failed to fetch: ", src);
|
||||||
console.log(err)
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -43,7 +43,7 @@ const {
|
|||||||
maxWidth,
|
maxWidth,
|
||||||
} = Astro.props;
|
} = Astro.props;
|
||||||
|
|
||||||
let thumbhash = hash && await generateThumbHash(image);
|
let thumbhash = hash && (await generateThumbHash(image));
|
||||||
const imageOk = await checkImage(image);
|
const imageOk = await checkImage(image);
|
||||||
|
|
||||||
let exif = imageOk && (await getExifData(image));
|
let exif = imageOk && (await getExifData(image));
|
||||||
@@ -85,5 +85,5 @@ const sizes = [
|
|||||||
.join(", ")}>
|
.join(", ")}>
|
||||||
<slot />
|
<slot />
|
||||||
</AstroImage>
|
</AstroImage>
|
||||||
) : undefined
|
) : undefined
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -16,7 +16,6 @@ import image2 from "images/PXL_20250601_132646197.jpg"
|
|||||||
import image3 from "images/PXL_20250601_124002445.jpg"
|
import image3 from "images/PXL_20250601_124002445.jpg"
|
||||||
import image4 from "images/PXL_20250601_095307910.jpg"
|
import image4 from "images/PXL_20250601_095307910.jpg"
|
||||||
import image5 from "images/PXL_20250601_082528934.jpg"
|
import image5 from "images/PXL_20250601_082528934.jpg"
|
||||||
import image6 from "images/PXL_20250601_044050514.mp4"
|
|
||||||
import image7 from "images/PXL_20250530_195122211.jpg"
|
import image7 from "images/PXL_20250530_195122211.jpg"
|
||||||
import image8 from "images/PXL_20250530_170114907.MP.jpg"
|
import image8 from "images/PXL_20250530_170114907.MP.jpg"
|
||||||
import image9 from "images/PXL_20250530_141432767.jpg"
|
import image9 from "images/PXL_20250530_141432767.jpg"
|
||||||
@@ -24,14 +23,12 @@ import image10 from "images/PXL_20250530_135631186.MP.jpg"
|
|||||||
import image11 from "images/PXL_20250530_110041174.jpg"
|
import image11 from "images/PXL_20250530_110041174.jpg"
|
||||||
import image12 from "images/PXL_20250530_082919731.jpg"
|
import image12 from "images/PXL_20250530_082919731.jpg"
|
||||||
import image13 from "images/PXL_20250529_201559403.jpg"
|
import image13 from "images/PXL_20250529_201559403.jpg"
|
||||||
import image14 from "images/PXL_20250529_125633973.mp4"
|
|
||||||
import image15 from "images/PXL_20250528_121633744.MP.jpg"
|
import image15 from "images/PXL_20250528_121633744.MP.jpg"
|
||||||
import image16 from "images/PXL_20250527_101057540.MP.jpg"
|
import image16 from "images/PXL_20250527_101057540.MP.jpg"
|
||||||
import image17 from "images/PXL_20250527_100728883.jpg"
|
import image17 from "images/PXL_20250527_100728883.jpg"
|
||||||
import image18 from "images/IMG-20250531-WA0020.jpeg"
|
import image18 from "images/IMG-20250531-WA0020.jpeg"
|
||||||
import image19 from "images/20250528_164715.jpg"
|
import image19 from "images/20250528_164715.jpg"
|
||||||
|
|
||||||
import image20 from "images/PXL_20250602_064236132.mp4"
|
|
||||||
import image21 from "images/PXL_20250602_064221551.jpg"
|
import image21 from "images/PXL_20250602_064221551.jpg"
|
||||||
import image22 from "images/PXL_20250603_083830771.jpg"
|
import image22 from "images/PXL_20250603_083830771.jpg"
|
||||||
import image23 from "images/PXL_20250603_093606665.jpg"
|
import image23 from "images/PXL_20250603_093606665.jpg"
|
||||||
@@ -45,9 +42,8 @@ import image27 from "images/PXL_20250605_100650266.jpg"
|
|||||||
<Image alt="" src={image3}/>
|
<Image alt="" src={image3}/>
|
||||||
<Image alt="" src={image4}/>
|
<Image alt="" src={image4}/>
|
||||||
<Image alt="" src={image5}/>
|
<Image alt="" src={image5}/>
|
||||||
<Image alt="" src={image6}/>
|
|
||||||
|
|
||||||
import videoUrl1 from "images/PXL_20250529_125633973_small_x265.mp4?url"
|
import videoUrl1 from "images/PXL_20250529_125633973_small_x265.mp4"
|
||||||
|
|
||||||
<video src={videoUrl1} controls alt=""/>
|
<video src={videoUrl1} controls alt=""/>
|
||||||
|
|
||||||
@@ -58,7 +54,6 @@ import videoUrl1 from "images/PXL_20250529_125633973_small_x265.mp4?url"
|
|||||||
<Image alt="" src={image11}/>
|
<Image alt="" src={image11}/>
|
||||||
<Image alt="" src={image12}/>
|
<Image alt="" src={image12}/>
|
||||||
<Image alt="" src={image13}/>
|
<Image alt="" src={image13}/>
|
||||||
<Image alt="" src={image14}/>
|
|
||||||
|
|
||||||
import videoUrl2 from "images/PXL_20250601_044050514_small_x265.mp4"
|
import videoUrl2 from "images/PXL_20250601_044050514_small_x265.mp4"
|
||||||
|
|
||||||
@@ -69,7 +64,6 @@ import videoUrl2 from "images/PXL_20250601_044050514_small_x265.mp4"
|
|||||||
<Image alt="" src={image17}/>
|
<Image alt="" src={image17}/>
|
||||||
<Image alt="" src={image18}/>
|
<Image alt="" src={image18}/>
|
||||||
<Image alt="" src={image19}/>
|
<Image alt="" src={image19}/>
|
||||||
<Image alt="" src={image20}/>
|
|
||||||
<Image alt="" src={image21}/>
|
<Image alt="" src={image21}/>
|
||||||
|
|
||||||
import videoUrl3 from "images/PXL_20250602_064236132_small_x265.mp4"
|
import videoUrl3 from "images/PXL_20250602_064236132_small_x265.mp4"
|
||||||
|
|||||||
@@ -20,7 +20,6 @@ import image2 from "images/PXL_20250601_132646197.jpg"
|
|||||||
import image3 from "images/PXL_20250601_124002445.jpg"
|
import image3 from "images/PXL_20250601_124002445.jpg"
|
||||||
import image4 from "images/PXL_20250601_095307910.jpg"
|
import image4 from "images/PXL_20250601_095307910.jpg"
|
||||||
import image5 from "images/PXL_20250601_082528934.jpg"
|
import image5 from "images/PXL_20250601_082528934.jpg"
|
||||||
import image6 from "images/PXL_20250601_044050514.mp4"
|
|
||||||
import image7 from "images/PXL_20250530_195122211.jpg"
|
import image7 from "images/PXL_20250530_195122211.jpg"
|
||||||
import image8 from "images/PXL_20250530_170114907.MP.jpg"
|
import image8 from "images/PXL_20250530_170114907.MP.jpg"
|
||||||
import image9 from "images/PXL_20250530_141432767.jpg"
|
import image9 from "images/PXL_20250530_141432767.jpg"
|
||||||
@@ -28,14 +27,12 @@ import image10 from "images/PXL_20250530_135631186.MP.jpg"
|
|||||||
import image11 from "images/PXL_20250530_110041174.jpg"
|
import image11 from "images/PXL_20250530_110041174.jpg"
|
||||||
import image12 from "images/PXL_20250530_082919731.jpg"
|
import image12 from "images/PXL_20250530_082919731.jpg"
|
||||||
import image13 from "images/PXL_20250529_201559403.jpg"
|
import image13 from "images/PXL_20250529_201559403.jpg"
|
||||||
import image14 from "images/PXL_20250529_125633973.mp4"
|
|
||||||
import image15 from "images/PXL_20250528_121633744.MP.jpg"
|
import image15 from "images/PXL_20250528_121633744.MP.jpg"
|
||||||
import image16 from "images/PXL_20250527_101057540.MP.jpg"
|
import image16 from "images/PXL_20250527_101057540.MP.jpg"
|
||||||
import image17 from "images/PXL_20250527_100728883.jpg"
|
import image17 from "images/PXL_20250527_100728883.jpg"
|
||||||
import image18 from "images/IMG-20250531-WA0020.jpeg"
|
import image18 from "images/IMG-20250531-WA0020.jpeg"
|
||||||
import image19 from "images/20250528_164715.jpg"
|
import image19 from "images/20250528_164715.jpg"
|
||||||
|
|
||||||
import image20 from "images/PXL_20250602_064236132.mp4"
|
|
||||||
import image21 from "images/PXL_20250602_064221551.jpg"
|
import image21 from "images/PXL_20250602_064221551.jpg"
|
||||||
import image22 from "images/PXL_20250603_083830771.jpg"
|
import image22 from "images/PXL_20250603_083830771.jpg"
|
||||||
import image23 from "images/PXL_20250603_093606665.jpg"
|
import image23 from "images/PXL_20250603_093606665.jpg"
|
||||||
@@ -49,9 +46,8 @@ import image27 from "images/PXL_20250605_100650266.jpg"
|
|||||||
<Image alt="" src={image3}/>
|
<Image alt="" src={image3}/>
|
||||||
<Image alt="" src={image4}/>
|
<Image alt="" src={image4}/>
|
||||||
<Image alt="" src={image5}/>
|
<Image alt="" src={image5}/>
|
||||||
<Image alt="" src={image6}/>
|
|
||||||
|
|
||||||
import videoUrl1 from "images/PXL_20250529_125633973_small_x265.mp4?url"
|
import videoUrl1 from "images/PXL_20250529_125633973_small_x265.mp4"
|
||||||
|
|
||||||
<video src={videoUrl1} controls alt=""/>
|
<video src={videoUrl1} controls alt=""/>
|
||||||
|
|
||||||
@@ -62,7 +58,6 @@ import videoUrl1 from "images/PXL_20250529_125633973_small_x265.mp4?url"
|
|||||||
<Image alt="" src={image11}/>
|
<Image alt="" src={image11}/>
|
||||||
<Image alt="" src={image12}/>
|
<Image alt="" src={image12}/>
|
||||||
<Image alt="" src={image13}/>
|
<Image alt="" src={image13}/>
|
||||||
<Image alt="" src={image14}/>
|
|
||||||
|
|
||||||
import videoUrl2 from "images/PXL_20250601_044050514_small_x265.mp4"
|
import videoUrl2 from "images/PXL_20250601_044050514_small_x265.mp4"
|
||||||
|
|
||||||
@@ -73,7 +68,6 @@ import videoUrl2 from "images/PXL_20250601_044050514_small_x265.mp4"
|
|||||||
<Image alt="" src={image17}/>
|
<Image alt="" src={image17}/>
|
||||||
<Image alt="" src={image18}/>
|
<Image alt="" src={image18}/>
|
||||||
<Image alt="" src={image19}/>
|
<Image alt="" src={image19}/>
|
||||||
<Image alt="" src={image20}/>
|
|
||||||
<Image alt="" src={image21}/>
|
<Image alt="" src={image21}/>
|
||||||
|
|
||||||
import videoUrl3 from "images/PXL_20250602_064236132_small_x265.mp4"
|
import videoUrl3 from "images/PXL_20250602_064236132_small_x265.mp4"
|
||||||
|
|||||||
Reference in New Issue
Block a user