This app stores times in the local storage of the Browser and calculate working time for days.
Used Techniques
load file
- https://developer.mozilla.org/en-US/docs/Web/API/DataTransfer
- paste string in form
- https://developer.mozilla.org/de/docs/Web/API/File/Zugriff_auf_Dateien_von_Webapplikationen
- https://developer.mozilla.org/de/docs/Web/API/FileReader
- https://www.npmjs.com/package/@tanker/file-reader
- https://www.npmjs.com/package/promise-json-file-reader
- https://developer.mozilla.org/en-US/docs/Web/API/FileReader/readAsText
TODO: check for better storage (https://web.dev/storage-for-the-web/)
- build with --base-href /work-time-tracker/
- set scope /work-time-tracker/
- set start_url /work-time-tracker/
Run ng serve for a dev server. Navigate to http://localhost:4200/. The app will automatically reload if you change any of the source files.
Run ng generate component component-name to generate a new component. You can also use ng generate directive|pipe|service|class|guard|interface|enum|module.
Run ng build to build the project. The build artifacts will be stored in the dist/ directory. Use the --prod flag for a production build.
Run ng test to execute the unit tests via Karma.
Run ng e2e to execute the end-to-end tests via Protractor.
To get more help on the Angular CLI use ng help or go check out the Angular CLI README.