Commit Graph

329 Commits

Author SHA1 Message Date
Guangcong Luo
84e373f504 Show error for unrecognized sort 2023-10-29 19:29:21 +00:00
Guangcong Luo
db679cab2c DRYer sort code for Replays 2023-10-29 15:20:02 +00:00
Guangcong Luo
970d4cf293 Update replay search API
Rename `byRating` to `sort=rating` for clarity. Also clean up some
style issues.
2023-10-29 03:03:29 +00:00
Mia
812b84164c Support params.user in replay search 2023-10-27 12:33:11 -05:00
Guangcong Luo
a03ae82ab1 Allow CORS in replays/search 2023-10-27 17:31:16 +00:00
Guangcong Luo
027c12df22 Nicer error messages 2023-10-27 17:25:59 +00:00
Mia
8ead75643c Add replays/edit action 2023-10-27 12:23:16 -05:00
Guangcong Luo
d63274a7c6 Support replays/recent API query 2023-10-27 14:37:52 +00:00
Guangcong Luo
6ce7d0a1d0 Fix order of replay search results 2023-10-27 14:20:34 +00:00
Mia
f2d2b92044 Replay search: Default to 1 2023-10-26 17:06:21 -05:00
Mia
54d978c5c5 Teams: Optimize return data more 2023-10-26 16:38:46 -05:00
Mia
f09edd02fb Add replay search endpoints for New Replays 2023-10-26 16:34:14 -05:00
Mia
1272268dc2 Actions: Split up getteams to use less bandwidth 2023-09-29 09:44:56 -05:00
Mia
d380afdb82
Add an action to query teams from a database (#19) 2023-09-24 21:12:15 -05:00
Mia
2810ce68c6 Fix bugs in OAuth UI 2023-09-24 19:02:08 -05:00
Async10
df7194b914
Fix code sample for getting a token (#18)
The code sample had multiple problems. The most important one was that
it did not run because the call to `checkIfUpdated` was incorrect and
the code didn't take into account that a DOMException is thrown when
trying to read `popup.location.href` before the redirect happened. Apart from
that I added url encoding of the query parameters and some simple sanity
checks on the received `token` and `assertion` values in order to make
the sample a bit more robust.
2023-09-11 09:14:31 -05:00
Mia
77ddb1cd17 OAuth: Ensure the getassertion action accepts a challstr properly 2023-08-21 14:02:24 -05:00
Mia
2b22a33bb3 Ensure CORS headers are always set on oauth endpoints 2023-08-21 13:54:34 -05:00
Mia
cad185c424 Fix typo 2023-08-18 17:44:11 -05:00
Mia
badb213db9 OAuth: Add a page to list authorized applicationons for a user 2023-08-18 17:37:43 -05:00
Mia
d17b138d36 OAuth: Inform users what account they're logged in as 2023-08-18 17:03:05 -05:00
Mia
308b16998b Add documentation for OAuth2 functionality 2023-08-18 16:41:47 -05:00
Mia
79ed5ac53d OAuth: Add refresh token endpoint 2023-08-16 17:11:22 -05:00
Mia
98468bfd15 Implement origin checking on OAuth clients 2023-08-15 17:19:41 -05:00
Mia
176a71b801
Support OAuth (#12)
* WIP

* rebase kinda borked, handle it

* linter stuff

* Dammit i swear I had linted this

* Don't require a challstr

* add schemas

* modify some stuff

* remove register action

* Remove the inner action too

* Prettify page

* Shift stuff down

* Fix jquery loading

* specify message

* Make client typing more consistent in token table

* Sanitize redirect URL, also make the page html a top-level constant

* Escape client information too

* Escape URI, fix checks
2023-08-14 23:10:01 -05:00
AnnikaCodes
63bedc2b3c
Ladder: Properly truncate rpnum (#17)
Ladder: Add missing truncation/bounding
2023-07-28 00:39:07 -07:00
gigalh128
da34bdbee4 Add missing truncation 2023-07-24 20:25:44 -04:00
AnnikaCodes
1186bcfb4a
Ladder: Set current gen to 9 for decay purposes (#14)
Set current gen to 9 for  Elo decay purposes
2023-07-09 11:40:06 -07:00
Mia
09dc32405f Session: Improve existing user check to fix crash in addUser 2023-05-17 17:12:28 -05:00
Mia
a5a18b5e23 Ensure pulls error correctly 2023-04-20 19:30:11 -05:00
Mia
1410504226 Actions: Ensure the right commands are executed in rebuildclient 2023-04-20 19:26:51 -05:00
Mia
eee2f5bbbb Support full rebuilds in the rebuildclient action 2023-04-13 22:16:52 -05:00
Mia
55af18fe87
Support rebuilding the client through an action (#15) 2023-04-13 20:03:19 -07:00
Mia
47d76fa95b Fix setting CORS for body sids 2023-04-03 09:45:37 -05:00
adrivrie
308ce8941d
Set current gen to 9 for ladder Elo decay purposes 2023-04-02 16:30:37 +02:00
Mia
8f4cc5f54a Remove trailing space from comment
I really hate that local linter doesn't catch that.
2023-03-28 22:07:18 -05:00
Mia
52840af23e Set CORS headers when sid is sent directly in the URL 2023-03-28 20:37:36 -05:00
Mia
f827c57d12 Further optimize string encoding 2023-03-27 17:24:18 -05:00
Mia
47c9692e8c Use async signing instead of sync 2023-03-27 17:05:40 -05:00
Mia
a232d6b19a Fix GXE rounding 2023-03-27 14:44:59 -05:00
Mia
38556e3962 Fix standing actions 2023-03-27 11:38:01 -05:00
Mia
970aec08b1 Add pg to package.json 2023-03-27 09:38:22 -05:00
Mia
7565fed36c Re-add support for instead of 2023-03-26 14:38:58 -05:00
Mia
87788aa9ad Fix crash when trying to register existing names 2023-03-26 14:22:14 -05:00
Guangcong Luo
353762f8b2
Properly fix request batching 2023-03-26 03:05:01 -07:00
Mia
0f049d1dba Fix request batching 2023-03-26 04:58:04 -05:00
Guangcong Luo
a36804d03b
Support non-mainservers uploading replays
(Also refactor prepreplay a little.)
2023-03-26 02:55:44 -07:00
Guangcong Luo
a24041dec7
Database: Strict API for select/get functions 2023-03-26 02:54:50 -07:00
Mia
a56ac973ae Fix uploading replays 2023-03-26 03:41:39 -05:00
Guangcong Luo
d12a69dbbf
Fixes for actions.ts
No refactors here, either, just some basic changes.

A bug with `ladderget` was fixed, and `errorip` is now only used in
situations where it'd be recognized.
2023-03-26 00:56:11 -07:00