-
+ |
{item.date}
|
-
+ |
|
-
+ |
|
-
+ |
|
-
+ |
|
{item.energy}
diff --git a/frontend/src/lib/components/Settings/Setting.svelte b/frontend/src/lib/components/Settings/Setting.svelte
index bdc2b6b..67d8680 100644
--- a/frontend/src/lib/components/Settings/Setting.svelte
+++ b/frontend/src/lib/components/Settings/Setting.svelte
@@ -18,7 +18,7 @@
if (!res.success) {
toast.error(`Failed to set setting with error ${res.error}`);
editSetting = String(setting);
- return
+ return;
}
setting = numSetting;
settingsStore.update((store) => {
diff --git a/frontend/src/lib/components/Settings/Settings.svelte b/frontend/src/lib/components/Settings/Settings.svelte
index f3892a7..3dc261b 100644
--- a/frontend/src/lib/components/Settings/Settings.svelte
+++ b/frontend/src/lib/components/Settings/Settings.svelte
@@ -11,7 +11,7 @@
{#each Object.keys($settingsStore) as key}
-
+
{/each}
diff --git a/frontend/src/lib/components/Weight/Aggregated/AggregatedWeightComp.svelte b/frontend/src/lib/components/Weight/Aggregated/AggregatedWeightComp.svelte
index b46644a..7d5eeb8 100644
--- a/frontend/src/lib/components/Weight/Aggregated/AggregatedWeightComp.svelte
+++ b/frontend/src/lib/components/Weight/Aggregated/AggregatedWeightComp.svelte
@@ -1,13 +1,15 @@
-
+ |
{item.period}
|
diff --git a/frontend/src/lib/components/Weight/Aggregated/AggregatedWeightTable.svelte b/frontend/src/lib/components/Weight/Aggregated/AggregatedWeightTable.svelte
index 820ec9c..cf7e077 100644
--- a/frontend/src/lib/components/Weight/Aggregated/AggregatedWeightTable.svelte
+++ b/frontend/src/lib/components/Weight/Aggregated/AggregatedWeightTable.svelte
@@ -59,49 +59,51 @@
-
+ class="max-h-[50vh] h-[50vh]"
+ />
diff --git a/frontend/src/lib/components/Weight/EmptyWeightComp.svelte b/frontend/src/lib/components/Weight/EmptyWeightComp.svelte
index ce533e6..13c8625 100644
--- a/frontend/src/lib/components/Weight/EmptyWeightComp.svelte
+++ b/frontend/src/lib/components/Weight/EmptyWeightComp.svelte
@@ -1,34 +1,34 @@
-
+ |
{item.date}
|
diff --git a/frontend/src/lib/router/Router.svelte b/frontend/src/lib/router/Router.svelte
index 39ec8a9..dae3619 100644
--- a/frontend/src/lib/router/Router.svelte
+++ b/frontend/src/lib/router/Router.svelte
@@ -1,29 +1,29 @@
diff --git a/frontend/src/lib/router/routes/Energy/Energy.svelte b/frontend/src/lib/router/routes/Energy/Energy.svelte
index 89a4730..84b7655 100644
--- a/frontend/src/lib/router/routes/Energy/Energy.svelte
+++ b/frontend/src/lib/router/routes/Energy/Energy.svelte
@@ -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;
+ });
- {#if forceUpdate}
-
- {:else}
-
- {/if}
+ {#if forceUpdate}
+
+ {:else}
+
+ {/if}
diff --git a/frontend/src/lib/router/routes/Weight/WDaily.svelte b/frontend/src/lib/router/routes/Weight/WDaily.svelte
index 6058c53..2e95ee4 100644
--- a/frontend/src/lib/router/routes/Weight/WDaily.svelte
+++ b/frontend/src/lib/router/routes/Weight/WDaily.svelte
@@ -1,8 +1,8 @@
-
+
diff --git a/frontend/src/lib/router/routes/Weight/WMonthly.svelte b/frontend/src/lib/router/routes/Weight/WMonthly.svelte
index 768ca27..2e5d751 100644
--- a/frontend/src/lib/router/routes/Weight/WMonthly.svelte
+++ b/frontend/src/lib/router/routes/Weight/WMonthly.svelte
@@ -1,8 +1,8 @@
-
+
diff --git a/frontend/src/lib/router/routes/Weight/WWeekly.svelte b/frontend/src/lib/router/routes/Weight/WWeekly.svelte
index 1a42a44..d111e78 100644
--- a/frontend/src/lib/router/routes/Weight/WWeekly.svelte
+++ b/frontend/src/lib/router/routes/Weight/WWeekly.svelte
@@ -1,8 +1,8 @@
-
+
diff --git a/frontend/src/lib/router/routes/Weight/WYearly.svelte b/frontend/src/lib/router/routes/Weight/WYearly.svelte
index 5e5e610..ccb212c 100644
--- a/frontend/src/lib/router/routes/Weight/WYearly.svelte
+++ b/frontend/src/lib/router/routes/Weight/WYearly.svelte
@@ -1,8 +1,8 @@
-
+
diff --git a/frontend/src/lib/utils.ts b/frontend/src/lib/utils.ts
index 9f421ec..5a7e1d7 100644
--- a/frontend/src/lib/utils.ts
+++ b/frontend/src/lib/utils.ts
@@ -1,7 +1,6 @@
import { cubicOut } from "svelte/easing";
import type { TransitionConfig } from "svelte/transition";
import regression from "regression";
-import type { ChartData, Point } from "chart.js";
type FlyAndScaleParams = {
y?: number;
diff --git a/frontend/src/main.ts b/frontend/src/main.ts
index 95c41a5..c8d0b15 100644
--- a/frontend/src/main.ts
+++ b/frontend/src/main.ts
@@ -1,8 +1,8 @@
-import './style.css'
-import App from './App.svelte'
+import "./style.css";
+import App from "./App.svelte";
const app = new App({
- target: document.getElementById('app')
-})
+ target: document.getElementById("app"),
+});
-export default app
+export default app;
diff --git a/frontend/src/style.css b/frontend/src/style.css
index d3c0ad2..bbc5e23 100644
--- a/frontend/src/style.css
+++ b/frontend/src/style.css
@@ -3,28 +3,26 @@
@tailwind utilities;
html {
- background-color: rgba(27, 38, 54, 1);
- text-align: center;
- color: white;
+ background-color: rgba(27, 38, 54, 1);
+ text-align: center;
+ color: white;
}
body {
- margin: 0;
- color: white;
- font-family: "Nunito", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto",
- "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue",
- sans-serif;
+ margin: 0;
+ color: white;
+ font-family: "Nunito", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell",
+ "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
}
@font-face {
- font-family: "Nunito";
- font-style: normal;
- font-weight: 400;
- src: local(""),
- url("assets/fonts/nunito-v16-latin-regular.woff2") format("woff2");
+ font-family: "Nunito";
+ font-style: normal;
+ font-weight: 400;
+ src: local(""), url("assets/fonts/nunito-v16-latin-regular.woff2") format("woff2");
}
#app {
- height: 100vh;
- text-align: center;
-}
\ No newline at end of file
+ height: 100vh;
+ text-align: center;
+}
| | |