workspace: fix

This commit is contained in:
undefined committed 2025-02-21 05:46:11 +08:00
1 parent 2829a5965b
commit 4931ad43da
13 files changed
+14 -15

No files matched your search

+1 -1
View File
@@ -8,7 +8,7 @@
"@typescript-eslint/eslint-plugin": "^8.24.1",
"@typescript-eslint/parser": "^8.24.1",
"eslint-config-airbnb": "^19.0.4",
"eslint-plugin-de-morgan": "^1.0.1",
"eslint-plugin-de-morgan": "^1.1.0",
"eslint-plugin-github": "^5.1.8",
"eslint-plugin-import": "2.31.0",
"eslint-plugin-jsx-a11y": "^6.10.2",
+1 -1
View File
@@ -45,7 +45,7 @@
"cross-spawn": "^7.0.6",
"esbuild": "0.25.0",
"eslint": "^8.57.1",
"eslint-import-resolver-typescript": "^3.8.1",
"eslint-import-resolver-typescript": "^3.8.2",
"eslint-import-resolver-webpack": "^0.13.10",
"fs-extra": "^11.3.0",
"globby": "~14.0.2",
+1 -1
View File
@@ -16,7 +16,7 @@ export interface Result {
export default class GeoIPService extends Service {
constructor(ctx: Context) {
super(ctx, 'geoip', true);
super(ctx, 'geoip');
}
provider = '<a href="http://www.maxmind.com" target="_blank">MaxMind</a>';
+1 -1
View File
@@ -39,7 +39,7 @@ export async function apply(ctx: Context) {
await modelSystem.runConfig();
const storage = require('../service/storage');
await storage.loadStorageService();
ctx.plugin(require('../service/watcher').default, { watch: argv.options.watch });
ctx.plugin(require('../service/hmr').default, { watch: argv.options.watch });
await require('../service/worker').apply(ctx);
await require('../service/server').apply(ctx);
await require('../service/api').apply(ctx);
+1 -1
View File
@@ -46,7 +46,7 @@ export class SonicService extends Service {
public error = '';
constructor(ctx: Context) {
super(ctx, 'sonic', true);
super(ctx, 'sonic');
}
async start() {
@@ -1,3 +1,4 @@
/* eslint-disable react-refresh/only-export-components */
import { Popover } from '@blueprintjs/core';
import React from 'react';
import ReactDOM from 'react-dom/client';
@@ -1,3 +1,4 @@
/* eslint-disable react-refresh/only-export-components */
import 'jquery.easing';
import { Popover } from '@blueprintjs/core';
@@ -1,3 +1,4 @@
/* eslint-disable react-refresh/only-export-components */
import $ from 'jquery';
import React from 'react';
import ReactDOM from 'react-dom/client';
@@ -1,3 +1,4 @@
/* eslint-disable react-refresh/only-export-components */
import { diffLines } from 'diff';
import type { ProblemConfigFile, TestCaseConfig } from 'hydrooj/src/interface';
import $ from 'jquery';
+1 -6
View File
@@ -11,13 +11,8 @@ export interface Context {
}
export class Context extends cordis.Context { }
export type MainScope = cordis.MainScope<Context>;
export type EffectScope = cordis.EffectScope<Context>;
export type ForkScope = cordis.ForkScope<Context>;
export abstract class Service<T = any, C extends Context = Context> extends cordis.Service<T, C> {
[cordis.Service.setup]() {
this.ctx = new Context() as C;
}
export class Service<C extends Context = Context> extends cordis.Service<C> {
}
export const ctx = new Context();
+2 -2
View File
@@ -26,7 +26,7 @@
"@fontsource/ubuntu-mono": "^5.1.1",
"@hydrooj/utils": "workspace:^",
"@sentry/browser": "^9.1.0",
"@sentry/webpack-plugin": "^3.1.2",
"@sentry/webpack-plugin": "^3.2.0",
"@simplewebauthn/browser": "13.1.0",
"@svgr/webpack": "^8.1.0",
"@types/html-to-text": "^9.0.4",
@@ -144,7 +144,7 @@
"nunjucks": "^3.2.4",
"schemastery-jsonschema": "^1.1.0",
"streamsaver": "^2.0.6",
"uuid": "^11.0.5",
"uuid": "^11.1.0",
"xss": "^1.0.15"
}
}
@@ -1,4 +1,4 @@
import $ from 'jquery';
/* eslint-disable react-refresh/only-export-components */
import yaml from 'js-yaml';
import React from 'react';
import { HexColorInput, HexColorPicker } from 'react-colorful';
@@ -9,7 +9,7 @@ import { api, gql, loadReactRedux } from 'vj/utils';
class MessagePadService extends Service {
constructor(public store, public WebSocket: typeof import('../components/socket').default) {
super(ctx, 'messagepad', true);
super(ctx, 'messagepad');
}
}