mirror of
https://github.com/Termix-SSH/Termix.git
synced 2026-10-31 15:45:23 +00:00
feat: move session sharing and collab rooms into a plugin (B12)
This commit is contained in:
1 parent
791d8656a1
commit
a276f6898c
207 files changed
+35771
-11072
No files matched your search
@@ -27,6 +27,7 @@ import {
|
||||
} from "./HostEditorGuacamoleTabs";
|
||||
import { getGuacamoleTokenFromHost } from "./guacamole-api";
|
||||
import { quickConnectGuacHost } from "./quick-connect-guac-host";
|
||||
import { REMOTE_DESKTOP_TOOLBAR_SLOT } from "./GuacamoleToolbar.tsx";
|
||||
|
||||
type Protocol = "rdp" | "vnc" | "telnet";
|
||||
|
||||
@@ -220,6 +221,12 @@ export function activate(app: TermixApp): void {
|
||||
});
|
||||
if (app.guest) return;
|
||||
|
||||
// The share button lives here, contributed by session sharing.
|
||||
app.declareActionSlot({
|
||||
id: REMOTE_DESKTOP_TOOLBAR_SLOT,
|
||||
accepts: ["button"],
|
||||
});
|
||||
|
||||
// Mints a token for presenting a host in a collab room.
|
||||
app.registerAction(
|
||||
"session.remoteDisplay.token",
|
||||
|
||||
Reference in new issue
Block a user