diff --git a/package.json b/package.json index a3fc487de..d2a728654 100644 --- a/package.json +++ b/package.json @@ -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", diff --git a/packages/hydrooj/src/handler/contest.ts b/packages/hydrooj/src/handler/contest.ts index ca77e73e5..c28583227 100644 --- a/packages/hydrooj/src/handler/contest.ts +++ b/packages/hydrooj/src/handler/contest.ts @@ -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', diff --git a/packages/ui-default/locales/zh.yaml b/packages/ui-default/locales/zh.yaml index eefc5ad60..603cc1442 100644 --- a/packages/ui-default/locales/zh.yaml +++ b/packages/ui-default/locales/zh.yaml @@ -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: 题解列表 diff --git a/packages/ui-default/package.json b/packages/ui-default/package.json index 23bcea72d..9df525c88 100644 --- a/packages/ui-default/package.json +++ b/packages/ui-default/package.json @@ -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", diff --git a/packages/ui-default/templates/partials/contest_sidebar.html b/packages/ui-default/templates/partials/contest_sidebar.html index 9c3998c44..e541ee3bb 100644 --- a/packages/ui-default/templates/partials/contest_sidebar.html +++ b/packages/ui-default/templates/partials/contest_sidebar.html @@ -64,6 +64,10 @@ {% endif %} + {% else %} + {% endif %}{# not attend and not done #} {% if model.contest.canShowScoreboard.call(handler, tdoc, False) %}