Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 14 additions & 1 deletion astro.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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()],
Expand Down
Binary file modified bun.lockb
Binary file not shown.
2 changes: 1 addition & 1 deletion env.d.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/// <reference types="astro/client" />

interface ImportMetaEnv {
readonly PUBLIC_RELAY_SCHEME: string;
readonly PUBLIC_RELAY_SCHEME: "http" | "https";
readonly PUBLIC_RELAY_HOST: string;
readonly PUBLIC_RELAY_REGIONS: string;
}
Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand Down
9 changes: 5 additions & 4 deletions public/layout/favicon.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion src/components/watch.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ export default function Watch(props: { path: string }) {

return (
<div>
<moq-watch prop:url={url()} class="rounded-lg overflow-hidden" />
<moq-watch prop:url={url()} prop:controls={true} prop:status={true} class="rounded-lg overflow-hidden" />
<Region setUrl={setUrl} path={props.path} />
</div>
);
Expand Down
3 changes: 2 additions & 1 deletion src/layouts/global.astro
Original file line number Diff line number Diff line change
@@ -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 {
Expand All @@ -16,7 +17,7 @@ if (frontmatter?.title) title = frontmatter.title;
---

<!doctype html>
<html lang="en" class="bg-slate-900 text-slate-100">
<html lang="en" class="bg-slate-900 text-slate-100 sl-theme-dark">
<head>
<meta charset="UTF-8" />
<meta name="description" content="Media over QUIC is a new live media protocol in development by the IETF." />
Expand Down
1 change: 1 addition & 0 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
"baseUrl": ".",
"jsx": "preserve",
"jsxImportSource": "solid-js",
"esModuleInterop": true,
"paths": {
"@/*": ["src/*"]
}
Expand Down