Code format
This commit is contained in:
@@ -11,16 +11,16 @@
|
||||
// Not when pushing unshifting the store
|
||||
// This is the only thing that works
|
||||
// Hacky ass shit
|
||||
let forceUpdate = false;
|
||||
foodStore.subscribe(() => {
|
||||
forceUpdate = !forceUpdate;
|
||||
});
|
||||
let forceUpdate = false;
|
||||
foodStore.subscribe(() => {
|
||||
forceUpdate = !forceUpdate;
|
||||
});
|
||||
</script>
|
||||
|
||||
<template>
|
||||
{#if forceUpdate}
|
||||
<FoodTable items={$foodStore} />
|
||||
{:else}
|
||||
<FoodTable items={$foodStore} />
|
||||
{/if}
|
||||
{#if forceUpdate}
|
||||
<FoodTable items={$foodStore} />
|
||||
{:else}
|
||||
<FoodTable items={$foodStore} />
|
||||
{/if}
|
||||
</template>
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
<script lang="ts">
|
||||
import AggregatedWeightTable from '$components/Weight/Aggregated/AggregatedWeightTable.svelte'
|
||||
import { dailyWeightStore } from '$lib/store/Weight/dailyWeightStore'
|
||||
import AggregatedWeightTable from "$components/Weight/Aggregated/AggregatedWeightTable.svelte";
|
||||
import { dailyWeightStore } from "$lib/store/Weight/dailyWeightStore";
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<AggregatedWeightTable items="{$dailyWeightStore}" />
|
||||
<AggregatedWeightTable items={$dailyWeightStore} />
|
||||
</template>
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
<script lang="ts">
|
||||
import { monthlyWeightStore } from '$lib/store/Weight/monthlyWeightStore'
|
||||
import AggregatedWeightTable from '$components/Weight/Aggregated/AggregatedWeightTable.svelte'
|
||||
import { monthlyWeightStore } from "$lib/store/Weight/monthlyWeightStore";
|
||||
import AggregatedWeightTable from "$components/Weight/Aggregated/AggregatedWeightTable.svelte";
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<AggregatedWeightTable items="{$monthlyWeightStore}" />
|
||||
<AggregatedWeightTable items={$monthlyWeightStore} />
|
||||
</template>
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
<script lang="ts">
|
||||
import { weeklyWeightStore } from '$lib/store/Weight/weeklyWeightStore'
|
||||
import AggregatedWeightTable from '$components/Weight/Aggregated/AggregatedWeightTable.svelte'
|
||||
import { weeklyWeightStore } from "$lib/store/Weight/weeklyWeightStore";
|
||||
import AggregatedWeightTable from "$components/Weight/Aggregated/AggregatedWeightTable.svelte";
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<AggregatedWeightTable items="{$weeklyWeightStore}" />
|
||||
<AggregatedWeightTable items={$weeklyWeightStore} />
|
||||
</template>
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
<script lang="ts">
|
||||
import AggregatedWeightTable from '$components/Weight/Aggregated/AggregatedWeightTable.svelte'
|
||||
import { yearlyWeightStore } from '$lib/store/Weight/yearlyWeightStore'
|
||||
import AggregatedWeightTable from "$components/Weight/Aggregated/AggregatedWeightTable.svelte";
|
||||
import { yearlyWeightStore } from "$lib/store/Weight/yearlyWeightStore";
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<AggregatedWeightTable items="{$yearlyWeightStore}" />
|
||||
<AggregatedWeightTable items={$yearlyWeightStore} />
|
||||
</template>
|
||||
|
||||
Reference in New Issue
Block a user