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,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');
}
}