mirror of
https://github.com/Termix-SSH/Termix.git
synced 2026-10-28 06:05:24 +00:00
feat: finish the remote-desktop plugin (B14)
This commit is contained in:
1 parent
0af2c94983
commit
14eb558b85
215 files changed
+30029
-3921
No files matched your search
@@ -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),
|
||||
};
|
||||
|
||||
|
||||
Reference in new issue
Block a user