diff --git a/src/lib/ae_core/ae_comp__site_config_editor.svelte b/src/lib/ae_core/ae_comp__site_config_editor.svelte index 817684b5..620c34ec 100644 --- a/src/lib/ae_core/ae_comp__site_config_editor.svelte +++ b/src/lib/ae_core/ae_comp__site_config_editor.svelte @@ -5,11 +5,12 @@ import { untrack } from 'svelte'; * Specialized UI for managing site.cfg_json settings. * Supports General, AI, Performance, and IDAA-specific configurations. */ -import { Modal } from 'flowbite-svelte'; import { Brain, CodeXml, ExternalLink, + Eye, + EyeOff, Globe, Mail, Minus, @@ -34,7 +35,7 @@ $effect(() => { if (typeof cfg_json === 'string') { try { cfg_json = JSON.parse(cfg_json); - } catch (e) { + } catch { cfg_json = {}; } } @@ -45,6 +46,7 @@ $effect(() => { let active_tab: 'visuals' | 'email' | 'ai' | 'refresh' | 'idaa' | 'raw' = $state('visuals'); let raw_json_str = $state(''); +let show_llm_api_token = $state(false); // Ensure we have a valid object if (!cfg_json) cfg_json = {}; @@ -74,7 +76,7 @@ $effect(() => { try { const parsed = JSON.parse(raw_json_str); cfg_json = parsed; - } catch (e) { + } catch { // Ignore invalid JSON while typing } } @@ -236,6 +238,14 @@ $effect(() => { >LLM Model @@ -243,10 +253,34 @@ $effect(() => {