feat: move session sharing and collab rooms into a plugin (B12)

This commit is contained in:
LukeGus committed 2026-09-23 23:42:46 -05:00
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",