Standards domain models shuffling and renaming
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
import {
|
||||
Standards,
|
||||
type Standard,
|
||||
type StandardsConfig,
|
||||
type StandardsParameters,
|
||||
} from "@blade-and-brawn/calculator";
|
||||
import {
|
||||
Activity,
|
||||
@@ -17,7 +17,7 @@
|
||||
selected: {
|
||||
activity: Activity;
|
||||
metrics: Metrics;
|
||||
cfg: StandardsConfig;
|
||||
params: StandardsParameters;
|
||||
};
|
||||
}
|
||||
|
||||
@@ -52,7 +52,7 @@
|
||||
<div>
|
||||
<div class="flex items-center">
|
||||
<p class="text-xs label">
|
||||
{#if selected.cfg.activity[selected.activity].enableGeneration && allStandards
|
||||
{#if selected.params.activity[selected.activity].enableGeneration && allStandards
|
||||
.byActivity(selected.activity)
|
||||
.getMetadata().generators.length}
|
||||
(Generated data: {allStandards
|
||||
@@ -87,7 +87,7 @@
|
||||
? parseFloat(kgToLb(standard.metrics.weight).toFixed(2))
|
||||
: "None"}</th
|
||||
>
|
||||
{#each range(selected.cfg.global.maxLevel).map((i) => ++i) as lvl}
|
||||
{#each range(selected.params.global.maxLevel).map((i) => ++i) as lvl}
|
||||
<td>{getLvlValue(activity, standard, lvl)}</td>
|
||||
{/each}
|
||||
</tr>
|
||||
@@ -99,7 +99,7 @@
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Body weight</th>
|
||||
{#each range(selected.cfg.global.maxLevel).map((i) => ++i) as lvl}
|
||||
{#each range(selected.params.global.maxLevel).map((i) => ++i) as lvl}
|
||||
<td>{lvl}</td>
|
||||
{/each}
|
||||
</tr>
|
||||
|
||||
Reference in New Issue
Block a user