From a8f7383fcb151f76c9cda1235abf0577b1ce6720 Mon Sep 17 00:00:00 2001 From: Vincent Ambo Date: Thu, 13 Oct 2022 19:20:39 +0300 Subject: refactor(tvixbolt): use details elements for toggling outputs For optional outputs (runtime trace & AST) this has a slightly nicer user experience. Note that the code of this is a bit verbose because doing a naive implementation hits dumb behaviours of browsers that result in infinite loops. Thanks Profpatsch for the suggestion. Change-Id: I8945a8e722f0ad8735829807fb5e39e2101f378c Reviewed-on: https://cl.tvl.fyi/c/depot/+/7006 Reviewed-by: j4m3s Autosubmit: tazjin Tested-by: BuildkiteCI --- corp/tvixbolt/Cargo.toml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'corp/tvixbolt/Cargo.toml') diff --git a/corp/tvixbolt/Cargo.toml b/corp/tvixbolt/Cargo.toml index c448f9fe42c5..7182e88d83ae 100644 --- a/corp/tvixbolt/Cargo.toml +++ b/corp/tvixbolt/Cargo.toml @@ -10,7 +10,6 @@ yew = "0.19.3" yew-router = "0.16" codemap = "0.1.3" serde_urlencoded = "*" # pinned by yew -web-sys = "*" # pinned by yew # needs to be in sync with nixpkgs wasm-bindgen = "= 0.2.83" @@ -26,3 +25,7 @@ default-features = false [dependencies.serde] version = "*" # pinned by yew features = [ "derive" ] + +[dependencies.web-sys] +version = "*" # pinned by yew +features = [ "HtmlDetailsElement" ] -- cgit 1.4.1