{"id":25012568,"url":"https://github.com/sergiocampbell/timesheet","last_synced_at":"2025-03-30T04:11:24.664Z","repository":{"id":63268328,"uuid":"566395724","full_name":"SergioCampbell/timesheet","owner":"SergioCampbell","description":null,"archived":false,"fork":false,"pushed_at":"2022-11-16T14:48:54.000Z","size":471,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-02-05T06:16:46.680Z","etag":null,"topics":["babel","logic-programming","react","typescript","webpack5"],"latest_commit_sha":null,"homepage":"https://sergiocampbell.github.io/timesheet/","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"unlicense","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/SergioCampbell.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2022-11-15T15:31:24.000Z","updated_at":"2022-11-16T03:08:40.000Z","dependencies_parsed_at":"2023-01-22T08:45:30.503Z","dependency_job_id":null,"html_url":"https://github.com/SergioCampbell/timesheet","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SergioCampbell%2Ftimesheet","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SergioCampbell%2Ftimesheet/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SergioCampbell%2Ftimesheet/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SergioCampbell%2Ftimesheet/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/SergioCampbell","download_url":"https://codeload.github.com/SergioCampbell/timesheet/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246273559,"owners_count":20750906,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["babel","logic-programming","react","typescript","webpack5"],"created_at":"2025-02-05T06:17:04.779Z","updated_at":"2025-03-30T04:11:24.648Z","avatar_url":"https://github.com/SergioCampbell.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 🚀 Timesheet project!\n[![Screenshot-2022-11-15-at-19-59-44-React-with-Webpack.png](https://i.postimg.cc/d3v6LNzM/Screenshot-2022-11-15-at-19-59-44-React-with-Webpack.png)](https://postimg.cc/34Smq189)\n\n\nThis project has been created using **webpack-cli**, **typescript** and **react**.\n\nBefore start you have to run this commnad to install all dev dependencies ``npm install`` \n\nit's important to validate because there are some loader to convert typescript code to javascript code.\n\nOnce installed run this command to start locally:\n\nnow you can run ``npm run dev``\n\nand to bundle the application run ``npm run build`` or ``yarn build``\n\n\n## Notes\n\nThe company offers their employees the flexibility to work the hours they want. They will pay for the hours worked based on the day of the week and time of day, according to the following table:\n\n```\nMonday - Friday\n\n00:01 - 09:00 25 USD\n\n09:01 - 18:00 15 USD\n\n18:01 - 00:00 20 USD\n\nSaturday and Sunday\n\n00:01 - 09:00 30 USD\n\n09:01 - 18:00 20 USD\n\n18:01 - 00:00 25 USD\n```\n\nThe goal of this exercise is to calculate the total that the company has to pay an employee, based on the hours they worked and the times during which they worked. The following abbreviations will be used for entering data:\n\n```\nMO: Monday\n\nTU: Tuesday\n\nWE: Wednesday\n\nTH: Thursday\n\nFR: Friday\n\nSA: Saturday\n\nSU: Sunday\n```\n\nInput: the name of an employee and the schedule they worked, indicating the time and hours.\n\nOutput: indicate how much the employee has to be paid\n\nFor example:\n\nCase 1:\n\nINPUT\n\n```RENE=MO10:00-12:00,TU10:00-12:00,TH01:00-03:00,SA14:00-18:00,SU20:00-21:00```\n\nOUTPUT:\n\n``The amount to pay RENE is: 215 USD``\n\nCase 2:\n\nINPUT\n\n``ASTRID=MO10:00-12:00,TH12:00-14:00,SU20:00-21:00``\n\nOUTPUT:\n\n``The amount to pay ASTRID is: 85 USD``\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsergiocampbell%2Ftimesheet","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsergiocampbell%2Ftimesheet","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsergiocampbell%2Ftimesheet/lists"}