Commit Graph

1564 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 c88b25aa10 fix: 🐛 Added projects to nx 2021-11-09 11:25:19 +01:00
Viktor Sarström 9bb115a5dd changed named on api-hjarntorget 2021-11-09 11:07:15 +01:00
Viktor Sarström 3f62016d6a feat: 🎸 fixes ts issues 2021-11-09 11:04:13 +01:00
Viktor Sarström b641486768 fix: 🐛 Fixes tsconfig in api-hjarntorget 2021-11-09 11:01:48 +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 2a70fa0212 Add fakes for most endpoint calls 2021-11-09 10:29:39 +01:00
Emil Lindqvist 894adbd3f6 Make fetch-call "names" distinct 2021-11-09 10:29:39 +01:00
Emil Lindqvist b8bdffa033 Make run.js touch all endpoints implemented so far 2021-11-09 10:29:39 +01:00
Emil Lindqvist 88e22df77d Fix fetch calls to give unique urls proper names 2021-11-09 10:29:39 +01:00
Emil Lindqvist baf1aaa34a Fetch homework schedule with getCalendar call 2021-11-09 10:29:39 +01:00
Emil Lindqvist d91b1c2c7d Add test for hjarntorget api login/logout flow 2021-11-09 10:29:39 +01:00
Emil Lindqvist d50eb2eb7f Extract most url handling into routes.ts 2021-11-09 10:29:39 +01:00
Emil Lindqvist c0289c5e63 Add initial hjarntorget implementation 2021-11-09 10:29:39 +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
Emil Lindqvist 79502a4f09 Add fakes for most endpoint calls 2021-11-09 09:28:27 +01:00
Viktor Sarström 2919489fed
Merge pull request #523 from keslol/patch-1
Update README.md to remove a 404 link
2021-11-08 13:19:09 +01:00
Robin Sartor 79063b850f
Update README.md
given url (without https//) returns 404
2021-11-07 21:18:35 +01:00
Emil Lindqvist 75601038ca Make fetch-call "names" distinct 2021-11-07 20:25:23 +01:00
Erik Hellman 5b4561a610
Merge pull request #517 from kolplattformen/feature/workaround-wrong-child-in-response
feat: 🎸 Add workaround for wrong data in response
2021-11-07 14:52:18 +01:00
Erik Hellman c60a18373b Merge remote-tracking branch 'origin/main' into feature/workaround-wrong-child-in-response 2021-11-07 14:17:50 +01:00
Erik Hellman 98666f8fa5 merge changes from main 2021-11-07 14:04:16 +01:00
Erik Hellman 6d762e7007 feat: 🎸 bump to version 2.0.4 2021-11-07 14:04:16 +01:00
Viktor Sarström be1d611ce3 Manual signing 2021-11-07 14:04:16 +01:00
Viktor Sarström 002e8c1320 Added index.js to root 2021-11-07 14:04:16 +01:00
Viktor Sarström 292a5c638b Added implicitDependencies 2021-11-07 14:04:16 +01:00
Jonathan Edenström 7ab8ed5d36 fix android build paths 2021-11-07 14:04:16 +01:00
Jonathan Edenström 6697722438 add node_modules symlink to .gitignore 2021-11-07 14:04:16 +01:00
Jonathan Edenström fa1d8c54ad remove node_modules symlink 2021-11-07 14:04:16 +01:00
Erik Hellman 51cb9e800b
Merge pull request #519 from kolplattformen/feature/bump-to-2.0.4
feat: 🎸 bump to version 2.0.4
2021-11-07 12:12:23 +01:00
Erik Hellman 078c946a44 feat: 🎸 bump to version 2.0.4 2021-11-06 21:43:06 +01:00
Jonathan Edenström 5cdd2cf5d0
Merge pull request #518 from kolplattformen/feature/fix-bitrise-build 2021-11-06 21:36:39 +01:00
Viktor Sarström 8353ac87fa Manual signing 2021-11-06 18:08:31 +01:00
Emil Lindqvist 7333fe8c68 Make run.js touch all endpoints implemented so far 2021-11-05 10:50:45 +01:00
Emil Lindqvist a7269a47fa Fix fetch calls to give unique urls proper names 2021-11-05 09:57:17 +01:00
Emil Lindqvist 96f831f860 Fetch homework schedule with getCalendar call 2021-11-05 07:54:37 +01:00
Viktor Sarström 86dbc6b0ff Added index.js to root 2021-11-02 10:22:50 +01:00
Viktor Sarström dee1d93be5 Added implicitDependencies 2021-11-02 08:14:18 +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
Jonathan Edenström ba59f00fd8 fix android build paths 2021-10-29 19:37:21 +02:00
Jonathan Edenström 9254ea2635 add node_modules symlink to .gitignore 2021-10-29 18:43:13 +02:00
Jonathan Edenström c85ffe0c4b remove node_modules symlink 2021-10-29 18:41:56 +02:00
Viktor Sarström 6f36a4eabe Removed release 2021-10-27 08:07:43 +02:00
Viktor Sarström 689cc897fd
Merge pull request #506 from kolplattformen/feature/nx
Add `nx` to the project
2021-10-27 08:03:59 +02:00
Viktor Sarström d71c10607f fix: 🐛 Fixes failing tests (added skip), fixes lint + test 2021-10-27 07:58:22 +02:00