print component
This commit is contained in:
parent
00a08fce3b
commit
e95e1233ab
@ -9,6 +9,9 @@
|
|||||||
<div class:hide={activeTab !== 'json'}>
|
<div class:hide={activeTab !== 'json'}>
|
||||||
<JsonOutput />
|
<JsonOutput />
|
||||||
</div>
|
</div>
|
||||||
|
<div class:hide={activeTab !== 'print'}>
|
||||||
|
<PrintOutput />
|
||||||
|
</div>
|
||||||
|
|
||||||
</main>
|
</main>
|
||||||
|
|
||||||
@ -20,6 +23,7 @@
|
|||||||
import ShipEdit from "./ShipEdit/index.svelte";
|
import ShipEdit from "./ShipEdit/index.svelte";
|
||||||
import About from "./About.svelte";
|
import About from "./About.svelte";
|
||||||
import JsonOutput from './Output/Json.svelte';
|
import JsonOutput from './Output/Json.svelte';
|
||||||
|
import PrintOutput from './Output/Print/index.svelte';
|
||||||
|
|
||||||
let activeTab = 'editor';
|
let activeTab = 'editor';
|
||||||
$: console.log(activeTab);
|
$: console.log(activeTab);
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
</h1>
|
</h1>
|
||||||
|
|
||||||
<div class="details">
|
<div class="details">
|
||||||
<h2>{ship_class}-class, {ship_type}</h2>
|
<h2>{shipClass}-class, {shipType}</h2>
|
||||||
<div class="reqs">
|
<div class="reqs">
|
||||||
<Cost {cost} />
|
<Cost {cost} />
|
||||||
|
|
||||||
@ -15,8 +15,8 @@
|
|||||||
import Cost from "../../../Cost.svelte";
|
import Cost from "../../../Cost.svelte";
|
||||||
import Mass from "$lib/components/Mass.svelte";
|
import Mass from "$lib/components/Mass.svelte";
|
||||||
|
|
||||||
export let ship_class;
|
export let shipClass;
|
||||||
export let ship_type;
|
export let shipType;
|
||||||
export let cost,
|
export let cost,
|
||||||
mass = (0, 0);
|
mass = (0, 0);
|
||||||
</script>
|
</script>
|
||||||
|
@ -1,3 +1,7 @@
|
|||||||
|
<div>
|
||||||
|
<Identification {...$state.identification} />
|
||||||
|
</div>
|
||||||
|
<!--
|
||||||
<aside class="ship-sheet" transition:fade>
|
<aside class="ship-sheet" transition:fade>
|
||||||
<Identification {...ship.general} />
|
<Identification {...ship.general} />
|
||||||
|
|
||||||
@ -12,21 +16,25 @@
|
|||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<MainSystems ftl={ship.ftl.type} engine={ship.engine.rating} />
|
|
||||||
</aside>
|
</aside>
|
||||||
|
-->
|
||||||
|
<MainSystems ftl={$state?.propulsion?.ftl}
|
||||||
|
engine={$state?.propulsion?.drive?.rating} />
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import _ from "lodash";
|
import { getContext } from 'svelte';
|
||||||
|
/* import _ from "lodash"; */
|
||||||
|
|
||||||
import Identification from "./Identification/index.svelte";
|
import Identification from "./Identification/index.svelte";
|
||||||
import MainSystems from "./MainSystems/index.svelte";
|
import MainSystems from "./MainSystems/index.svelte";
|
||||||
import Hull from "./Hull/index.svelte";
|
/* import Hull from "./Hull/index.svelte"; */
|
||||||
import Weapons from "./Weapons/index.svelte";
|
/* import Weapons from "./Weapons/index.svelte"; */
|
||||||
import Systems from "./Systems/index.svelte";
|
/* import Systems from "./Systems/index.svelte"; */
|
||||||
|
|
||||||
export let ship;
|
/* export let ship; */
|
||||||
|
const { state } = getContext('ship');
|
||||||
|
|
||||||
import { fly, fade } from "svelte/transition";
|
/* import { fly, fade } from "svelte/transition"; */
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style>
|
<style>
|
||||||
|
Loading…
Reference in New Issue
Block a user