From 42bbd7c5fd8e423dd3ccf583080354ff28772ad2 Mon Sep 17 00:00:00 2001 From: Johannes Kirschbauer Date: Thu, 4 Sep 2025 19:02:24 +0200 Subject: [PATCH] ui/imports: fix asset imports --- pkgs/clan-app/ui/gtk.webview.js | 2 +- .../src/workflows/InstallMachine/UpdateMachine.tsx | 7 ++----- .../InstallMachine/steps/createInstaller.tsx | 7 ++----- .../workflows/InstallMachine/steps/installSteps.tsx | 7 ++----- pkgs/clan-app/ui/vite.config.ts | 12 ++++++++++++ 5 files changed, 19 insertions(+), 16 deletions(-) diff --git a/pkgs/clan-app/ui/gtk.webview.js b/pkgs/clan-app/ui/gtk.webview.js index e75eecc12..e0c2f4b98 100644 --- a/pkgs/clan-app/ui/gtk.webview.js +++ b/pkgs/clan-app/ui/gtk.webview.js @@ -38,7 +38,7 @@ fs.readFile(manifestPath, { encoding: "utf8" }, (err, data) => { assets.forEach((asset) => { // console.log(asset); if (asset.src === "index.html") { - asset.css.forEach((cssEntry) => { + asset.css?.forEach((cssEntry) => { // css to be processed const css = fs.readFileSync(`dist/${cssEntry}`, "utf8"); diff --git a/pkgs/clan-app/ui/src/workflows/InstallMachine/UpdateMachine.tsx b/pkgs/clan-app/ui/src/workflows/InstallMachine/UpdateMachine.tsx index b2b26258e..1d7a6285a 100644 --- a/pkgs/clan-app/ui/src/workflows/InstallMachine/UpdateMachine.tsx +++ b/pkgs/clan-app/ui/src/workflows/InstallMachine/UpdateMachine.tsx @@ -19,6 +19,7 @@ import { LoadingBar } from "@/src/components/LoadingBar/LoadingBar"; import { useApiClient } from "@/src/hooks/ApiClient"; import { useClanURI } from "@/src/hooks/clan"; import { AlertProps } from "@/src/components/Alert/Alert"; +import usbLogo from "@/logos/usb-stick-min.png?url"; // TODO: Deduplicate interface UpdateStepperProps { @@ -135,11 +136,7 @@ const UpdateProgress = () => { return (
- usb logo + usb logo
( { "relative flex size-full flex-col items-center justify-end bg-inv-4", )} > - usb logo + usb logo
{ return ( @@ -829,11 +830,7 @@ const InstallProgress = () => { return (
- usb logo + usb logo