refactor: merge all dev settings into one setting
This commit is contained in:
@@ -89,7 +89,7 @@
|
|||||||
};
|
};
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
{#if appSettings.value.debug.showPerformancePanel}
|
{#if appSettings.value.debug.advancedMode}
|
||||||
<SmallPerformanceViewer {fps} store={perf} />
|
<SmallPerformanceViewer {fps} store={perf} />
|
||||||
{/if}
|
{/if}
|
||||||
|
|
||||||
|
|||||||
@@ -64,14 +64,9 @@ export const AppSettingTypes = {
|
|||||||
label: 'Show Indices',
|
label: 'Show Indices',
|
||||||
value: false
|
value: false
|
||||||
},
|
},
|
||||||
showPerformancePanel: {
|
advancedMode: {
|
||||||
type: 'boolean',
|
type: 'boolean',
|
||||||
label: 'Show Performance Panel',
|
label: 'Advanced Mode',
|
||||||
value: false
|
|
||||||
},
|
|
||||||
showBenchmarkPanel: {
|
|
||||||
type: 'boolean',
|
|
||||||
label: 'Show Benchmark Panel',
|
|
||||||
value: false
|
value: false
|
||||||
},
|
},
|
||||||
showVertices: {
|
showVertices: {
|
||||||
@@ -84,11 +79,6 @@ export const AppSettingTypes = {
|
|||||||
label: 'Show Stem Lines',
|
label: 'Show Stem Lines',
|
||||||
value: false
|
value: false
|
||||||
},
|
},
|
||||||
showGraphJson: {
|
|
||||||
type: 'boolean',
|
|
||||||
label: 'Show Graph Source',
|
|
||||||
value: false
|
|
||||||
},
|
|
||||||
cache: {
|
cache: {
|
||||||
title: 'Cache',
|
title: 'Cache',
|
||||||
useRuntimeCache: {
|
useRuntimeCache: {
|
||||||
|
|||||||
@@ -216,7 +216,7 @@
|
|||||||
<Panel
|
<Panel
|
||||||
id="performance"
|
id="performance"
|
||||||
title="Performance"
|
title="Performance"
|
||||||
hidden={!appSettings.value.debug.showPerformancePanel}
|
hidden={!appSettings.value.debug.advancedMode}
|
||||||
icon="i-[tabler--brand-speedtest] bg-red-400"
|
icon="i-[tabler--brand-speedtest] bg-red-400"
|
||||||
>
|
>
|
||||||
{#if $performanceStore}
|
{#if $performanceStore}
|
||||||
@@ -229,7 +229,7 @@
|
|||||||
<Panel
|
<Panel
|
||||||
id="graph-source"
|
id="graph-source"
|
||||||
title="Graph Source"
|
title="Graph Source"
|
||||||
hidden={!appSettings.value.debug.showGraphJson}
|
hidden={!appSettings.value.debug.advancedMode}
|
||||||
icon="i-[tabler--code]"
|
icon="i-[tabler--code]"
|
||||||
>
|
>
|
||||||
<GraphSource graph={pm.graph ?? manager?.serialize()} />
|
<GraphSource graph={pm.graph ?? manager?.serialize()} />
|
||||||
@@ -237,7 +237,7 @@
|
|||||||
<Panel
|
<Panel
|
||||||
id="benchmark"
|
id="benchmark"
|
||||||
title="Benchmark"
|
title="Benchmark"
|
||||||
hidden={!appSettings.value.debug.showBenchmarkPanel}
|
hidden={!appSettings.value.debug.advancedMode}
|
||||||
icon="i-[tabler--graph] bg-red-400"
|
icon="i-[tabler--graph] bg-red-400"
|
||||||
>
|
>
|
||||||
<BenchmarkPanel run={randomGenerate} />
|
<BenchmarkPanel run={randomGenerate} />
|
||||||
|
|||||||
Reference in New Issue
Block a user