Skip to content

Commit dfbcaa4

Browse files
committed
Updated readme.
remove unused some unused imports removed old icon removed comments from jsconfig
1 parent 167e51b commit dfbcaa4

File tree

4 files changed

+9
-19
lines changed

4 files changed

+9
-19
lines changed

README.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
# `Daily Time Recording`
22

3+
Simple utility to calculate how much time you have left to record today.
4+
35
Inputs:
46

57
- Start Time
@@ -11,7 +13,7 @@ Inputs:
1113

1214
Calculation:
1315

14-
Remaining = Target - Now - Start - Break (if taken) + Recorded
16+
Remaining = Now - Start - Break (if taken) - Recorded
1517

1618
## Getting Started
1719

@@ -20,3 +22,7 @@ Remaining = Target - Now - Start - Break (if taken) + Recorded
2022
- `npm run build` - Builds for production, emitting to `dist/`
2123

2224
- `npm run preview` - Starts a server at http://localhost:4173/ to test production build locally
25+
26+
# Todo
27+
28+
- Save start, target & break duration in browser storage

jsconfig.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
"allowJs": true,
88
"checkJs": true,
99

10-
/* Preact Config */
1110
"jsx": "react-jsx",
1211
"jsxImportSource": "preact",
1312
"skipLibCheck": true,

public/vite.svg

Lines changed: 0 additions & 15 deletions
This file was deleted.

src/index.jsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,11 @@ import { render } from 'preact';
33
import {useEffect, useState} from "preact/hooks";
44
import { yupResolver } from "@hookform/resolvers/yup"
55
import * as yup from "yup";
6-
import {convertTime, minsToTime, timeRe, timeToMins} from "./time.js";
6+
import {minsToTime, timeRe} from "./time.js";
77

88
import 'xp.css/dist/XP.css';
99
import './style.css';
10-
import {convertDuration, durationRe} from "./duration.js";
10+
import {durationRe} from "./duration.js";
1111
import Duration from "./Duration.jsx";
1212
import calculateRemaining from "./calc.js";
1313

0 commit comments

Comments
 (0)