ui: 支持自定义导出文件名

This commit is contained in:
undefined committed 2021-05-27 23:16:18 +08:00
1 parent cdbbee8180
commit 0273bfe198
13 files changed
+50 -32

No files matched your search

+2 -2
View File
@@ -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,
};
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "@hydrooj/fps-importer",
"version": "1.1.13",
"version": "1.2.0",
"description": "Import FPS problems",
"main": "package.json",
"repository": "https://github.com/hydro-dev/Hydro.git",