Trimmed monorepo checkout (fluxer_desktop + packages/voice_engine_v2 + tools/ci) with a "Connect to a Different Server" menu item and popout that lets the desktop app switch to any self-hosted Fluxer instance, plus fixes for well-known discovery on single-domain self-hosted deployments and a false-positive ERR_ABORTED on same-origin client redirects during the switch. Defaults to chat.fluxr.chat and uses an isolated userData directory from the official build.
35 lines
694 B
TypeScript
35 lines
694 B
TypeScript
// SPDX-License-Identifier: AGPL-3.0-or-later
|
|
|
|
export interface EvdevKeyEvent {
|
|
type: 'keydown' | 'keyup';
|
|
keycode: number;
|
|
keyName: string;
|
|
ctrlKey: boolean;
|
|
altKey: boolean;
|
|
shiftKey: boolean;
|
|
metaKey: boolean;
|
|
}
|
|
|
|
export interface EvdevMouseEvent {
|
|
type: 'mousedown' | 'mouseup';
|
|
button: number;
|
|
ctrlKey: boolean;
|
|
altKey: boolean;
|
|
shiftKey: boolean;
|
|
metaKey: boolean;
|
|
}
|
|
|
|
export type NativeEvdevEvent = EvdevKeyEvent | EvdevMouseEvent;
|
|
|
|
export declare class EvdevHook {
|
|
constructor(onEvent: (event: NativeEvdevEvent) => void);
|
|
|
|
start(): boolean;
|
|
|
|
stop(): void;
|
|
}
|
|
|
|
export declare function nameToEvdevKeycode(name: string): number;
|
|
|
|
export declare const loadError: Error | null;
|