mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 01:38:19 +08:00
workspace: upgrade to mantine@9 and cordis@4-rc
This commit is contained in:
23 files changed
+93
-90
No files matched your search
@@ -4,13 +4,15 @@ import { findFileSync, getAlphabeticId } from '@hydrooj/utils/lib/utils';
|
||||
import {
|
||||
avatar, Context, difficultyAlgorithm, fs, PERM, PRIV, Service, STATUS, yaml,
|
||||
} from 'hydrooj';
|
||||
import { cac } from 'cac';
|
||||
import { convert } from 'html-to-text';
|
||||
import jsesc from 'jsesc';
|
||||
import nunjucks from 'nunjucks';
|
||||
import markdown from './markdown';
|
||||
import { ensureTag, xss } from './markdown-it-xss';
|
||||
import * as misc from './misc';
|
||||
const argv = require('cac')().parse();
|
||||
|
||||
const argv = cac().parse();
|
||||
|
||||
let { template } = argv.options;
|
||||
if (!template || typeof template !== 'string') template = findFileSync('@hydrooj/ui-default/templates');
|
||||
@@ -251,7 +253,7 @@ export class TemplateService extends Service {
|
||||
});
|
||||
}
|
||||
|
||||
async [Context.init]() {
|
||||
async [Service.init]() {
|
||||
const pending = Object.values(global.addons);
|
||||
const logger = this.ctx.logger('template');
|
||||
for (const i of pending) {
|
||||
|
||||
@@ -20,11 +20,11 @@
|
||||
"@fontsource/source-code-pro": "^5.2.7",
|
||||
"@fontsource/ubuntu-mono": "^5.2.8",
|
||||
"@hydrooj/utils": "workspace:^",
|
||||
"@mantine/core": "^8.3.15",
|
||||
"@mantine/hooks": "^8.3.15",
|
||||
"@mantine/notifications": "^8.3.15",
|
||||
"@sentry/browser": "^10.40.0",
|
||||
"@sentry/webpack-plugin": "^4.9.1",
|
||||
"@mantine/core": "^9.0.0",
|
||||
"@mantine/hooks": "^9.0.0",
|
||||
"@mantine/notifications": "^9.0.0",
|
||||
"@sentry/browser": "^10.47.0",
|
||||
"@sentry/webpack-plugin": "^5.1.1",
|
||||
"@simplewebauthn/browser": "13.2.2",
|
||||
"@svgr/webpack": "^8.1.0",
|
||||
"@types/html-to-text": "^9.0.4",
|
||||
@@ -42,26 +42,26 @@
|
||||
"@types/uuid": "^11.0.0",
|
||||
"@types/webpack-env": "^1.18.8",
|
||||
"@vavt/cm-extension": "^1.11.2",
|
||||
"@vscode/codicons": "^0.0.44",
|
||||
"@vscode/codicons": "^0.0.45",
|
||||
"ajv": "^8.18.0",
|
||||
"allotment": "^1.20.5",
|
||||
"autoprefixer": "^10.4.24",
|
||||
"autoprefixer": "^10.4.27",
|
||||
"browser-update": "^3.3.63",
|
||||
"chalk": "^5.6.2",
|
||||
"classnames": "^2.5.1",
|
||||
"clean-webpack-plugin": "^4.0.0",
|
||||
"clipboard": "^2.0.11",
|
||||
"copy-webpack-plugin": "^13.0.1",
|
||||
"cordis": "4.0.0-beta.5",
|
||||
"core-js": "^3.48.0",
|
||||
"core-js-compat": "^3.48.0",
|
||||
"copy-webpack-plugin": "^14.0.0",
|
||||
"cordis": "4.0.0-rc.0",
|
||||
"core-js": "^3.49.0",
|
||||
"core-js-compat": "^3.49.0",
|
||||
"css-loader": "^7.1.4",
|
||||
"diff": "^8.0.3",
|
||||
"diff": "^8.0.4",
|
||||
"diff-dom": "^5.2.1",
|
||||
"echarts": "^6.0.0",
|
||||
"emojis-keywords": "2.0.0",
|
||||
"emojis-list": "2.1.0",
|
||||
"esbuild-loader": "^4.4.2",
|
||||
"esbuild-loader": "^4.4.3",
|
||||
"flatpickr": "^4.6.13",
|
||||
"idb": "^8.0.3",
|
||||
"jquery": "^3.7.1",
|
||||
@@ -69,18 +69,18 @@
|
||||
"jquery.transit": "^0.9.12",
|
||||
"mantine-contextmenu": "^8.3.13",
|
||||
"matchmedia-polyfill": "^0.3.2",
|
||||
"md-editor-rt": "^6.3.1",
|
||||
"mini-css-extract-plugin": "^2.10.0",
|
||||
"md-editor-rt": "^6.4.1",
|
||||
"mini-css-extract-plugin": "^2.10.2",
|
||||
"moment": "^2.30.1",
|
||||
"monaco-editor": "0.52.2",
|
||||
"monaco-editor-nls": "^3.1.0",
|
||||
"monaco-editor-webpack-plugin": "^7.1.1",
|
||||
"monaco-themes": "0.4.7",
|
||||
"monaco-yaml": "5.1.1",
|
||||
"nanoid": "^5.1.6",
|
||||
"monaco-yaml": "5.4.1",
|
||||
"nanoid": "^5.1.7",
|
||||
"normalize.css": "^8.0.1",
|
||||
"nprogress": "^0.2.0",
|
||||
"p-queue": "^9.1.0",
|
||||
"p-queue": "^9.1.1",
|
||||
"pickadate": "patch:pickadate@npm%3A3.6.4#~/.yarn/patches/pickadate-npm-3.6.4-5795acb19d.patch",
|
||||
"postcss-loader": "7.3.4",
|
||||
"postcss-preset-mantine": "^1.18.0",
|
||||
@@ -101,9 +101,9 @@
|
||||
"redux-promise-middleware": "^6.2.0",
|
||||
"redux-thunk": "^3.1.0",
|
||||
"rupture": "^0.7.1",
|
||||
"sass": "^1.97.3",
|
||||
"sass": "^1.99.0",
|
||||
"sass-loader": "^16.0.7",
|
||||
"schemastery": "^3.17.2",
|
||||
"schemastery": "^3.18.0",
|
||||
"shorty.js": "^1.0.1",
|
||||
"slideout": "^1.0.1",
|
||||
"sticky-kit": "^1.1.3",
|
||||
@@ -115,10 +115,10 @@
|
||||
"tether-drop": "^1.4.2",
|
||||
"timeago-react": "^3.0.7",
|
||||
"timeago.js": "^4.0.2",
|
||||
"ts-loader": "^9.5.4",
|
||||
"ts-loader": "^9.5.7",
|
||||
"web-streams-polyfill": "^4.2.0",
|
||||
"webpack": "^5.105.3",
|
||||
"webpack-bundle-analyzer": "^5.2.0",
|
||||
"webpack": "^5.105.4",
|
||||
"webpack-bundle-analyzer": "^5.3.0",
|
||||
"webpack-dev-server": "^5.2.3",
|
||||
"webpack-manifest-plugin": "^6.0.1",
|
||||
"webpackbar": "^7.0.0"
|
||||
@@ -128,12 +128,12 @@
|
||||
"ansi_up": "^6.0.6",
|
||||
"cssfilter": "^0.0.11",
|
||||
"esbuild": "0.25.2",
|
||||
"fs-extra": "^11.3.3",
|
||||
"fs-extra": "^11.3.4",
|
||||
"html-to-text": "^9.0.5",
|
||||
"js-yaml": "^4.1.1",
|
||||
"jsesc": "^3.1.0",
|
||||
"katex": "^0.16.33",
|
||||
"lodash": "^4.17.23",
|
||||
"katex": "^0.16.44",
|
||||
"lodash": "^4.18.1",
|
||||
"markdown-it": "^14.1.1",
|
||||
"markdown-it-anchor": "^9.2.0",
|
||||
"markdown-it-attrs": "^4.3.1",
|
||||
@@ -141,7 +141,7 @@
|
||||
"markdown-it-imsize": "^2.0.1",
|
||||
"markdown-it-mark": "^4.0.0",
|
||||
"markdown-it-merge-cells": "^2.0.0",
|
||||
"markdown-it-table-of-contents": "^1.1.0",
|
||||
"markdown-it-table-of-contents": "^1.2.0",
|
||||
"nunjucks": "^3.2.4",
|
||||
"schemastery-jsonschema": "^1.1.1",
|
||||
"streamsaver": "^2.0.6",
|
||||
|
||||
Reference in new issue
Block a user