remove all guacd references

This commit is contained in:
felixg
2026-03-01 12:13:12 +01:00
parent 4f5eb3a49c
commit eba699d7bc
6 changed files with 5 additions and 456 deletions

View File

@@ -14,8 +14,7 @@
"@xterm/xterm": "^5.5.0",
"antd": "^5.20.5",
"axios": "^1.7.7",
"guacamole-common-js": "^1.5.0",
"react": "^18.3.1",
"react": "^18.3.1",
"react-dom": "^18.3.1",
"react-router-dom": "^6.26.2",
"zustand": "^4.5.5"

View File

@@ -1,84 +0,0 @@
// Custom type declarations for guacamole-common-js.
// We declare this instead of using @types/guacamole-common-js to avoid version mismatches.
declare namespace Guacamole {
interface Tunnel {
onerror: ((status: Status) => void) | null;
onstatechange: ((state: number) => void) | null;
}
class WebSocketTunnel implements Tunnel {
constructor(
tunnelURL: string,
crossDomain?: boolean,
extraTunnelHeaders?: Record<string, string>
);
onerror: ((status: Status) => void) | null;
onstatechange: ((state: number) => void) | null;
}
class Client {
constructor(tunnel: Tunnel);
connect(data?: string): void;
disconnect(): void;
getDisplay(): Display;
sendKeyEvent(pressed: number, keysym: number): void;
sendMouseState(mouseState: Mouse.State, applyDisplayScale?: boolean): void;
onerror: ((status: Status) => void) | null;
onstatechange: ((state: number) => void) | null;
}
class Display {
getElement(): HTMLDivElement;
getWidth(): number;
getHeight(): number;
scale(scale: number): void;
onresize: (() => void) | null;
}
class Mouse {
constructor(element: Element);
onmousedown: ((mouseState: Mouse.State) => void) | null;
onmouseup: ((mouseState: Mouse.State) => void) | null;
onmousemove: ((mouseState: Mouse.State) => void) | null;
onmouseout: ((mouseState: Mouse.State) => void) | null;
}
// eslint-disable-next-line @typescript-eslint/no-namespace
namespace Mouse {
class State {
x: number;
y: number;
left: boolean;
middle: boolean;
right: boolean;
up: boolean;
down: boolean;
constructor(
x: number,
y: number,
left: boolean,
middle: boolean,
right: boolean,
up: boolean,
down: boolean
);
}
}
class Keyboard {
constructor(element: Element | Document);
onkeydown: ((keysym: number) => void) | null;
onkeyup: ((keysym: number) => void) | null;
}
class Status {
code: number;
message: string;
constructor(code: number, message?: string);
}
}
declare module 'guacamole-common-js' {
export = Guacamole;
}