diff --git a/README.md b/README.md index f451d37..6602851 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,7 @@ # `Daily Time Recording` +Simple utility to calculate how much time you have left to record today. + Inputs: - Start Time @@ -11,7 +13,7 @@ Inputs: Calculation: -Remaining = Target - Now - Start - Break (if taken) + Recorded +Remaining = Now - Start - Break (if taken) - Recorded ## Getting Started @@ -20,3 +22,7 @@ Remaining = Target - 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 \ No newline at end of file diff --git a/jsconfig.json b/jsconfig.json index 12bb30b..3a37891 100644 --- a/jsconfig.json +++ b/jsconfig.json @@ -7,7 +7,6 @@ "allowJs": true, "checkJs": true, - /* Preact Config */ "jsx": "react-jsx", "jsxImportSource": "preact", "skipLibCheck": true, diff --git a/public/vite.svg b/public/vite.svg deleted file mode 100644 index ffcb6bc..0000000 --- a/public/vite.svg +++ /dev/null @@ -1,15 +0,0 @@ - - - - - - - - - - - - - - - diff --git a/src/index.jsx b/src/index.jsx index d1de928..fe14a65 100644 --- a/src/index.jsx +++ b/src/index.jsx @@ -3,11 +3,11 @@ import { render } from 'preact'; import {useEffect, useState} from "preact/hooks"; import { yupResolver } from "@hookform/resolvers/yup" import * as yup from "yup"; -import {convertTime, minsToTime, timeRe, timeToMins} from "./time.js"; +import {minsToTime, timeRe} from "./time.js"; import 'xp.css/dist/XP.css'; import './style.css'; -import {convertDuration, durationRe} from "./duration.js"; +import {durationRe} from "./duration.js"; import Duration from "./Duration.jsx"; import calculateRemaining from "./calc.js";