refactor: consolidate CodeMirror editors into unified AE_Comp_Editor_CodeMirror component
This commit is contained in:
@@ -54,7 +54,7 @@
|
||||
journals_slct
|
||||
} from '$lib/ae_journals/ae_journals_stores';
|
||||
import { journals_func } from '$lib/ae_journals/ae_journals_functions';
|
||||
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;
|
||||
@@ -493,12 +493,11 @@
|
||||
|
||||
{:else if tab === 'json'}
|
||||
<div class="h-full min-h-[400px]">
|
||||
<E_app_codemirror_v5
|
||||
editable={false}
|
||||
<AE_Comp_Editor_CodeMirror
|
||||
readonly={true}
|
||||
content={JSON.stringify(tmp__journal_obj, 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