mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 01:38:19 +08:00
w: 编译提速
This commit is contained in:
1 parent
6c6a0df0f0
commit
d037560f91
5 files changed
+8
-7
No files matched your search
@@ -4,7 +4,7 @@ import xml2js from 'xml2js';
|
||||
import fs from 'fs-extra';
|
||||
import { filter } from 'lodash';
|
||||
import decodeHTML from 'decode-html';
|
||||
import { LocalProblemConfig } from 'hydrooj';
|
||||
import type { ProblemConfig } from 'hydrooj';
|
||||
import {
|
||||
Route, Handler, param, Types,
|
||||
} from 'hydrooj/dist/service/server';
|
||||
@@ -31,7 +31,7 @@ class FpsProblemImportHandler extends Handler {
|
||||
: [],
|
||||
hint: p.hint,
|
||||
}, 'html', this.translate.bind(this));
|
||||
const config: LocalProblemConfig = {
|
||||
const config: ProblemConfig = {
|
||||
time: p.time_limit[0]._ + p.time_limit[0].$.unit,
|
||||
memory: p.memory_limit[0]._ + p.memory_limit[0].$.unit,
|
||||
};
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@hydrooj/fps-importer",
|
||||
"version": "1.1.4",
|
||||
"version": "1.1.5",
|
||||
"description": "Import FPS problems",
|
||||
"main": "package.json",
|
||||
"repository": "https://github.com/hydro-dev/Hydro.git",
|
||||
|
||||
Reference in new issue
Block a user