Implement DTOs, add managed state for schedule, export to txt
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user