mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 01:38:19 +08:00
use cordis@4
This commit is contained in:
18 files changed
+284
-168
No files matched your search
@@ -46,8 +46,8 @@ const dialogAction = (id) => [
|
||||
];
|
||||
|
||||
function bindCopyLink(id, src: string) {
|
||||
const url = !(window.location.href.endsWith('file') || window.location.href.endsWith('files'))
|
||||
|| window.location.href.match('homework/.*/file') || window.location.href.match('training/.*/file')
|
||||
const url = !['file', 'files'].some((i) => window.location.href.endsWith(i))
|
||||
|| ['homework', 'training'].some((i) => window.location.href.match(`${i}/.*/file`))
|
||||
? `file://${src.substring(src.lastIndexOf('/') + 1)}` : src;
|
||||
const clip = new Clipboard(`#copy-${id}`, { text: () => `${url}` });
|
||||
clip.on('success', () => Notification.success(i18n(`${url.startsWith('file://') ? 'Reference' : 'Download'} link copied to clipboard!`)));
|
||||
|
||||
@@ -14,8 +14,8 @@
|
||||
"cli": false
|
||||
},
|
||||
"devDependencies": {
|
||||
"@blueprintjs/core": "^5.16.4",
|
||||
"@cordisjs/core": "3.18.1",
|
||||
"@blueprintjs/core": "^5.16.6",
|
||||
"@cordisjs/core": "4.0.0-alpha.0",
|
||||
"@fontsource/dm-mono": "^5.1.1",
|
||||
"@fontsource/fira-code": "^5.1.1",
|
||||
"@fontsource/inconsolata": "^5.1.1",
|
||||
@@ -25,7 +25,7 @@
|
||||
"@fontsource/source-code-pro": "^5.1.1",
|
||||
"@fontsource/ubuntu-mono": "^5.1.1",
|
||||
"@hydrooj/utils": "workspace:^",
|
||||
"@sentry/browser": "^8.54.0",
|
||||
"@sentry/browser": "^9.1.0",
|
||||
"@sentry/webpack-plugin": "^3.1.2",
|
||||
"@simplewebauthn/browser": "13.1.0",
|
||||
"@svgr/webpack": "^8.1.0",
|
||||
@@ -45,7 +45,7 @@
|
||||
"@types/webpack-env": "^1.18.8",
|
||||
"@vscode/codicons": "^0.0.36",
|
||||
"ajv": "^8.17.1",
|
||||
"allotment": "^1.20.2",
|
||||
"allotment": "^1.20.3",
|
||||
"autoprefixer": "^10.4.20",
|
||||
"browser-update": "^3.3.55",
|
||||
"chalk": "^5.4.1",
|
||||
@@ -61,7 +61,7 @@
|
||||
"echarts": "^5.6.0",
|
||||
"emojis-keywords": "2.0.0",
|
||||
"emojis-list": "2.1.0",
|
||||
"esbuild-loader": "^4.2.2",
|
||||
"esbuild-loader": "^4.3.0",
|
||||
"flatpickr": "^4.6.13",
|
||||
"graphiql": "^3.8.3",
|
||||
"idb": "^8.0.2",
|
||||
@@ -70,7 +70,7 @@
|
||||
"jquery.easing": "^1.4.1",
|
||||
"jquery.transit": "^0.9.12",
|
||||
"matchmedia-polyfill": "^0.3.2",
|
||||
"md-editor-rt": "^5.2.1",
|
||||
"md-editor-rt": "^5.2.3",
|
||||
"mini-css-extract-plugin": "^2.9.2",
|
||||
"moment": "^2.30.1",
|
||||
"monaco-editor": "0.52.2",
|
||||
@@ -78,7 +78,7 @@
|
||||
"monaco-editor-webpack-plugin": "^7.1.0",
|
||||
"monaco-themes": "^0.4.4",
|
||||
"monaco-yaml": "5.1.1",
|
||||
"nanoid": "^5.0.9",
|
||||
"nanoid": "^5.1.0",
|
||||
"normalize.css": "^8.0.1",
|
||||
"nprogress": "^0.2.0",
|
||||
"p-queue": "^8.1.0",
|
||||
@@ -102,21 +102,21 @@
|
||||
"redux-promise-middleware": "^6.2.0",
|
||||
"redux-thunk": "^3.1.0",
|
||||
"rupture": "^0.7.1",
|
||||
"schemastery": "^3.15.0",
|
||||
"schemastery": "^3.16.0",
|
||||
"shorty.js": "^1.0.1",
|
||||
"slideout": "^1.0.1",
|
||||
"sticky-kit": "^1.1.3",
|
||||
"style-loader": "^4.0.0",
|
||||
"stylus": "^0.64.0",
|
||||
"stylus-loader": "7.1.2",
|
||||
"svgtofont": "^6.2.0",
|
||||
"svgtofont": "^6.3.0",
|
||||
"tether": "1.4.7",
|
||||
"tether-drop": "^1.4.2",
|
||||
"timeago-react": "^3.0.6",
|
||||
"timeago.js": "^4.0.2",
|
||||
"ts-loader": "^9.5.2",
|
||||
"web-streams-polyfill": "^4.1.0",
|
||||
"webpack": "^5.97.1",
|
||||
"webpack": "^5.98.0",
|
||||
"webpack-bundle-analyzer": "^4.10.2",
|
||||
"webpack-dev-server": "^5.2.0",
|
||||
"webpack-manifest-plugin": "^5.0.0",
|
||||
@@ -126,7 +126,7 @@
|
||||
"@hydrooj/common": "workspace:^",
|
||||
"ansi_up": "^6.0.2",
|
||||
"cssfilter": "^0.0.11",
|
||||
"esbuild": "0.24.0",
|
||||
"esbuild": "0.25.0",
|
||||
"fs-extra": "^11.3.0",
|
||||
"html-to-text": "^9.0.5",
|
||||
"js-yaml": "^4.1.0",
|
||||
|
||||
@@ -31,7 +31,7 @@ if (typeof window['WeakRef'] === 'undefined') {
|
||||
return WeakRef;
|
||||
}(new WeakMap()));
|
||||
}
|
||||
if (!(window.matchMedia('all').addListener || window.matchMedia('all').addEventListener)) {
|
||||
if (!window.matchMedia('all').addListener && !window.matchMedia('all').addEventListener) {
|
||||
const localMatchMedia = window.matchMedia;
|
||||
const hasMediaQueries = localMatchMedia('only all').matches;
|
||||
let isListening = false;
|
||||
|
||||
Reference in new issue
Block a user