Skip to content

Calculator for time intervals. Showcases the new Temporal Object proposal by TC39!

License

Notifications You must be signed in to change notification settings

Peruibeloko/time-calculator

Repository files navigation

Time Calculator ⏳

Ongoing little project to showcase the new TC39 proposal for a more standardized and robust Date & Time object, Temporal. Currently just adds up the entries in the list and displays the result in a simplified and humanized output.

Controls 🎮

  • Ctrl + Directional Arrows - Movement between fields, creates new entries as needed.
    • Usual form movement works as well (Tab and Shift + Tab)
  • Ctrl + Enter - Evaluates the result
  • Ctrl + Delete - Removes the currently selected entry from the list

Project Setup 🔧

Uses NPM/PNPM, so usual procedures follow:

npm i
npm run dev

And to build for production

npm run build

Roadmap 🗺

What should you expect?

  • Basic functionality
    • Add
    • Subtract
  • Don't allow flooding of empty entries (must use an entry before adding a new one)
  • Modal for controls
  • Mobile layout
  • Clickable Handles for adding entries
  • Reorderable entries
  • Light/Dark theme switch

And of course, general refactoring for clarity + optimizations as needed