From 06580e0a812a7066449d2a51e0f78e9557e913dc Mon Sep 17 00:00:00 2001 From: Dominic Ferrando Date: Fri, 17 Oct 2025 16:36:18 -0400 Subject: [PATCH] Calculator simplification --- src/lib/components/StandardsTable.svelte | 21 ++++- src/lib/data/standards.json | 25 +---- src/lib/services/calculator/main.ts | 59 ++++++------ src/lib/services/calculator/util.ts | 37 -------- src/routes/calculator/+page.svelte | 112 ++++++++++++----------- 5 files changed, 109 insertions(+), 145 deletions(-) diff --git a/src/lib/components/StandardsTable.svelte b/src/lib/components/StandardsTable.svelte index 87b9616..07174ce 100644 --- a/src/lib/components/StandardsTable.svelte +++ b/src/lib/components/StandardsTable.svelte @@ -1,10 +1,12 @@ @@ -110,7 +120,7 @@ min="1" max="100" placeholder="5" - bind:value={inputSelected.cfg.global.maxLevel} + bind:value={input.cfg.global.maxLevel} /> @@ -126,7 +136,7 @@ @@ -161,8 +171,8 @@ - - + + @@ -213,7 +223,7 @@ {#each Object.values(Gender) as gender} @@ -245,7 +255,7 @@ min="0" max="100" placeholder="18" - bind:value={inputSelected.metrics.age} + bind:value={input.metrics.age} /> @@ -259,7 +269,7 @@ placeholder={selected.metrics.age ? "170" : "Requires age"} - bind:value={inputSelected.metrics.weight} + bind:value={input.metrics.weight} disabled={!selected.metrics.age} />