feat: finish the remote-desktop plugin (B14)

This commit is contained in:
LukeGus committed 2026-09-24 01:02:45 -05:00
1 parent 0af2c94983
commit 14eb558b85
215 files changed
+30029 -3921

No files matched your search

+1 -11
View File
@@ -794,7 +794,7 @@ function getApiUrl(path: string, defaultPort: number): string {
// JWT fresh on every request (cheap, and correct even if the user
// connects/disconnects remote sync without an app reload).
function createRemoteOriginApiInstance(path: string): AxiosInstance {
export function createRemoteOriginApiInstance(path: string): AxiosInstance {
const instance = axios.create({
headers: { "Content-Type": "application/json" },
timeout: 30000,
@@ -835,7 +835,6 @@ function createRemoteOriginApiInstance(path: string): AxiosInstance {
let remoteFileManagerApi: AxiosInstance | null = null;
let remoteStatsApi: AxiosInstance | null = null;
let remoteCoreApi: AxiosInstance | null = null;
let remoteGuacamoleApi: AxiosInstance | null = null;
export function getRemoteFileManagerApi(): AxiosInstance {
if (!remoteFileManagerApi) {
@@ -867,13 +866,6 @@ export function getRemoteCoreApi(): AxiosInstance {
return remoteCoreApi;
}
export function getRemoteGuacamoleApi(): AxiosInstance {
if (!remoteGuacamoleApi) {
remoteGuacamoleApi = createRemoteOriginApiInstance("");
}
return remoteGuacamoleApi;
}
// Maps a live SSH session (keyed by sessionId, which today is the host's
// numeric id as a string -- see ensureSSHSessionForHost) to the resolved
// origin it was connected through, so every subsequent file-manager call
@@ -1582,8 +1574,6 @@ export {
updateLogLevel,
getSessionTimeout,
updateSessionTimeout,
getGuacamoleSettings,
updateGuacamoleSettings,
} from "@/api/settings-api";
// ============================================================================