Commit Graph

  • fd609ab60b Properly authenticate logged-in account in OAuth master Guangcong Luo 2026-08-16 12:42:12 -07:00
  • 6b8ddf08da Support the Apache proxy for origin validation Guangcong Luo 2026-07-30 04:41:59 -07:00
  • ffac405e68 Move everything into api subdirectory prep-merge Guangcong Luo 2026-07-28 02:29:05 -07:00
  • ffec3ddce2 Move OAuth into its own file Guangcong Luo 2026-07-27 14:47:57 -07:00
  • 3134e645d6 Fix OAuth Guangcong Luo 2026-07-27 00:32:52 -07:00
  • 3720c0b4eb Fix /api/replays/edit endpoint Guangcong Luo 2026-07-27 04:11:34 +00:00
  • 8002ff4319 Update /api/replays/check-login Guangcong Luo 2026-07-23 13:46:00 -07:00
  • e32b04b84e Fix build error for latest ESLint Guangcong Luo 2026-07-17 00:44:46 -07:00
  • 8ae2ade24d Fix replay parameters Guangcong Luo 2026-07-17 07:34:38 +00:00
  • 057a693a34 Update to latest versions of all dependencies Guangcong Luo 2026-07-16 23:15:43 -07:00
  • 1f77873ddd Standardize allowing CORS in replay getters Guangcong Luo 2026-07-16 20:49:26 -07:00
  • 5e654cd6d4 Don't check users db unless necessary Guangcong Luo 2026-07-16 20:04:36 -07:00
  • a59cfed27e Standardize database config Guangcong Luo 2026-07-16 19:27:57 -07:00
  • 4d0c145f69 Switch to Node built-in TypeScript support Guangcong Luo 2026-07-16 16:58:44 -07:00
  • 8521ce94db Update dependencies for Node 24 Guangcong Luo 2026-07-16 14:57:18 -07:00
  • 4d45815c6c Consistently import from node: Guangcong Luo 2026-07-16 13:08:10 -07:00
  • 9a2cbfad04 Port old tests over Guangcong Luo 2026-07-16 12:59:36 -07:00
  • 247d12251d Add a SQLite driver for database, for tests Guangcong Luo 2026-07-16 11:35:37 -07:00
  • aeb21f2373 Correctly implement graceful shutdown Guangcong Luo 2026-07-16 09:54:59 -07:00
  • 16a7f29033 Replace unit test system Guangcong Luo 2026-07-16 00:34:22 -07:00
  • 86c4d7e5d1 Support replay getting Guangcong Luo 2026-07-15 18:27:07 -07:00
  • ae892208bb Fix challenge validation Guangcong Luo 2026-06-08 01:46:31 +00:00
  • dd4c773553 Add replays/check-login endpoint Mia 2025-08-29 17:23:44 -05:00
  • ca6d979e5a Update npm scripts Mia 2025-08-21 20:56:42 -05:00
  • b08144d831 Fix linter Mia 2025-08-21 20:54:02 -05:00
  • 0ade3441e3 Sync box changes to remote Mia 2025-08-22 01:50:50 +00:00
  • 7f45fde4f7 Remove inputlogs from /api/replays/batch Guangcong Luo 2025-08-22 00:39:22 +00:00
  • 67632acb24 Merge branch 'master' into pass-resets pass-resets Mia 2025-08-05 16:13:59 -05:00
  • 2a250d6f53 Remove smogon ip verification in favour of data signing Mia 2025-07-26 14:10:48 -05:00
  • ffef771596 Fix team deletion Mia 2025-07-23 23:37:30 -05:00
  • 2fbe8c6ca3 Add delete team action Mia 2025-07-23 23:12:08 -05:00
  • bc0886b12f Support copying teams into one's builder Mia 2025-07-23 22:47:35 -05:00
  • ddcacf0f94 Always check server token for internal APIs (#33) Alex "Mathy 2025-07-02 14:05:44 -05:00
  • a50d5dd488 Supporting binding server to specific hosts (#32) Saana 2025-06-03 10:30:49 +02:00
  • 15666f8711 Define constants for Glicko ratings Guangcong Luo 2025-05-03 20:47:31 -07:00
  • 001ef86597 Document ladder table Guangcong Luo 2025-05-03 20:27:39 -07:00
  • 044140691b Update Github Actions config Guangcong Luo 2025-05-03 20:06:17 -07:00
  • ad696f7295 Dynamically calculate Glicko constant based on rating period (#31) pyuk-bot 2025-05-03 22:28:18 -05:00
  • 8967dc641f Fix build error Guangcong Luo 2025-05-03 19:57:22 -07:00
  • b9efc2d1b0 Fix update query on PG-esque DBs Mia 2025-04-16 14:15:59 -05:00
  • 079523cc32 Add 'editteam' action Mia 2025-04-16 13:44:12 -05:00
  • 37b5fbcd1d Database: Fix 'update' queries for PG-derived DBs Mia 2025-04-16 13:42:37 -05:00
  • 1cec1eaa36 Fix linter & sync code from box Mia 2025-04-12 23:21:54 -05:00
  • 127effc14a Add team search action Mia 2025-04-09 17:53:18 -05:00
  • a1f93fb5c8 Make updates for teams.pokemonshowdown.com Mia 2025-04-09 22:42:36 +00:00
  • 3c626eb331 Allow team owners to bypass password requirements on teams Mia 2025-04-09 00:30:18 -05:00
  • 96482f3afb Actions: Support requesting team metadata from 'getteams' Mia 2025-04-08 21:47:26 -05:00
  • 9b3f4ce18e Actions: Allow accessing public teams via the API Mia 2025-04-08 21:37:00 -05:00
  • d6c4aff430 Actions: Only call response json for suspect/add Mia 2025-04-07 16:57:17 -05:00
  • 7384809258 Correct typo Mia 2025-04-05 23:27:44 -05:00
  • 7c6afe53ea Do not require URL parameters for suspect/add and suspect/edit actions Mia 2025-04-05 23:26:53 -05:00
  • 9d59f10859 Add replay batch endpoint (#28) Michael Gallaspy 2025-04-03 08:04:02 -07:00
  • 574a2e79fe Fix RD "decay" in Glicko-1 rating calculations (#30) pyuk-bot 2025-03-12 02:58:40 -05:00
  • 8c32fabe67 ESLint: Fix config Guangcong Luo 2025-02-25 21:31:52 -08:00
  • a56f1f160f Upgrade to ESLint 9 Guangcong Luo 2025-02-25 21:05:33 -08:00
  • de9746faba Limited support for fulltext replay search Guangcong Luo 2025-02-20 01:57:20 +00:00
  • 843728fe08 Properly intercept ErrorMessages Mia 2025-01-24 16:07:18 -06:00
  • bdc78dcf91 Ensure we recognize all private relay IPs properly Mia 2025-01-24 00:14:18 -06:00
  • 636a23a740 Add suspect-edit and suspect-end calls Mia 2024-11-01 18:57:59 -05:00
  • ffc676bfdc Include suspect eligibility in ladderget responses Mia 2024-11-01 13:25:29 -05:00
  • 61db6f5308 Simplify reqs checking code to ensure fuewer future issues Mia 2024-10-28 20:36:24 -05:00
  • 38a0881240 Fix typo Mia 2024-10-28 20:30:43 -05:00
  • 89b1d76c7e Actions: Improve logging for smogon request failures Mia 2024-10-28 20:25:03 -05:00
  • bf82e317a5 Re-send suspectStartDate Mia 2024-10-27 17:27:29 -05:00
  • 1898067cd0 Allow editing suspect tests without overwriting start date Mia 2024-10-27 17:25:25 -05:00
  • 7d393dfff6 Fix time desync Mia 2024-10-27 17:21:15 -05:00
  • 41dfa29377 Fix minor typo in suspect verification Mia 2024-10-27 17:03:51 -05:00
  • f6661b465d Ensure reqs columns default to null Mia 2024-10-27 16:20:11 -05:00
  • 72661ecf4a Add an action to manually check if a user is verified for a suspect Mia 2024-10-27 16:04:42 -05:00
  • 735b408ed0 Track suspects in a database table Mia 2024-10-27 15:51:28 -05:00
  • 08e0cabf2b Don't send reqs as a JSON string Mia 2024-10-24 08:54:12 -05:00
  • 0f5a8f4200 Properly read suspect url from request Mia 2024-10-24 08:50:58 -05:00
  • 8241340f0e Send suspect data to smogon on test creation Mia 2024-10-24 08:10:46 -05:00
  • f5ce9fb1e3 Fix build Mia 2024-10-23 00:58:58 -05:00
  • e597942587 Push some code from the box Mia 2024-10-22 18:27:19 -05:00
  • 1094b0a227 Ensure redundancy in suspect verification request Mia 2024-10-22 18:26:16 -05:00
  • eef35153d4 Request www.smogon, not smogon.com Mia 2024-10-22 13:59:52 -05:00
  • ccea2dbe94 Suspects: Ensure no games were played before suspect start Mia 2024-10-22 12:43:54 -05:00
  • 1486ae18a9 Add last_played and first_played columns to ladder table Mia 2024-10-22 12:31:48 -05:00
  • fb000e6887 Send user req values to smogon along with test req values Mia 2024-10-22 11:47:06 -05:00
  • 1a73f75261 Ensure coil/suspect caches are synced across processes Mia 2024-10-22 11:41:01 -05:00
  • 792e493999 Modify params for suspect formatids Mia 2024-10-22 11:35:14 -05:00
  • 853413ecaf Bump @types/node for v20 Mia 2024-10-22 11:14:54 -05:00
  • 5088cfe808 Add support for suspect test verification Mia 2024-10-22 11:14:01 -05:00
  • 5f07341fe9 Fix email mismatch error message Guangcong Luo 2024-10-18 02:12:12 +00:00
  • fe53f73b62 Update Google log-in API Guangcong Luo 2024-10-18 02:08:57 +00:00
  • 7e27d71a73 Don't strip periods in COIL values Mia 2024-10-08 22:03:20 -05:00
  • 3dae19bcaf Support floats in COIL values Mia 2024-10-08 20:33:03 -05:00
  • 249f6f9c34 Remember to merge counts in IP tracking Mia 2024-10-01 13:58:40 -05:00
  • 76394e23b6 Serve count of IPs as well Mia 2024-09-30 13:33:57 -05:00
  • c8aed44d69 Provide min/max timestamp ranges on smogon/assoc-ips Mia 2024-09-30 13:19:52 -05:00
  • 687ad4c4a3 Fix typo Mia 2024-09-30 13:00:33 -05:00
  • 1b9423764e Skip dispatch prefix for smogon requests Mia 2024-09-30 12:57:19 -05:00
  • ea5e938e49 Add an action to provide account-associated IPs to Smogon Mia 2024-09-29 18:38:44 -05:00
  • ee1dea989b Use RSA-SHA1 signing for validation instead Mia 2024-09-28 18:18:26 -05:00
  • b4df7e3605 Add extra authentication to encoded usernames Mia 2024-09-28 14:47:45 -05:00
  • 731aa3e31a Actions: decode URI components on encrypted usernames passed by Smogon Mia 2024-09-28 14:33:36 -05:00
  • 7ce47cc9f3 Share Smogon key between processes via temporary file Mia 2024-09-28 14:22:03 -05:00
  • d31ddcc30c Add actions to support linking PS and Smogon accounts Mia 2024-09-28 13:58:29 -05:00
  • 75b2885851 CI: Also run with node 20 AnnikaCodes 2024-09-05 16:43:39 -07:00