mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 01:38:19 +08:00
move delarations to @hydrooj/common
This commit is contained in:
1 parent
100ccf718f
commit
4a33816a37
49 files changed
+496
-465
No files matched your search
@@ -1,9 +1,10 @@
|
||||
/* eslint-disable no-await-in-loop */
|
||||
import os from 'os';
|
||||
import { LangConfig } from '@hydrooj/utils/lib/lang';
|
||||
import { LangConfig, STATUS } from '@hydrooj/common';
|
||||
import {
|
||||
Context, db, DomainModel, JudgeHandler, Logger, ProblemModel, RecordModel, Service, SettingModel,
|
||||
sleep, STATUS, SystemModel, TaskModel, Time, yaml,
|
||||
Context, db, DomainModel, JudgeHandler, Logger,
|
||||
ProblemModel, RecordModel, Service, SettingModel,
|
||||
sleep, SystemModel, TaskModel, Time, yaml,
|
||||
} from 'hydrooj';
|
||||
import { BasicProvider, IBasicProvider, RemoteAccount } from './interface';
|
||||
import providers from './providers/index';
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
import { LangConfig } from '@hydrooj/utils/lib/lang';
|
||||
import { JudgeResultBody } from 'hydrooj';
|
||||
import { JudgeResultBody, LangConfig } from '@hydrooj/common';
|
||||
|
||||
export interface RemoteAccount {
|
||||
_id: string;
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { STATUS } from '@hydrooj/utils/lib/status';
|
||||
import { STATUS } from '@hydrooj/common';
|
||||
|
||||
export function normalize(key: string) {
|
||||
return key.toUpperCase().replace(/ /g, '_');
|
||||
|
||||
Reference in new issue
Block a user