From 8c08c168c93c767f016385c513fa7a2f4987bcbe Mon Sep 17 00:00:00 2001 From: Yanick Champoux Date: Wed, 29 Jul 2020 19:17:25 -0400 Subject: [PATCH] tidy up the layour --- public/icons/firecon.svg | 65 +++++++++++++++++ public/icons/screen-advanced.svg | 71 +++++++++++++++++++ public/icons/screen.svg | 71 +++++++++++++++++++ public/ssd-icons/AdvFireCont1.svg | 8 --- public/ssd-icons/AdvScreen.svg | 11 --- public/ssd-icons/Screens.svg | 11 --- src/components/Output/Print/Hull/index.svelte | 16 +++++ .../Print/Systems/Firecons/index.svelte | 19 +++++ .../Output/Print/Systems/Screens/index.svelte | 26 +++++++ .../Output/Print/Systems/index.svelte | 28 ++++++++ .../Output/Print/Weapons/index.svelte | 3 + src/components/Output/Print/index.svelte | 32 ++++++--- src/components/Output/Print/sample.js | 4 +- 13 files changed, 324 insertions(+), 41 deletions(-) create mode 100644 public/icons/firecon.svg create mode 100644 public/icons/screen-advanced.svg create mode 100644 public/icons/screen.svg delete mode 100644 public/ssd-icons/AdvFireCont1.svg delete mode 100644 public/ssd-icons/AdvScreen.svg delete mode 100644 public/ssd-icons/Screens.svg create mode 100644 src/components/Output/Print/Hull/index.svelte create mode 100644 src/components/Output/Print/Systems/Firecons/index.svelte create mode 100644 src/components/Output/Print/Systems/Screens/index.svelte create mode 100644 src/components/Output/Print/Systems/index.svelte diff --git a/public/icons/firecon.svg b/public/icons/firecon.svg new file mode 100644 index 0000000..1550af1 --- /dev/null +++ b/public/icons/firecon.svg @@ -0,0 +1,65 @@ + + + +image/svg+xml + + + \ No newline at end of file diff --git a/public/icons/screen-advanced.svg b/public/icons/screen-advanced.svg new file mode 100644 index 0000000..13e1d68 --- /dev/null +++ b/public/icons/screen-advanced.svg @@ -0,0 +1,71 @@ + + + +image/svg+xml + + + + + + \ No newline at end of file diff --git a/public/icons/screen.svg b/public/icons/screen.svg new file mode 100644 index 0000000..16c6e55 --- /dev/null +++ b/public/icons/screen.svg @@ -0,0 +1,71 @@ + + + +image/svg+xml + + + + + + \ No newline at end of file diff --git a/public/ssd-icons/AdvFireCont1.svg b/public/ssd-icons/AdvFireCont1.svg deleted file mode 100644 index 01666f3..0000000 --- a/public/ssd-icons/AdvFireCont1.svg +++ /dev/null @@ -1,8 +0,0 @@ - - - - - - - diff --git a/public/ssd-icons/AdvScreen.svg b/public/ssd-icons/AdvScreen.svg deleted file mode 100644 index b34ec00..0000000 --- a/public/ssd-icons/AdvScreen.svg +++ /dev/null @@ -1,11 +0,0 @@ - - - - - - - - - - diff --git a/public/ssd-icons/Screens.svg b/public/ssd-icons/Screens.svg deleted file mode 100644 index d3d3272..0000000 --- a/public/ssd-icons/Screens.svg +++ /dev/null @@ -1,11 +0,0 @@ - - - - - - - - - - diff --git a/src/components/Output/Print/Hull/index.svelte b/src/components/Output/Print/Hull/index.svelte new file mode 100644 index 0000000..50ddaca --- /dev/null +++ b/src/components/Output/Print/Hull/index.svelte @@ -0,0 +1,16 @@ +
+ + +
+ + diff --git a/src/components/Output/Print/Systems/Firecons/index.svelte b/src/components/Output/Print/Systems/Firecons/index.svelte new file mode 100644 index 0000000..dcfc664 --- /dev/null +++ b/src/components/Output/Print/Systems/Firecons/index.svelte @@ -0,0 +1,19 @@ +
+ {#each _.range(firecons) as firecon } + firecon + {/each} +
+ + + + diff --git a/src/components/Output/Print/Systems/Screens/index.svelte b/src/components/Output/Print/Systems/Screens/index.svelte new file mode 100644 index 0000000..b9675b9 --- /dev/null +++ b/src/components/Output/Print/Systems/Screens/index.svelte @@ -0,0 +1,26 @@ +
+ {#each _.range(standard) as i } + screen + {/each} + {#each _.range(advanced) as i } + advanced screen + {/each} + +
+ + + + diff --git a/src/components/Output/Print/Systems/index.svelte b/src/components/Output/Print/Systems/index.svelte new file mode 100644 index 0000000..f8e803f --- /dev/null +++ b/src/components/Output/Print/Systems/index.svelte @@ -0,0 +1,28 @@ +
+ + + +
+ + + + diff --git a/src/components/Output/Print/Weapons/index.svelte b/src/components/Output/Print/Weapons/index.svelte index 28bd225..f7894fb 100644 --- a/src/components/Output/Print/Weapons/index.svelte +++ b/src/components/Output/Print/Weapons/index.svelte @@ -19,4 +19,7 @@ diff --git a/src/components/Output/Print/index.svelte b/src/components/Output/Print/index.svelte index f0013ed..6495823 100644 --- a/src/components/Output/Print/index.svelte +++ b/src/components/Output/Print/index.svelte @@ -1,14 +1,17 @@ -
+
- - + + + +
diff --git a/src/components/Output/Print/sample.js b/src/components/Output/Print/sample.js index f2ea6cd..2ecdbf9 100644 --- a/src/components/Output/Print/sample.js +++ b/src/components/Output/Print/sample.js @@ -69,8 +69,8 @@ export default { "mass": 22 }, "screens": { - "standard": 5, - "advanced": 0, + "standard": 2, + "advanced": 1, "cost": 105, "mass": 35 },