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

+5 -7
View File
@@ -1,4 +1,5 @@
import { useState, useRef, useCallback, useEffect } from "react";
import { enabledHostProtocols, protocolPort } from "@/sidebar/host-protocols";
import { useSshAuthProviders } from "@/hooks/useSshAuthProviders";
import { useIsMobile } from "@/hooks/use-mobile";
import { Button } from "@/components/button";
@@ -316,15 +317,12 @@ function QuickActionsCard({
const { t } = useTranslation();
const pinnedHosts = hosts.filter((h) => h.pin);
const getConnectionEndpoint = (host: Host) => {
const protocol = host.enableSsh ? undefined : enabledHostProtocols(host)[0];
const port = host.enableSsh
? host.sshPort
: host.enableRdp
? host.rdpPort
: host.enableVnc
? host.vncPort
: host.enableTelnet
? host.telnetPort
: host.port;
: protocol
? protocolPort(host.pluginSettings, protocol)
: host.port;
return `${host.ip}:${port ?? host.port}`;
};
const renderConnectionIcon = (host: Host) => {