From 7ce7a9b429e48c9f729e24281247f335114099c6 Mon Sep 17 00:00:00 2001 From: Scott Idem Date: Tue, 16 Jun 2026 18:59:51 -0400 Subject: [PATCH] refactor(sys-bar): grouped pill theme picker + remove three orphaned components MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Theme picker (e_app_sys_bar.svelte): - Replace flat { - const v = (e.target as HTMLSelectElement).value; - document.documentElement.setAttribute('data-theme', v); - ae_loc.update((l: any) => ({ ...l, theme_name: v, user_theme_selected: true })); - }} - class="select w-full border border-gray-300 bg-white text-sm text-gray-900 dark:border-gray-600 dark:bg-gray-700 dark:text-gray-100"> - {#each theme_options as opt (opt.value)} - - {/each} - {/if} diff --git a/src/lib/app_components/e_app_sys_menu_legacy.svelte b/src/lib/app_components/e_app_sys_menu_legacy.svelte deleted file mode 100644 index a67a2a56..00000000 --- a/src/lib/app_components/e_app_sys_menu_legacy.svelte +++ /dev/null @@ -1,620 +0,0 @@ - - - - - - - - - - - -
- - -
- {#if $ae_loc?.person_id} -
- - - {$ae_loc?.person?.informal_name ?? - $ae_loc?.person?.given_name} - -
- {/if} - - {#if $ae_loc?.user_id} - -
- - - {$ae_loc?.user?.username ?? '-- not set --'} - -
- {/if} - -
- {#if $ae_loc.access_type && $ae_loc.access_type != 'anonymous'} - - - - - {#if $ae_loc.access_type == 'super'} - - - {:else if $ae_loc.access_type == 'manager'} - - - {:else if $ae_loc.access_type == 'administrator'} - - - {:else if $ae_loc.access_type == 'trusted'} - - - {:else if $ae_loc.access_type == 'public'} - Public - - {:else if $ae_loc.access_type == 'authenticated'} - Authenticated - - {:else if $ae_loc.access_type == 'anonymous'} - Anonymous Access - {:else} - Unknown Access - {/if} - - - {#if $ae_loc?.user_access_type && $ae_loc?.access_type == $ae_loc?.user_access_type} - - {:else} - - {/if} - {:else} - - {/if} -
- - {#if $ae_loc.edit_mode} - - {:else if $ae_loc.authenticated_access} - - {/if} - - - - - - - - - - - -
- - - - - - - -
- - - - - - - - - - - - {#if $ae_loc?.app_cfg?.show_element__sign_in_out} - - -
-
diff --git a/src/lib/app_components/e_app_theme.svelte b/src/lib/app_components/e_app_theme.svelte deleted file mode 100644 index d4d06e79..00000000 --- a/src/lib/app_components/e_app_theme.svelte +++ /dev/null @@ -1,236 +0,0 @@ - - - - -
-
- - - {$ae_loc.theme_name} - - -
- -
- {#if expand} - - - - - {:else} - - {/if} -
- - - - -