ui: add contest_problemlist to contest sidebar

This commit is contained in:
undefined committed 2025-06-25 02:08:30 +08:00
1 parent 240b299fd8
commit 273ff95222
5 files changed
+8 -3

No files matched your search

+1 -1
View File
@@ -53,7 +53,7 @@
"mongodb-memory-server": "10.1.4",
"nyc": "^17.1.0",
"ora": "^8.2.0",
"oxlint": "^1.2.0",
"oxlint": "^1.3.0",
"package-json": "^10.0.1",
"semver": "^7.7.2",
"simple-git": "^3.28.0",
+1 -1
View File
@@ -123,7 +123,7 @@ export class ContestDetailBaseHandler extends Handler {
{
name: 'contest_problemlist',
args: { tid, prefix: 'contest_problemlist' },
checker: () => true,
checker: () => this.tsdoc?.attend || contest.isDone(this.tdoc),
},
{
name: 'contest_scoreboard',
+1
View File
@@ -694,6 +694,7 @@ Problem Category: 标签
Problem Data: 题目数据
Problem ID cannot be a pure number. Leave blank if you want to use numberic id.: 题目ID不能为纯数字。 若要自动分配数字ID请将此处留空。
Problem ID List: 题目 ID 列表
Problem List: 题目列表
Problem Set: 题库
Problem Settings: 题目设置
Problem Solution List: 题解列表
+1 -1
View File
@@ -66,7 +66,7 @@
"jquery.easing": "^1.4.1",
"jquery.transit": "^0.9.12",
"matchmedia-polyfill": "^0.3.2",
"md-editor-rt": "^5.7.0",
"md-editor-rt": "^5.7.1",
"mini-css-extract-plugin": "^2.9.2",
"moment": "^2.30.1",
"monaco-editor": "0.52.2",
@@ -64,6 +64,10 @@
</a>
{% endif %}
</li>
{% else %}
<li class="menu__item"><a class="menu__link" href="{{ url('contest_problemlist', tid=tdoc.docId) }}">
<span class="icon icon-unordered_list"></span> {{ _('Problem List') }}
</a></li>
{% endif %}{# not attend and not done #}
{% if model.contest.canShowScoreboard.call(handler, tdoc, False) %}
<li class="menu__item"><a class="menu__link" href="{{ url('contest_scoreboard', tid=tdoc.docId) }}">