fix(web): controls below searchbar, not at side
This commit is contained in:
parent
c19cc19a90
commit
a2812ebf15
1 changed files with 36 additions and 34 deletions
|
@ -5,7 +5,6 @@ use crate::prelude::*;
|
|||
#[component]
|
||||
pub fn DebugPage() -> impl IntoView {
|
||||
let query_params = use_query_map();
|
||||
let cached_ref: NodeRef<html::Input> = create_node_ref();
|
||||
let auth = use_context::<Auth>().expect("missing auth context");
|
||||
let (cached, set_cached) = create_signal(false);
|
||||
let (plain, set_plain) = create_signal(false);
|
||||
|
@ -44,15 +43,6 @@ pub fn DebugPage() -> impl IntoView {
|
|||
} >
|
||||
<table class="align w-100">
|
||||
<tr>
|
||||
<td>
|
||||
<small><a
|
||||
href={move|| Uri::web(U::Object, &text.get())}
|
||||
>obj</a>
|
||||
" "
|
||||
<a
|
||||
href={move|| Uri::web(U::User, &text.get())}
|
||||
>usr</a></small>
|
||||
</td>
|
||||
<td class="w-100">
|
||||
<input class="w-100" type="text"
|
||||
prop:value=text
|
||||
|
@ -60,8 +50,16 @@ pub fn DebugPage() -> impl IntoView {
|
|||
placeholder="AP id"
|
||||
/>
|
||||
</td>
|
||||
<td><input type="submit" class="w-100" value="fetch" /></td>
|
||||
<td><input type="checkbox" class:loader=loading title="cached" value="cached" prop:checked=cached on:input=move |ev| set_cached.set(event_target_checked(&ev)) /></td>
|
||||
<td>
|
||||
<input type="submit" class="w-100" value="fetch" />
|
||||
</td>
|
||||
<td>
|
||||
<input type="checkbox" title="load from local cache" value="cached"
|
||||
class:loader=loading
|
||||
prop:checked=cached
|
||||
on:input=move |ev| set_cached.set(event_target_checked(&ev))
|
||||
/>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</form>
|
||||
|
@ -76,7 +74,11 @@ pub fn DebugPage() -> impl IntoView {
|
|||
<p class="center">
|
||||
<input type="checkbox" title="show plain (and valid) json" value="plain" prop:checked=plain on:input=move |ev| set_plain.set(event_target_checked(&ev)) />
|
||||
" plain :: "
|
||||
<a href=move || cached_query().0 target="_blank" rel="nofollow noreferrer">external</a>
|
||||
<a href={move|| Uri::web(U::Object, &text.get())} >obj</a>
|
||||
" :: "
|
||||
<a href={move|| Uri::web(U::User, &text.get())} >usr</a>
|
||||
" :: "
|
||||
<a href=move || cached_query().0 target="_blank" rel="nofollow noreferrer">ext</a>
|
||||
" :: "
|
||||
<a href="#"
|
||||
onclick={move ||
|
||||
|
|
Loading…
Reference in a new issue