Commit Graph

9879 Commits

Author SHA1 Message Date
dmoj-build
f9086f0023 i18n: update translations from Crowdin 2024-11-03 05:44:29 +00:00
Quantum
e381e1f9b8 Return 404 for non-existent users 2024-09-16 02:37:45 +00:00
kiritofeng
886fd42600 Fix ticket text wrapping 2024-09-02 16:10:44 +00:00
Quantum
7cb7486e55 Use lowest tier judge only and hold the rest in reserve 2024-08-22 02:52:26 +00:00
Quantum
795d19131d Add tier field to judge model 2024-08-22 02:52:26 +00:00
Nguyen Viet Dung
8cebcedfa2 Protect stateful admin endpoints against CSRF 2024-07-31 18:13:33 -04:00
Tudor Brindus
2b36e045c7
readme: update for Java 22 support 2024-06-02 21:16:33 -04:00
Tudor Brindus
d6a3ff389d api: add submission filtering by contest + contest info 2024-06-02 20:59:10 +00:00
int-y1
594647015c Update logo in readme 2024-05-28 03:19:46 +00:00
int-y1
c3873d671c Fix i18n in js strings 2024-05-28 02:03:40 +00:00
int-y1
49ce27a263 Update github action versions 2024-05-28 01:53:34 +00:00
dmoj-build
f3ed41c96a i18n: update translations from Crowdin 2024-05-27 21:40:34 +00:00
Tudor Brindus
f6ab4ccba3
ci/makemessages: fix typo in project_id 2024-05-27 17:30:26 -04:00
Tudor Brindus
7ded3130c9
ci/makemessages: update to v2 token + project ID 2024-05-27 17:28:35 -04:00
Tudor Brindus
3f0becc050
ci/makemessages: actually install crowdin3.deb 2024-05-27 17:25:18 -04:00
Tudor Brindus
9df23ff1e0 ci/makemessages: install crowdin3.deb
`crowdin.deb` uses the deprecated v1 API.
2024-05-27 17:24:28 -04:00
Tudor Brindus
cb9b88aa82 readme: add Algol 68 to the list of supported languages 2024-05-27 14:34:44 -04:00
Tudor Brindus
c460c965c5
readme: fix old image links by pointing them to static.dmoj.ca 2024-05-27 12:13:20 -04:00
int-y1
d2e9fac6a9 Fix comment revision count 2024-05-26 17:48:37 +00:00
Nguyen Viet Dung
724af7ef77 Fix vulnerable endpoints due to the lack of permission check 2024-04-22 12:09:43 -04:00
int-y1
fd7fb05f41 Fix creating pr's in actions 2024-04-04 08:25:39 +00:00
int-y1
a981a6429f Fix lxml for unit tests 2024-04-01 02:02:43 +00:00
tandr3w
bc6aef13e7 Make markdown tables horizontally scrollable by default 2024-03-18 03:07:55 +00:00
int-y1
6124519acf Upgrade CI to use Node 18 2024-03-13 02:24:02 +00:00
Fher
df99fe3e23
New settings for disabling comments and social 2024-02-08 23:47:27 -05:00
int-y1
86c234f2a1 Add Kazakh language option in UI 2024-01-24 22:28:21 +00:00
dmoj-build
8bfa7ca63b i18n: update translations from Crowdin 2024-01-24 06:07:12 +00:00
Quantum
92f68a17e6 ci/updatemessages: switch to new Crowdin client 2024-01-23 15:51:51 +00:00
Keenan Gugeler
435839e6b3 Add batch dependencies to site data interface 2024-01-21 07:04:31 +00:00
int-y1
61318c7e71 Fix user table CSS 2024-01-12 13:00:13 +00:00
Keenan Gugeler
9c513c2453 views/data: fix get_valid_files
Before #2197, `get_valid_files` returned a `List[str]`. Then it returned
an `Option[List[str]]`, because we wanted to flag invalid zips. This
caused issues with iterating, and is a pretty terrible design.

Instead, we just re-raise the BadZipfile, and handle it in the two
places this function is used.
2024-01-09 05:40:45 +00:00
Keenan Gugeler
1bacacb83e Validate site data file names and contents
Fixes #2196. The old check for zip file format correctness was broken.
We also need a check for generator names. Furthermore, invalid zip files
were never properly caught.
2024-01-06 06:23:51 +00:00
int-y1
c39f176296 Sort contest users with 0 points by submission count 2024-01-06 04:54:51 +00:00
Anthony Chen
18e49e0956 Change "Refresh" to "Edit" 2FA on profile page 2024-01-06 04:46:02 +00:00
int-y1
19e7a0943b Upgrade Select2 to 4.0.13 2024-01-02 01:51:06 +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
6baf5c3149 Improve APIv2
- Sort all list endpoints by ID, which reduces the likelihood of objects
  moving between pages during requests. Objects will only shift if an
  object is deleted, which usually does not happen.
- Add a list filter for ID (and other identifier fields), so users can
  request a list of only the objects they care about (rather than
  requesting all and then filtering on their side)
- Use the rating from Profile.rating instead of re-computing it each
  time. This attribute should already be updated during each contest
  rate.
2023-12-25 02:59:09 +00: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
Evan
c3fb2d717d Fix user admin object creation and deletion; #931, #2288
- Automatically create profile when adding a user through admin
- Disallow adding profiles through admin
- (Soft) disallow deleting profiles through admin
2023-10-28 22:48:33 +00:00
int-y1
d6dd630b3e Use consistent capitals for admin column descriptions 2023-10-11 12:26:48 +00:00
Keenan Gugeler
98c755706a style: Use POSIX sh for make_style.sh
Also update the gitignore for select2-dmoj.css.
2023-09-17 14:16:49 +00:00
int-y1
79be4af4b5 Use decorator for admin display functions 2023-08-26 03:38:05 +00:00
int-y1
138ce7fc99 Improve import locations 2023-08-26 01:59:15 +00:00
int-y1
7294d223a2 Clean up code for chart colors 2023-08-25 08:56:17 +00:00