Commit Graph

993 Commits

Author SHA1 Message Date
billchenchina
9edd28541e
Create SECURITY.md 2021-09-09 18:18:58 +08:00
flukehn
2b3cfc0df4
fix(install): Update Dockerfile for mysql connection issue (#92)
if the pid of mysqld after reboot equal to before it will need to delete the /run/mysqld/mysqld.sock
2021-07-27 17:09:06 +08:00
billchenchina
480202a9b9
Merge pull request #89 from UniversalOJ/fix-88
Fix #88
2021-04-25 22:14:03 +08:00
billchenchina
c929bec01c
Add space between contest name and notification text 2021-04-25 22:03:08 +08:00
billchenchina
78846bc1b8
Fix #88
Thanks to @qz-cqy!
2021-04-25 22:00:22 +08:00
billchenchina
507844cc61
Merge pull request #87 from daklqw/patch-2
Update judge_client
2021-04-16 10:49:51 +08:00
daklqw
8b9bc9211c
Update judge_client
print(sys.stderr) => print(file=sys.stderr)
2021-04-16 10:37:37 +08:00
billchenchina
4075ac38b4
Merge pull request #86 from daklqw/patch-1
run_program_conf.h
2021-04-16 00:56:17 +08:00
daklqw
421a251ee8
run_program_conf.h
163: readable_file_name_set => writable_file_name_set
2021-04-15 20:56:07 +08:00
billchenchina
d830cf16c7
Merge pull request #85 from daklqw/patch-1
typo
2021-04-14 16:58:14 +08:00
daklqw
2521b81626
typo
non-nagative => non-negative
2021-04-14 16:53:41 +08:00
billchenchina
01701e1192
Merge pull request #68 from leoleoasd/develop(ISCAS-2028137)
Added map visualizer and code pasting tools.

Ref: https://github.com/UniversalOJ/UOJ-System/wiki/%E2%80%9C%E5%BC%80%E6%BA%90%E8%BD%AF%E4%BB%B6%E4%BE%9B%E5%BA%94%E9%93%BE%E7%82%B9%E4%BA%AE%E8%AE%A1%E5%88%92%E2%80%94%E2%80%94%E6%9A%91%E6%9C%9F2020%E2%80%9D%E9%A1%B9%E7%9B%AE%E6%8F%90%E6%A1%88#3-%E5%B0%8F%E5%B7%A5%E5%85%B7%E9%9B%86%E7%BC%96%E5%86%99
2021-04-06 08:55:18 +08:00
billchenchina
0cc5f87058
fix(judger): Let judger work on ubuntu 20.04 (#81)
* Fix judger/log/

* fix(judger): Let judger work on ubuntu 20.04

Judger stops working since 9a6f16cf1d, this commit allows judger continue working.

* fix(web): update faq.php
2021-01-26 04:23:21 +08:00
billchenchina
588b3bf01f
fix(bundle): Refactor install scripts (#80)
This commit includes:
* DEBIAN_FRONTEND=noninteractive in Dockerfile
* move apt-get to Dockerfile
2021-01-24 01:41:30 +08:00
billchenchina
87749adb28
Merge pull request #73 from xjrjyy/patch-1
解决火狐浏览器上传数据“请上传zip格式!”问题
2021-01-24 01:39:36 +08:00
Kaifeng Lyu
09894e9913
fix(judger): fix a bug on subtask type (#75)
Currently, if there is only one subtask, the bulitin judger automatically enters the ACM mode.
However, if the subtask has type "min", the judger should not do this. This commit fixes this bug.
2020-09-26 00:07:08 +08:00
Leo Lu
089ccece15 Added paste management 2020-09-23 19:12:05 +08:00
Leo Lu
6db9f15977 Added paste management 2020-09-23 19:11:43 +08:00
xjrjyy
d38b9115c5
解决火狐浏览器上传数据“请上传zip格式!”问题 2020-09-06 17:04:00 +08:00
Kaifeng Lyu
8692ff11a7
fix(web): fix compatibility issues on Safari (#72)
The current MathJax 2.6.0 does not display normally on Safari.
Upgrading MathJax to 2.7.7 fixes this issue.
2020-09-06 16:45:37 +08:00
EarringYYR
69adfdb5dc fix(problem_set):fix incorrect class in bootstrap4
correct the problem in showing the sign when pass the problem
2020-08-29 17:06:29 +08:00
Leo Lu
8cbb222d0b Added created_at field to pastes 2020-08-14 01:31:54 +08:00
Leo Lu
f25be16d1e Added map visualizer 2020-08-07 17:41:53 +08:00
Leo Lu
07f7782ae4 Added pastes 2020-08-06 00:26:45 +08:00
sun123t2
bd76d2c296
Improved .gitignore (#66)
* Added gitignore

* Improved gitignore
2020-08-01 15:27:46 +08:00
billchenchina
2644feee3a
Merge pull request #65 from leoleoasd/develop
Fixed git ignore issue.
2020-07-20 16:29:54 +08:00
Leo Lu
594289ffc7
Fixed git ignore issue. 2020-07-14 22:03:45 +08:00
billchenchina
230738b770 Merge branch 'develop' 2020-07-14 13:39:58 +00:00
Leo Lu
586466fe2c Upadted php-cs-fixer 2020-07-02 23:12:06 +08:00
Leo Lu
4488004d72 Added action to check style 2020-07-02 23:12:06 +08:00
Leo Lu
b8f82be3dc Reformated with php-cs-fixer 2020-07-02 23:12:06 +08:00
Masco Skray
9a6f16cf1d
chore(install): switch to fetch Ubuntu 20.04 image in Dockerfile
Only a simple number modify just as the title said.
2020-05-01 23:40:16 +08:00
Masco Skray
6286e41c11
feat(install): experimental Ubuntu 20.04 support
Since the phpv8-v8js plugin did not fully support PHP 7.4 and there is no new package on pecl...
Every time we need to make some 魔改 on this because official provided versions are always too old...
2020-05-01 23:40:11 +08:00
Masco Skray
8ca70fc87c fix(judger): support Java updated to 8u222 and 11.0.4
Allow reading cpu,cpuacct and new syscall requirement.
2019-10-01 10:10:00 +08:00
Masco Skray
a74f687824 feat(web): add judger management in super_manage
You can add or delete judger information at this page.
It will give a password to you, then you can use it to set up new judger.
2019-09-12 18:12:01 +08:00
Masco Skray
301bebd3eb chore(web): make stickers offline
If you are in an internal network, stickers may not shown.
Add them into images so we can use them at offline situations.
2019-09-10 10:25:08 +08:00
Masco Skray
c49b69aa86 style(web): upgrade to Bootstrap 4 view with new artworks
Let's welcome brand new look made by Bootstrap 4!
Not only website but also our logo is being flat now.
The new logo uses blue as main color, to be different from original.
For us, it also shows the project has up to a new stage.
We hope that the project will get better and better.

BREAKING CHANGE: The path for users to place their images is renamed.
Logos are saved as new names too. Users should move "pictures" to "images".
Any modifications should suit the Bootstrap 4's standard.
2019-09-10 10:25:07 +08:00
Masco Skray
bd74ed3f51 fix(web/app/controllers): do not move if there is any file in zip (#49)
There are some situations that need to place subfolder in data path.
If there is any file but not only folder in path, do not move.
Previous moving logic did not check about this.
2019-08-02 19:10:07 +08:00
Masco Skray
73aec02216 feat(install): add options to choose which judger component to build
For only web, there is no need to build checkers.
There are so many checkers that will slow down make speed.
Also for some situations, users can build checkers without runners.
2019-07-16 18:28:00 +08:00
Masco Skray
d413b746eb chore(install): separate services with docker-compose support
Without bundle, now you can choose to download single container.
For example, you can only download judger container to setup a new judger.
Also, the web container now no db and judger containing, except local sandbox.
You can use docker-compose to get every single container work together from now.
Single DB this time uses the latest MySQL 8 version, so some preferences are different.
2019-07-16 17:26:05 +08:00
Masco Skray
28cd4ef8b8 style(web,install): set repo clone dir as work dir
Clone repository files to /opt, and make this as work dir.
Can save disk space, make folder tidy, and easy to access.
2019-07-16 10:48:02 +08:00
Masco Skray
fb6cae057c chore(web): set runtime version on faq page
The runtime versions on faq page are very old and not edited.
If judger is not with web, we can't determine the exact version.
So set these versions as default show, won't be too much different.
2019-07-16 10:38:08 +08:00
Masco Skray
d92f7b1177 fix(install): mend bundle installation scripts
With thesedays' modify, installation scripts are not working properly.
Now do some modify, and set the default workdir to /opt.
2019-07-15 23:30:00 +08:00
Masco Skray
6cd6f10f6e style(web,install): change judge_client work path
When move out judger from bundle, no need to create judger account.
So these work paths will no longer exist. Prepare for future.
2019-07-15 16:19:05 +08:00
Masco Skray
2156cdffef feat(web): add a new way to access blog
We add a new way to access blog page. Now there are 3.
The switch now uses number to choose the way.
1 is for subdomain and 3 is for subfolder.
2 is for separated blog domain with its subfolder.
For example, mike's link is blog.xxx.xxx/mike.
Blog list page link on navbar will change by domain mode.
2019-07-12 14:30:00 +08:00
Masco Skray
0854940fe0 style(web): change link location of blog functions
When using sub-directory blog, the 'blogof' not looks so good.
And, there are duplicate 'blog' characters, which making people uncomfortable.
So, for sub-directory blog, use 'blog' instead of 'blogof'.
'blog' is not as a sub folder or type anymore, use 'post' instead.

BREAKING CHANGE: Due to the conflict of 'blog' sub-directory, when go to blog post,
now should use 'blogs/{id}'; but when subdomain mode is on, you can still use 'blog'
to access these blog posts. 'blogof' is no longer used, and you need to inform users
that blog link is changed, to avoid the inaccessbility.
2019-07-12 12:13:30 +08:00
Masco Skray
46c8644a6e feat(web): support utf8mb4 character set (#39)
The utf8 set in MySQL is not real UTF-8.
Use utf8mb4 character set instead of utf8.
妈妈再也不用担心写东西用不了 Emoji 了~

BREAKING CHANGE: Old databases and tables need to be upgraded.
Better not use old database structure with new connect parameters.
2019-07-10 12:14:45 +08:00
Masco Skray
f72d0fda6c style(web): merge contests_asks table into main sql file
The web interface is merged but the table is not.
Merge it into a single SQL file, without execute PHP.
Redumped database structure with mysqldump command.
2019-07-10 11:04:51 +08:00
Masco Skray
50f26075ac style(web/app/controllers): subfolder move command as a single line
8 lines are too much. Why not make it into one line?
2019-07-10 10:58:15 +08:00
Masco Skray
a522d58f1d feat(install): separate judge apache access log to another file
When judger is polling, there will be many items under access log file.
It makes access log file very big and makes us difficult to check the log.
Move judge access log to another single file, make it easier to manage log files.
2019-07-08 13:20:30 +08:00