diff --git a/packages/hydrooj/src/settings.ts b/packages/hydrooj/src/settings.ts index 5b791b1..c38464b 100644 --- a/packages/hydrooj/src/settings.ts +++ b/packages/hydrooj/src/settings.ts @@ -5,7 +5,7 @@ import { Logger } from './logger'; import { NestKeys } from './typeutils'; const defaultPath = process.env.CI ? '/tmp/file' - : process.env.DEFAULT_STORE_PATH || '/Users/levylv/data/file/hydro'; + : process.env.DEFAULT_STORE_PATH || '/Users/zhangke/data/file/hydro'; const FileSetting = Schema.intersect([ Schema.object({ type: Schema.union([ diff --git a/packages/ui-default/locales/zh.yaml b/packages/ui-default/locales/zh.yaml index d19c8d2..8277731 100644 --- a/packages/ui-default/locales/zh.yaml +++ b/packages/ui-default/locales/zh.yaml @@ -577,6 +577,7 @@ Not Enrolled: 未参加 Not started with a number: 不以数字开头 Not wrapped with space: 两侧不含空格 Numeric PID: 数字题号 +Alphabetic PID: 题目编号 objective: 客观题 Oh, the user doesn't have any contributions!: 啊哦,这个用户还没贡献过题目~ Oh, the user hasn't created any discussions yet!: 这个用户还没有发布过讨论 diff --git a/packages/ui-default/templates/homework_detail.html b/packages/ui-default/templates/homework_detail.html index 0e8486c..bfec3a0 100644 --- a/packages/ui-default/templates/homework_detail.html +++ b/packages/ui-default/templates/homework_detail.html @@ -20,17 +20,17 @@
{{ _('Status') }} | +{{ _('Alphabetic PID') }} | {{ _('Problem') }} | {% if handler.user.hasPriv(PRIV.PRIV_USER_PROFILE) %}{{ _('Status') }} | @@ -43,8 +43,8 @@||
---|---|---|---|---|---|
{{ String.fromCharCode(65+loop.index0) }} | -+ | {{ String.fromCharCode(65+loop.index0) }} | +
{% if isAdmin and not ntdoc %}
{{ problem.render_problem_title(pdict[pid], show_invisible_flag=false, show_tags=false) }}
{% else %}
diff --git a/packages/ui-default/templates/homework_main.html b/packages/ui-default/templates/homework_main.html
index 631cf42..0008bf0 100644
--- a/packages/ui-default/templates/homework_main.html
+++ b/packages/ui-default/templates/homework_main.html
@@ -38,20 +38,20 @@
-
+ {# #}
-
+
{% if not tdocs.length %}
diff --git a/packages/ui-default/templates/partials/scoreboard.html b/packages/ui-default/templates/partials/scoreboard.html
index c71caee..3b3eef7 100644
--- a/packages/ui-default/templates/partials/scoreboard.html
+++ b/packages/ui-default/templates/partials/scoreboard.html
@@ -28,7 +28,7 @@
+ |
{%- if column.type == 'problem' and column.raw -%}
{{ column.value }} | {{ pdict[column.raw].nAccept|default(0) }}/{{ pdict[column.raw].nSubmit|default(0) }} diff --git a/packages/ui-default/templates/wiki_help.html b/packages/ui-default/templates/wiki_help.html index 405a566..313d14a 100644 --- a/packages/ui-default/templates/wiki_help.html +++ b/packages/ui-default/templates/wiki_help.html @@ -101,6 +101,19 @@ {{ _('Training') }}我们精心挑选了一些题目组成了训练计划。单击导航栏的“训练”即可进入! +
+
+
+ {{ _('Homework') }}+
+
+
{{ _('Contest') }} |