算法评测平台前端。
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
Menci 21f05264c0 Add mirgrate for code formatting 5 years ago
bin Add code format 6 years ago
libs Add redis cache to use with syzoj-renderer 5 years ago
migrates Add mirgrate for code formatting 5 years ago
models Merge branch 'master' of github.com:syzoj/syzoj 5 years ago
modules Workaround a race condition in submitting 5 years ago
static Add syzoj-renderer's math.css, remove unused files 5 years ago
uploads Add non-traditional problem support; add problem additional_file 7 years ago
views Add syzoj-renderer's math.css, remove unused files 5 years ago
.babelrc Initial commit 8 years ago
.editorconfig Add .editorconfig 7 years ago
.gitignore Ignore package-lock.json 6 years ago
LICENSE Initial commit 8 years ago
README.en.md Add mirgrate for code formatting 5 years ago
README.md Add mirgrate for code formatting 5 years ago
app.js Add redis cache to use with syzoj-renderer 5 years ago
config-example.json Add redis cache to use with syzoj-renderer 5 years ago
language-config.json Add code format 6 years ago
package.json Merge branch 'master' into syzoj-renderer 5 years ago
utility.js Fix missing cell borders for table with merged cells 5 years ago

README.md

中文 | English

一个用于算法竞赛的在线评测系统。

此项目为重写过的、原 Python/Flask 版 SYZOJ 的官方后继版本,由原作者 @Chenyao2333 授权。

目前由 LibreOJ 维护。

部署

见本项目 Wiki 中的 部署指南

加入 QQ 群 565280992 或 Telegram 群 @lojdev 以取得帮助。

升级须知

因为一些数据库结构的更新,从该 commit d5bcbe8fb79e80f9d603b764ac787295cceffa34(2018 年 4 月 21 日)前更新的用户必须在其数据库上执行以下 SQL 语句。

ALTER TABLE `judge_state` ADD `is_public` TINYINT(1) NOT NULL AFTER `compilation`;
UPDATE `judge_state` JOIN `problem` ON `problem`.`id` = `judge_state`.`problem_id` SET `judge_state`.`is_public` = `problem`.`is_public`;
ALTER TABLE `syzoj`.`judge_state` ADD INDEX `judge_state_is_public` (`id`, `is_public`, `type_info`, `type`);

从该 commit 26d66ceef24fbb35481317453bcb89ead6c69076(2018 年 11 月 5 日)前更新的用户必须在其数据库上执行以下 SQL 语句。

ALTER TABLE `contest_player` CHANGE `score_details` `score_details` JSON NOT NULL;
ALTER TABLE `contest_ranklist` CHANGE `ranking_params` `ranking_params` JSON NOT NULL;
ALTER TABLE `contest_ranklist` CHANGE `ranklist` `ranklist` JSON NOT NULL;
ALTER TABLE `custom_test` CHANGE `result` `result` JSON NOT NULL;
ALTER TABLE `judge_state` CHANGE `compilation` `compilation` JSON NOT NULL;
ALTER TABLE `judge_state` CHANGE `result` `result` JSON NOT NULL;

从该 commit 84b9e2d7b51e4ed3ab426621b66cf5ae9e1e1c23(2018 年 11 月 6 日)前更新的用户必须在其数据库上执行以下 SQL 语句。

ALTER TABLE `problem` ADD `publicize_time` DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP AFTER `type`;

从该 commit d8be150fc6b8c43af61c5e4aca4fc0fe0445aef3(2018 年 12 月 7 日)前更新的用户必须在其数据库上执行以下 SQL 语句。

ALTER TABLE `user` ADD `prefer_formatted_code` TINYINT(1) NOT NULL DEFAULT 1 AFTER `public_email`;

为使代码格式化功能正常工作,clang-format 需要被安装。migrates/format-old-codes.js 可能对格式化旧提交记录的代码有帮助。

从该 commit c192e8001ac81cab132ae033b39f09a094587633(2019 年 3 月 23 日)前更新的用户必须在网站服务器上安装 redis-serverpygments。旧的 Markdown 内容可能因切换到新渲染器被破坏,migrates/html-table-merge-cell-to-md.js 可能对迁移有所帮助。