Add crud for browser targets

This commit is contained in:
Owen
2026-05-15 14:07:48 -07:00
parent 00e1675f7b
commit 75b5afd544
20 changed files with 934 additions and 27 deletions

View File

@@ -9,6 +9,7 @@ import { toast } from "@app/hooks/useToast";
type Target = {
ip: string;
port: number;
authToken: string;
};
type FormState = {
@@ -91,7 +92,7 @@ export default function VncClient({
const params = new URLSearchParams({
host: target.ip,
port: String(target.port),
authToken: "test-token"
authToken: target.authToken
});
const wsUrl = `${base}?${params.toString()}`;

View File

@@ -15,7 +15,7 @@ export default async function VncPage() {
const host = headersList.get("host") || "";
const hostname = host.split(":")[0];
let target: { ip: string; port: number } | null = null;
let target: { ip: string; port: number; authToken: string } | null = null;
let error: string | null = null;
try {