Commit Graph

24 Commits

Author SHA1 Message Date
Natsumi
e1de8508c6 cleanup 2023-06-07 01:03:29 +12:00
Teacup
0101f3474f Add systems for local world persistence (#553)
* chore: Change vscode workspace settings to work with omnisharp

* refactor(.NET): Use connection string builder to init sqlite database

* docs(.NET): Add method documentation to most things that matter

* docs(.NET): Add more docs I forgot to commit apparently

* feat: Add PoC world database structure ^& http listener

* fix: Send a response if VRCX isn't initialized rather than hanging

* feat: Initialize world db schema on startup

* feat: Allow worlds to store data in db through logfile

* use existing current location for worldDB

* Add tooltips

* chore: Make it so vscode can format C# files without prettier

* refactor: Add sqlite-net to (eventually) replace sqlite impl

* refactor: Make use of sqlite-net for world database

* docs: Add todo for fixing some random exception

* refactor: Remove now-unused SQLiteWorld

* refactor: Fix DB init query and change table structure again

* refactor: Add WorldDataRequest, add attributes for camelcase json keys

* Support current user location from API in addition to gameLog

* Change current location check for worldDB

* feat: Take store requests in JSON, identify worlds by GUID on store.

* refactor: Remove unused worldId param from connection key generator

* docs: Add more documentation to the methods for the world database

* fix: Hey wait that's not a primary key

* feat: Add a 10MB data cap for worlds shared across all of their rows.

* fix: Don't calculate size of world date twice when inserting

* refactor: Discard the guid variable since we only check for validity

* docs: Add docs/comments for new data cap functionality

* feat: Implement /getbulk API endpoint

* fix: Correct WorldDB init query typo

* fix: Update data entries properly instead of using 'OR REPLACE'

* refactor: Move endpoint processing to separate methods

* refactor: Add another check for error 503, remove old code

* feat: Add debug capability to /vrcx/getbulk

* fix: Correct the usage of getUser in actuallyGetCurrentLocation

* feat: Add store errors, implement external reading, stop 404ing

* docs: Add docs for new world db funcs

* refactor: Change world db server listen port to 22500

* fix: Use getUser correctly, dumb dumb

* fix: This error set shouldn't be here

* feat: Future-proof api endpoints. Add /status endpoint

---------

Co-authored-by: Natsumi <cmcooper123@hotmail.com>
2023-06-01 10:34:50 +12:00
Natsumi
ca8d6e4e5a Move savedCredentials to userId 2023-04-29 10:25:00 +12:00
Natsumi
5484172df8 Fixes 2023-01-31 05:30:46 +13:00
Natsumi
c630c97c06 Image download handler 2022-12-13 21:50:01 +13:00
Natsumi
053e85047e Version file 2022-10-04 01:54:38 +13:00
Natsumi
7b93d5bd45 use cookies when fetching noty images 2022-03-21 09:29:51 +13:00
Natsumi
1673a0745c YouTube API 2021-09-05 23:47:26 +12:00
Natsumi
dbb1554300 Save cookies per user (no 2FA on account switch) 2021-08-22 07:14:20 +12:00
Natsumi
816d9749a3 Avatar image upload signature 2021-04-02 00:29:06 +13:00
Natsumi
26fa43a311 Avatar image uploader 2021-04-01 08:29:05 +13:00
Natsumi
7707e82cc2 VRCPlus icon uploader 2021-02-20 05:17:49 +13:00
pypy
806073be3c typo 2021-01-30 03:48:17 +09:00
pypy
b3e41a23a4 cleanup code 2021-01-21 11:34:34 +09:00
pypy
32d5e12d34 cleanup code 2021-01-21 11:25:58 +09:00
pypy
a8b66a0537 save cookies periodically 2021-01-21 11:24:22 +09:00
pypy
a34fcc9478 increase connection limit 2021-01-21 11:24:06 +09:00
pypy
e5d28c6d67 clean up 2021-01-21 11:23:30 +09:00
pypy
e24c71481e sanity check 2021-01-09 14:28:13 +09:00
pypy
0291211e4f store cookies to sqlite 2020-11-18 21:40:10 +09:00
pypy
2114ab1287 cleanup code 2020-11-08 18:54:03 +09:00
pypy
7a1067e21c cleanup code 2020-11-08 15:32:14 +09:00
pypy
c05e884cb5 use cached path 2020-11-08 14:47:53 +09:00
pypy
f4d054ea49 use internal http request 2020-11-07 20:24:59 +09:00