添加全局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;
+2 -2
View File
@@ -1,6 +1,6 @@
{
"name": "@hydrooj/fps-importer",
"version": "1.0.8",
"version": "1.1.0",
"description": "Import FPS problems",
"main": "package.json",
"repository": "https://github.com/hydro-dev/Hydro.git",
@@ -16,7 +16,7 @@
"bson": "^4.1.0"
},
"peerDependencies": {
"hydrooj": "^2.12.22"
"hydrooj": "^2.13.0"
},
"scripts": {
"build": "tsc",