Migrate assets to Astro imports

This commit is contained in:
Holden
2026-06-27 10:57:40 -05:00
parent b1090d2dc9
commit 2608c9fc52
45 changed files with 477 additions and 366 deletions

View File

@@ -1,7 +1,10 @@
---
import { api } from "../lib/api";
import { getLatestDownloads } from "../lib/downloads";
import Layout from "../layouts/Layout.astro";
import { Image } from "astro:assets";
import { api } from "$lib/api";
import { getLatestDownloads } from "$lib/downloads";
import Layout from "$layouts/Layout.astro";
const latestDownloads = await getLatestDownloads();
const downloads = latestDownloads.success ? latestDownloads.data : [];
@@ -26,7 +29,7 @@ const patchNotes = await api.builds.v1.getPatchNotes();
<div class="span4">
<div class="well text-center download-card">
<p>
<img
<Image
src={download.icon}
alt=""
width="72"