1
0
Fork 0
forked from alemi/upub

fix(web): devtools moved

This commit is contained in:
əlemi 2024-06-12 15:26:41 +02:00
parent 42ae2633f2
commit 85c739d6b7
Signed by: alemi
GPG key ID: A4895B84D311642C

View file

@ -43,7 +43,7 @@ pub fn DebugPage() -> impl IntoView {
<div class="mt-1" > <div class="mt-1" >
<form on:submit=move|ev| { <form on:submit=move|ev| {
ev.prevent_default(); ev.prevent_default();
navigate(&format!("/web/config/dev?q={}", text.get()), NavigateOptions::default()); navigate(&format!("/web/dev?q={}", text.get()), NavigateOptions::default());
} > } >
<table class="align w-100"> <table class="align w-100">
<tr> <tr>
@ -138,7 +138,7 @@ fn DocumentNode(obj: serde_json::Value, #[prop(optional)] depth: usize) -> impl
serde_json::Value::String(s) => { serde_json::Value::String(s) => {
if s.starts_with("https://") || s.starts_with("http://") { if s.starts_with("https://") || s.starts_with("http://") {
view! { view! {
<a href=format!("/web/config/dev?q={s}")>{s}</a> <a href=format!("/web/dev?q={s}")>{s}</a>
}.into_view() }.into_view()
} else { } else {
let pretty_string = s let pretty_string = s