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
cdbbee8180
commit
0273bfe198
13 files changed
+50
-32
No files matched your search
@@ -11,7 +11,7 @@ import solution from 'hydrooj/dist/model/solution';
|
||||
import problem from 'hydrooj/dist/model/problem';
|
||||
import { PERM } from 'hydrooj/dist/model/builtin';
|
||||
import { FileTooLargeError, ValidationError } from 'hydrooj/dist/error';
|
||||
import type { ProblemConfig } from 'hydrooj';
|
||||
import type { ProblemConfigFile } from 'hydrooj';
|
||||
|
||||
class FpsProblemImportHandler extends Handler {
|
||||
async get() {
|
||||
@@ -29,7 +29,7 @@ class FpsProblemImportHandler extends Handler {
|
||||
: [],
|
||||
hint: p.hint,
|
||||
}, 'html', this.translate.bind(this));
|
||||
const config: ProblemConfig = {
|
||||
const config: ProblemConfigFile = {
|
||||
time: p.time_limit[0]._ + p.time_limit[0].$.unit,
|
||||
memory: p.memory_limit[0]._ + p.memory_limit[0].$.unit,
|
||||
};
|
||||
|
||||
Reference in new issue
Block a user