diff --git a/astro.config.ts b/astro.config.ts index 4d72f4c..26b55d3 100644 --- a/astro.config.ts +++ b/astro.config.ts @@ -7,6 +7,7 @@ import tailwind from "@astrojs/tailwind"; import { defineConfig } from "astro/config"; import mkcert from "vite-plugin-mkcert"; +import { viteStaticCopy } from "vite-plugin-static-copy"; import wasm from "vite-plugin-wasm"; // https://astro.build/config @@ -39,7 +40,19 @@ export default defineConfig({ ], }, }, - plugins: [mkcert(), wasm()], + plugins: [ + mkcert(), + wasm(), + viteStaticCopy({ + hook: "buildStart", + targets: [ + { + src: "node_modules/@shoelace-style/shoelace/dist/assets/**/*", + dest: "assets", + }, + ], + }), + ], worker: { format: "es", plugins: () => [wasm()], diff --git a/bun.lockb b/bun.lockb index 0b3300a..053b95e 100755 Binary files a/bun.lockb and b/bun.lockb differ diff --git a/env.d.ts b/env.d.ts index 375d2c0..0820338 100644 --- a/env.d.ts +++ b/env.d.ts @@ -1,7 +1,7 @@ /// interface ImportMetaEnv { - readonly PUBLIC_RELAY_SCHEME: string; + readonly PUBLIC_RELAY_SCHEME: "http" | "https"; readonly PUBLIC_RELAY_HOST: string; readonly PUBLIC_RELAY_REGIONS: string; } diff --git a/package.json b/package.json index 59f6ea0..4d930e5 100644 --- a/package.json +++ b/package.json @@ -15,13 +15,14 @@ "@astrojs/node": "8.3.4", "@astrojs/solid-js": "4.4.4", "@astrojs/tailwind": "5.1.2", - "@kixelated/moq": "^0.3.13", + "@kixelated/moq": "^0.4.0", "@tailwindcss/forms": "^0.5.9", "@tailwindcss/typography": "^0.5.15", "astro": "4.16.16", "solid-js": "^1.9.3", "tailwindcss": "^3.4.15", "vite-plugin-mkcert": "^1.17.6", + "vite-plugin-static-copy": "^2.2.0", "vite-plugin-wasm": "^3.3.0" }, "devDependencies": { diff --git a/public/layout/favicon.svg b/public/layout/favicon.svg index 50d4749..d5f27f2 100644 --- a/public/layout/favicon.svg +++ b/public/layout/favicon.svg @@ -1,9 +1,10 @@ - - - + + + diff --git a/src/components/watch.tsx b/src/components/watch.tsx index b287fe7..3758dfb 100644 --- a/src/components/watch.tsx +++ b/src/components/watch.tsx @@ -9,7 +9,7 @@ export default function Watch(props: { path: string }) { return (
- +
); diff --git a/src/layouts/global.astro b/src/layouts/global.astro index e9b7cfd..127442f 100644 --- a/src/layouts/global.astro +++ b/src/layouts/global.astro @@ -1,5 +1,6 @@ --- import "./global.css"; +import "@shoelace-style/shoelace/dist/themes/dark.css"; // NOTE: This is magically used as the type for Astro.props interface Props { @@ -16,7 +17,7 @@ if (frontmatter?.title) title = frontmatter.title; --- - + diff --git a/tsconfig.json b/tsconfig.json index 0f39cdc..09c7bb9 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -4,6 +4,7 @@ "baseUrl": ".", "jsx": "preserve", "jsxImportSource": "solid-js", + "esModuleInterop": true, "paths": { "@/*": ["src/*"] }