refactor: consolidate CodeMirror editors into unified AE_Comp_Editor_CodeMirror component
This commit is contained in:
@@ -30,7 +30,7 @@
|
||||
journals_loc,
|
||||
journals_sess
|
||||
} from '$lib/ae_journals/ae_journals_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 {
|
||||
log_lvl?: number;
|
||||
@@ -256,22 +256,20 @@
|
||||
</div>
|
||||
{:else if tab === 'local_json'}
|
||||
<div class="h-full min-h-[400px]">
|
||||
<E_app_codemirror_v5
|
||||
editable={false}
|
||||
<AE_Comp_Editor_CodeMirror
|
||||
readonly={true}
|
||||
content={JSON.stringify(tmp_config, null, 2)}
|
||||
theme_mode={$ae_loc.theme_mode}
|
||||
class="rounded-lg border border-surface-500/30"
|
||||
class_li="rounded-lg border border-surface-500/30"
|
||||
/>
|
||||
</div>
|
||||
{:else if tab === 'session_json'}
|
||||
<div class="h-full min-h-[400px]">
|
||||
<E_app_codemirror_v5
|
||||
editable={false}
|
||||
<AE_Comp_Editor_CodeMirror
|
||||
readonly={true}
|
||||
content={JSON.stringify($journals_sess, null, 2)}
|
||||
theme_mode={$ae_loc.theme_mode}
|
||||
class="rounded-lg border border-surface-500/30"
|
||||
class_li="rounded-lg border border-surface-500/30"
|
||||
/>
|
||||
</div>
|
||||
{/if}
|
||||
|
||||
Reference in New Issue
Block a user