feat: quick connect for RDP and VNC (#1335)

The Quick Connect panel gets a protocol switch. RDP/VNC quick hosts are
built like SSH ones (never saved) and opened as regular remote desktop
tabs; GuacamoleApp mints their token from the typed fields through the
existing /guacamole/token endpoint instead of a host-row lookup.
This commit is contained in:
ZacharyZcR
2026-08-25 01:40:42 +08:00
committed by GitHub
parent 672f5ba80b
commit 404608867f
6 changed files with 349 additions and 64 deletions
+7
View File
@@ -40,6 +40,10 @@ import type {
import type { GuacamoleAppHandle } from "@/features/guacamole/GuacamoleApp";
import { useIsMobile } from "@/hooks/use-mobile";
import type { Tab, TabType, Host } from "@/types/ui-types";
import {
isQuickConnectHost,
quickConnectGuacHost,
} from "@/sidebar/quick-connect-host";
import type { SSHHost } from "@/types";
import { useTabsSafe } from "@/shell/TabContext";
import {
@@ -586,6 +590,9 @@ export function renderTabContent(
tabId={tab.id}
protocol={tab.type as "rdp" | "vnc" | "telnet"}
isVisible={isVisible}
quickConnectHost={
isQuickConnectHost(host) ? quickConnectGuacHost(host) : undefined
}
/>,
);