Saving inputs to browser storage

This commit is contained in:
2025-02-08 10:09:17 +00:00
parent 71d7f5cb07
commit 36c4502595
4 changed files with 91 additions and 10 deletions

View File

@@ -1,7 +1,11 @@
# `Daily Time Recording`
# Daily Time Recording
Simple utility to calculate how much time you have left to record today.
The start time & duration are kept in browser storage. The recorded duration is also kept but cleared every day.
# Operation
Inputs:
- Start Time
@@ -9,6 +13,9 @@ Inputs:
- Break Duration
- Break Taken Yes/No
- Recorded Duration
Output:
- Remaining Duration
Calculation:
@@ -21,8 +28,4 @@ Remaining = Now - Start - Break (if taken) - Recorded
- `npm run build` - Builds for production, emitting to `dist/`
- `npm run preview` - Starts a server at http://localhost:4173/ to test production build locally
# Todo
- Save start, target & break duration in browser storage
- `npm run preview` - Starts a server at http://localhost:4173/ to test production build locally