Erik Hellman
8832990524
Moved to libs directory
2021-10-03 11:32:39 +02:00
Andreas Eriksson
5f5b467802
Fix id used in request
...
It always returned an error
2021-09-12 15:23:52 +02:00
Andreas Eriksson
47643d670a
If child has no timetableId they have no timetable and we should not ask server for one
2021-09-12 15:23:52 +02:00
Andreas Eriksson
befb073a32
feat: 🎸 Remove all obsolete login obstacles ( #146 )
2021-09-12 14:52:33 +02:00
Viktor Sarström
62d821a91b
Minor fixes
2021-09-10 17:14:23 +02:00
Viktor Sarström
2e9ba2b839
Added fantomen
2021-09-10 16:46:44 +02:00
Viktor Sarström
822bca9e5e
Fixes double async
2021-09-10 15:44:37 +02:00
Viktor Sarström
52d7341e2b
fix: 🐛 Fixes base64 iterations
2021-09-10 14:49:39 +02:00
Viktor Sarström
5017295206
Added npm dev-run, also fixed getTopology error
2021-09-09 15:42:27 +02:00
Viktor Sarström
7640ed929c
removed get header
2021-09-09 14:54:33 +02:00
Viktor Sarström
7bf8f1c2a8
fix: 🐛 Fixes configuration fetch
2021-09-09 14:16:42 +02:00
Viktor Sarström
ab62ab6d35
fix: 🐛 Fixes more sabotage from sthlm stad
2021-09-09 11:19:59 +02:00
Viktor Sarström
27998f719d
getheader should return string not void
2021-09-09 08:40:09 +02:00
Viktor Sarström
2823547804
fix: 🐛 Moved topologykey to config, also added getHeader()
2021-09-09 08:32:13 +02:00
Andreas Eriksson
ed053c52f9
Use base-64 npm package for encoding
...
Should work in Node and RN
2021-09-08 21:46:05 +02:00
Erik Hellman
4413c21dc1
Update api.ts
2021-09-08 21:36:03 +02:00
Andreas Eriksson
6e7abca1e5
Fix for time in topology header
...
If we use a timestamp in the future the validation on the server always succeeds.
2021-09-08 21:16:56 +02:00
Kajetan Kazimierczak
cd19abdd0f
fix: 🐛 Silly stockholm stad protection
2021-09-08 16:00:01 +02:00
Johan Öbrink
9dcdf78515
feat: 🎸 Added language support ( #121 )
...
* feat: 🎸 Added language support
BREAKING CHANGE: 🧨 getTimetable requires language
2021-04-26 10:23:02 +02:00
Andreas Eriksson
c3b4b153c3
feat: 🎸 Remove required personal number in route ( #118 )
...
When using bankId app on the same device the personal number is not
required
2021-04-17 13:40:18 +02:00
Andreas Eriksson
9c4fcb2d25
feat: Improve menu ( #109 )
...
* Return empty array if no match on week
Better to handle empty response in client
* Parse all descriptions to markdown
To get rid of <br/> and other stuff
Co-authored-by: Johan Öbrink <johan.obrink@gmail.com>
2021-04-16 16:57:16 +02:00
Johan Öbrink
5b143d1f02
* fix: 🐛 Forgot one instance of named capture group :(
...
* fix: 🐛 Forgot one instance of named capture group :(
2021-04-12 13:27:27 +02:00
Johan Öbrink
66b23faf43
fix: 🐛 Replaced named capture group for compatibility reasons ( #112 )
2021-04-12 13:18:31 +02:00
Johan Öbrink
fd919a0b5e
fix: 🐛 URLSearchParams compatible with both node and RN ( #111 )
2021-04-09 19:49:50 +02:00
Kajetan Kazimierczak
c2884497bf
feat: 🎸 Hämta lektionsschema ( #110 )
...
* feat: 🎸 add timetables from skola24
* refactor: 💡 Clean up sso authorization
* feat: 🎸 Reads timetable
* feat: 🎸 Veckoschema
Veckoschema kan laddas från Skola24
BREAKING CHANGE: 🧨 Child -> EtjanstChild
* feat: 🎸 Test data for skola24Children and timetable
* docs: ✏️ Updated instructions
Co-authored-by: Johan Öbrink <johan.obrink@gmail.com>
2021-04-09 10:35:00 +02:00
Rickard Natt och Dag
19fd3ddd0e
chore: add prettier ( #101 )
2021-03-30 17:21:18 +02:00
Erik Hellman
013dd5fc8c
Merge pull request #96 from whyer/feat/support-school-menu-in-different-formats
...
Feat/support school menu in different formats
2021-03-29 08:53:16 +02:00
Andreas Eriksson
e1849d5149
Feat/improve local dev experience ( #97 )
...
* Make it possible to set SessionCookie manually
* Add helper classes to make it possible to set a proxy agent on fetch
To attach a proxy when developing locally (to see requests and responses)
* Add a devrun.js for local testing
- Support for proxy
- Saves sessionCoookie to a file and tries to use it again
* Files to work with VisualStudio Code
- Debug
- Make typescript watch in background and build
* Fix so cookies work
* Always generate source maps
* Use devrun in debug
* Add linting to all files while developing
* Fixes to file after linting
* Fix failing test in api.test
* Add check that login was successful to setSessionCookie
2021-03-28 20:56:04 +02:00
Andreas Eriksson
4ab2cc16ec
Fix failing test in api.test
2021-03-28 14:55:14 +02:00
Andreas Eriksson
a1e2043308
Add support for menu (matsedel) in sharepoint-list format
...
For some reason there are two separate endpoints for getting the menu (matsedel) for a child, "RSS" or "sharepoint-list".
- First we have to query a third endpoint to know which to use
- Then we have to parse a totally separate data-format to get the menu
Why they have put this logic in the client is beyond me. It is so wrong on so many levels.
2021-03-28 14:52:58 +02:00
Erik Hellman
06956d182e
more lint fixes
2021-03-25 16:59:30 +01:00
Erik Hellman
bf6ef33a8f
lint fix
2021-03-25 16:53:11 +01:00
Erik Hellman
eefd79155b
fix: 🐛 fix the previous fix with a fixed json
2021-03-25 16:47:44 +01:00
Erik Hellman
d7954587d5
fix: 🐛 fix latest security "fix"
2021-03-25 14:33:57 +01:00
Kajetan Kazimierczak
7667a5e25a
fix: 🐛 Fix för login block 24mars
...
Denna gör så att bl.a. x-xsrf-token7 fungerar samt lägger till
cachebusting parameter på childcontroller
2021-03-24 11:01:56 +01:00
Erik Hellman
d1a4877ff4
fix: 🐛 add 2 to xsrf header and use nav controller script again
2021-03-22 21:04:02 +01:00
Erik Hellman
2796875fe2
fix: 🐛 use childcontroller script for XSRF header to CreateItem
2021-03-19 13:14:17 +01:00
Erik Hellman
f2a31964ba
check for space and be case insenstive
2021-03-18 19:35:21 +01:00
Erik Hellman
1deb42430c
fix: 🐛 read xsrf token from script for createItem call
2021-03-18 19:18:45 +01:00
Johan Öbrink
1ccdc9f42e
fix: 🐛 Fixar senaste blocken ( #81 )
2021-03-16 15:30:26 +01:00
Johan Öbrink
16020a3d3c
fix: 🐛 Adjusted cookie handling ( #79 )
2021-03-11 17:27:26 +01:00
Johan Öbrink
c62dab9e2e
Rebuilt session handling and login ( #78 )
...
* fix: 🐛 Repaired login
BREAKING CHANGE: 🧨 Cookie and Session handling reworked
2021-03-11 09:58:55 +01:00
Andreas Eriksson
3929ab4808
Merge branch 'main' into fix/error-handling-on-login
2021-03-02 10:17:12 +01:00
Erik Hellman
68c99cb1fb
fix: 🐛 add missing headers for fetching children
2021-03-02 08:52:09 +01:00
Kajetan Kazimierczak
7642a90cd6
Lagt på Host och Origin på anropet till apigw
2021-03-01 22:21:31 +01:00
Andreas Eriksson
63c4a9d12c
Fix lint errors
2021-03-01 18:31:47 +01:00
Andreas Eriksson
f575802b57
Add error handling on children requests
2021-03-01 18:08:03 +01:00
Andreas Eriksson
d61ffa0c07
Add test for server error on login
2021-03-01 17:57:53 +01:00
Andreas Eriksson
d1e568c82c
Handle errors when calling login
...
Sometimes the remote api responds with 500 Internal Server Error.
When we call response.json() on that response we get a parse error
from fetch.
It is better to check if response is OK before parsing.
2021-03-01 17:57:53 +01:00
Erik Hellman
1ecfdafede
fix: 🐛 implemented XSRF token support
2021-03-01 10:36:45 +01:00