diff --git a/.histoire/screenshots/src-lib-components-shipedit-carrier-story-svelte-_default-1280x800.png b/.histoire/screenshots/src-lib-components-shipedit-carrier-story-svelte-_default-1280x800.png index 05b743f..3f61942 100644 Binary files a/.histoire/screenshots/src-lib-components-shipedit-carrier-story-svelte-_default-1280x800.png and b/.histoire/screenshots/src-lib-components-shipedit-carrier-story-svelte-_default-1280x800.png differ diff --git a/package.json b/package.json index 602fecf..02f11f7 100644 --- a/package.json +++ b/package.json @@ -49,10 +49,12 @@ "remeda": "^1.9.1", "reselect": "^4.1.5", "svelte-chota": "^1.8.6", + "svelte-copy-clipboard-action": "^0.0.3", "svelte-knobby": "^0.3.4", "svelte-moveable": "^0.20.0", "ts-action": "^11.0.0", - "vite": "^4.2.1" + "vite": "^4.2.1", + "yaml": "^2.2.1" }, "prettier": { "svelteSortOrder": "options-markup-scripts-styles", diff --git a/src/lib/components/MainLayout.svelte b/src/lib/components/MainLayout.svelte index 49865e9..7228224 100644 --- a/src/lib/components/MainLayout.svelte +++ b/src/lib/components/MainLayout.svelte @@ -5,7 +5,23 @@

a Full Thrust ship builder

- Editor + Editor + + Export ({ specs, id })); - console.log(weapons); diff --git a/src/lib/components/__image_snapshots__/screenshots-test-ts-src-lib-components-screenshots-test-ts-image-snapshot-2-snap.png b/src/lib/components/__image_snapshots__/screenshots-test-ts-src-lib-components-screenshots-test-ts-image-snapshot-2-snap.png index 05b743f..3f61942 100644 Binary files a/src/lib/components/__image_snapshots__/screenshots-test-ts-src-lib-components-screenshots-test-ts-image-snapshot-2-snap.png and b/src/lib/components/__image_snapshots__/screenshots-test-ts-src-lib-components-screenshots-test-ts-image-snapshot-2-snap.png differ diff --git a/src/routes/+page.svelte b/src/routes/+page.svelte index 212dbf0..c3783da 100644 --- a/src/routes/+page.svelte +++ b/src/routes/+page.svelte @@ -1,16 +1,6 @@ -{#if ship} - -{/if} - diff --git a/src/routes/editor/+page.svelte b/src/routes/editor/+page.svelte new file mode 100644 index 0000000..212dbf0 --- /dev/null +++ b/src/routes/editor/+page.svelte @@ -0,0 +1,16 @@ +{#if ship} + +{/if} + + diff --git a/src/routes/page.test.js b/src/routes/editor/page.test.js similarity index 100% rename from src/routes/page.test.js rename to src/routes/editor/page.test.js diff --git a/src/routes/export/+layout.svelte b/src/routes/export/+layout.svelte new file mode 100644 index 0000000..d561c3c --- /dev/null +++ b/src/routes/export/+layout.svelte @@ -0,0 +1,27 @@ + + + + diff --git a/src/routes/export/json/+page.svelte b/src/routes/export/json/+page.svelte new file mode 100644 index 0000000..63b1e12 --- /dev/null +++ b/src/routes/export/json/+page.svelte @@ -0,0 +1,59 @@ +
+ +
{shipJson}
+