mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 01:38:19 +08:00
update import order
This commit is contained in:
1 parent
dcc23f765a
commit
99adcc6d7d
7 files changed
+7
-7
No files matched your search
@@ -4,13 +4,13 @@ import xml2js from 'xml2js';
|
|||||||
import fs from 'fs-extra';
|
import fs from 'fs-extra';
|
||||||
import { filter } from 'lodash';
|
import { filter } from 'lodash';
|
||||||
import decodeHTML from 'decode-html';
|
import decodeHTML from 'decode-html';
|
||||||
import type { ProblemConfig } from 'hydrooj';
|
|
||||||
import { Route, Handler } from 'hydrooj/dist/service/server';
|
import { Route, Handler } from 'hydrooj/dist/service/server';
|
||||||
import { buildContent } from 'hydrooj/dist/lib/content';
|
import { buildContent } from 'hydrooj/dist/lib/content';
|
||||||
import { ProblemAdd } from 'hydrooj/dist/lib/ui';
|
import { ProblemAdd } from 'hydrooj/dist/lib/ui';
|
||||||
import solution from 'hydrooj/dist/model/solution';
|
import solution from 'hydrooj/dist/model/solution';
|
||||||
import { PERM } from 'hydrooj/dist/model/builtin';
|
import { PERM } from 'hydrooj/dist/model/builtin';
|
||||||
import { FileTooLargeError, ValidationError } from 'hydrooj/dist/error';
|
import { FileTooLargeError, ValidationError } from 'hydrooj/dist/error';
|
||||||
|
import type { ProblemConfig } from 'hydrooj';
|
||||||
|
|
||||||
class FpsProblemImportHandler extends Handler {
|
class FpsProblemImportHandler extends Handler {
|
||||||
async get() {
|
async get() {
|
||||||
|
|||||||
@@ -1,9 +1,9 @@
|
|||||||
|
import { ItemBucketMetadata } from 'minio';
|
||||||
import type { Readable, Writable } from 'stream';
|
import type { Readable, Writable } from 'stream';
|
||||||
import type { Cursor, ObjectID } from 'mongodb';
|
import type { Cursor, ObjectID } from 'mongodb';
|
||||||
import type fs from 'fs';
|
import type fs from 'fs';
|
||||||
import type { Dictionary, NumericDictionary } from 'lodash';
|
import type { Dictionary, NumericDictionary } from 'lodash';
|
||||||
import type * as Koa from 'koa';
|
import type * as Koa from 'koa';
|
||||||
import { ItemBucketMetadata } from 'minio';
|
|
||||||
import type { ProblemDoc } from './model/problem';
|
import type { ProblemDoc } from './model/problem';
|
||||||
|
|
||||||
type document = typeof import('./model/document');
|
type document = typeof import('./model/document');
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
import type { Readable } from 'stream';
|
|
||||||
import { ObjectID, FilterQuery } from 'mongodb';
|
import { ObjectID, FilterQuery } from 'mongodb';
|
||||||
import { Dictionary, escapeRegExp, pick } from 'lodash';
|
import { Dictionary, escapeRegExp, pick } from 'lodash';
|
||||||
import { streamToBuffer } from '@hydrooj/utils/lib/utils';
|
import { streamToBuffer } from '@hydrooj/utils/lib/utils';
|
||||||
|
import type { Readable } from 'stream';
|
||||||
import * as document from './document';
|
import * as document from './document';
|
||||||
import { STATUS } from './builtin';
|
import { STATUS } from './builtin';
|
||||||
import storage from './storage';
|
import storage from './storage';
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
import type { Readable } from 'stream';
|
|
||||||
import { escapeRegExp } from 'lodash';
|
import { escapeRegExp } from 'lodash';
|
||||||
import { ItemBucketMetadata } from 'minio';
|
import { ItemBucketMetadata } from 'minio';
|
||||||
import moment from 'moment';
|
import moment from 'moment';
|
||||||
|
import type { Readable } from 'stream';
|
||||||
import storage from '../service/storage';
|
import storage from '../service/storage';
|
||||||
import * as bus from '../service/bus';
|
import * as bus from '../service/bus';
|
||||||
import db from '../service/db';
|
import db from '../service/db';
|
||||||
|
|||||||
@@ -1,8 +1,8 @@
|
|||||||
/* eslint-disable no-await-in-loop */
|
/* eslint-disable no-await-in-loop */
|
||||||
import cluster from 'cluster';
|
import cluster from 'cluster';
|
||||||
import type { Db, FilterQuery, OnlyFieldsOfType } from 'mongodb';
|
|
||||||
import serialize from 'serialize-javascript';
|
import serialize from 'serialize-javascript';
|
||||||
import { argv } from 'yargs';
|
import { argv } from 'yargs';
|
||||||
|
import type { Db, FilterQuery, OnlyFieldsOfType } from 'mongodb';
|
||||||
import type { Handler } from './server';
|
import type { Handler } from './server';
|
||||||
import { Logger } from '../logger';
|
import { Logger } from '../logger';
|
||||||
import type {
|
import type {
|
||||||
|
|||||||
@@ -15,9 +15,9 @@ import Router from 'koa-router';
|
|||||||
import proxy from 'koa-proxies';
|
import proxy from 'koa-proxies';
|
||||||
import cache from 'koa-static-cache';
|
import cache from 'koa-static-cache';
|
||||||
import sockjs from 'sockjs';
|
import sockjs from 'sockjs';
|
||||||
import type { SetOption } from 'cookies';
|
|
||||||
import { argv } from 'yargs';
|
import { argv } from 'yargs';
|
||||||
import { createHash } from 'crypto';
|
import { createHash } from 'crypto';
|
||||||
|
import type { SetOption } from 'cookies';
|
||||||
import * as bus from './bus';
|
import * as bus from './bus';
|
||||||
import { errorMessage } from '../utils';
|
import { errorMessage } from '../utils';
|
||||||
import { User, DomainDoc } from '../interface';
|
import { User, DomainDoc } from '../interface';
|
||||||
|
|||||||
@@ -4,12 +4,12 @@ import os from 'os';
|
|||||||
import fs from 'fs-extra';
|
import fs from 'fs-extra';
|
||||||
import AdmZip from 'adm-zip';
|
import AdmZip from 'adm-zip';
|
||||||
import yaml from 'js-yaml';
|
import yaml from 'js-yaml';
|
||||||
import type { ContentNode, ProblemConfig } from 'hydrooj';
|
|
||||||
import { Route, Handler } from 'hydrooj/dist/service/server';
|
import { Route, Handler } from 'hydrooj/dist/service/server';
|
||||||
import { BadRequestError, ValidationError } from 'hydrooj/dist/error';
|
import { BadRequestError, ValidationError } from 'hydrooj/dist/error';
|
||||||
import { ProblemAdd } from 'hydrooj/dist/lib/ui';
|
import { ProblemAdd } from 'hydrooj/dist/lib/ui';
|
||||||
import problem from 'hydrooj/dist/model/problem';
|
import problem from 'hydrooj/dist/model/problem';
|
||||||
import { PERM } from 'hydrooj/dist/model/builtin';
|
import { PERM } from 'hydrooj/dist/model/builtin';
|
||||||
|
import type { ContentNode, ProblemConfig } from 'hydrooj';
|
||||||
|
|
||||||
fs.ensureDirSync('/tmp/hydro/import-qduoj');
|
fs.ensureDirSync('/tmp/hydro/import-qduoj');
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user