mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 01:38:19 +08:00
upgrade deps
This commit is contained in:
17 files changed
+52
-72
No files matched your search
+7
-2
@@ -54,6 +54,11 @@ const configFlat = (name) => ({
|
|||||||
...compilerOptionsBase,
|
...compilerOptionsBase,
|
||||||
outDir: path.join(baseOutDir, name),
|
outDir: path.join(baseOutDir, name),
|
||||||
rootDir: '.',
|
rootDir: '.',
|
||||||
|
paths: {
|
||||||
|
'vj/*': [
|
||||||
|
'../../packages/ui-default/*',
|
||||||
|
],
|
||||||
|
},
|
||||||
},
|
},
|
||||||
include: ['**/*.ts'],
|
include: ['**/*.ts'],
|
||||||
exclude: ['public', 'frontend'],
|
exclude: ['public', 'frontend'],
|
||||||
@@ -130,8 +135,8 @@ for (const package of modules) {
|
|||||||
if (!fs.statSync(path.resolve(basedir, 'src', file)).isFile()) continue;
|
if (!fs.statSync(path.resolve(basedir, 'src', file)).isFile()) continue;
|
||||||
const name = file.split('.')[0];
|
const name = file.split('.')[0];
|
||||||
const filePath = path.resolve(basedir, `${name}.js`);
|
const filePath = path.resolve(basedir, `${name}.js`);
|
||||||
if (['handler', 'service', 'lib', 'model', 'script', 'index'].includes(name)) {
|
if (name === 'index' && !fs.existsSync(filePath)) {
|
||||||
if (!fs.existsSync(filePath)) fs.writeFileSync(filePath, `module.exports = require('./src/${name}');\n`);
|
fs.writeFileSync(filePath, 'module.exports = require("./src/index");\n');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
+6
-6
@@ -37,11 +37,11 @@
|
|||||||
"@types/chai": "^4.3.11",
|
"@types/chai": "^4.3.11",
|
||||||
"@types/cross-spawn": "^6.0.6",
|
"@types/cross-spawn": "^6.0.6",
|
||||||
"@types/node": "20.10.6",
|
"@types/node": "20.10.6",
|
||||||
"@types/semver": "^7.5.6",
|
"@types/semver": "^7.5.7",
|
||||||
"autocannon": "^7.14.0",
|
"autocannon": "^7.15.0",
|
||||||
"cac": "^6.7.14",
|
"cac": "^6.7.14",
|
||||||
"chai": "^5.0.3",
|
"chai": "^5.1.0",
|
||||||
"chokidar": "^3.5.3",
|
"chokidar": "^3.6.0",
|
||||||
"cross-env": "^7.0.3",
|
"cross-env": "^7.0.3",
|
||||||
"cross-spawn": "^7.0.3",
|
"cross-spawn": "^7.0.3",
|
||||||
"esbuild": "0.18.20",
|
"esbuild": "0.18.20",
|
||||||
@@ -49,13 +49,13 @@
|
|||||||
"eslint-import-resolver-typescript": "^3.6.1",
|
"eslint-import-resolver-typescript": "^3.6.1",
|
||||||
"eslint-import-resolver-webpack": "^0.13.8",
|
"eslint-import-resolver-webpack": "^0.13.8",
|
||||||
"fs-extra": "^11.2.0",
|
"fs-extra": "^11.2.0",
|
||||||
"globby": "14.0.0",
|
"globby": "^14.0.1",
|
||||||
"inspectpack": "^4.7.1",
|
"inspectpack": "^4.7.1",
|
||||||
"mongodb-memory-server": "^9.1.6",
|
"mongodb-memory-server": "^9.1.6",
|
||||||
"nyc": "^15.1.0",
|
"nyc": "^15.1.0",
|
||||||
"ora": "^8.0.1",
|
"ora": "^8.0.1",
|
||||||
"package-json": "^9.0.0",
|
"package-json": "^9.0.0",
|
||||||
"semver": "^7.5.4",
|
"semver": "^7.6.0",
|
||||||
"simple-git": "^3.22.0",
|
"simple-git": "^3.22.0",
|
||||||
"supertest": "^6.3.4",
|
"supertest": "^6.3.4",
|
||||||
"typescript": "^5.3.3",
|
"typescript": "^5.3.3",
|
||||||
|
|||||||
@@ -11,6 +11,6 @@
|
|||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"crypto-js": "^4.2.0",
|
"crypto-js": "^4.2.0",
|
||||||
"semver": "^7.5.4"
|
"semver": "^7.6.0"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -6,6 +6,6 @@
|
|||||||
"author": "undefined <i@undefined.moe>",
|
"author": "undefined <i@undefined.moe>",
|
||||||
"license": "AGPL-3.0-or-later",
|
"license": "AGPL-3.0-or-later",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@elastic/elasticsearch": "^8.11.0"
|
"@elastic/elasticsearch": "^8.12.1"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -4,9 +4,9 @@
|
|||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"main": "react.yaml",
|
"main": "react.yaml",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@stylistic/eslint-plugin": "^1.5.4",
|
"@stylistic/eslint-plugin": "^1.6.2",
|
||||||
"@typescript-eslint/eslint-plugin": "^6.19.1",
|
"@typescript-eslint/eslint-plugin": "^7.0.2",
|
||||||
"@typescript-eslint/parser": "^6.19.1",
|
"@typescript-eslint/parser": "^7.0.2",
|
||||||
"eslint-config-airbnb": "^19.0.4",
|
"eslint-config-airbnb": "^19.0.4",
|
||||||
"eslint-config-airbnb-typescript": "^17.1.0",
|
"eslint-config-airbnb-typescript": "^17.1.0",
|
||||||
"eslint-plugin-github": "^4.10.1",
|
"eslint-plugin-github": "^4.10.1",
|
||||||
@@ -14,7 +14,7 @@
|
|||||||
"eslint-plugin-jsx-a11y": "^6.8.0",
|
"eslint-plugin-jsx-a11y": "^6.8.0",
|
||||||
"eslint-plugin-react": "^7.33.2",
|
"eslint-plugin-react": "^7.33.2",
|
||||||
"eslint-plugin-react-hooks": "^4.6.0",
|
"eslint-plugin-react-hooks": "^4.6.0",
|
||||||
"eslint-plugin-simple-import-sort": "10.0.0"
|
"eslint-plugin-simple-import-sort": "^12.0.0"
|
||||||
},
|
},
|
||||||
"peerDependencies": {
|
"peerDependencies": {
|
||||||
"eslint": ">= 8"
|
"eslint": ">= 8"
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
"name": "@hydrooj/hydrojudge",
|
"name": "@hydrooj/hydrojudge",
|
||||||
"bin": "bin/hydrojudge.js",
|
"bin": "bin/hydrojudge.js",
|
||||||
"version": "3.3.2",
|
"version": "3.3.2",
|
||||||
"main": "package.json",
|
"main": "./src/index.ts",
|
||||||
"author": "undefined <i@undefined.moe>",
|
"author": "undefined <i@undefined.moe>",
|
||||||
"repository": "https://github.com/hydro-dev/Hydro.git",
|
"repository": "https://github.com/hydro-dev/Hydro.git",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
@@ -10,7 +10,7 @@
|
|||||||
"cac": "^6.7.14",
|
"cac": "^6.7.14",
|
||||||
"p-queue": "^8.0.1",
|
"p-queue": "^8.0.1",
|
||||||
"schemastery": "^3.14.3",
|
"schemastery": "^3.14.3",
|
||||||
"semver": "^7.5.4",
|
"semver": "^7.6.0",
|
||||||
"shell-quote": "^1.8.1",
|
"shell-quote": "^1.8.1",
|
||||||
"superagent": "^8.1.2",
|
"superagent": "^8.1.2",
|
||||||
"ws": "^8.16.0"
|
"ws": "^8.16.0"
|
||||||
|
|||||||
@@ -1 +0,0 @@
|
|||||||
module.exports = require('./src/service');
|
|
||||||
File renamed without changes.
@@ -12,10 +12,10 @@
|
|||||||
},
|
},
|
||||||
"preferUnplugged": true,
|
"preferUnplugged": true,
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@aws-sdk/client-s3": "3.501.0",
|
"@aws-sdk/client-s3": "3.515.0",
|
||||||
"@aws-sdk/lib-storage": "3.501.0",
|
"@aws-sdk/lib-storage": "3.515.0",
|
||||||
"@aws-sdk/s3-presigned-post": "3.501.0",
|
"@aws-sdk/s3-presigned-post": "3.515.0",
|
||||||
"@aws-sdk/s3-request-presigner": "3.501.0",
|
"@aws-sdk/s3-request-presigner": "3.515.0",
|
||||||
"@graphql-tools/schema": "^10.0.2",
|
"@graphql-tools/schema": "^10.0.2",
|
||||||
"@hydrooj/utils": "workspace:*",
|
"@hydrooj/utils": "workspace:*",
|
||||||
"@simplewebauthn/server": "7.4.0",
|
"@simplewebauthn/server": "7.4.0",
|
||||||
@@ -39,17 +39,17 @@
|
|||||||
"lodash": "^4.17.21",
|
"lodash": "^4.17.21",
|
||||||
"lru-cache": "^10.2.0",
|
"lru-cache": "^10.2.0",
|
||||||
"mime-types": "^2.1.35",
|
"mime-types": "^2.1.35",
|
||||||
"moment-timezone": "^0.5.44",
|
"moment-timezone": "^0.5.45",
|
||||||
"mongodb": "^5.9.2",
|
"mongodb": "^5.9.2",
|
||||||
"nanoid": "^5.0.4",
|
"nanoid": "^5.0.6",
|
||||||
"nodemailer": "^6.9.8",
|
"nodemailer": "^6.9.10",
|
||||||
"notp": "^2.0.3",
|
"notp": "^2.0.3",
|
||||||
"p-queue": "^8.0.1",
|
"p-queue": "^8.0.1",
|
||||||
"path-to-regexp": "^6.2.1",
|
"path-to-regexp": "^6.2.1",
|
||||||
"sanitize-filename": "^1.6.3",
|
"sanitize-filename": "^1.6.3",
|
||||||
"saslprep": "^1.0.3",
|
"saslprep": "^1.0.3",
|
||||||
"schemastery": "^3.14.3",
|
"schemastery": "^3.14.3",
|
||||||
"semver": "^7.5.4",
|
"semver": "^7.6.0",
|
||||||
"shorty.js": "^1.0.1",
|
"shorty.js": "^1.0.1",
|
||||||
"superagent": "^8.1.2",
|
"superagent": "^8.1.2",
|
||||||
"tar": "^6.2.0",
|
"tar": "^6.2.0",
|
||||||
@@ -69,7 +69,7 @@
|
|||||||
"@types/nodemailer": "^6.4.14",
|
"@types/nodemailer": "^6.4.14",
|
||||||
"@types/notp": "^2.0.5",
|
"@types/notp": "^2.0.5",
|
||||||
"@types/saslprep": "^1.0.3",
|
"@types/saslprep": "^1.0.3",
|
||||||
"@types/semver": "^7.5.6",
|
"@types/semver": "^7.5.7",
|
||||||
"@types/superagent": "^8.1.3",
|
"@types/superagent": "^8.1.3",
|
||||||
"@types/tar": "^6.1.11",
|
"@types/tar": "^6.1.11",
|
||||||
"moment": "^2.30.1"
|
"moment": "^2.30.1"
|
||||||
|
|||||||
@@ -27,11 +27,11 @@ async function runWebpack({
|
|||||||
hot: true,
|
hot: true,
|
||||||
server: https ? 'https' : 'http',
|
server: https ? 'https' : 'http',
|
||||||
allowedHosts: 'all',
|
allowedHosts: 'all',
|
||||||
proxy: {
|
proxy: [{
|
||||||
context: (p) => p !== '/ws',
|
context: (p) => p !== '/ws',
|
||||||
target: 'http://localhost:2333',
|
target: 'http://localhost:2333',
|
||||||
ws: true,
|
ws: true,
|
||||||
},
|
}],
|
||||||
client: {
|
client: {
|
||||||
webSocketURL: 'auto://0.0.0.0:0/ws',
|
webSocketURL: 'auto://0.0.0.0:0/ws',
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -23,7 +23,7 @@ function monitorResource(resource) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
class DOMAttachedObject {
|
export default class DOMAttachedObject {
|
||||||
static uniqueIdCounter = 0;
|
static uniqueIdCounter = 0;
|
||||||
static DOMAttachKey: string;
|
static DOMAttachKey: string;
|
||||||
static DOMAttachSelector: string;
|
static DOMAttachSelector: string;
|
||||||
@@ -127,5 +127,3 @@ class DOMAttachedObject {
|
|||||||
if (monitorDetach) monitorResource(this);
|
if (monitorDetach) monitorResource(this);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
export default DOMAttachedObject as typeof DOMAttachedObject & DOMAttachedObject;
|
|
||||||
+2
-1
@@ -1,7 +1,8 @@
|
|||||||
import classNames from 'classnames';
|
import classNames from 'classnames';
|
||||||
import PropTypes from 'prop-types';
|
import PropTypes from 'prop-types';
|
||||||
|
import React from 'react';
|
||||||
|
|
||||||
export default function IconComponent(props) {
|
export default function IconComponent(props: { name: string, className?: string } & React.HTMLAttributes<HTMLSpanElement>) {
|
||||||
const {
|
const {
|
||||||
name,
|
name,
|
||||||
className,
|
className,
|
||||||
@@ -1,23 +0,0 @@
|
|||||||
{
|
|
||||||
"exclude": [
|
|
||||||
"./public",
|
|
||||||
],
|
|
||||||
"compilerOptions": {
|
|
||||||
"resolveJsonModule": true,
|
|
||||||
"jsx": "react",
|
|
||||||
"allowSyntheticDefaultImports": true,
|
|
||||||
"target": "ESNext",
|
|
||||||
"experimentalDecorators": true,
|
|
||||||
"baseUrl": ".",
|
|
||||||
"module": "ESNext",
|
|
||||||
"lib": [
|
|
||||||
"ES2020"
|
|
||||||
],
|
|
||||||
"moduleResolution": "node",
|
|
||||||
"paths": {
|
|
||||||
"vj/*": [
|
|
||||||
"./*"
|
|
||||||
]
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -14,7 +14,7 @@
|
|||||||
"cli": false
|
"cli": false
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@blueprintjs/core": "^5.8.2",
|
"@blueprintjs/core": "^5.9.1",
|
||||||
"@fontsource/dm-mono": "^5.0.18",
|
"@fontsource/dm-mono": "^5.0.18",
|
||||||
"@fontsource/fira-code": "^5.0.16",
|
"@fontsource/fira-code": "^5.0.16",
|
||||||
"@fontsource/inconsolata": "^5.0.16",
|
"@fontsource/inconsolata": "^5.0.16",
|
||||||
@@ -34,8 +34,8 @@
|
|||||||
"@types/nunjucks": "^3.2.6",
|
"@types/nunjucks": "^3.2.6",
|
||||||
"@types/pickadate": "^3.5.35",
|
"@types/pickadate": "^3.5.35",
|
||||||
"@types/qrcode": "^1.5.5",
|
"@types/qrcode": "^1.5.5",
|
||||||
"@types/react": "^18.2.48",
|
"@types/react": "^18.2.57",
|
||||||
"@types/react-dom": "^18.2.18",
|
"@types/react-dom": "^18.2.19",
|
||||||
"@types/redux-logger": "^3.0.13",
|
"@types/redux-logger": "^3.0.13",
|
||||||
"@types/webpack-env": "^1.18.4",
|
"@types/webpack-env": "^1.18.4",
|
||||||
"@vscode/codicons": "^0.0.35",
|
"@vscode/codicons": "^0.0.35",
|
||||||
@@ -49,10 +49,10 @@
|
|||||||
"clipboard": "^2.0.11",
|
"clipboard": "^2.0.11",
|
||||||
"copy-webpack-plugin": "^12.0.2",
|
"copy-webpack-plugin": "^12.0.2",
|
||||||
"cordis": "2.8.8",
|
"cordis": "2.8.8",
|
||||||
"css-loader": "^6.9.1",
|
"css-loader": "^6.10.0",
|
||||||
"diff": "^5.1.0",
|
"diff": "^5.2.0",
|
||||||
"diff-dom": "^5.1.2",
|
"diff-dom": "^5.1.2",
|
||||||
"echarts": "^5.4.3",
|
"echarts": "^5.5.0",
|
||||||
"emojis-keywords": "2.0.0",
|
"emojis-keywords": "2.0.0",
|
||||||
"emojis-list": "2.1.0",
|
"emojis-list": "2.1.0",
|
||||||
"esbuild-loader": "^2.21.0",
|
"esbuild-loader": "^2.21.0",
|
||||||
@@ -69,14 +69,14 @@
|
|||||||
"jquery.easing": "^1.4.1",
|
"jquery.easing": "^1.4.1",
|
||||||
"jquery.transit": "^0.9.12",
|
"jquery.transit": "^0.9.12",
|
||||||
"matchmedia-polyfill": "^0.3.2",
|
"matchmedia-polyfill": "^0.3.2",
|
||||||
"mini-css-extract-plugin": "^2.7.7",
|
"mini-css-extract-plugin": "^2.8.0",
|
||||||
"moment": "^2.30.1",
|
"moment": "^2.30.1",
|
||||||
"monaco-editor": "0.45.0",
|
"monaco-editor": "0.46.0",
|
||||||
"monaco-editor-nls": "^3.1.0",
|
"monaco-editor-nls": "^3.1.0",
|
||||||
"monaco-editor-webpack-plugin": "^7.1.0",
|
"monaco-editor-webpack-plugin": "^7.1.0",
|
||||||
"monaco-themes": "^0.4.4",
|
"monaco-themes": "^0.4.4",
|
||||||
"monaco-yaml": "^5.1.1",
|
"monaco-yaml": "^5.1.1",
|
||||||
"nanoid": "^5.0.4",
|
"nanoid": "^5.0.6",
|
||||||
"normalize.css": "^8.0.1",
|
"normalize.css": "^8.0.1",
|
||||||
"nprogress": "^0.2.0",
|
"nprogress": "^0.2.0",
|
||||||
"p-queue": "^8.0.1",
|
"p-queue": "^8.0.1",
|
||||||
@@ -115,14 +115,14 @@
|
|||||||
"timeago-react": "^3.0.6",
|
"timeago-react": "^3.0.6",
|
||||||
"timeago.js": "^4.0.2",
|
"timeago.js": "^4.0.2",
|
||||||
"ts-loader": "^9.5.1",
|
"ts-loader": "^9.5.1",
|
||||||
"vditor": "^3.9.8",
|
"vditor": "^3.9.9",
|
||||||
"vinyl-buffer": "^1.0.1",
|
"vinyl-buffer": "^1.0.1",
|
||||||
"web-streams-polyfill": "^3.3.2",
|
"web-streams-polyfill": "^3.3.3",
|
||||||
"webpack": "^5.90.0",
|
"webpack": "^5.90.3",
|
||||||
"webpack-bundle-analyzer": "^4.10.1",
|
"webpack-bundle-analyzer": "^4.10.1",
|
||||||
"webpack-dev-server": "^4.15.1",
|
"webpack-dev-server": "^5.0.2",
|
||||||
"webpack-manifest-plugin": "^5.0.0",
|
"webpack-manifest-plugin": "^5.0.0",
|
||||||
"webpackbar": "^6.0.0"
|
"webpackbar": "^6.0.1"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"ansi_up": "^6.0.2",
|
"ansi_up": "^6.0.2",
|
||||||
|
|||||||
@@ -12,11 +12,11 @@
|
|||||||
"cac": "^6.7.14",
|
"cac": "^6.7.14",
|
||||||
"fs-extra": "^11.2.0",
|
"fs-extra": "^11.2.0",
|
||||||
"js-yaml": "^4.1.0",
|
"js-yaml": "^4.1.0",
|
||||||
"moment-timezone": "^0.5.44",
|
"moment-timezone": "^0.5.45",
|
||||||
"mongodb": "^5.9.2",
|
"mongodb": "^5.9.2",
|
||||||
"reggol": "^1.6.3",
|
"reggol": "^1.6.3",
|
||||||
"search-query-parser": "^1.6.0",
|
"search-query-parser": "^1.6.0",
|
||||||
"systeminformation": "^5.21.24"
|
"systeminformation": "^5.22.0"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@types/fs-extra": "^11.0.4"
|
"@types/fs-extra": "^11.0.4"
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
"name": "@hydrooj/vjudge",
|
"name": "@hydrooj/vjudge",
|
||||||
"version": "1.9.3",
|
"version": "1.9.3",
|
||||||
"description": "Submit problems to remote oj",
|
"description": "Submit problems to remote oj",
|
||||||
"main": "src/model.ts",
|
"main": "./src/index.ts",
|
||||||
"repository": "https://github.com/hydro-dev/Hydro.git",
|
"repository": "https://github.com/hydro-dev/Hydro.git",
|
||||||
"author": "undefined",
|
"author": "undefined",
|
||||||
"license": "AGPL-3.0-or-later",
|
"license": "AGPL-3.0-or-later",
|
||||||
|
|||||||
File renamed without changes.
Reference in new issue
Block a user