Implement DTOs, add managed state for schedule, export to txt

This commit is contained in:
2026-01-11 22:28:10 +02:00
parent 53f8695572
commit 92a9c6d704
11 changed files with 254 additions and 70 deletions

View File

@@ -1,9 +1,6 @@
<script lang="ts">
import { invoke } from "@tauri-apps/api/core";
import { Calendar, Popover } from "bits-ui";
import { CalendarDate, getDayOfWeek } from "@internationalized/date";
import { Button } from "$lib/components/ui/button/index.js";
import { warn, debug, trace, info, error } from "@tauri-apps/plugin-log";
import { trace } from "@tauri-apps/plugin-log";
import Basic from "./components/configurations/basic.svelte";
import Residents from "./components/configurations/residents.svelte";
@@ -99,7 +96,7 @@
<div class="h-1.5 w-full overflow-hidden rounded-full bg-zinc-200">
<div
class="h-full bg-emerald-600 transition-all duration-500"
style="width: {(rota.currentStep / steps.length) * 100}%"
style="width: {(((rota.currentStep - 1) / (steps.length - 1)) * 100).toFixed(0)}%"
></div>
</div>
</div>