Commit Graph

12 Commits

Author SHA1 Message Date
Karthik99999
7477e4f347 Battle Text Parser: Add general support for past gen overrides 2025-09-28 00:48:37 -07:00
Karthik99999
482cd617c9 Fix Intimidate args order
Some checks failed
Node.js CI / build (22.x) (push) Has been cancelled
2025-08-18 15:14:34 -04:00
Karthik99999
90d92db507 Properly support oldAbility arg for -ability
Some checks failed
Node.js CI / build (22.x) (push) Has been cancelled
2025-08-13 14:12:58 -04:00
Guangcong Luo
b0d565a30b Preact minor update batch 10
Some checks are pending
Node.js CI / build (22.x) (push) Waiting to run
Minor
- Fix crashes/bugs in backported elim tournament redesign
- Support opting into Preact client via cookie
- Fix popup positioning when parent element is unmounted (i.e. when you
  switch layouts in the Options menu)

Trivial
- Focus Main Menu and not Rooms when loading home page in single panel
  mode
- Correctly set user.registered
  ( Fixes https://github.com/smogon/pokemon-showdown/pull/11031 )
- Fix some text in the Options menu
2025-04-17 10:19:22 +00:00
Karthik Bandagonda
f85e5657d6
Implement Flame/Toxic orb texts (#2343)
Some checks are pending
Node.js CI / build (22.x) (push) Waiting to run
2025-04-03 10:33:47 -07:00
Guangcong Luo
5bfa08b1bd Battles: Support overriding line sections
Some checks failed
Node.js CI / build (22.x) (push) Has been cancelled
Really this should probably be handled with `|` rather than with
a complicated system for guessing where to break messages... but
it's easier not to change these old systems.
2025-03-16 08:36:19 +00:00
Guangcong Luo
a10821ab8b
Update to ESLint 9 (#2326)
Some checks are pending
Node.js CI / build (22.x) (push) Waiting to run
This finally removes the tslint dependency and switches to eslint.

There are a lot of other changes here, too, to bring the codebase up to
server standards. TSLint never had much in the way of indentation
enforcement.

Not very happy about eslint splitting itself up over 6 dependencies,
or its documentation over three websites, nor how poorly documented the
new flat config is, but I mean, eslint's gonna eslint. Customizing
would be even harder if we tried to use Biome or something. They mostly
seem to go full Prettier.

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 (except in ES3
  code). We otherwise now consistently use template strings for this.
2025-02-25 20:05:32 -08:00
Guangcong Luo
3d4de88706 Correct Snowscape weather name
Some checks failed
Node.js CI / build (14.x) (push) Has been cancelled
2025-02-19 16:36:54 -08:00
Guangcong Luo
3f23c5a738 Refactor TypeScript files to modules
Due to the specific way we implement everything, none of these files
are actually modules. But thanks to `babel-plugin-remove-import-export`,
there's no reason why the code can't be written as modules.

I wouldn't say I like modules, but it's what's popular and it's what
people are used to and it's what tooling is built around.
2025-02-19 14:46:12 -08:00
Guangcong Luo
b264cc4c7f Fix bugged text when nicknames have $ in them 2024-08-29 00:49:17 +00:00
Karthik
2432c6a0ab
Support Tera Shift message (#2197) 2023-12-15 22:45:36 -07:00
Guangcong Luo
5d41f3ec93
Reorganize directories (#2187)
Files meant to be served have been moved into
`play.pokemonshowdown.com/` and `pokemonshowdown.com/`.

We now have three directories for the three subdomains handled by this
repo:

- `pokemonshowdown.com/`
- `play.pokemonshowdown.com/`
- `replay.pokemonshowdown.com/`

Naming them after the subdomains will make it much easier to tell where
the files for each go.

The diff is probably useless; it'll be easier if you just look at the
new tree:
https://github.com/smogon/pokemon-showdown-client/tree/reorganize
2023-11-16 03:39:29 -08:00