mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-19 17:38:19 +08:00
workspace: fix
This commit is contained in:
13 files changed
+14
-15
No files matched your search
@@ -8,7 +8,7 @@
|
|||||||
"@typescript-eslint/eslint-plugin": "^8.24.1",
|
"@typescript-eslint/eslint-plugin": "^8.24.1",
|
||||||
"@typescript-eslint/parser": "^8.24.1",
|
"@typescript-eslint/parser": "^8.24.1",
|
||||||
"eslint-config-airbnb": "^19.0.4",
|
"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-github": "^5.1.8",
|
||||||
"eslint-plugin-import": "2.31.0",
|
"eslint-plugin-import": "2.31.0",
|
||||||
"eslint-plugin-jsx-a11y": "^6.10.2",
|
"eslint-plugin-jsx-a11y": "^6.10.2",
|
||||||
|
|||||||
+1
-1
@@ -45,7 +45,7 @@
|
|||||||
"cross-spawn": "^7.0.6",
|
"cross-spawn": "^7.0.6",
|
||||||
"esbuild": "0.25.0",
|
"esbuild": "0.25.0",
|
||||||
"eslint": "^8.57.1",
|
"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",
|
"eslint-import-resolver-webpack": "^0.13.10",
|
||||||
"fs-extra": "^11.3.0",
|
"fs-extra": "^11.3.0",
|
||||||
"globby": "~14.0.2",
|
"globby": "~14.0.2",
|
||||||
|
|||||||
@@ -16,7 +16,7 @@ export interface Result {
|
|||||||
|
|
||||||
export default class GeoIPService extends Service {
|
export default class GeoIPService extends Service {
|
||||||
constructor(ctx: Context) {
|
constructor(ctx: Context) {
|
||||||
super(ctx, 'geoip', true);
|
super(ctx, 'geoip');
|
||||||
}
|
}
|
||||||
|
|
||||||
provider = '<a href="http://www.maxmind.com" target="_blank">MaxMind</a>';
|
provider = '<a href="http://www.maxmind.com" target="_blank">MaxMind</a>';
|
||||||
|
|||||||
@@ -39,7 +39,7 @@ export async function apply(ctx: Context) {
|
|||||||
await modelSystem.runConfig();
|
await modelSystem.runConfig();
|
||||||
const storage = require('../service/storage');
|
const storage = require('../service/storage');
|
||||||
await storage.loadStorageService();
|
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/worker').apply(ctx);
|
||||||
await require('../service/server').apply(ctx);
|
await require('../service/server').apply(ctx);
|
||||||
await require('../service/api').apply(ctx);
|
await require('../service/api').apply(ctx);
|
||||||
|
|||||||
@@ -46,7 +46,7 @@ export class SonicService extends Service {
|
|||||||
public error = '';
|
public error = '';
|
||||||
|
|
||||||
constructor(ctx: Context) {
|
constructor(ctx: Context) {
|
||||||
super(ctx, 'sonic', true);
|
super(ctx, 'sonic');
|
||||||
}
|
}
|
||||||
|
|
||||||
async start() {
|
async start() {
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
|
/* eslint-disable react-refresh/only-export-components */
|
||||||
import { Popover } from '@blueprintjs/core';
|
import { Popover } from '@blueprintjs/core';
|
||||||
import React from 'react';
|
import React from 'react';
|
||||||
import ReactDOM from 'react-dom/client';
|
import ReactDOM from 'react-dom/client';
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
|
/* eslint-disable react-refresh/only-export-components */
|
||||||
import 'jquery.easing';
|
import 'jquery.easing';
|
||||||
|
|
||||||
import { Popover } from '@blueprintjs/core';
|
import { Popover } from '@blueprintjs/core';
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
|
/* eslint-disable react-refresh/only-export-components */
|
||||||
import $ from 'jquery';
|
import $ from 'jquery';
|
||||||
import React from 'react';
|
import React from 'react';
|
||||||
import ReactDOM from 'react-dom/client';
|
import ReactDOM from 'react-dom/client';
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
|
/* eslint-disable react-refresh/only-export-components */
|
||||||
import { diffLines } from 'diff';
|
import { diffLines } from 'diff';
|
||||||
import type { ProblemConfigFile, TestCaseConfig } from 'hydrooj/src/interface';
|
import type { ProblemConfigFile, TestCaseConfig } from 'hydrooj/src/interface';
|
||||||
import $ from 'jquery';
|
import $ from 'jquery';
|
||||||
|
|||||||
@@ -11,13 +11,8 @@ export interface Context {
|
|||||||
}
|
}
|
||||||
|
|
||||||
export class Context extends cordis.Context { }
|
export class Context extends cordis.Context { }
|
||||||
export type MainScope = cordis.MainScope<Context>;
|
|
||||||
export type EffectScope = cordis.EffectScope<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> {
|
export class Service<C extends Context = Context> extends cordis.Service<C> {
|
||||||
[cordis.Service.setup]() {
|
|
||||||
this.ctx = new Context() as C;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
export const ctx = new Context();
|
export const ctx = new Context();
|
||||||
@@ -26,7 +26,7 @@
|
|||||||
"@fontsource/ubuntu-mono": "^5.1.1",
|
"@fontsource/ubuntu-mono": "^5.1.1",
|
||||||
"@hydrooj/utils": "workspace:^",
|
"@hydrooj/utils": "workspace:^",
|
||||||
"@sentry/browser": "^9.1.0",
|
"@sentry/browser": "^9.1.0",
|
||||||
"@sentry/webpack-plugin": "^3.1.2",
|
"@sentry/webpack-plugin": "^3.2.0",
|
||||||
"@simplewebauthn/browser": "13.1.0",
|
"@simplewebauthn/browser": "13.1.0",
|
||||||
"@svgr/webpack": "^8.1.0",
|
"@svgr/webpack": "^8.1.0",
|
||||||
"@types/html-to-text": "^9.0.4",
|
"@types/html-to-text": "^9.0.4",
|
||||||
@@ -144,7 +144,7 @@
|
|||||||
"nunjucks": "^3.2.4",
|
"nunjucks": "^3.2.4",
|
||||||
"schemastery-jsonschema": "^1.1.0",
|
"schemastery-jsonschema": "^1.1.0",
|
||||||
"streamsaver": "^2.0.6",
|
"streamsaver": "^2.0.6",
|
||||||
"uuid": "^11.0.5",
|
"uuid": "^11.1.0",
|
||||||
"xss": "^1.0.15"
|
"xss": "^1.0.15"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -1,4 +1,4 @@
|
|||||||
import $ from 'jquery';
|
/* eslint-disable react-refresh/only-export-components */
|
||||||
import yaml from 'js-yaml';
|
import yaml from 'js-yaml';
|
||||||
import React from 'react';
|
import React from 'react';
|
||||||
import { HexColorInput, HexColorPicker } from 'react-colorful';
|
import { HexColorInput, HexColorPicker } from 'react-colorful';
|
||||||
|
|||||||
@@ -9,7 +9,7 @@ import { api, gql, loadReactRedux } from 'vj/utils';
|
|||||||
|
|
||||||
class MessagePadService extends Service {
|
class MessagePadService extends Service {
|
||||||
constructor(public store, public WebSocket: typeof import('../components/socket').default) {
|
constructor(public store, public WebSocket: typeof import('../components/socket').default) {
|
||||||
super(ctx, 'messagepad', true);
|
super(ctx, 'messagepad');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user