Skip to content

Commit

Permalink
fix: spelling
Browse files Browse the repository at this point in the history
  • Loading branch information
edalholt committed Dec 8, 2024
1 parent b079116 commit b591a9d
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 5 deletions.
File renamed without changes.
4 changes: 2 additions & 2 deletions frontend/src/App.svelte
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<script lang="ts">
import CoffeeStatsBox from "./lib/CoffeeStatsBox.svelte";
import CoffeWeekChart from "./lib/CoffeWeekChart.svelte";
import CoffeeWeekChart from "./lib/CoffeeWeekChart.svelte";
import Heatmap from "./lib/Heatmap.svelte";
import { onMount } from "svelte";
import axios from "axios";
Expand Down Expand Up @@ -33,7 +33,7 @@
<main>
<div class="coffee-stats">
<CoffeeStatsBox />
<CoffeWeekChart />
<CoffeeWeekChart />
<Heatmap
data={heatmapData.data}
start={heatmapData.start}
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/lib/CoffeeStatsBox.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
<div class="card-front">
<div class="info-box">
<div class="section">
<h4 class="title">Since last brew:</h4>
<h4 class="title">Since last brew</h4>
<h4 class="content">
<LastCoffee />
</h4>
Expand Down
File renamed without changes.
5 changes: 3 additions & 2 deletions frontend/src/lib/MostBrewed.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
const formatDate = (dateStr: string) => {
const date = new Date(dateStr);
const day = date.getDate();
const month = date.toLocaleString("default", { month: "long" });
const month = date.toLocaleString("en-CA", { month: "long" });
const year = date.getFullYear();
return `${day}. ${month} ${year}`;
};
Expand All @@ -20,13 +20,14 @@

{#if data}
<div>
<p>Overall brew record</p>
<p>
Overall brew record<br />
<strong>{formatDate(data.overall.date)}</strong><br />
<strong>{data.overall.liters.toFixed(0)} liters</strong>
</p>
<p>
This month<br />
<strong>{formatDate(data.thisMonth.date)}</strong><br />
<strong>{data.thisMonth.liters.toFixed(0)} liters</strong>
</p>
</div>
Expand Down

0 comments on commit b591a9d

Please sign in to comment.