Commit Graph

469 Commits

Author SHA1 Message Date
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
Anthony Chen
18e49e0956 Change "Refresh" to "Edit" 2FA on profile page 2024-01-06 04:46:02 +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
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
Tudor Brindus
81f3c90ffa
bleach: allow img[align] by default 2023-04-08 09:33:35 -04:00
Quantum
b424483db7 Allow value attribute for <li> tags 2023-03-19 05:13:53 +00: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
Tudor Brindus
1f2515515a Implement basic pdfoid-based renderer 2023-03-05 20:53:12 +00:00
Tudor Brindus
99c1ce01be Remove old PDF renderers
The SlimerJS and PhantomJS backends have not been used in many years, are
undocumented, and should not be used.
2023-02-26 19:39:08 +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
70bb0bf61b Create sitemap generation script 2023-02-17 22:29:56 +00:00
Evan
e00396fc2a Use different default ace theme depending on site theme 2023-02-07 22:58:43 -05:00
Evan
9066af6a5c Create and use custom 'dmoj' select2 theme 2023-02-05 23:24:02 -05:00
int-y1
6655dfd18d Use a better default for timezone map 2023-02-05 14:42:08 -05:00
Evan
ccb2964e8a Add site theme profile option to toggle dark/light themes 2023-02-03 21:25:26 -05:00
Quantum
c91b725d59 Delete old, deprecated API v1 2023-01-23 02:11:51 -05:00
int-y1
3914dec21c Remove Django 2.2 file 2023-01-12 21:21:38 -05:00
int-y1
617a321d03 Add dark Pygments code theme 2023-01-08 03:29:27 -05:00
int-y1
6f86668e8c Use more reasonable values in sitemap 2023-01-02 13:24:24 -05:00
int-y1
21abeea7ab Remove recently_attempted_problems 2023-01-01 19:18:48 -05:00
Quantum
60964b21d4 Explicitly set DEFAULT_AUTO_FIELD 2022-12-27 00:40:55 -05:00
Evan Zhang
b9e0ea05ed
Fix flake8 configuration 2022-12-26 13:10:31 -05:00
int-y1
8f259d1d97 Add view for problem point voting 2022-12-20 18:42:33 -05:00
int-y1
ab18c2835b Add backend for problem point voting 2022-12-20 18:42:33 -05:00
int-y1
3373d6ec01 Update Django links to 3.2 2022-12-16 20:43:11 +02:00
int-y1
765c503523 Remove reply button on old comments 2022-10-30 20:17:40 -04:00
int-y1
3042f8a115 Remove unused AMQP setting 2022-10-30 20:05:12 -04:00
int-y1
a06428cef4 Remove dead select2 variables 2022-10-30 20:05:12 -04:00
kiritofeng
bd14f6e16b Update admin sidebar
This merges options that should go together more intutively, as well as adding contest lock to the sidebar.
2022-10-01 21:55:32 -04:00
int-y1
1946a47eb2 Fix code comments 2022-08-20 11:22:53 -04:00
Panagiotis Theocharis
8faf2bf5a5 Added Greek language option in UI 2022-07-19 09:48:15 -04:00
int-y1
e24f4137e0 Improve password reset email 2022-07-17 23:39:38 -04:00
int-y1
7436f42e2f ban unicode minus sign 2022-07-17 23:36:25 -04:00
int-y1
6bb9061165 Ban ligatures from problem statements 2022-07-17 23:36:25 -04:00
int-y1
39d185a8ad Better js timezone detection 2022-07-17 23:34:10 -04:00
Jason Yuen
70cc14b18f
Fix i18n on content titles (#1920)
Co-authored-by: Quantum <quantum2048@gmail.com>
2022-04-16 03:20:03 -04:00
Quantum
008275ab63 Create safe translation module for Jinja2 2022-03-22 00:25:33 -04:00
Jisoo Choi
2c9227fc7e
Convert django.conf.urls.url to django.conf.urls.(re_)path (#1823)
Co-authored-by: Quantum <quantum2048@gmail.com>
Co-authored-by: Evan Zhang <me@evanzhang.ca>
Co-authored-by: Roger Fu <me@kirito.ca>
2022-02-22 00:45:40 -05:00
Quantum
d51dd26812 Add ability to request classes while already in organization 2022-01-29 22:00:58 -05:00
Quantum
899e6a977d Implement class pages that lists members 2022-01-29 22:00:58 -05:00
Quantum
9c38676715 Allow class-private contests to be managed 2022-01-29 22:00:58 -05:00
Quantum
61370ffca7 Add management features for classes 2022-01-29 22:00:58 -05:00
Quantum
35aa308357 Implement basic contest iCalendar output 2021-10-16 16:01:11 -04:00
Quantum
394e97eeca Remove uses of django.utils.translation.ugettext
This is just an alias of django.utils.translation.gettext on Python 3,
and it's deprecated starting Django 3.0.
2021-10-15 21:36:31 -04:00
kiritofeng
0737e52211 Remove raw problem view 2021-10-15 21:19:11 -04:00
Quantum
7acf9b0a1b Allow <details> and <summary> tags 2021-09-27 18:06:02 -04:00