next: esbuild loader

This commit is contained in:
undefined committed 2021-07-29 02:59:50 +08:00
1 parent cca54dc92a
commit 5eaec48002
28 files changed
+171 -113

No files matched your search

+2 -2
View File
@@ -1,5 +1,5 @@
import * as bus from 'hydrooj/dist/service/bus';
import * as system from 'hydrooj/dist/model/system';
import * as bus from 'hydrooj/src/service/bus';
import * as system from 'hydrooj/src/model/system';
import sonic from './service';
bus.on('problem/add', async (doc, docId) => {
+1 -1
View File
@@ -1,4 +1,4 @@
import { iterateAllProblem, iterateAllProblemInDomain } from 'hydrooj/dist/pipelineUtils';
import { iterateAllProblem, iterateAllProblemInDomain } from 'hydrooj/src/pipelineUtils';
import sonic from './service';
export const description = 'Sonic problem search re-index';
+4 -4
View File
@@ -1,13 +1,13 @@
import { BaseService } from 'hydrooj';
import * as system from 'hydrooj/dist/model/system';
import { Logger } from 'hydrooj/dist/logger';
import * as system from 'hydrooj/src/model/system';
import { Logger } from 'hydrooj/src/logger';
import {
Search, Ingest, QueryOptions, SuggestOptions, PushOptions,
} from 'sonic-channel';
const logger = new Logger('sonic');
declare module 'hydrooj/dist/interface' {
declare module 'hydrooj/src/interface' {
interface SystemKeys {
'sonic.host': string;
'sonic.port': number;
@@ -110,7 +110,7 @@ class SonicService implements BaseService {
const service = new SonicService();
global.Hydro.service.sonic = service;
export = service;
declare module 'hydrooj/dist/interface' {
declare module 'hydrooj/src/interface' {
interface Service {
sonic: typeof service
}