feat(desktop): tabs UI (Resumo/Inventário/Diagnóstico/Configurações) + enviar inventário agora; docs: admin inventory UI + release CI notes + roadmap
This commit is contained in:
parent
479c66d52c
commit
335accb596
7 changed files with 263 additions and 41 deletions
|
|
@ -243,6 +243,15 @@ fn build_inventory_metadata(system: &System) -> serde_json::Value {
|
|||
json!({ "inventory": inventory })
|
||||
}
|
||||
|
||||
pub fn collect_inventory_plain() -> serde_json::Value {
|
||||
let system = collect_system();
|
||||
let meta = build_inventory_metadata(&system);
|
||||
match meta.get("inventory") {
|
||||
Some(value) => value.clone(),
|
||||
None => json!({}),
|
||||
}
|
||||
}
|
||||
|
||||
#[cfg(target_os = "linux")]
|
||||
fn collect_software_linux() -> serde_json::Value {
|
||||
use std::process::Command;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue