mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 01:38:19 +08:00
bump deps version
This commit is contained in:
1 parent
e7b4b5de5e
commit
f621d26ed7
29 files changed
+75
-63
No files matched your search
@@ -87,6 +87,8 @@ module.exports = {
|
||||
'class-methods-use-this': 'off',
|
||||
'consistent-return': 'warn',
|
||||
'func-names': 'off',
|
||||
'function-paren-newline': 'off',
|
||||
'default-param-last': 'off',
|
||||
'import/first': 'off',
|
||||
'import/extensions': 'off',
|
||||
'import/no-extraneous-dependencies': 'off',
|
||||
|
||||
@@ -32,7 +32,7 @@ const tagCheck = new Xss.FilterXSS({
|
||||
},
|
||||
});
|
||||
|
||||
const xss = new Xss.FilterXSS({
|
||||
export const xss = new Xss.FilterXSS({
|
||||
whiteList: {
|
||||
a: ['target', 'href', 'title'],
|
||||
abbr: ['title'],
|
||||
@@ -107,13 +107,13 @@ const xss = new Xss.FilterXSS({
|
||||
},
|
||||
});
|
||||
|
||||
function ensureTag(html: string) {
|
||||
export function ensureTag(html: string) {
|
||||
stack.length = 0;
|
||||
const res = tagCheck.process(html);
|
||||
return res + stack.map((i) => `</${i}>`).join('');
|
||||
}
|
||||
|
||||
function xssProtector(md) {
|
||||
export function xssProtector(md) {
|
||||
function protector(state) {
|
||||
for (let i = 0; i < state.tokens.length; i++) {
|
||||
const cur = state.tokens[i];
|
||||
@@ -133,5 +133,3 @@ function xssProtector(md) {
|
||||
|
||||
md.core.ruler.after('linkify', 'xss', protector);
|
||||
}
|
||||
|
||||
module.exports = { xss, ensureTag, xssProtector };
|
||||
@@ -23,7 +23,7 @@ function transform(filename) {
|
||||
return result.outputFiles[0].text;
|
||||
}
|
||||
require.extensions['.js'] = function loader(module, filename) {
|
||||
if (!filename.includes('node_modules') && !filename.includes('postcss.config.js')) {
|
||||
if (filename.includes('chalk') || (!filename.includes('node_modules') && !filename.includes('postcss.config.js'))) {
|
||||
return module._compile(transform(filename), filename);
|
||||
}
|
||||
const content = fs.readFileSync(filename, 'utf-8');
|
||||
|
||||
@@ -119,6 +119,7 @@ export default class DOMAttachedObject {
|
||||
}
|
||||
|
||||
constructor($dom: JQuery<HTMLElement>, monitorDetach = false) {
|
||||
// eslint-disable-next-line no-constructor-return
|
||||
if ($dom == null) return null;
|
||||
this.$dom = $dom;
|
||||
this.id = ++DOMAttachedObject.uniqueIdCounter;
|
||||
|
||||
@@ -23,9 +23,8 @@ class Marker {
|
||||
}
|
||||
|
||||
constructor() {
|
||||
if (Marker.exists()) {
|
||||
return markerInstance;
|
||||
}
|
||||
// eslint-disable-next-line no-constructor-return
|
||||
if (Marker.exists()) return markerInstance;
|
||||
if (markerInstance) {
|
||||
markerInstance.destroy();
|
||||
}
|
||||
|
||||
@@ -109,7 +109,7 @@ function handlePasteEvent(editor: monaco.editor.IStandaloneCodeEditor) {
|
||||
});
|
||||
}
|
||||
let progress = 0;
|
||||
request.postFile(isProblemEdit ? './file' : '/file', data, {
|
||||
request.postFile(isProblemEdit ? './files' : '/file', data, {
|
||||
xhr() {
|
||||
const xhr = new XMLHttpRequest();
|
||||
xhr.upload.addEventListener('loadstart', () => updateText(i18n('Uploading...')));
|
||||
|
||||
@@ -11,7 +11,8 @@ console.log(
|
||||
'%c%s%c%s',
|
||||
'color:red;font-size:24px;',
|
||||
' Welcome to\n',
|
||||
'color:blue;font-weight:bold;', `\
|
||||
'color:blue;font-weight:bold;',
|
||||
`\
|
||||
__ __ __
|
||||
/ / / /_ ______/ /________
|
||||
/ /_/ / / / / __ / ___/ __ \\
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@hydrooj/ui-default",
|
||||
"version": "4.33.8",
|
||||
"version": "4.34.0",
|
||||
"author": "undefined <i@undefined.moe>",
|
||||
"license": "AGPL-3.0",
|
||||
"main": "hydro.js",
|
||||
@@ -11,14 +11,14 @@
|
||||
},
|
||||
"devDependencies": {
|
||||
"@blueprintjs/core": "^3.53.0",
|
||||
"@fontsource/dm-mono": "^4.5.3",
|
||||
"@fontsource/dm-mono": "^4.5.4",
|
||||
"@fontsource/fira-code": "^4.5.5",
|
||||
"@fontsource/inconsolata": "^4.5.2",
|
||||
"@fontsource/jetbrains-mono": "^4.5.3",
|
||||
"@fontsource/pt-mono": "^4.5.2",
|
||||
"@fontsource/pt-mono": "^4.5.3",
|
||||
"@fontsource/roboto-mono": "^4.5.3",
|
||||
"@fontsource/source-code-pro": "^4.5.4",
|
||||
"@fontsource/ubuntu-mono": "^4.5.3",
|
||||
"@fontsource/ubuntu-mono": "^4.5.4",
|
||||
"@hydrooj/utils": "workspace:*",
|
||||
"@types/gulp-if": "^0.0.34",
|
||||
"@types/jquery": "^3.5.14",
|
||||
@@ -30,27 +30,27 @@
|
||||
"@undefined-moe/monaco-yaml": "^2.5.1",
|
||||
"ansi_up": "^5.1.0",
|
||||
"autoprefixer": "^9.8.8",
|
||||
"chalk": "^4.1.2",
|
||||
"chalk": "^5.0.1",
|
||||
"classnames": "^2.3.1",
|
||||
"clean-webpack-plugin": "^4.0.0",
|
||||
"clipboard": "^2.0.10",
|
||||
"copy-webpack-plugin": "^6.4.1",
|
||||
"css-loader": "^4.3.0",
|
||||
"diff-dom": "^4.2.3",
|
||||
"echarts": "^5.3.0",
|
||||
"echarts": "^5.3.1",
|
||||
"emojis-keywords": "2.0.0",
|
||||
"emojis-list": "2.1.0",
|
||||
"esbuild-loader": "^2.18.0",
|
||||
"eslint": "^8.10.0",
|
||||
"eslint-config-airbnb": "^18.2.1",
|
||||
"eslint": "^8.11.0",
|
||||
"eslint-config-airbnb": "^19.0.4",
|
||||
"eslint-import-resolver-webpack": "^0.13.2",
|
||||
"eslint-plugin-import": "^2.25.4",
|
||||
"eslint-plugin-jsx-a11y": "^6.5.1",
|
||||
"eslint-plugin-react": "^7.29.2",
|
||||
"fancy-log": "^1.3.3",
|
||||
"eslint-plugin-react": "^7.29.3",
|
||||
"fancy-log": "^2.0.0",
|
||||
"file-loader": "^6.2.0",
|
||||
"friendly-errors-webpack-plugin": "^1.7.0",
|
||||
"graphiql": "^1.6.0",
|
||||
"graphiql": "^1.7.1",
|
||||
"gulp": "^4.0.2",
|
||||
"gulp-cli": "^2.3.0",
|
||||
"gulp-iconfont": "^11.0.1",
|
||||
@@ -101,7 +101,7 @@
|
||||
"through2": "^4.0.2",
|
||||
"timeago-react": "^3.0.4",
|
||||
"timeago.js": "^4.0.2",
|
||||
"vditor": "^3.8.11",
|
||||
"vditor": "^3.8.12",
|
||||
"vinyl-buffer": "^1.0.1",
|
||||
"web-streams-polyfill": "^3.2.0",
|
||||
"webpack": "^4.46.0",
|
||||
@@ -127,6 +127,6 @@
|
||||
"nunjucks": "^3.2.3",
|
||||
"react-query": "^3.34.16",
|
||||
"streamsaver": "^2.0.6",
|
||||
"xss": "^1.0.10"
|
||||
"xss": "^1.0.11"
|
||||
}
|
||||
}
|
||||
@@ -1,3 +1,4 @@
|
||||
/* eslint-disable react/function-component-definition */
|
||||
import { NamedPage } from 'vj/misc/Page';
|
||||
import request from 'vj/utils/request';
|
||||
import React from 'react';
|
||||
|
||||
Reference in new issue
Block a user