Skip to content
This repository was archived by the owner on Jun 1, 2025. It is now read-only.

Commit e8889ed

Browse files
authored
add chaining support (#53)
* add chaining support * fix errors
1 parent 20d617c commit e8889ed

File tree

10 files changed

+763
-328
lines changed

10 files changed

+763
-328
lines changed

.github/dependabot.yml

Lines changed: 0 additions & 6 deletions
This file was deleted.

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,17 +15,17 @@
1515
"chartjs-plugin-zoom": "^2.2.0",
1616
"date-picker-svelte": "^2.15.1",
1717
"idb": "^8.0.1",
18-
"svelte": "^5.17.3",
18+
"svelte": "^5.18.0",
1919
"xlsx": "^0.18.5"
2020
},
2121
"devDependencies": {
2222
"@rsbuild/core": "^1.1.13",
2323
"@rsbuild/plugin-svelte": "^1.0.7",
2424
"@tailwindcss/postcss": "4.0.0-beta.8",
2525
"prettier": "^3.4.2",
26-
"prettier-plugin-svelte": "^3.3.2",
26+
"prettier-plugin-svelte": "^3.3.3",
2727
"prettier-plugin-tailwindcss": "^0.6.9",
28-
"svelte-check": "^4.1.3",
28+
"svelte-check": "^4.1.4",
2929
"tailwindcss": "4.0.0-beta.8",
3030
"typescript": "^5.7.3"
3131
}

pnpm-lock.yaml

Lines changed: 51 additions & 51 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/App.svelte

Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -43,16 +43,8 @@
4343
function loop() {
4444
runtime.startRuntime();
4545
loopManager.startLoop(() => {
46-
if (simulationType.simulationType === "single") {
47-
runtime.stopRuntime();
48-
completed = true;
49-
} else {
50-
runtime.stopRuntime();
51-
efficiencyResults.setEfficiencyResults([]);
52-
startDate.setStartDate(0);
53-
endDate.setEndDate(0);
54-
// TODO: fix
55-
}
46+
runtime.stopRuntime();
47+
completed = true;
5648
});
5749
}
5850
@@ -143,7 +135,7 @@
143135
{:else if simulationType.simulationType === "single" && !dashboard.startDashboard}
144136
<Stepper onComplete={loop} />
145137
{:else if simulationType.simulationType === "chain" && !dashboard.startDashboard}
146-
<Chain {loop} />
138+
<Chain bind:completed />
147139
{:else}
148140
<div class="flex h-screen md:flex-col">
149141
{#if currentComponent.currentComponent !== "Stop"}

0 commit comments

Comments
 (0)