diff --git a/src/lib/element_access_type.svelte b/src/lib/element_access_type.svelte index e951c1f5..75bbcacf 100644 --- a/src/lib/element_access_type.svelte +++ b/src/lib/element_access_type.svelte @@ -425,6 +425,7 @@ function handle_clear_access() { {#if $ae_loc.access_type == 'super'} @@ -460,7 +461,7 @@ function handle_clear_access() { show_passcode_input = !show_passcode_input; }} class="btn btn-sm variant-outline-surface hover:variant-ghost-warning transition-all" - title="Access mode is currently enabled/unlocked. Click to exit and lock." + title={`Current user access level: "${$ae_loc.user_access_type}". Click use passcode for a different access level.`} > @@ -476,7 +477,7 @@ function handle_clear_access() { // show_passcode_input = true; }} class="btn btn-sm variant-outline-surface hover:variant-ghost-warning transition-all" - title="Access mode is currently enabled/unlocked. Click to exit and lock." + title={`Current access level: "${$ae_loc.access_type}". Click to clear the temporary access level.`} > @@ -488,33 +489,6 @@ function handle_clear_access() { {#if (show_passcode_input)} - - Passcode? diff --git a/src/routes/+layout.svelte b/src/routes/+layout.svelte index 4fae9d0f..e2f92aea 100644 --- a/src/routes/+layout.svelte +++ b/src/routes/+layout.svelte @@ -26,12 +26,14 @@ const modalRegistry: Record = { // ... }; import { + ArrowBigRight, CircleX, Eye, EyeOff, Key, LogIn, LogOut, LockKeyhole, Mail, MailCheck, Menu, + RefreshCw, RefreshCcwDot, ShieldEllipsis, ShieldMinus, ShieldPlus, ShieldUser, User, UserCheck } from '@lucide/svelte'; @@ -694,9 +696,10 @@ $effect(() => { {#if (browser && flag_new_ver)} -
-

New Version Available

+
+

New Version Available

A new version of the site is available. Please use the Clear Cache and Reload button below to update.

+ @@ -728,21 +734,28 @@ $effect(() => {

This sometimes happens with new versions of the app or when in an iframe.

+
+ Æther: + {$ae_loc?.ver} {$ae_sess?.ver} +
+
{:else if browser && $ae_loc?.cache_expired} -
-

Expired Cache

+
+

Expired Cache

The cache for this site has expired. Please reload the page.

+ @@ -772,14 +788,35 @@ $effect(() => {

This sometimes happens with new versions of the app or when in an iframe.

+
+
+ Expired: + {Math.floor((Date.now() - $ae_loc.last_cache_refresh) / 60000)} minutes ago +
+
+ Last Refresh: + {new Date($ae_loc.last_cache_refresh).toLocaleString()} +
+
+ Access Level: + {$ae_loc.access_level ?? '-- not set --'} +
+
+ Username: + {$ae_loc.user?.username ?? '-- not set --'} +
+
+
@@ -789,11 +826,26 @@ $effect(() => {
-

Access Denied

+

Access Denied

You do not have access to this site. You may need a passcode, sign in link, and or URL site key.

+ +
+ +
+ Access Level: + {$ae_loc.access_level ?? '-- not set --'} +
+ + +
+ Username: + {$ae_loc.user?.username ?? '-- not set --'} +
+
+ @@ -830,10 +885,14 @@ $effect(() => { onclick={() => { window.location.reload(); }} - class="btn btn-sm" + class="btn btn-sm m-1 variant-ghost-secondary hover:variant-ghost-warning hover:variant-outline-warning text-warning-800 hover:text-warning-900 transition-all" + title="Reload page to clear some caches and check for updates" > - + + + Reload +
@@ -934,6 +993,7 @@ max-w-max --> {#if $ae_loc.access_type && $ae_loc.access_type != 'anonymous'} @@ -983,7 +1043,7 @@ max-w-max --> } }} class="btn btn-sm variant-outline-surface hover:variant-ghost-warning transition-all *:hover:inline" - title="Access mode is currently enabled/unlocked. Click to exit and lock." + title={`Current user access level: "${$ae_loc.user_access_type}". Click use passcode for a different access level.`} > @@ -1014,7 +1074,7 @@ max-w-max --> } }} class="btn btn-sm variant-outline-surface hover:variant-ghost-warning transition-all hidden" - title="Access mode is currently enabled/unlocked. Click to exit and lock." + title={`Current access level: "${$ae_loc.access_type}". Click to clear the temporary access level.`} > @@ -1045,7 +1105,7 @@ max-w-max --> btn btn-sm variant-outline-surface hover:variant-ghost-success transition-all *:hover:inline " - title="Anonymous public access is currently set. Access mode is disabled/locked." + title="Anonymous public access is currently set. You must Sign In or use a passcode to change your access level." > diff --git a/src/routes/+page.svelte b/src/routes/+page.svelte index 73d2ca5c..74eca9c9 100644 --- a/src/routes/+page.svelte +++ b/src/routes/+page.svelte @@ -5,6 +5,14 @@ export let data: any; import { onMount } from 'svelte'; +import { + Brain, + House, + Library, + RefreshCw, RefreshCcwDot, + Satellite +} from '@lucide/svelte'; + // import { PUBLIC_TESTING } from '$env/static/public'; // console.log(`AE Config - +page.svelte PUBLIC_TESTING:`, PUBLIC_TESTING); @@ -67,23 +75,34 @@ onMount(() => { window.location.reload(true); }} class="btn btn-sm m-1 variant-glass-surface hover:variant-outline-warning text-error-300 hover:text-error-800 transition-all" - title="Reload and clear the page cache" + title="Reload page to clear some caches and check for updates" > - + + Reload diff --git a/src/routes/journals/+layout.svelte b/src/routes/journals/+layout.svelte index d96869af..914f7118 100644 --- a/src/routes/journals/+layout.svelte +++ b/src/routes/journals/+layout.svelte @@ -112,45 +112,58 @@ if (browser) {