diff --git a/frontend/src/lib/components/EditorTheme.svelte b/frontend/src/lib/components/EditorTheme.svelte index c83f96fa5a..0dd40346bd 100644 --- a/frontend/src/lib/components/EditorTheme.svelte +++ b/frontend/src/lib/components/EditorTheme.svelte @@ -6,6 +6,7 @@ import nord from 'svelte-highlight/styles/nord' import { each } from 'chart.js/helpers' import { Chart } from 'chart.js' + import { deepMergeWithPriority } from '$lib/utils' meditor.defineTheme('nord', { base: 'vs-dark', @@ -118,7 +119,7 @@ meditor.setTheme('nord') darkMode = true each(Chart.instances, (instance) => { - instance.options = { + instance.options = deepMergeWithPriority(instance.options, { scales: { y: { ticks: { @@ -144,7 +145,7 @@ } } } - } + }) instance.update() }) } else { @@ -152,7 +153,7 @@ darkMode = false each(Chart.instances, (instance) => { - instance.options = { + instance.options = deepMergeWithPriority(instance.options, { scales: { y: { ticks: { @@ -178,7 +179,8 @@ } } } - } + }) + instance.update() }) } diff --git a/frontend/src/lib/components/JobArgs.svelte b/frontend/src/lib/components/JobArgs.svelte index 9b1fcdcaf5..ec67079b7d 100644 --- a/frontend/src/lib/components/JobArgs.svelte +++ b/frontend/src/lib/components/JobArgs.svelte @@ -2,11 +2,14 @@ import { ChevronRightSquare, ClipboardCopy, Download, Expand } from 'lucide-svelte' import ArgInfo from './ArgInfo.svelte' import { Button, Drawer, DrawerContent, Skeleton } from './common' - import TableCustom from './TableCustom.svelte' - import Portal from 'svelte-portal' + import { Highlight } from 'svelte-highlight' import { copyToClipboard } from '$lib/utils' import { json } from 'svelte-highlight/languages' + import DataTable from './table/DataTable.svelte' + import Cell from './table/Cell.svelte' + import Head from './table/Head.svelte' + import Row from './table/Row.svelte' export let args: any export let tableClass = '' @@ -46,87 +49,90 @@ ${Object.entries(args)
BASE_URL="{window.location.origin}"
-WM_TOKEN="{''}"
+ {typescriptCode()}
- {pythonCode()}
- BASE_URL="{window.location.origin}"
+WM_TOKEN="{''}"
+ {typescriptCode()}
+ {pythonCode()}
+