mirror of
https://github.com/QingdaoU/OnlineJudge.git
synced 2025-11-04 14:49:58 +08:00
Add python3 support, add english readme
This commit is contained in:
parent
996ced349a
commit
7f413ca0a2
79
README-CN.md
Normal file
79
README-CN.md
Normal file
@ -0,0 +1,79 @@
|
||||
# OnlineJudge 2.0
|
||||
|
||||
[](https://www.python.org/downloads/release/python-362/)
|
||||
[](https://www.djangoproject.com/)
|
||||
[](http://www.django-rest-framework.org/)
|
||||
[](https://travis-ci.org/QingdaoU/OnlineJudge)
|
||||
|
||||
> #### 基于Python和Vue的在线评测系统。[Demo](http://v2.qduoj.com)
|
||||
|
||||
[English Document](https://github.com/QingdaoU/OnlineJudge/blob/2.0/README.md)
|
||||
|
||||
## 概览
|
||||
|
||||
+ 基于docker,真正一键部署
|
||||
+ 前后端分离,模块化编程,微服务
|
||||
+ ACM/OI 两种比赛模式、实时/非实时评判 任意选择
|
||||
+ 丰富的可视化图表,一图胜千言
|
||||
+ 支持Template Problem,可以添加函数题甚至填空题
|
||||
+ 更细致的权限划分,超级管理员和普通管理员各司其职
|
||||
+ 多语言支持:`C`, `C++`, `Java`, `Python`,题目可以选择使用的语言
|
||||
+ Markdown & MathJax支持
|
||||
+ 比赛用户IP限制(CIDR ranges)
|
||||
|
||||
|
||||
主要模块均已开源:
|
||||
|
||||
+ 后端(Django): [https://github.com/QingdaoU/OnlineJudge](https://github.com/QingdaoU/OnlineJudge)
|
||||
+ 前端(Vue): [https://github.com/QingdaoU/OnlineJudgeFE](https://github.com/QingdaoU/OnlineJudgeFE)
|
||||
+ 判题沙箱(Seccomp): [https://github.com/QingdaoU/Judger](https://github.com/QingdaoU/Judger)
|
||||
+ 判题服务器(对Judger的封装): [https://github.com/QingdaoU/JudgeServer](https://github.com/QingdaoU/JudgeServer)
|
||||
|
||||
## 安装
|
||||
|
||||
文档: [https://github.com/QingdaoU/OnlineJudgeDeploy/tree/2.0](https://github.com/QingdaoU/OnlineJudgeDeploy/tree/2.0)
|
||||
|
||||
## 截图
|
||||
|
||||
### OJ前台
|
||||
|
||||

|
||||
|
||||

|
||||
|
||||

|
||||
|
||||

|
||||
|
||||
Rankings 中可以控制图表和菜单的显隐
|
||||

|
||||

|
||||
|
||||

|
||||
|
||||

|
||||
|
||||

|
||||
|
||||
|
||||
### 后台管理
|
||||

|
||||
|
||||

|
||||
|
||||

|
||||
|
||||

|
||||
|
||||
## 特别感谢
|
||||
|
||||
+ 所有为本项目做出贡献的人
|
||||
+ [heb1c](#) 同学为我们提供了很多意见和建议
|
||||
|
||||
如果您觉得这个项目还不错,就给个star吧 :)
|
||||
|
||||
## 许可
|
||||
|
||||
The [MIT](http://opensource.org/licenses/MIT) License
|
||||
|
||||
Copyright 2015-present, Online Judge
|
||||
83
README.md
83
README.md
@ -5,68 +5,73 @@
|
||||
[](http://www.django-rest-framework.org/)
|
||||
[](https://travis-ci.org/QingdaoU/OnlineJudge)
|
||||
|
||||
> ### 基于Python和Vue的在线评测系统。[Demo](http://v2.qduoj.com)
|
||||
> #### A onlinejudge system based on Python and Vue, [Demo](http://v2.qduoj.com)
|
||||
|
||||
## 概览
|
||||
[中文文档](https://github.com/QingdaoU/OnlineJudge/blob/2.0/README-CN.md)
|
||||
|
||||
+ 基于docker,真正一键部署
|
||||
+ 前后端分离,模块化编程,微服务
|
||||
+ ACM/OI 两种比赛模式、实时/非实时评判 任意选择
|
||||
+ 丰富的可视化图表,一图胜千言
|
||||
+ 支持Template Problem,可以添加函数题甚至填空题
|
||||
+ 更细致的权限划分,超级管理员和普通管理员各司其职
|
||||
+ 多语言支持:`C`, `C++`, `Java`, `Python`,题目可以选择使用的语言
|
||||
+ Markdown & MathJax支持
|
||||
+ 比赛用户IP限制(CIDR ranges)
|
||||
## Overview
|
||||
|
||||
+ Based on docker, one-click deployment
|
||||
+ Separated backend and frontend, modularization programming
|
||||
+ ACM/OI rule_type, real-time rank or not, choose as you like
|
||||
+ Amazing charting and visualization
|
||||
+ Template-Problem support
|
||||
+ More reasonable permission control
|
||||
+ Multi-language support: `C`, `C++`, `Java`, `Python2`, `Python3`
|
||||
+ Easy use markdown editor && Nice codemirror editor
|
||||
+ Contest Participants IP limit(CIDR)
|
||||
|
||||
主要模块均已开源:
|
||||
The main modules are open source:
|
||||
|
||||
+ 后端(Django): [https://github.com/QingdaoU/OnlineJudge](https://github.com/QingdaoU/OnlineJudge)
|
||||
+ 前端(Vue): [https://github.com/QingdaoU/OnlineJudgeFE](https://github.com/QingdaoU/OnlineJudgeFE)
|
||||
+ 判题服务器(Judger): [https://github.com/QingdaoU/JudgeServer](https://github.com/QingdaoU/JudgeServer)
|
||||
+ VirtualJuge(Golang): 正在开发中..
|
||||
+ Backend(Django): [https://github.com/QingdaoU/OnlineJudge](https://github.com/QingdaoU/OnlineJudge)
|
||||
+ Frontend(Vue): [https://github.com/QingdaoU/OnlineJudgeFE](https://github.com/QingdaoU/OnlineJudgeFE)
|
||||
+ Judger Sandbox(seccomp): [https://github.com/QingdaoU/Judger](https://github.com/QingdaoU/Judger)
|
||||
+ JudgeServer(A wrapper for Judger): [https://github.com/QingdaoU/JudgeServer](https://github.com/QingdaoU/JudgeServer)
|
||||
|
||||
## 安装
|
||||
## Install
|
||||
|
||||
文档: [https://github.com/QingdaoU/OnlineJudgeDeploy/tree/2.0](https://github.com/QingdaoU/OnlineJudgeDeploy/tree/2.0)
|
||||
Follow me: [https://github.com/QingdaoU/OnlineJudgeDeploy/tree/2.0](https://github.com/QingdaoU/OnlineJudgeDeploy/tree/2.0)
|
||||
|
||||
## 截图
|
||||
## Screenshots
|
||||
|
||||
### OJ前台
|
||||
### Frontend:
|
||||
|
||||

|
||||

|
||||
|
||||

|
||||

|
||||

|
||||
|
||||

|
||||

|
||||
|
||||

|
||||
|
||||
You can control the menu and chart status in rankings
|
||||

|
||||

|
||||
|
||||

|
||||
|
||||

|
||||
|
||||

|
||||
|
||||

|
||||
### Backend:
|
||||
|
||||
Rankings 中可以控制图表和菜单的显隐
|
||||

|
||||

|
||||

|
||||
|
||||

|
||||
|
||||
### 后台管理
|
||||

|
||||
|
||||

|
||||

|
||||
|
||||

|
||||
## Special Thanks
|
||||
|
||||

|
||||
+ I'd appreciate a github star if you find this great
|
||||
+ Thanks to all the people that have contributed to the project
|
||||
+ A special thanks to [heb1c]() who gave us a lot of suggestions
|
||||
|
||||

|
||||
## License
|
||||
|
||||
## 特别感谢
|
||||
The [MIT](http://opensource.org/licenses/MIT) License
|
||||
|
||||
+ [heb1c]()同学为我们提供了很多意见和建议
|
||||
|
||||
## 许可
|
||||
|
||||
[SATA](https://github.com/zTrix/sata-license)
|
||||
Copyright 2015-present, Online Judge
|
||||
@ -138,6 +138,21 @@ _py2_lang_config = {
|
||||
"seccomp_rule": "general",
|
||||
}
|
||||
}
|
||||
_py3_lang_config = {
|
||||
"compile": {
|
||||
"src_name": "solution.py",
|
||||
"exe_name": "__pycache__/solution.cpython-35.pyc",
|
||||
"max_cpu_time": 3000,
|
||||
"max_real_time": 5000,
|
||||
"max_memory": 128 * 1024 * 1024,
|
||||
"compile_command": "/usr/bin/python3 -m py_compile {src_path}",
|
||||
},
|
||||
"run": {
|
||||
"command": "/usr/bin/python3 {exe_path}",
|
||||
"seccomp_rule": "general",
|
||||
"env": ["PYTHONIOENCODING=UTF-8"]
|
||||
}
|
||||
}
|
||||
|
||||
languages = [
|
||||
{"config": _c_lang_config, "spj": {"compile": _c_lang_spj_compile, "config": _c_lang_spj_config},
|
||||
@ -145,7 +160,8 @@ languages = [
|
||||
{"config": _cpp_lang_config, "spj": {"compile": _cpp_lang_spj_compile, "config": _cpp_lang_spj_config},
|
||||
"name": "C++", "description": "G++ 4.8", "content_type": "text/x-c++src"},
|
||||
{"config": _java_lang_config, "name": "Java", "description": "OpenJDK 1.7", "content_type": "text/x-java"},
|
||||
{"config": _py2_lang_config, "name": "Python2", "description": "Python 2.7", "content_type": "text/x-python"}
|
||||
{"config": _py2_lang_config, "name": "Python2", "description": "Python 2.7", "content_type": "text/x-python"},
|
||||
{"config": _py3_lang_config, "name": "Python3", "description": "Python 3", "content_type": "text/x-python"},
|
||||
]
|
||||
|
||||
spj_languages = list(filter(lambda item: "spj" in item, languages))
|
||||
|
||||
Loading…
Reference in New Issue
Block a user