mirror of
https://github.com/EasyTier/EasyTier.git
synced 2026-10-13 15:56:14 -08:00
feat(ui): Display network names and optimize list loading (#1503)
This commit is contained in:
1 parent
eba9504fc2
commit
bbe8f9f810
9 files changed
+204
-24
No files matched your search
@@ -26,6 +26,14 @@ export interface CollectNetworkInfoResponse {
|
||||
}
|
||||
}
|
||||
|
||||
export interface NetworkMeta {
|
||||
instance_name: string;
|
||||
}
|
||||
|
||||
export interface GetNetworkMetasResponse {
|
||||
metas: Record<string, NetworkMeta>;
|
||||
}
|
||||
|
||||
export interface RemoteClient {
|
||||
validate_config(config: NetworkConfig): Promise<ValidateConfigResponse>;
|
||||
run_network(config: NetworkConfig): Promise<undefined>;
|
||||
@@ -37,4 +45,5 @@ export interface RemoteClient {
|
||||
get_network_config(inst_id: string): Promise<NetworkConfig>;
|
||||
generate_config(config: NetworkConfig): Promise<GenerateConfigResponse>;
|
||||
parse_config(toml_config: string): Promise<ParseConfigResponse>;
|
||||
get_network_metas(instance_ids: string[]): Promise<GetNetworkMetasResponse>;
|
||||
}
|
||||
Reference in new issue
Block a user