Commit Graph

33 Commits

Author SHA1 Message Date
Arnaud Fauconnet
3bd38fdefa fixed the loop when the token becomes invalid 2022-11-04 23:06:11 +01:00
Arnaud Fauconnet
2e9db61173 Added loading icon when data is getting fetch for the username 2022-11-04 14:56:00 +01:00
Arnaud Fauconnet
4c9b1927e8 Main page (transactions) is now responsive 2022-11-04 11:01:26 +01:00
Arnaud Fauconnet
c7f388f786 Customer can now login and the context get's updated in the correct way. Modularized the types in @api 2022-11-03 22:33:46 +01:00
Arnaud Fauconnet
aa444c4e33 The customer can now login to the actual TCPOS backend by making the API call and storing the token in localstorage 2022-11-03 13:24:52 +01:00
Arnaud Fauconnet
a1072bff05 integrated theme in app 2022-10-28 11:42:31 +02:00
Arnaud Fauconnet
328a760eb8 added theme 2022-10-28 11:41:58 +02:00
Arnaud Fauconnet
99b63d95fd Removed redux and added useContext 2022-10-27 10:12:58 +02:00
Karma Riuk
fc00f9124c added redux to the setup (in src/ts/*), made webpack resolve also .ts files 2022-10-27 09:24:07 +02:00
Karma Riuk
61d31fa3c4 Formatted the code of components 2022-10-26 22:40:09 +02:00
Karma Riuk
de07c92579 Trying to fix webpack config 2022-10-26 22:39:54 +02:00
Karma Riuk
9728321bf8 Made each form use useForm 2022-10-26 19:02:19 +02:00
Karma Riuk
e1e1d58335 Added source map of webpack so that the browser doesn't complain anymore 2022-10-26 19:02:06 +02:00
Karma Riuk
8b86589fd2 Moved the table to the transactions page to it's own component to not clog up Transactions, minor changes to Login 2022-10-23 16:49:55 +02:00
Karma Riuk
598df57fac removed @types/yup from packages.json because yup already defines it's own types, and also because it made the app crash ehehe 2022-10-23 15:22:08 +02:00
Arnaud Fauconnet
97b92fa60c Made Login.tsx use the useForm hook and expanded the error page so that it can take another error if other shit happens. AuthComponent now doesn't have a hardcoded isLogged var, but looks at the query. 2022-10-23 15:09:28 +02:00
Arnaud Fauconnet
57ae7f5c3b Renamed Main to Transactions, because it does make more sense indeed 2022-10-21 10:38:46 +02:00
Arnaud Fauconnet
d0d757b5cb Added main page, metadata setter and AuthComponent so that titles and body classes are set, and auth checking can be done 2022-10-20 17:51:06 +02:00
Arnaud Fauconnet
3396819d29 Fixed style conflicting 2022-10-20 17:49:34 +02:00
Arnaud Fauconnet
24d9bd2c07 Created the reset passowrd component. Linked every page for the lifecycle of the user forgetting his password. 2022-10-20 11:53:28 +02:00
Karma Riuk
4e80933ea9 tried to make react router work, still WIP 2022-10-20 09:05:43 +02:00
Karma Riuk
d4b582c7c8 changed slightly the style of the pages 2022-10-20 09:05:17 +02:00
Karma Riuk
f8be8ba9a3 added prettierrc.yaml and reformatted the code 2022-10-20 09:04:44 +02:00
Karma Riuk
308ae6ab88 Added react router to package.json 2022-10-20 09:02:28 +02:00
Arnaud Fauconnet
e0c3b5c0c3 Refactored styles and started working on the app pages 2022-10-15 10:40:52 +02:00
Arnaud Fauconnet
b9db3d34b9 Removed useless rule in webpack.modules 2022-10-14 16:15:13 +02:00
Arnaud Fauconnet
ab1cda0aa0 Updated gitignore 2022-10-14 16:13:04 +02:00
Arnaud Fauconnet
5eef24187b restructured the files and created skeleton for the Login component 2022-10-13 17:07:48 +02:00
Arnaud Fauconnet
56e6e905b2 added dist to gitignore 2022-10-13 17:07:21 +02:00
Arnaud Fauconnet
1002d2fd0f added paths to the tsconfig so that it's not a pain to import stuff 2022-10-13 17:06:43 +02:00
Arnaud Fauconnet
3b430b9ff7 React components can now access scss variables 2022-10-13 14:21:45 +02:00
Fauconnet Arnaud
2e62d4675b React with typescript, sass and webpack workign 2022-10-13 09:50:30 +02:00
Fauconnet Arnaud
7e01b19907 added gitignore 2022-10-13 09:48:18 +02:00