diff --git a/src/components/App.svelte b/src/components/App.svelte index 1bf0911..8fe86cd 100644 --- a/src/components/App.svelte +++ b/src/components/App.svelte @@ -4,12 +4,20 @@ {/if} +{#if output === 'json'} + set_output(null)}/> +{/if} +
@@ -62,6 +70,7 @@ import Header from './Header'; import shipStore from "~/stores/ship"; + import OutputJson from './Output/Json.svelte'; import ShipSpecs from './ShipSpecs/index.svelte'; import Notes from './Notes'; @@ -108,8 +117,13 @@ setContext("ship_change", ship.dispatch); - let show_notes = true; + let show_notes = false; const toggle_notes = () => show_notes = !show_notes; + + let output = null; + + const set_output = value => output = value; + diff --git a/src/components/Output/Json.svelte b/src/components/Output/Json.svelte new file mode 100644 index 0000000..f6a3204 --- /dev/null +++ b/src/components/Output/Json.svelte @@ -0,0 +1,50 @@ + + + + +