mirror of
https://github.com/Termix-SSH/Termix.git
synced 2026-10-29 14:45: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
@@ -11,8 +11,12 @@ import {
|
||||
DialogFooter,
|
||||
} from "@termix/plugin-sdk/ui";
|
||||
import { Select2 } from "@termix/plugin-sdk/ui";
|
||||
import { discoverProxmoxGuestsStream, importProxmoxHosts } from "./proxmox-api";
|
||||
import { listHosts, type PluginHostRecord } from "@termix/plugin-sdk/frontend";
|
||||
import {
|
||||
discoverProxmoxGuestsStream,
|
||||
importProxmoxHosts,
|
||||
listHosts,
|
||||
} from "./proxmox-api";
|
||||
import type { PluginHostRecord } from "@termix/plugin-sdk/frontend";
|
||||
import type { ProxmoxGuest } from "./types";
|
||||
import { resolveProxmoxImportAuth } from "./proxmox-import-auth";
|
||||
|
||||
|
||||
@@ -13,6 +13,10 @@ function app(): TermixApp {
|
||||
return current;
|
||||
}
|
||||
|
||||
export function listHosts(): ReturnType<TermixApp["listHosts"]> {
|
||||
return app().listHosts();
|
||||
}
|
||||
|
||||
/**
|
||||
* Runs a guest discovery over the server-sent event stream and reports
|
||||
* progress. Returns a function that stops listening.
|
||||
|
||||
Reference in new issue
Block a user