From 02fd6dd1c5d24339364b869b4a21754646f5b2a3 Mon Sep 17 00:00:00 2001 From: Yanick Champoux Date: Wed, 29 Jul 2020 15:56:19 -0400 Subject: [PATCH] hull integrity --- public/icons/crew-star.svg | 58 +++++++++++++++ public/ssd-icons/Hull with crew.svg | 12 ---- .../Output/Print/Hull/Integrity/index.svelte | 72 +++++++++++++++++++ .../Output/Print/Hull/Integrity/stories.js | 23 ++++++ src/components/Output/Print/index.svelte | 6 ++ 5 files changed, 159 insertions(+), 12 deletions(-) create mode 100644 public/icons/crew-star.svg delete mode 100644 public/ssd-icons/Hull with crew.svg create mode 100644 src/components/Output/Print/Hull/Integrity/index.svelte create mode 100644 src/components/Output/Print/Hull/Integrity/stories.js diff --git a/public/icons/crew-star.svg b/public/icons/crew-star.svg new file mode 100644 index 0000000..93036ca --- /dev/null +++ b/public/icons/crew-star.svg @@ -0,0 +1,58 @@ + + + +image/svg+xml + + + + + + \ No newline at end of file diff --git a/public/ssd-icons/Hull with crew.svg b/public/ssd-icons/Hull with crew.svg deleted file mode 100644 index e4c7a3f..0000000 --- a/public/ssd-icons/Hull with crew.svg +++ /dev/null @@ -1,12 +0,0 @@ - - - - - - - - - - diff --git a/src/components/Output/Print/Hull/Integrity/index.svelte b/src/components/Output/Print/Hull/Integrity/index.svelte new file mode 100644 index 0000000..0f7c7c9 --- /dev/null +++ b/src/components/Output/Print/Hull/Integrity/index.svelte @@ -0,0 +1,72 @@ +
+ {#each rows as row (row)} +
+ {#each row as item (item)} +
+ {#if item} + crew loss threshold + {/if} +
+ {/each} +
+ {/each} + +
+ + + + diff --git a/src/components/Output/Print/Hull/Integrity/stories.js b/src/components/Output/Print/Hull/Integrity/stories.js new file mode 100644 index 0000000..3d1d9a9 --- /dev/null +++ b/src/components/Output/Print/Hull/Integrity/stories.js @@ -0,0 +1,23 @@ +import Component from '.'; + +export default { + title: "printouts/hull/integrity" +}; + +export const basic = () => ({ + Component, + props: { + ship_mass: 50, + rating: 14, + advanced: false, + } +}); + +export const advanced = () => ({ + Component, + props: { + ship_mass: 50, + rating: 14, + advanced: true, + } +}); diff --git a/src/components/Output/Print/index.svelte b/src/components/Output/Print/index.svelte index 24cd27e..676a5a0 100644 --- a/src/components/Output/Print/index.svelte +++ b/src/components/Output/Print/index.svelte @@ -1,9 +1,15 @@
+