Work on the system and debug menus
This commit is contained in:
@@ -18,15 +18,15 @@ import { ae_loc, ae_sess, ae_api, slct, slct_trigger } from '$lib/ae_stores';
|
||||
// *** Setup Svelte properties
|
||||
interface Props {
|
||||
log_lvl?: number;
|
||||
show_debug_menu: boolean;
|
||||
hidden: null|boolean;
|
||||
hide?: null|boolean;
|
||||
expand?: boolean;
|
||||
}
|
||||
|
||||
let {
|
||||
log_lvl = 0,
|
||||
show_debug_menu = false,
|
||||
hidden = true,
|
||||
}: Props = $props();
|
||||
log_lvl = $bindable(0),
|
||||
hide = $bindable(false),
|
||||
expand = $bindable(false),
|
||||
}: Props = $props();
|
||||
|
||||
|
||||
</script>
|
||||
@@ -64,18 +64,18 @@ hover:opacity-100 -->
|
||||
border-red-300 dark:border-red-700
|
||||
hover:border-red-500 hover:dark:border-red-500
|
||||
"
|
||||
class:top-0={$ae_loc?.debug_menu}
|
||||
class:w-full={$ae_loc?.debug_menu}
|
||||
class:hidden={!$ae_loc?.trusted_access}
|
||||
class:border-transparent={!$ae_loc?.debug_menu}
|
||||
class:hover:border-transparent={!$ae_loc?.debug_menu}
|
||||
class:hover:bg-transparent={!$ae_loc?.debug_menu}
|
||||
class:top-0={expand}
|
||||
class:w-full={expand}
|
||||
class:hidden={hide}
|
||||
class:border-transparent={!expand}
|
||||
class:hover:border-transparent={!expand}
|
||||
class:hover:bg-transparent={!expand}
|
||||
>
|
||||
|
||||
<div
|
||||
class:hidden={!$ae_loc?.debug_menu}
|
||||
class:border-red-200={$ae_loc?.debug_menu}
|
||||
class:dark:border-red-800={$ae_loc?.debug_menu}
|
||||
class:hidden={!expand}
|
||||
class:border-red-200={expand}
|
||||
class:dark:border-red-800={expand}
|
||||
class="
|
||||
|
||||
transition-all
|
||||
@@ -143,7 +143,8 @@ hover:opacity-100 -->
|
||||
type="button"
|
||||
onclick={() => {
|
||||
console.log('Debug ae_loc:', $ae_loc);
|
||||
$ae_loc.debug_menu = !$ae_loc?.debug_menu;
|
||||
// $ae_loc.debug_menu.expand = !$ae_loc?.debug_menu?.expand;
|
||||
expand = !expand;
|
||||
}}
|
||||
class="
|
||||
btn btn-sm preset-tonal-surface border-sm border-surface-500 hover:preset-tonal-warning
|
||||
@@ -166,7 +167,8 @@ hover:opacity-100 -->
|
||||
type="button"
|
||||
onclick={() => {
|
||||
console.log('Debug ae_loc:', $ae_loc);
|
||||
$ae_loc.debug_menu = !$ae_loc?.debug_menu;
|
||||
// $ae_loc.debug_menu.expand = !$ae_loc?.debug_menu?.expand;
|
||||
expand = !expand;
|
||||
}}
|
||||
id="AE-Quick-Debug"
|
||||
class="
|
||||
|
||||
Reference in New Issue
Block a user