31 lines
675 B
Markdown
31 lines
675 B
Markdown
# 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
|
|
- Target Duration
|
|
- Break Duration
|
|
- Break Taken Yes/No
|
|
- Recorded Duration
|
|
|
|
Output:
|
|
|
|
- Remaining Duration
|
|
|
|
Calculation:
|
|
|
|
Remaining = Now - Start - Break (if taken) - Recorded
|
|
|
|
## Getting Started
|
|
|
|
- `npm run dev` - Starts a dev server at http://localhost:5173/
|
|
|
|
- `npm run build` - Builds for production, emitting to `dist/`
|
|
|
|
- `npm run preview` - Starts a server at http://localhost:4173/ to test production build locally |