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

+8
View File
@@ -1,4 +1,5 @@
import { useCallback, useEffect, useMemo, useState } from "react";
import { enabledHostProtocols } from "@/sidebar/host-protocols";
import { useTranslation as useI18nTranslation } from "react-i18next";
import { toast } from "sonner";
import {
@@ -275,6 +276,13 @@ export const pluginHostBridge: PluginHostBridge = {
useSlotContributions: (slotId, context) => useActionSlot(slotId, context),
hostProtocols: (record) => [
...(record.enableSsh !== false ? ["ssh"] : []),
...enabledHostProtocols(
record as { pluginSettings?: Record<string, Record<string, unknown>> },
).map((protocol) => protocol.id),
],
usePluginComponent: (id) => usePluginComponent(id),
};