These are chat archives for arenanet/api-cdi

25th
Feb 2018
windwarrior
@windwarrior
Feb 25 2018 00:04
Okay, PSA, using <detail> tags in Safari followed by rem-unit sized text breaks in Safari
thanks @darthmaim for suggesting problems with rem units
David Reeß
@queicherius
Feb 25 2018 00:38
I'm fighting with caching too atm. Trying to save everything into localStorage but it's just too small. Then I through a bunch of compression at it and it locked the browser for 10s. Now trying IDB :D
ptolstoi
@ptolstoi
Feb 25 2018 00:55
be careful with IDB... upgrading the schema can be very painful
David Reeß
@queicherius
Feb 25 2018 01:02
yeah was thinking just using it as a single key/value thing and just dump the whole json structure in there
will see how that goes :D
windwarrior
@windwarrior
Feb 25 2018 13:16
@queicherius are you using a library for that
Wait is gw2e angular or react or both
darthmaim
@darthmaim
Feb 25 2018 13:28
both
David Reeß
@queicherius
Feb 25 2018 13:46
The old parts are angular 1.4, the newer parts are preact rendered into an angular controller
It's a work in progress. :D
@windwarrior Yeah I ended up using https://www.npmjs.com/package/idb-keyval
windwarrior
@windwarrior
Feb 25 2018 13:59
why preact
what does it offer over normal react
darthmaim
@darthmaim
Feb 25 2018 14:02
preact is way smaller in file size
same api as react, but some features are implemented differently
windwarrior
@windwarrior
Feb 25 2018 14:06
ah yeah
David Reeß
@queicherius
Feb 25 2018 14:19
Yeah size concerns mostly, since I am loading 2 frameworks while transisioning
windwarrior
@windwarrior
Feb 25 2018 15:08
I prefer staying on the mainline ^^
windwarrior
@windwarrior
Feb 25 2018 16:02
oh god, I cannot change the format of how I store things in localstorage easily without some form of migration strategy
Archomeda
@Archomeda
Feb 25 2018 16:10
good luck ^^
Enno G.
@SchoolGuy
Feb 25 2018 16:39
Do I get it right, that the main endpoint for wvw/matches is just split up? Or did I oversee an additonal information in one of the sub endpoints?
windwarrior
@windwarrior
Feb 25 2018 16:45
sorry what do you mean?
Has 3 Subendpoints, but when my eyes are not playing games, all information from the sub endpoint is also available from the "main" endpoint /wvw/matches
Correct?
windwarrior
@windwarrior
Feb 25 2018 17:02
if you dont pass either a world id, match id or list of match ids yeah
Enno G.
@SchoolGuy
Feb 25 2018 17:03
If I pass a world id, then the informations from overview, stats & scores is the same as from match/{id}
I know that the endpoints itself have diffrent content
windwarrior
@windwarrior
Feb 25 2018 17:10
it seems to be subviews on the same
Enno G.
@SchoolGuy
Feb 25 2018 17:11
Thanks for the confirmation! :thumbsup:
windwarrior
@windwarrior
Feb 25 2018 17:11
match/:id spits out a lot, so if you just want the overview you can call match/overview/:id/
saves bandwidth :P
Enno G.
@SchoolGuy
Feb 25 2018 17:12
Yeah my goal is to display the complete api in the android app, so I am straight going for full intel. Since I will use a offline sqlite database for storing this is not a problem. If version 1.0 is published I will add such functions as partial updates...
I am currently creating a typed model for every endpoint... This is a hell of typing :D
Is there currently any update on the new api version?
Archomeda
@Archomeda
Feb 25 2018 18:03
nope