Commit Graph

18 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
skymin3
80c1460db8
Improve error messages shown to non-autoconfirmed (#11057)
https://www.smogon.com/forums/threads/improve-the-error-messages-shown-to-non-autoconfirmed-users-trying-to-access-certain-features.3737016/#post-10532853

A few of the non-autoconfirm error messages don't explain what autoconfirm means, which a new user likely doesn't know what autoconfirm is.
2025-05-13 09:12:52 -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
urkerab
9f29c90db2
Handle 25 hour days correctly (#10635)
Some checks are pending
Node.js CI / build (16.x) (push) Waiting to run
2024-11-02 22:45:34 -05:00
adrivrie
247c2aa70a
Random typo fixes (#10556) 2024-09-17 08:09:48 -05:00
Sergio Garcia
e7961d4eea
Improve types for offline pms module (#10438) 2024-08-06 00:45:42 -05:00
Mia
cc33fe0acb Offline PMs: Fix formatting in received message timestamps 2024-05-11 17:13:51 -05:00
Mia
dd4b004e54 Offline messages: Ensure proper clearing of old messages on startup 2024-03-18 18:41:09 -05:00
Mia
1b94f4affb Offline PMs: Deprecate function calls in favor of prepared statements
These functions kept crashing (weren't found) and didn't need to be functions anyway.
2024-03-16 20:40:58 -05:00
Mia
ab0fffdb59 Offline PMs: Don't refresh the seen date on PMs on every login
Sigh. We were setting the seen date to last login every time they logged in, so nothing ever expired.
2024-03-16 20:30:40 -05:00
Mia
885f972145 Private-messages: Show local time in offline pm display 2024-01-08 03:55:02 -06:00
Mia
a525d519f7 Core: Add /unblockofflinepms 2023-11-20 22:25:35 -06:00
Mia
a337730d79 Remove duplicated spawn code 2023-11-04 23:24:53 -05:00
Mia
d6c78db0dd SQL: Account for dist files in loading extensions 2023-11-04 16:41:47 -05:00
Mia
d5d30a0c6b Prevent friends processes from nesting 2023-11-04 16:32:26 -05:00
Mia
560a2c8b61 PMs: Expose getSettings API 2023-11-04 14:57:43 -05:00
Mia
0211066723
Add offline messaging (#8440) 2023-11-04 14:45:18 -05:00