mirror of
https://github.com/Termix-SSH/Termix.git
synced 2026-10-29 14:45:24 +00:00
feat: harden plugin api for separate repos, signed updates and generic external login
This commit is contained in:
1 parent
fb9c168b6b
commit
80944301dd
310 files changed
+6577
-4927
No files matched your search
@@ -20,7 +20,13 @@ function TunnelTabView({ host }: TabProps) {
|
||||
return <TunnelTab host={host} />;
|
||||
}
|
||||
|
||||
/** This plugin's C2S relay socket, which the desktop app dials on the linked server. */
|
||||
const C2S_RELAY_PATH = "/plugin-ws/tunnels/c2s/stream";
|
||||
|
||||
export function activate(app: TermixApp): void {
|
||||
if (typeof window !== "undefined" && window.electronAPI?.setC2SRelayPath) {
|
||||
void window.electronAPI.setC2SRelayPath(C2S_RELAY_PATH);
|
||||
}
|
||||
// apiFor("remote") hands back app.api itself outside the desktop app.
|
||||
const remote = app.apiFor("remote");
|
||||
setTunnelsApi(app.api, {
|
||||
|
||||
Reference in new issue
Block a user