mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-17 09:36:08 +08:00
upgrade deps
This commit is contained in:
13 files changed
+46
-46
No files matched your search
+1
-2
@@ -70,8 +70,7 @@ for (const name of ['plugins', 'modules']) {
|
||||
if (!fs.existsSync(path.resolve(process.cwd(), name))) {
|
||||
fs.mkdirSync(path.resolve(process.cwd(), name));
|
||||
}
|
||||
// Write an empty file to make eslint happy
|
||||
fs.writeFileSync(path.resolve(process.cwd(), name, 'nop.ts'), 'export default {};\n');
|
||||
fs.writeFileSync(path.resolve(process.cwd(), name, 'nop.ts'), 'export default {};\n// For prettier\nexport const format = (a: any) => a;\n');
|
||||
fs.writeFileSync(
|
||||
path.resolve(process.cwd(), name, 'vue-types.d.ts'),
|
||||
'declare module "*.vue" {\n const content: any;\n export default content;\n}\n',
|
||||
|
||||
@@ -6,10 +6,10 @@
|
||||
"repository": "https://github.com/hydro-dev/Hydro",
|
||||
"dependencies": {
|
||||
"@antfu/eslint-config": "^9.5.1",
|
||||
"@eslint-react/eslint-plugin": "^5.24.0",
|
||||
"@typescript-eslint/eslint-plugin": "^8.71.0",
|
||||
"@typescript-eslint/parser": "^8.71.0",
|
||||
"eslint-plugin-de-morgan": "^2.2.0",
|
||||
"@eslint-react/eslint-plugin": "^5.26.5",
|
||||
"@typescript-eslint/eslint-plugin": "^8.71.2",
|
||||
"@typescript-eslint/parser": "^8.71.2",
|
||||
"eslint-plugin-de-morgan": "^2.2.1",
|
||||
"eslint-plugin-github": "^6.1.2",
|
||||
"eslint-plugin-react-hooks": "^7.1.1",
|
||||
"eslint-plugin-react-refresh": "^0.5.7",
|
||||
|
||||
@@ -10,7 +10,7 @@
|
||||
"dependencies": {
|
||||
"@hydrooj/utils": "workspace:^",
|
||||
"@koa/router": "^15.7.0",
|
||||
"@mongodb-js/saslprep": "^1.5.5",
|
||||
"@mongodb-js/saslprep": "^1.6.0",
|
||||
"emoji-regex": "^11.0.0",
|
||||
"fs-extra": "^11.4.1",
|
||||
"koa": "^3.2.1",
|
||||
@@ -26,7 +26,7 @@
|
||||
"@types/fs-extra": "^11.0.4",
|
||||
"@types/koa": "^3.0.3",
|
||||
"@types/koa-compress": "^4.0.7",
|
||||
"@types/koa__router": "^12.0.5",
|
||||
"@types/koa__router": "^15.0.0",
|
||||
"@types/ws": "^8.18.2"
|
||||
}
|
||||
}
|
||||
@@ -14,9 +14,9 @@
|
||||
},
|
||||
"dependencies": {
|
||||
"@hydrooj/register": "workspace:^",
|
||||
"cac": "^7.0.0",
|
||||
"cac": "^7.1.0",
|
||||
"fs-extra": "^11.4.1",
|
||||
"js-yaml": "^5.4.2",
|
||||
"js-yaml": "^5.4.3",
|
||||
"reggol": "^2.1.0",
|
||||
"search-query-parser": "^1.6.0",
|
||||
"systeminformation": "^5.33.15"
|
||||
|
||||
+2
-2
@@ -40,7 +40,7 @@
|
||||
"@types/node": "24.13.3",
|
||||
"@types/semver": "^7.8.0",
|
||||
"autocannon": "^8.0.0",
|
||||
"cac": "^7.0.0",
|
||||
"cac": "^7.1.0",
|
||||
"chai": "^6.3.0",
|
||||
"cross-env": "^10.1.0",
|
||||
"cross-spawn": "^7.0.6",
|
||||
@@ -55,7 +55,7 @@
|
||||
"mongodb-memory-server": "11.0.1",
|
||||
"nyc": "^18.0.0",
|
||||
"ora": "^9.4.1",
|
||||
"oxlint": "^1.86.0",
|
||||
"oxlint": "^1.88.0",
|
||||
"package-json": "^10.0.1",
|
||||
"semver": "^7.8.5",
|
||||
"simple-git": "^4.0.2",
|
||||
|
||||
@@ -8,9 +8,9 @@
|
||||
"*.css"
|
||||
],
|
||||
"dependencies": {
|
||||
"allotment": "^1.20.5",
|
||||
"allotment": "^1.20.6",
|
||||
"diff": "^9.0.0",
|
||||
"js-yaml": "^5.4.2",
|
||||
"js-yaml": "^5.4.3",
|
||||
"lodash": "^4.18.1",
|
||||
"react-dnd": "^16.0.1",
|
||||
"react-dnd-html5-backend": "^16.0.1",
|
||||
@@ -20,7 +20,7 @@
|
||||
"devDependencies": {
|
||||
"@types/diff": "^8.0.0",
|
||||
"@types/js-yaml": "^4.0.9",
|
||||
"@types/lodash": "^4.17.25",
|
||||
"@types/lodash": "^4.17.26",
|
||||
"sass": "^1.105.1"
|
||||
},
|
||||
"peerDependencies": {
|
||||
|
||||
@@ -9,11 +9,11 @@
|
||||
"@hydrooj/common": "workspace:^",
|
||||
"@hydrooj/utils": "workspace:^",
|
||||
"@opentelemetry/api": "^1.9.1",
|
||||
"@opentelemetry/exporter-trace-otlp-http": "^0.222.0",
|
||||
"@opentelemetry/sdk-node": "^0.222.0",
|
||||
"@opentelemetry/exporter-trace-otlp-http": "^0.223.0",
|
||||
"@opentelemetry/sdk-node": "^0.223.0",
|
||||
"@zip.js/zip.js": "^2.23.0",
|
||||
"cac": "^7.0.0",
|
||||
"p-queue": "^9.3.3",
|
||||
"cac": "^7.1.0",
|
||||
"p-queue": "^9.3.5",
|
||||
"schemastery": "^3.18.0",
|
||||
"semver": "^7.8.5",
|
||||
"shell-quote": "^1.12.0",
|
||||
|
||||
@@ -21,19 +21,19 @@
|
||||
"@hydrooj/common": "workspace:^",
|
||||
"@hydrooj/framework": "workspace:^",
|
||||
"@hydrooj/utils": "workspace:^",
|
||||
"@mongodb-js/saslprep": "^1.5.5",
|
||||
"@mongodb-js/saslprep": "^1.6.0",
|
||||
"@simplewebauthn/server": "13.2.2",
|
||||
"@undefined-moe/require-resolve-hook": "^1.1.0",
|
||||
"@zip.js/zip.js": "^2.23.0",
|
||||
"adm-zip": "0.5.16",
|
||||
"cac": "^7.0.0",
|
||||
"cac": "^7.1.0",
|
||||
"cordis": "4.0.0-rc.10",
|
||||
"csv-stringify": "^6.9.0",
|
||||
"emoji-regex": "^11.0.0",
|
||||
"emojis-list": "2.1.0",
|
||||
"fs-extra": "^11.4.1",
|
||||
"js-yaml": "^5.4.2",
|
||||
"koa-proxies": "^0.12.4",
|
||||
"js-yaml": "^5.4.3",
|
||||
"koa-proxies": "^0.12.6",
|
||||
"koa-static-cache": "^5.1.4",
|
||||
"lodash": "^4.18.1",
|
||||
"lru-cache": "^11.5.3",
|
||||
@@ -41,10 +41,10 @@
|
||||
"moment-timezone": "^0.6.5",
|
||||
"mongodb": "^7.7.0",
|
||||
"mongodb-uri": "^0.9.7",
|
||||
"nanoid": "^6.0.1",
|
||||
"nodemailer": "^10.0.14",
|
||||
"nanoid": "^6.0.2",
|
||||
"nodemailer": "^10.1.0",
|
||||
"otpauth": "^9.5.2",
|
||||
"p-queue": "^9.3.3",
|
||||
"p-queue": "^9.3.5",
|
||||
"sanitize-filename": "^1.6.4",
|
||||
"schemastery": "^3.18.0",
|
||||
"semver": "^7.8.5",
|
||||
@@ -61,7 +61,7 @@
|
||||
"@types/fs-extra": "^11.0.4",
|
||||
"@types/js-yaml": "^4.0.9",
|
||||
"@types/koa-static-cache": "^5.1.4",
|
||||
"@types/lodash": "^4.17.25",
|
||||
"@types/lodash": "^4.17.26",
|
||||
"@types/mime-types": "^3.0.1",
|
||||
"@types/mongodb-uri": "^0.9.4",
|
||||
"@types/nodemailer": "^8.0.2",
|
||||
|
||||
@@ -291,6 +291,7 @@ export default async function (env: { watch?: boolean, production?: boolean, mea
|
||||
}),
|
||||
new ExtractCssPlugin({
|
||||
filename: `[name]-${version}.css?[fullhash:6]`,
|
||||
ignoreOrder: true,
|
||||
}),
|
||||
new WebpackManifestPlugin({}),
|
||||
new webpack.IgnorePlugin({ resourceRegExp: /(^\.\/locale$)/ }),
|
||||
|
||||
@@ -6,18 +6,18 @@ import { forwardRef } from 'react';
|
||||
import { api } from 'vj/utils';
|
||||
|
||||
const cache = {};
|
||||
let pending = [];
|
||||
const pending = new Set<string>();
|
||||
let callbacks = [];
|
||||
const dispatch = _.debounce(async () => {
|
||||
const targets = pending;
|
||||
pending = [];
|
||||
const targets = Array.from(pending);
|
||||
pending.clear();
|
||||
const users = await api('users', { auto: targets }, ['_id', 'uname', 'displayName']);
|
||||
for (const user of users) cache[user._id] = user;
|
||||
for (const callback of callbacks) callback();
|
||||
callbacks = [];
|
||||
}, 300);
|
||||
const loadUsers = async (ids: string[]) => {
|
||||
pending.push(...ids);
|
||||
for (const id of ids) pending.add(id);
|
||||
dispatch();
|
||||
await new Promise((resolve) => callbacks.push(resolve));
|
||||
return ids.map((id) => cache[id]);
|
||||
|
||||
@@ -42,7 +42,7 @@ export default class Editor extends DOMAttachedObject {
|
||||
const {
|
||||
onChange, language = 'markdown',
|
||||
theme = `vs-${getTheme()}`,
|
||||
model = `file://model-${Math.random().toString(16)}`,
|
||||
model = `file://model-${Math.random().toString(16).slice(2)}.${language}`,
|
||||
autoResize = true, autoLayout = true,
|
||||
hide = [], lineNumbers = 'on',
|
||||
} = this.options;
|
||||
|
||||
@@ -17,14 +17,14 @@
|
||||
"@fontsource/jetbrains-mono": "^5.3.0",
|
||||
"@fontsource/pt-mono": "^5.3.0",
|
||||
"@fontsource/roboto-mono": "^5.3.0",
|
||||
"@fontsource/source-code-pro": "^5.3.0",
|
||||
"@fontsource/source-code-pro": "^5.3.1",
|
||||
"@fontsource/ubuntu-mono": "^5.3.0",
|
||||
"@hydrooj/utils": "workspace:^",
|
||||
"@mantine/core": "^9.6.3",
|
||||
"@mantine/hooks": "^9.6.3",
|
||||
"@mantine/notifications": "^9.6.3",
|
||||
"@sentry/browser": "^10.76.0",
|
||||
"@sentry/webpack-plugin": "^5.4.0",
|
||||
"@mantine/core": "^9.7.2",
|
||||
"@mantine/hooks": "^9.7.2",
|
||||
"@mantine/notifications": "^9.7.2",
|
||||
"@sentry/browser": "^11.7.0",
|
||||
"@sentry/webpack-plugin": "^5.4.1",
|
||||
"@simplewebauthn/browser": "13.2.2",
|
||||
"@svgr/webpack": "^8.1.0",
|
||||
"@types/html-to-text": "^9.0.4",
|
||||
@@ -43,7 +43,7 @@
|
||||
"@vavt/cm-extension": "^2.0.0",
|
||||
"@vscode/codicons": "^0.0.45",
|
||||
"ajv": "^8.20.0",
|
||||
"allotment": "^1.20.5",
|
||||
"allotment": "^1.20.6",
|
||||
"autoprefixer": "^10.6.1",
|
||||
"browser-update": "^3.3.63",
|
||||
"chalk": "^6.0.1",
|
||||
@@ -62,7 +62,7 @@
|
||||
"emojis-list": "2.1.0",
|
||||
"esbuild-loader": "^4.5.0",
|
||||
"flatpickr": "^4.6.13",
|
||||
"idb": "^8.0.3",
|
||||
"idb": "^8.0.4",
|
||||
"jquery": "^3.7.1",
|
||||
"jquery.easing": "^1.4.1",
|
||||
"jquery.transit": "^0.9.12",
|
||||
@@ -75,10 +75,10 @@
|
||||
"monaco-editor-nls": "^3.1.0",
|
||||
"monaco-themes": "0.4.7",
|
||||
"monaco-yaml": "5.4.1",
|
||||
"nanoid": "^6.0.1",
|
||||
"nanoid": "^6.0.2",
|
||||
"normalize.css": "^8.0.1",
|
||||
"nprogress": "^0.2.0",
|
||||
"p-queue": "^9.3.3",
|
||||
"p-queue": "^9.3.5",
|
||||
"postcss-loader": "7.3.4",
|
||||
"postcss-preset-mantine": "^1.18.0",
|
||||
"prism-themes": "^1.9.0",
|
||||
@@ -126,7 +126,7 @@
|
||||
"esbuild": "0.25.2",
|
||||
"fs-extra": "^11.4.1",
|
||||
"html-to-text": "^10.0.1",
|
||||
"js-yaml": "^5.4.2",
|
||||
"js-yaml": "^5.4.3",
|
||||
"jsesc": "^3.1.0",
|
||||
"katex": "^0.19.0",
|
||||
"lodash": "^4.18.1",
|
||||
@@ -141,7 +141,7 @@
|
||||
"nunjucks": "^3.2.4",
|
||||
"schemastery-jsonschema": "^1.1.1",
|
||||
"streamsaver": "^2.0.6",
|
||||
"uuid": "^14.0.2",
|
||||
"uuid": "^14.0.3",
|
||||
"xss": "^1.0.15"
|
||||
}
|
||||
}
|
||||
@@ -36,8 +36,8 @@
|
||||
"devDependencies": {
|
||||
"@types/react": "^19.3.0",
|
||||
"@types/react-dom": "^19.3.0",
|
||||
"@vitejs/plugin-react": "^6.1.1",
|
||||
"@vitejs/plugin-react": "^6.1.2",
|
||||
"koa2-connect": "^1.0.2",
|
||||
"vite": "^8.3.2"
|
||||
"vite": "^8.3.4"
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user