mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 01:38:19 +08:00
ui: 优化语言显示
This commit is contained in:
1 parent
4da505a955
commit
8e0c140ef4
3 files changed
+3
-2
No files matched your search
@@ -41,6 +41,7 @@ monaco.languages.yaml.yamlDefaults.setDiagnosticsOptions({
|
|||||||
description: 'Subtask Info',
|
description: 'Subtask Info',
|
||||||
type: 'object',
|
type: 'object',
|
||||||
properties: {
|
properties: {
|
||||||
|
type: { enum: ['min', 'max', 'sum'] },
|
||||||
time: { $ref: '#/def/time' },
|
time: { $ref: '#/def/time' },
|
||||||
memory: { $ref: '#/def/memory' },
|
memory: { $ref: '#/def/memory' },
|
||||||
score: { $ref: '#/def/score', description: 'score' },
|
score: { $ref: '#/def/score', description: 'score' },
|
||||||
|
|||||||
@@ -22,7 +22,7 @@ class WikiHelpHandler extends Handler {
|
|||||||
const languages = {};
|
const languages = {};
|
||||||
// eslint-disable-next-line guard-for-in
|
// eslint-disable-next-line guard-for-in
|
||||||
for (const key in LANGS) {
|
for (const key in LANGS) {
|
||||||
languages[LANGS[key].display] = LANGS[key].compile || LANGS[key].execute;
|
languages[`${LANGS[key].display}(${key})`] = LANGS[key].compile || LANGS[key].execute;
|
||||||
}
|
}
|
||||||
this.response.body = { languages };
|
this.response.body = { languages };
|
||||||
this.response.template = 'wiki_help.html';
|
this.response.template = 'wiki_help.html';
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@hydrooj/ui-default",
|
"name": "@hydrooj/ui-default",
|
||||||
"version": "4.11.16",
|
"version": "4.11.17",
|
||||||
"author": "undefined <i@undefined.moe>",
|
"author": "undefined <i@undefined.moe>",
|
||||||
"license": "AGPL-3.0",
|
"license": "AGPL-3.0",
|
||||||
"main": "hydro.js",
|
"main": "hydro.js",
|
||||||
|
|||||||
Reference in new issue
Block a user