Commit Graph

119 Commits

Author SHA1 Message Date
Guangcong Luo
0dcff6c2c3 New Replays: Support pagination in search results 2023-10-29 04:51:14 +00:00
Guangcong Luo
6d26acef8d New Replays: Support linking to viewpoints
New Replays now supports adding `?p2` to the end of a replay
URL, to see the replay from the opposing viewpoint.

Search results will now automatically be from the viewpoint of
the player you're searching for.

Viewpoint is now a selector rather than a "Switch sides" button,
which should hopefully be clearer about what it's doing.
2023-10-29 04:51:14 +00:00
Guangcong Luo
3bb2271bbc New Replays: Two column support
Old Replays's two column support was the Panel system most notably
shown off by PSDex. It was definitely very nice but a bit hard to
port to Preact.

This new one, written from scratch, has a few niceities:

- topbar can scroll offscreen
- only one scrollable area (scroll wheel works everywhere, and
  the PageUp/PageDown/Spacebar keys are unambiguous)
- uses very little JavaScript when resizing; most of the layout
  work is done by CSS

With the drawbacks:

- no animation
- only two columns supported (not relevant to Replays which has
  never used over two columns)
- uses a lot of modern CSS (overflow: sticky, and flexbox) but
  should degrade gracefully
2023-10-29 04:51:14 +00:00
Guangcong Luo
689531d3b4 New Replays: Support private replays & more
The headline feature here is that we now support being logged in and
searching for private replays. We also have a new button to instantly
find your own replays.

Also here is the basics of HTML5 history support. It's the first step
to having the two-column layout up and running!
2023-10-29 04:51:14 +00:00
Guangcong Luo
235056ba75 Update New Replays
The main difference is that the main search screen should look
much nicer now.

https://pokemonshowdown.com/replays/

Putting search/featured/recent in separate sections makes the new
design look much nicer. And dark mode is now fully supported.
2023-10-26 21:38:59 +00:00
Guangcong Luo
fd28aca33f WIP New Replays
New Replays isn't done yet but I've done a lot of work on it and
probably it deserves a commit.

Why rewrite Replays:

- I redesigned pokemonshowdown.com to look more modern and support
  dark mode, and rejiggering Old Replays would be a lot of work
  anyway.

- It'd be nice to actually deploy some of PS's whole Preact
  infrastructure somewhere, instead of it just being in development
  hell.

- Nice to get a second look at the relevant code, leading to fixes
  like fc00e68231 and f28b1e9bf3.

- Replays is due for a migration from JS/PHP to TS anyway.

Anyway, feel free to try out New Replays, it's live in:

https://pokemonshowdown.com/replays/

Old Replays will stick around until we hit feature parity, but
that shouldn't be too long (I know, famous last words).
2023-10-26 14:56:05 +00:00
Guangcong Luo
908fe3a320 Allow direct-linking lobby
In the distant past, Lobby was open by default, so people linking
to Lobby usually meant to link to PS itself, so links to Lobby
would just open PS.

This is no longer necessary, now that we no longer open Lobby by
default.

This commit also cleans up a bunch of other .htaccess entries,
for style/readability.
2023-10-25 16:51:50 +00:00
Guangcong Luo
1b04902c83 News: Support BBCode for italics 2023-10-25 16:51:46 +00:00
Guangcong Luo
4760516ce0 Website: Remove commented-out server URLs from server list
It's cluttering this code a lot for no reason.
2023-10-25 16:51:32 +00:00
Guangcong Luo
ad4a3ab2ff Update logo
Unfortunately, the my computer crashed, and took with it the PSD
for this updated logo. But fortunately, I managed to upload all
the important versions (like the orange version for "you have a
notification").
2023-10-25 16:51:06 +00:00
Mia
dd4108c932 Update memorials 2023-10-08 12:43:27 -05:00
Mia
239ec418e8 Update credits 2023-09-20 10:34:48 -05:00
Kennedy
853f68e887
Add a link to the staff list (#2073)
* Add a link to the staff list

[very serious comment]

The text in the first paragraph says "A full staff list can be found below." but there was no staff list below lmao.

* Update website/pages/staff.md

meow

Co-authored-by: Kris Johnson <11083252+KrisXV@users.noreply.github.com>

---------

Co-authored-by: Kris Johnson <11083252+KrisXV@users.noreply.github.com>
2023-07-18 15:54:39 -07:00
Mia
1286e9f15d
Sync ps-web with master (#2122) 2023-06-02 16:28:04 -04:00
Guangcong Luo
28c87f2e4a
Update Privacy Policy
(apparently exact phrasing is important)
2023-05-02 06:35:36 -07:00
Guangcong Luo
e85f91e74a
Update Privacy Policy
(Pointed out by YouTube API compliance)
2023-05-02 06:02:44 -07:00
Mia
720e41ccec
Bring us into compliance with YouTube API terms (#2111) 2023-04-10 19:39:05 -07:00
Guangcong Luo
5a6a2cbfdb Website: Use an upscaled background
I heard some complaints about Horizon looking blurry on large screens, so
here I am spending nearly 600 KB of the home page's 1 MB bandwidth use on
a nice-looking background.

To be fair, it is in fact a nice-looking background and the most
eyecatching thing there, so it's probably worth it.
2023-03-19 02:50:32 -04:00
Guangcong Luo
accd7e9677 Fix interstice appearance 2023-03-19 02:48:10 -04:00
Guangcong Luo
6f1b435fdb Center new website design on small screens
This actually makes a surprising amount of difference for now nice things
look!

This takes advantage of inline-block, a feature not supported by IE6. I'm
always weirdly hesitant to use "modern" CSS, but I suppose worrying about
IE6 support is a bit insane even for me; even Replays required IE7+ when
I first wrote it.
2023-03-19 02:44:37 -04:00
Marty-D
4e52d45423
Website: Add current OU to "official" 2023-03-15 15:56:34 -04:00
Kris Johnson
fadd26b99a
Website: Update ladder display names (#2103) 2023-03-14 19:38:58 -04:00
Guangcong Luo
48840f52cf Website: Fix navbar on small screens 2023-03-14 02:12:45 -04:00
Guangcong Luo
46dea1f3cb Website: Make nav buttons pop a bit more 2023-03-13 23:05:20 -04:00
Guangcong Luo
ca4477eb93 Migrate other website pages to the redesign
The redesign was always designed to accommodate all PS pages; I just
dragged my feet in transitioning the other pages over.

Sadly, the other main tabs (dex, replays, ladder) can't be
transitioned over because they use our panel layout.
2023-03-13 22:49:34 -04:00
Guangcong Luo
0cdd61b85a Redesign home page
I actually did this redesign way back in April 2022, but I never got
around to committing it. I'm doing that now.
2023-03-13 07:36:53 -04:00
Kennedy
545a434069
Update link for Generation 9 Random Battles (#2099) 2023-03-01 14:48:40 -05:00
Leonard Craft III
6142a35b39
Add Karthik to credits (#2076) 2023-01-01 22:09:00 -08:00
Annika
2dbf16a859 Update credits 2023-01-02 00:24:40 -05:00
Distrib
8367fe08fc
FAQ: Update Groupchat (#2032)
Pr for https://www.smogon.com/forums/threads/faq-edit.3710902/
2022-12-04 14:06:32 -05:00
Annika
4e5002411c
Website: Remove friends list from Japanese version 2022-10-12 21:33:11 -07:00
Annika
91f40e3b1b
Website: Remove text about friends list plans 2022-10-12 21:32:26 -07:00
1Mitsuki
d3357c4f59
FAQ: Fix typo and header in Portuguese translation (#1997) 2022-09-28 20:48:40 -04:00
Marty
fbe9c2d749 Update credits 2022-09-21 17:04:43 -04:00
Annika L
a7fc44ca05 Rules: Add translations for YouTube section 2022-04-09 20:45:52 -07:00
Alexander B
02ad3bb1b4
Update credits (#1951) 2022-04-07 15:04:34 -04:00
1Mitsuki
0f57bf9ef0
Rules: Fix oversight in Portuguese translation (#1939) 2022-02-16 16:50:01 -05:00
Dirain1700
0191028990
Pages: Update Proxy-ja help (#1919) 2022-01-29 15:57:15 -08:00
Nol
c785df1b52
Rules: Correct French translation (#1918) 2022-01-08 13:06:00 -08:00
Marty-D
dbeed12ee6
Pages: Update proxy help 2022-01-03 15:14:38 -05:00
Marty-D
ecec86dd61 FAQ: Update for friends list
Closes #1856
2021-12-14 10:34:48 -05:00
Dirain1700
82a6cfe558
Fix link to faq-ja (#1902) 2021-12-02 11:41:31 -08:00
Guangcong Luo
9327a27d36 Fix bug in user admin panel
Probably one day we should investigate why group numbers are strings
but also probably our solution will be to switch to TypeScript.
2021-11-25 20:52:52 -05:00
Guangcong Luo
efa553d96b Build: Move ads/analytics into config
This keeps ads/analytics out of the repository, since they
shouldn't be used in forks and dev machines anyway.

Hiding ads in `website/news/include.php` was a thing I did in
the early days because one of the devs was ashamed of ads, and
`website/` wasn't in a public repository at the time. At this
point, though, I'm done being ashamed of it. You can obviously
see ads on the website and everyone knows they fund the server.
2021-11-25 20:52:51 -05:00
Annika
60acf3d92e
Italian translation: Remove insulting remark
Requested by translations leader Iyarito
2021-11-25 11:43:20 -08:00
Dirain1700
0f9cf6e094
Fix translation errors (#1892) 2021-11-21 13:54:40 -08:00
Guangcong Luo
7945207613 Allow chaos/Zarel to demote admins
QoL change. For security reasons, promoting to admin still requires
direct database access.

Fixes #1888
2021-11-12 15:25:36 -05:00
Guangcong Luo
6f6f2c1da9 Memorialize Aulu account 2021-11-12 15:24:47 -05:00
Dirain1700
004b70e57f
Website: Add pages translated into Japanese (#1880)
Translated by ililililililili and Dirain1200.
2021-10-30 22:21:07 -07:00
Guangcong Luo
5dc7b44240 Fix link to HTTPS site
The old system of defaulting to HTTP because of bugs in HTTPS hasn't
been necessary in a very long time; we even switched to always-HTTPS
a few years ago.

Fixes https://github.com/smogon/pokemon-showdown/issues/8466
2021-10-10 00:44:32 -04:00