Commit Graph

76 Commits

Author SHA1 Message Date
Viktor Sarström 82e0c6f961 fix: 🐛 Readded mock, ts config to api 2021-11-09 11:46:45 +01:00
Viktor Sarström 3f62016d6a feat: 🎸 fixes ts issues 2021-11-09 11:04:13 +01:00
Viktor Sarström cafe6ec990 fix: 🐛 merge conflict 2021-11-09 10:53:51 +01:00
Viktor Sarström 9d213413be fix: 🐛 Merge with master 2021-11-09 10:53:07 +01:00
Viktor Sarström 4f1f66fcbb feat: 🎸 Merged with main, also added api to nx 2021-11-09 10:49:12 +01:00
Emil Lindqvist 225a8aa983 Make run scripts work with new structure 2021-11-09 10:29:38 +01:00
Emil Lindqvist 2162221322 Add interface for hjarntorget and skkolplattformen 2021-11-09 10:28:48 +01:00
Emil Lindqvist aeeab7feb6 Rename skolplattfomen api 2021-11-09 10:27:38 +01:00
Emil Lindqvist a9603422c8 Extract common code from api-skolplattformen
Common code consists of shared types, some helpers along with a few
common infrastructure code for fetching data and handling cookies etc.
Shortly a common `Api` interface will be introduced that  both
skolplattformen and hjarntorget will adhere to initially.
2021-11-09 10:25:31 +01:00
Andreas Eriksson beaf991342 Add check for correct set-cookie header in response
This way we can detect when the api returns data for the wrong child. We then throw an exception.
In the app the api-hooks library retires requests when errors occur so we try again and hope
that correct data is returned.
2021-10-30 15:23:40 +02:00
Viktor Sarström c54f2ffd05 fix: 🐛 Fixes merge with main 2021-10-26 14:23:49 +02:00
Viktor Sarström ff01199086 Merge branch 'main' of https://github.com/kolplattformen/skolplattformen into feature/nx 2021-10-26 14:22:10 +02:00
Jonathan Edenström 1ef5dd58bc remove duplicate cookies packages 2021-10-26 09:59:14 +02:00
Jonathan Edenström 61a1f3521b fix failing api tests 2021-10-15 22:40:29 +02:00
Jonathan Edenström 83e837955c Fix tests for `hooks` 2021-10-15 22:36:48 +02:00
Viktor Sarström e9d82745ce More test stuff 2021-10-15 22:07:03 +02:00
Emil Lindqvist 456e1a520c Make run scripts work with new structure 2021-10-11 10:50:23 +02:00
Emil Lindqvist 52c4c03665 Add interface for hjarntorget and skkolplattformen 2021-10-11 09:57:22 +02:00
Emil Lindqvist 85ffe3e40d Rename skolplattfomen api 2021-10-11 09:45:36 +02:00
Emil Lindqvist 214fa44bc6 Extract common code from api-skolplattformen
Common code consists of shared types, some helpers along with a few
common infrastructure code for fetching data and handling cookies etc.
Shortly a common `Api` interface will be introduced that  both
skolplattformen and hjarntorget will adhere to initially.
2021-10-10 21:09:14 +02:00
Jonathan Edenström 169b5365e9 fix: lint and prettier fixes 2021-10-06 22:47:50 +02:00
Jonathan Edenström 2a2259a260 fix: failing html parsing 2021-10-06 21:40:33 +02:00
Jonathan Edenström f103564ad3 chore: remove unused yarn.lock 2021-10-06 07:10:09 +02:00
Jonathan Edenström 18ed8620af fix: rename and fix imports 2021-10-05 17:44:14 +02:00
Jonathan Edenström d90cfd2a3b feat: add nx build system 2021-10-05 17:27:47 +02:00
Erik Hellman 8832990524 Moved to libs directory 2021-10-03 11:32:39 +02:00