Commit Graph

4582 Commits

Author SHA1 Message Date
kiritofeng
886fd42600 Fix ticket text wrapping 2024-09-02 16:10:44 +00:00
Nguyen Viet Dung
8cebcedfa2 Protect stateful admin endpoints against CSRF 2024-07-31 18:13:33 -04:00
int-y1
c3873d671c Fix i18n in js strings 2024-05-28 02:03:40 +00:00
Fher
df99fe3e23
New settings for disabling comments and social 2024-02-08 23:47:27 -05:00
Keenan Gugeler
435839e6b3 Add batch dependencies to site data interface 2024-01-21 07:04:31 +00:00
Anthony Chen
18e49e0956 Change "Refresh" to "Edit" 2FA on profile page 2024-01-06 04:46:02 +00:00
int-y1
7a3db32305 Fix grammar in email change flow 2023-12-26 06:06:02 +00:00
Tudor Brindus
8accffd156 Skip rejudge confirm dialog via the Command key on MacOS 2023-12-25 23:44:56 +00:00
Tudor Brindus
356b146f37 events: properly publish abort events
I think this should avoid cases of the "Abort" button sticking around.
2023-12-25 21:55:30 +00:00
Tudor Brindus
c126f07fe7 Revert "Completely remove Pagedown" and "Switch all Pagedown editors to Martor"
This reverts commits:
- 2035e606f3
- ce1196f74f

Since they do not interact well with dark mode.
2023-12-25 12:17:56 -05:00
Evan
2035e606f3 Completely remove Pagedown 2023-12-18 03:57:22 +00:00
Evan
ce1196f74f Switch all Pagedown editors to Martor 2023-12-18 03:57:22 +00:00
Roger Fu
912fe4d277 Fix typo in comment
Inb4 `git blame` tells me I made this typo...
2023-12-05 18:29:15 +00:00
Evan
292ba1a600 Implement user email change functionality; #1996 2023-10-30 11:48:36 +00:00
Guanzhong Chen
89fec36398
Revert "Change "Refresh" to "Edit" 2FA on profile page" (#2270)
This reverts commit b698088b50.
2023-07-12 00:25:42 -04:00
Anthony Chen
b698088b50 Change "Refresh" to "Edit" 2FA on profile page 2023-07-12 01:19:47 +00:00
Roger Fu
3f5212fdcb Fix newsletter message template URL 2023-07-09 20:51:53 +00:00
Tudor Brindus
ddc624b602 Relabel the version matrix page to just "Versions" 2023-06-11 20:57:44 -04:00
Andrew
146d9ea16f
Make "Contest Ends..." link to timeanddate.com of contest end time instead of start time
Fixes #2027.
2023-06-11 20:57:02 -04:00
Tudor Brindus
3e597c03b1 Simplify PDF rendering backend
- Drop Puppeteer and Selenium backends
- "Inline" pdfoid, and move `pdf_problems.py` to `utils` + rename it
  `pdfoid.py`
- Drop a lot of pointless error checking; if we fail we'll want to raise
  a 500 regardless

Co-authored-by: Quantum <quantum2048@gmail.com>
2023-03-09 13:33:44 +02:00
Evan
9d90687d99 Fix PDF rendering for relative STATIC_URL 2023-03-06 20:39:16 +00:00
Tudor Brindus
4fe609f740 Load PDF resources by URL
We were already not embedding all of them, and this is a prerequisite to making
use of pdfoid in the short term.
2023-03-04 20:27:58 +00:00
Tudor Brindus
ef6a3d4507 Drop PhantomJS PDF rendering callback
We no longer support the PhantomJS renderer.
2023-03-04 20:27:48 +00:00
Quantum
9c9a6d556a Remove widgets/relative-time.html fragment 2023-02-23 05:52:55 +00:00
Quantum
08bcb3c231 Remove user/link.html fragment 2023-02-23 05:52:55 +00:00
Quantum
eda67c54e2 Rework misc config to run exactly one query
There should never be that much stuff in MiscConfig, so let's just read
it all and deal with it in python instead of trying to run one query
for each item of interest and poorly cache it.

This PR also moved MiscConfigDict into a middleware so it can be used
outside of templates.
2023-02-23 04:10:57 +00:00
Quantum
3496d199c6 Prevent user search from showing up on organization user list
It's broken and we'll need to figure out how to fix it later.
2023-02-18 22:44:15 +00:00
Tudor Brindus
6c2fe5cce8 Make PDF titles time/memory limit headers consistent
The regular problem page lowercases "limit".
2023-02-18 22:30:42 +00:00
Jonathan Wu
9436dcafad Prevent data leak after login but before 2fa completed 2023-02-18 04:34:04 +00:00
Tudor Brindus
a2870eac5e
Reorder editor theme to come after site theme
It refers to the site theme, which wasn't introduced early enough before.
2023-02-07 23:23:10 -05:00
Tudor Brindus
66350de58c Clean up part of the edit profile page 2023-02-07 22:37:01 -05:00
Tudor Brindus
d338459896
Add a class for the problem types column header 2023-02-06 00:51:37 -05:00
Evan
56e2496492 Clean up problem submit select2 CSS 2023-02-05 23:26:00 -05:00
Evan
9066af6a5c Create and use custom 'dmoj' select2 theme 2023-02-05 23:24:02 -05:00
Evan
566cbf2c66 Remove dead hot problem CSS 2023-02-05 21:47:02 -05:00
Evan
4ab6f89991 Standardize gravatar images 2023-02-05 15:35:38 -05:00
int-y1
6655dfd18d Use a better default for timezone map 2023-02-05 14:42:08 -05:00
Evan
2436abb408 Move contest ranking CSS to SCSS file 2023-02-05 14:04:19 -05:00
Evan
175ccf9edc Add ability to specify table ids for user tables
This is necessary to be able to move contest ranking CSS to
SCSS files without affecting other user tables.
2023-02-05 13:56:39 -05:00
Evan
2a7d74d446 Fix grading spinner colour on dark mode 2023-02-05 13:02:53 -05:00
Evan
35140e0ba4 Clean up edit profile label CSS 2023-02-04 15:40:29 -05:00
Evan
ccb2964e8a Add site theme profile option to toggle dark/light themes 2023-02-03 21:25:26 -05:00
int-y1
93faf4f41f Introduce navbar arrow 2023-01-23 00:22:20 -05:00
int-y1
36c805999e Minor i18n fixes 2023-01-17 02:11:44 -05:00
int-y1
f61e2582e4 Add more i18n 2023-01-17 02:05:05 -05:00
Jason Yuen
cf77afe48e
Fix hot problems CSS 2023-01-15 02:09:22 -05:00
int-y1
fcabde7924 Simplify design of user table's rating column 2023-01-15 01:12:03 -05:00
Balint Rozsa
44fc0693fc Fix target rating color on contest page 2023-01-12 21:23:39 -05:00
int-y1
617a321d03 Add dark Pygments code theme 2023-01-08 03:29:27 -05:00
int-y1
f47968f7a4 Clean up blog css 2023-01-08 00:30:58 -05:00