Commit Graph

27 Commits

Author SHA1 Message Date
Slayer95
4b8c6a4d6d
Refactor startup (#11346)
Some checks failed
Node.js CI / build (18.x) (push) Has been cancelled
This minimizes side effects of import/require across the codebase,
and lets the caller be responsible of initializing child processeses,
as well as other async logic, such as restoring saved battles.
2025-10-17 19:37:47 -07:00
Slayer95
018ea4abef
Support running PS in a single process again (#11331)
Some checks are pending
Node.js CI / build (18.x) (push) Waiting to run
2025-08-07 00:29:18 -07:00
Guangcong Luo
78439b4a02
Update to ESLint 9 (#10926)
ESLint has a whole new config format, so I figure it's a good time to
make the config system saner.

- First, we no longer have separate eslint-no-types configs. Lint
  performance shouldn't be enough of a problem to justify the
  relevant maintenance complexity.

- Second, our base config should work out-of-the-box now. `npx eslint`
  will work as expected, without any CLI flags. You should still use
  `npm run lint` which adds the `--cached` flag for performance.

- Third, whatever updates I did fixed style linting, which apparently
  has been bugged for quite some time, considering all the obvious
  mixed-tabs-and-spaces issues I found in the upgrade.

Also here are some changes to our style rules. In particular:

- Curly brackets (for objects etc) now have spaces inside them. Sorry
  for the huge change. ESLint doesn't support our old style, and most
  projects use Prettier style, so we might as well match them in this way.
  See https://github.com/eslint-stylistic/eslint-stylistic/issues/415

- String + number concatenation is no longer allowed. We now
  consistently use template strings for this.
2025-02-25 20:03:46 -08:00
Mia
3e0996329a Add permablacklist to /pl 2023-10-09 10:06:14 -05:00
ArsenalArceus
52f9425c64
Modlog: Add mafia punishments to /punishlog (#9446)
* Update index.ts

Added MAFIAUNGAMEBAN and MAFIAGAMEBAN

* Update server/modlog/index.ts

---------

Co-authored-by: Mia <49593536+mia-pi-git@users.noreply.github.com>
2023-03-06 13:21:29 -06:00
Mia
b11177d530
Migrate to esbuild for compilation (#9203) 2022-12-22 15:19:29 -06:00
Mia
5934da5a17 Modlog: Expose entry IDs in search results
Necessary for some code I'm writing. Annika said this was fine.
2022-11-14 18:47:53 -06:00
Mia
fa8f7a3e50
SQL: Propagate errors to the parent process (#8613) 2022-01-05 17:56:52 -08:00
FeluciaPS
1449cd0a76
Modlog: Extend punishment types with missing entries (#8524) 2021-12-02 09:29:23 -08:00
Mia
76d0238a38 Modlog: Deprecate ModlogSearch#anyField 2021-11-06 22:52:23 -05:00
Annika
055a01ab89 Modlog: Minor fixes from smogtours conversion 2021-09-06 17:54:30 -04:00
Mia
26a8094c7f Modlog: Fix user searches 2021-09-01 12:52:57 -05:00
Mia
679e8bfeb0 Modlog: Make multi-arguments use AND instea of OR 2021-08-31 10:30:28 -05:00
Mia
8cf1035ee2
SQL: Automatically prepare statements unless told otherwise (#8439) 2021-08-18 12:51:39 -07:00
Mia
0a2ed42d13 SQL: Support turning SQL.Statements to JSON 2021-08-15 15:17:45 -05:00
Annika
bb1ad48290 Modlog: Fix crash when reporting slow searches 2021-08-15 11:18:20 -07:00
Mia
77861ceae6
SQL: Use a QueryProcessManager subclass (#8422) 2021-08-14 17:45:51 -07:00
Annika
33ad1a0a50 Move Modlog.formatArray to Utils 2021-08-12 16:38:14 -07:00
Annika
4a9983fade Modlog: Fix exact note searches 2021-08-09 14:48:42 -07:00
Annika
d3ca242ff7 Modlog: Fix bug with note searches 2021-08-09 14:42:01 -07:00
Annika
599d7a677a Modlog: Convert user searches to lowercase
I don't know why we do this (since modlog-viewer handles case) but it's something that was unit-tested for in the past so I might as well implement it.
2021-08-09 14:42:01 -07:00
Annika
633e061067 Modlog: Remove text logging code 2021-08-09 14:06:14 -07:00
Annika
9762a8fe83 Modlog: Ensure the global room uses global entries 2021-08-04 18:54:49 -07:00
Annika
11caaf392f Modlog: Improve support for multiple searches 2021-07-25 15:33:42 -07:00
Annika
577ef86003 Modlog: Fix punishments-only searches 2021-07-24 21:23:41 -07:00
Annika
3a57576b30 Modlog: Improve logging of slow SQL queries 2021-07-23 14:19:09 -07:00
Annika
bcbe100c41
Modlog: Use SQLite for searches (#8004) 2021-07-23 13:47:49 -07:00