update import order

pull/140/head
undefined 3 years ago
parent dcc23f765a
commit 99adcc6d7d

@ -4,13 +4,13 @@ import xml2js from 'xml2js';
import fs from 'fs-extra';
import { filter } from 'lodash';
import decodeHTML from 'decode-html';
import type { ProblemConfig } from 'hydrooj';
import { Route, Handler } from 'hydrooj/dist/service/server';
import { buildContent } from 'hydrooj/dist/lib/content';
import { ProblemAdd } from 'hydrooj/dist/lib/ui';
import solution from 'hydrooj/dist/model/solution';
import { PERM } from 'hydrooj/dist/model/builtin';
import { FileTooLargeError, ValidationError } from 'hydrooj/dist/error';
import type { ProblemConfig } from 'hydrooj';
class FpsProblemImportHandler extends Handler {
async get() {

@ -1,9 +1,9 @@
import { ItemBucketMetadata } from 'minio';
import type { Readable, Writable } from 'stream';
import type { Cursor, ObjectID } from 'mongodb';
import type fs from 'fs';
import type { Dictionary, NumericDictionary } from 'lodash';
import type * as Koa from 'koa';
import { ItemBucketMetadata } from 'minio';
import type { ProblemDoc } from './model/problem';
type document = typeof import('./model/document');

@ -1,7 +1,7 @@
import type { Readable } from 'stream';
import { ObjectID, FilterQuery } from 'mongodb';
import { Dictionary, escapeRegExp, pick } from 'lodash';
import { streamToBuffer } from '@hydrooj/utils/lib/utils';
import type { Readable } from 'stream';
import * as document from './document';
import { STATUS } from './builtin';
import storage from './storage';

@ -1,7 +1,7 @@
import type { Readable } from 'stream';
import { escapeRegExp } from 'lodash';
import { ItemBucketMetadata } from 'minio';
import moment from 'moment';
import type { Readable } from 'stream';
import storage from '../service/storage';
import * as bus from '../service/bus';
import db from '../service/db';

@ -1,8 +1,8 @@
/* eslint-disable no-await-in-loop */
import cluster from 'cluster';
import type { Db, FilterQuery, OnlyFieldsOfType } from 'mongodb';
import serialize from 'serialize-javascript';
import { argv } from 'yargs';
import type { Db, FilterQuery, OnlyFieldsOfType } from 'mongodb';
import type { Handler } from './server';
import { Logger } from '../logger';
import type {

@ -15,9 +15,9 @@ import Router from 'koa-router';
import proxy from 'koa-proxies';
import cache from 'koa-static-cache';
import sockjs from 'sockjs';
import type { SetOption } from 'cookies';
import { argv } from 'yargs';
import { createHash } from 'crypto';
import type { SetOption } from 'cookies';
import * as bus from './bus';
import { errorMessage } from '../utils';
import { User, DomainDoc } from '../interface';

@ -4,12 +4,12 @@ import os from 'os';
import fs from 'fs-extra';
import AdmZip from 'adm-zip';
import yaml from 'js-yaml';
import type { ContentNode, ProblemConfig } from 'hydrooj';
import { Route, Handler } from 'hydrooj/dist/service/server';
import { BadRequestError, ValidationError } from 'hydrooj/dist/error';
import { ProblemAdd } from 'hydrooj/dist/lib/ui';
import problem from 'hydrooj/dist/model/problem';
import { PERM } from 'hydrooj/dist/model/builtin';
import type { ContentNode, ProblemConfig } from 'hydrooj';
fs.ensureDirSync('/tmp/hydro/import-qduoj');

Loading…
Cancel
Save