refactor: consolidate CodeMirror editors into unified AE_Comp_Editor_CodeMirror component

This commit is contained in:
Scott Idem
2026-01-29 14:16:35 -05:00
parent 3d7b68e7ce
commit 363d94a36b
10 changed files with 323 additions and 92 deletions

View File

@@ -12,7 +12,7 @@
RefreshCcw, Globe, Copy
} from '@lucide/svelte';
import { ae_loc, ae_api } from '$lib/stores/ae_stores';
import E_app_codemirror_v5 from '$lib/app_components/e_app_codemirror_v5.svelte';
import AE_Comp_Editor_CodeMirror from '$lib/elements/AE_Comp_Editor_CodeMirror.svelte';
interface Props {
// Core Props
@@ -190,13 +190,12 @@
</button>
</div>
<E_app_codemirror_v5
editable={true}
<AE_Comp_Editor_CodeMirror
content={tmp_summary}
bind:new_content={tmp_summary}
bind:theme_mode={$ae_loc.theme_mode}
theme_mode={$ae_loc.theme_mode}
placeholder="AI Result will appear here..."
class="p-2 border rounded-lg h-96 shadow-inner bg-surface-500/5"
class_li="p-2 border rounded-lg h-96 shadow-inner bg-surface-500/5"
/>
</div>
{:else}