upgrade deps

This commit is contained in:
undefined committed 2026-10-14 03:29:01 +08:00
1 parent 7a0fda2925
commit 900fb7eb19
13 files changed
+46 -46

No files matched your search

@@ -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;
+12 -12
View File
@@ -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"
}
}