Feat/web (Patchset 4) (#460)

support basic functions in frontend
1. create/del network
2. inspect network running status
This commit is contained in:
Sijie.Sun authored and GitHub committed 2024-11-08 23:33:17 +08:00
1 parent 8aca5851f2
commit e948dbfcc1
64 files changed
+11671 -344

No files matched your search

+2 -2
View File
@@ -91,8 +91,8 @@ impl WebClientService for Controller {
_: BaseController,
req: ValidateConfigRequest,
) -> Result<ValidateConfigResponse, rpc_types::error::Error> {
let _ = TomlConfigLoader::new_from_str(&req.config)?;
Ok(ValidateConfigResponse {})
let toml_config = req.config.unwrap_or_default().gen_config()?.dump();
Ok(ValidateConfigResponse { toml_config })
}
async fn run_network_instance(