mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 01:38:19 +08:00
ui: add hint
This commit is contained in:
1 parent
fd2ac84535
commit
f3e25eccbe
3 files changed
+6
-2
No files matched your search
@@ -8,6 +8,7 @@ import { Route, Handler } from 'hydrooj/dist/service/server';
|
|||||||
import { buildContent } from 'hydrooj/dist/lib/content';
|
import { buildContent } from 'hydrooj/dist/lib/content';
|
||||||
import { ProblemAdd } from 'hydrooj/dist/lib/ui';
|
import { ProblemAdd } from 'hydrooj/dist/lib/ui';
|
||||||
import solution from 'hydrooj/dist/model/solution';
|
import solution from 'hydrooj/dist/model/solution';
|
||||||
|
import problem from 'hydrooj/dist/model/problem';
|
||||||
import { PERM } from 'hydrooj/dist/model/builtin';
|
import { PERM } from 'hydrooj/dist/model/builtin';
|
||||||
import { FileTooLargeError, ValidationError } from 'hydrooj/dist/error';
|
import { FileTooLargeError, ValidationError } from 'hydrooj/dist/error';
|
||||||
import type { ProblemConfig } from 'hydrooj';
|
import type { ProblemConfig } from 'hydrooj';
|
||||||
@@ -18,7 +19,6 @@ class FpsProblemImportHandler extends Handler {
|
|||||||
}
|
}
|
||||||
|
|
||||||
async run(domainId: string, result: any) {
|
async run(domainId: string, result: any) {
|
||||||
const problem = global.Hydro.model.problem;
|
|
||||||
for (const p of result.fps.item) {
|
for (const p of result.fps.item) {
|
||||||
const content = buildContent({
|
const content = buildContent({
|
||||||
description: p.description,
|
description: p.description,
|
||||||
|
|||||||
@@ -336,6 +336,10 @@ Hide categorical tags: 隐藏分类标签
|
|||||||
Highlight discussions: 高亮讨论
|
Highlight discussions: 高亮讨论
|
||||||
Highlight: 高亮
|
Highlight: 高亮
|
||||||
Hint: 提示
|
Hint: 提示
|
||||||
|
Hint::page::main: 欢迎来到 Hydro! 您可在右上角注册或登录。此类提示仅会显示一次。
|
||||||
|
Hint::page::problem_detail: 这是题目详情页面。您可点击右侧“进入在线编程模式"开始编写您的代码。
|
||||||
|
Hint::page::problem_files: 您可以将文件或压缩包拖拽至对应区域来上传文件。点击文件名在线编辑或按住 Ctrl 后点击文件名下载单个文件。
|
||||||
|
Hint::page::problem_main: 这是题目列表页面。您可在页面右侧进行筛选或搜索。
|
||||||
Hitokoto: 一言(ヒトコト)
|
Hitokoto: 一言(ヒトコト)
|
||||||
home_account: 账户设置
|
home_account: 账户设置
|
||||||
home_domain_account: 当前域的设置
|
home_domain_account: 当前域的设置
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@hydrooj/ui-default",
|
"name": "@hydrooj/ui-default",
|
||||||
"version": "4.8.36",
|
"version": "4.8.37",
|
||||||
"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