ci: fix build [skip-cache]

pull/588/head
undefined 1 year ago
parent 38a72d1b5b
commit 1b5f8a5493
No known key found for this signature in database

@ -68,8 +68,8 @@
"stylus-loader": "^7.1.2", "stylus-loader": "^7.1.2",
"supertest": "^6.3.3", "supertest": "^6.3.3",
"ts-loader": "^9.4.3", "ts-loader": "^9.4.3",
"typescript": "^5.1.3", "typescript": "5.0.2",
"webpack": "^5.85.1", "webpack": "^5.86.0",
"webpack-bundle-analyzer": "^4.9.0", "webpack-bundle-analyzer": "^4.9.0",
"webpack-dev-server": "^4.15.0", "webpack-dev-server": "^4.15.0",
"webpack-manifest-plugin": "^5.0.0", "webpack-manifest-plugin": "^5.0.0",
@ -78,6 +78,7 @@
}, },
"resolutions": { "resolutions": {
"@types/node": "18.16.1", "@types/node": "18.16.1",
"@types/react": "18.2.8",
"prettier": "npm:not-installable-package@1.0.0" "prettier": "npm:not-installable-package@1.0.0"
} }
} }

@ -28,7 +28,7 @@
"emojis-list": "2.1.0", "emojis-list": "2.1.0",
"fs-extra": "^11.1.1", "fs-extra": "^11.1.1",
"graphql": "^16.6.0", "graphql": "^16.6.0",
"graphql-scalars": "1.22.1", "graphql-scalars": "^1.22.2",
"js-yaml": "^4.1.0", "js-yaml": "^4.1.0",
"koa": "^2.14.2", "koa": "^2.14.2",
"koa-body": "^6.0.1", "koa-body": "^6.0.1",
@ -60,7 +60,7 @@
"@types/adm-zip": "^0.4.34", "@types/adm-zip": "^0.4.34",
"@types/fs-extra": "^11.0.1", "@types/fs-extra": "^11.0.1",
"@types/js-yaml": "^4.0.5", "@types/js-yaml": "^4.0.5",
"@types/koa": "2.13.5", "@types/koa": "^2.13.6",
"@types/koa-compress": "^4.0.3", "@types/koa-compress": "^4.0.3",
"@types/koa-router": "^7.4.4", "@types/koa-router": "^7.4.4",
"@types/koa-static-cache": "^5.1.1", "@types/koa-static-cache": "^5.1.1",

@ -80,7 +80,7 @@ async function get(ctx: Context) {
async function post(ctx: Context) { async function post(ctx: Context) {
const { const {
host, port, name, username, password, host, port, name, username, password,
} = ctx.request.body; } = (ctx.request as any).body;
let mongourl = 'mongodb://'; let mongourl = 'mongodb://';
if (username) mongourl += `${username}:${password}@`; if (username) mongourl += `${username}:${password}@`;
mongourl += `${host}:${port}/${name}`; mongourl += `${host}:${port}/${name}`;

@ -2,6 +2,7 @@ import http from 'http';
import { tmpdir } from 'os'; import { tmpdir } from 'os';
import { join, resolve } from 'path'; import { join, resolve } from 'path';
import cac from 'cac'; import cac from 'cac';
import type { Files } from 'formidable';
import fs from 'fs-extra'; import fs from 'fs-extra';
import Koa from 'koa'; import Koa from 'koa';
import Body from 'koa-body'; import Body from 'koa-body';
@ -83,6 +84,7 @@ interface HydroContext {
export interface KoaContext extends Koa.Context { export interface KoaContext extends Koa.Context {
HydroContext: HydroContext; HydroContext: HydroContext;
handler: any; handler: any;
request: Koa.Request & { body: any, files: Files };
session: Record<string, any>; session: Record<string, any>;
render: (name: string, args: any) => Promise<void>; render: (name: string, args: any) => Promise<void>;
renderHTML: (name: string, args: any) => Promise<string>; renderHTML: (name: string, args: any) => Promise<string>;

@ -11,7 +11,7 @@ setDiagnosticsOptions({
{ {
uri: 'https://hydro.js.org/schema/problemConfig.json', uri: 'https://hydro.js.org/schema/problemConfig.json',
fileMatch: ['hydro://problem/file/config.yaml'], fileMatch: ['hydro://problem/file/config.yaml'],
schema: problemConfigSchema, schema: problemConfigSchema as any,
}, },
{ {
uri: new URL('/manage/config/schema.json', window.location.href).toString(), uri: new URL('/manage/config/schema.json', window.location.href).toString(),

Loading…
Cancel
Save