histoire build works again

docks66-json-schema
Yanick Champoux 2023-04-23 12:35:58 -04:00
parent d28ef38b2b
commit da8ba56556
15 changed files with 25 additions and 126 deletions

View File

@ -1,4 +0,0 @@
const __resolved__virtual_storySource_srcLibComponentsShipeditPropulsionStorySvelte = '<Hst.Story>\n <Propulsion />\n</Hst.Story>\n\n<script>\n export let Hst;\n import Propulsion from "./Propulsion.svelte";\n<\/script>\n';
export {
__resolved__virtual_storySource_srcLibComponentsShipeditPropulsionStorySvelte as default
};

View File

@ -127,56 +127,6 @@
"virtual": false,
"markdownFile": null
},
{
"id": "src-lib-components-shipedit-propulsion-story-svelte",
"title": "Propulsion",
"group": null,
"layout": {
"type": "single",
"iframe": true
},
"icon": null,
"iconColor": null,
"docsOnly": false,
"variants": [
{
"id": "_default",
"title": "default"
}
],
"relativePath": "src/lib/components/ShipEdit/Propulsion.story.svelte",
"supportPluginId": "svelte3",
"treePath": [
"Propulsion"
],
"virtual": false,
"markdownFile": null
},
{
"id": "src-lib-components-shipedit-weaponry-story-svelte",
"title": "Weaponry",
"group": null,
"layout": {
"type": "single",
"iframe": true
},
"icon": null,
"iconColor": null,
"docsOnly": false,
"variants": [
{
"id": "_default",
"title": "default"
}
],
"relativePath": "src/lib/components/ShipEdit/Weaponry.story.svelte",
"supportPluginId": "svelte3",
"treePath": [
"Weaponry"
],
"virtual": false,
"markdownFile": null
},
{
"id": "src-lib-components-shipedit-propulsion-engine-story-svelte",
"title": "Engine",
@ -203,58 +153,6 @@
],
"virtual": false,
"markdownFile": null
},
{
"id": "src-lib-components-shipedit-propulsion-ftl-story-svelte",
"title": "Ftl",
"group": null,
"layout": {
"type": "single",
"iframe": true
},
"icon": null,
"iconColor": null,
"docsOnly": false,
"variants": [
{
"id": "_default",
"title": "default"
}
],
"relativePath": "src/lib/components/ShipEdit/Propulsion/Ftl.story.svelte",
"supportPluginId": "svelte3",
"treePath": [
"ShipEdit",
"Propulsion",
"Ftl"
],
"virtual": false,
"markdownFile": null
},
{
"id": "src-lib-components-shipedit-weaponry-weapon-arcs-story-svelte",
"title": "Arcs",
"group": null,
"layout": {
"type": "single",
"iframe": true
},
"icon": null,
"iconColor": null,
"docsOnly": false,
"variants": [
{
"id": "_default",
"title": "default"
}
],
"relativePath": "src/lib/components/ShipEdit/Weaponry/Weapon/Arcs.story.svelte",
"supportPluginId": "svelte3",
"treePath": [
"Arcs"
],
"virtual": false,
"markdownFile": null
}
],
"markdownFiles": []

Binary file not shown.

Before

Width:  |  Height:  |  Size: 28 KiB

After

Width:  |  Height:  |  Size: 28 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 36 KiB

After

Width:  |  Height:  |  Size: 42 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 129 KiB

After

Width:  |  Height:  |  Size: 19 KiB

View File

@ -12,8 +12,8 @@
"story:build": "histoire build"
},
"devDependencies": {
"@histoire/plugin-screenshot": "^0.15.9",
"@histoire/plugin-svelte": "^0.15.9",
"@histoire/plugin-screenshot": "^0.16.1",
"@histoire/plugin-svelte": "^0.16.1",
"@sveltejs/adapter-static": "^1.0.0-next.28",
"@sveltejs/kit": "^1.10.0",
"@sveltejs/vite-plugin-svelte": "^1.0.0-next.38",
@ -41,7 +41,7 @@
"beercss": "^3.1.0",
"chota": "^0.8.0",
"effector": "^22.5.2",
"histoire": "^0.15.9",
"histoire": "^0.16.1",
"jsdom": "^21.1.1",
"lodash": "^4.17.21",
"memoize-one": "^6.0.0",

View File

@ -3,7 +3,10 @@
</Hst.Story>
<script>
import { setContext } from "svelte";
export let Hst;
import Propulsion from "./Propulsion.svelte";
setContext("api", {});
</script>

View File

@ -3,7 +3,7 @@
<Ftl {...ftl} />
</Section>
<script lang="ts">
<script>
import Section from "$lib/components/Section.svelte";
import Drive from "./Propulsion/Engine.svelte";
import Ftl from "./Propulsion/Ftl.svelte";

View File

@ -1,16 +0,0 @@
<Hst.Story title="ShipEdit/Propulsion/Ftl">
<Ftl {api} />
</Hst.Story>
<script>
export let Hst;
import { logEvent } from "histoire/client";
const api = {
dispatch: {
setFtl: (ftl) => logEvent("setFtl", { ftl }),
},
};
import Ftl from "./Ftl.svelte";
</script>

View File

@ -0,0 +1,18 @@
<Hst.Story title="ShipEdit/Propulsion/Ftl">
<Ftl {api} />
</Hst.Story>
<script>
export let Hst;
//import { logEvent, isCollecting } from "histoire/client";
const api = true
? {}
: {
dispatch: {
// setFtl: (ftl) => logEvent("setFtl", { ftl }),
},
};
import Ftl from "./Ftl.svelte";
</script>

Binary file not shown.

Before

Width:  |  Height:  |  Size: 28 KiB

After

Width:  |  Height:  |  Size: 28 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 36 KiB

After

Width:  |  Height:  |  Size: 42 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 129 KiB

After

Width:  |  Height:  |  Size: 19 KiB