Add the AirDef tablet web panel and battle archive (#153)

This commit is contained in:
2026-12-02 00:46:18 +03:00
parent dfb306edd7
commit 906159b17f
22 changed files with 2770 additions and 1 deletions
+9 -1
View File
@@ -115,6 +115,14 @@ pub fn tree() -> Tree {
])),
Node::lit("recon").runs(),
Node::lit("post").runs().then(Node::arg("поиск", Value::word()).runs()),
Node::lit("panel").with([
Node::lit("snapshot").then(Node::arg("запрос", Value::word()).then(
Node::arg("ракурс", Value::choice(["public", "debug"])).then(Node::arg("позиция", Value::word()).runs())
)),
Node::lit("launch").then(Node::arg("запрос", Value::word()).then(
Node::arg("сессия", Value::word()).then(Node::arg("сценарий", Value::word()).runs())
)),
]),
Node::lit("stats").runs(),
])
}
@@ -255,7 +263,7 @@ mod tests {
assert!(top.contains(&w.to_string()), "{w} in {top:?}");
}
assert!(top.contains(&"post".to_string()));
assert_eq!(top.len(), 39);
assert_eq!(top.len(), 40);
assert_eq!(complete("rep", &[]), ["repair", "replay"]);
assert_eq!(complete("replay ", &[]), ["export", "film", "full", "map", "reel", "stop"]);
assert_eq!(complete("replay film ", &[]), ["all", "best"]);