move delarations to @hydrooj/common

This commit is contained in:
undefined committed 2025-02-09 15:17:10 +00:00
1 parent 100ccf718f
commit 4a33816a37
49 files changed
+496 -465

No files matched your search

+4 -3
View File
@@ -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 -2
View File
@@ -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 -1
View File
@@ -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, '_');