chore: Bump deps to latest (#213)

This commit is contained in:
Kendell R
2024-01-07 14:04:42 -08:00
committed by GitHub
parent b1782e7e06
commit 80d1251203
9 changed files with 1049 additions and 730 deletions

2
src/app.d.ts vendored
View File

@@ -10,7 +10,7 @@ declare namespace App {
// interface Stuff {}
}
declare module '*&picture' {
declare module '*&as=picture' {
/**
* actual types
* taken from https://github.com/JonasKruckenberg/imagetools/issues/160#issuecomment-1009292026

View File

@@ -1,6 +1,6 @@
<script>
import Picture from '$lib/components/Picture.svelte';
import manager_screenshot from '$images/manager.png?w=1233;822;411&format=avif;webp;png&picture';
import manager_screenshot from '$images/manager.png?w=1233;822;411&format=avif;webp;png&as=picture';
</script>
<div class="hero-img">

View File

@@ -6,8 +6,8 @@
</script>
<picture>
{#each Object.entries(data.sources) as [format, images]}
<source srcset={images.map((img) => `${img.src} ${img.w}w`).join(', ')} type="image/{format}" />
{#each Object.entries(data.sources) as [format, srcset]}
<source {srcset} type="image/{format}" />
{/each}
<img {alt} src={data.fallback.src} />
<img {alt} src={data.img.src} />
</picture>

View File

@@ -5,7 +5,7 @@
import { createQuery } from '@tanstack/svelte-query';
import manager_screenshot from '$images/manager.png?format=avif;webp;png&picture';
import manager_screenshot from '$images/manager.png?format=avif;webp;png&as=picture';
import Head from '$lib/components/Head.svelte';
import Query from '$lib/components/Query.svelte';