添加全局rate_limit,更换ui节点接口

This commit is contained in:
undefined committed 2020-09-05 22:17:21 +08:00
1 parent 02c1866963
commit 03dc8903e2
22 files changed
+231 -216

No files matched your search

+2
View File
@@ -10,6 +10,7 @@ import {
Route, Handler, param, Types,
} from 'hydrooj/dist/service/server';
import { streamToBuffer } from 'hydrooj/dist/utils';
import { ProblemAdd } from 'hydrooj/dist/lib/ui';
import * as file from 'hydrooj/dist/model/file';
import { PERM } from 'hydrooj/dist/model/builtin';
@@ -123,6 +124,7 @@ class FpsProblemImportHandler extends Handler {
export async function apply() {
Route('problem_import_fps', '/problem/import/fps', FpsProblemImportHandler, PERM.PERM_CREATE_PROBLEM);
ProblemAdd('problem_import_fps', {}, 'copy', 'From FPS File');
}
global.Hydro.handler.fpsImport = apply;