mirror of
https://github.com/Termix-SSH/Termix.git
synced 2026-10-29 06:35:24 +00:00
feat: plugins only see their own host settings in the browser
This commit is contained in:
1 parent
50d43e29fb
commit
fb9c168b6b
17 files changed
+488
-52
No files matched your search
@@ -48,6 +48,10 @@ function app(): TermixApp {
|
||||
return current;
|
||||
}
|
||||
|
||||
export function listHosts(): ReturnType<TermixApp["listHosts"]> {
|
||||
return app().listHosts();
|
||||
}
|
||||
|
||||
export function fileManagerApi(): FileManagerClient {
|
||||
return app().api as unknown as FileManagerClient;
|
||||
}
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { listHosts } from "@termix/plugin-sdk/frontend";
|
||||
import { listHosts } from "./client";
|
||||
import type { SSHHost } from "../host-types";
|
||||
|
||||
export async function getSSHHosts(): Promise<SSHHost[]> {
|
||||
|
||||
Reference in new issue
Block a user