Merge pull request #199 from sualko/chore-upgrade-dependencies

upgrade required Node version and dependencies
pull/200/head
Klaus 2022-03-16 11:44:08 +01:00 committed by GitHub
commit 96a3a4527d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
7 changed files with 2489 additions and 3895 deletions

View File

@ -28,7 +28,8 @@ module.exports = {
'comma-dangle': ['error', 'always-multiline'], 'comma-dangle': ['error', 'always-multiline'],
'array-bracket-newline': ['error', 'consistent'], 'array-bracket-newline': ['error', 'consistent'],
'quote-props': ['error', 'as-needed'], 'quote-props': ['error', 'as-needed'],
'indent': ['warn', 'tab'], indent: ['warn', 'tab'],
semi: ["error", "always"], semi: ['error', 'always'],
'@typescript-eslint/ban-types': 'off',
}, },
} }

View File

@ -14,7 +14,7 @@
"license": "agpl", "license": "agpl",
"private": true, "private": true,
"scripts": { "scripts": {
"build": "NODE_ENV=production webpack --progress --hide-modules --config webpack.prod.js", "build": "NODE_ENV=production webpack --progress --config webpack.prod.js",
"dev": "NODE_ENV=development webpack --progress --config webpack.dev.js", "dev": "NODE_ENV=development webpack --progress --config webpack.dev.js",
"watch": "NODE_ENV=development webpack --progress --watch --config webpack.dev.js", "watch": "NODE_ENV=development webpack --progress --watch --config webpack.dev.js",
"test": "run-s --continue-on-error --print-label test:**", "test": "run-s --continue-on-error --print-label test:**",
@ -34,20 +34,20 @@
"release:publish": "node scripts/publish-release.js" "release:publish": "node scripts/publish-release.js"
}, },
"dependencies": { "dependencies": {
"@commitlint/cli": "^9.1.2", "@commitlint/cli": "^16.2.3",
"@commitlint/config-conventional": "^9.1.2", "@commitlint/config-conventional": "^16.2.1",
"@commitlint/travis-cli": "^9.1.2", "@commitlint/travis-cli": "^16.2.3",
"@nextcloud/axios": "^1.3.2", "@nextcloud/axios": "^1.3.2",
"@nextcloud/router": "^1.0.2", "@nextcloud/router": "^2.0.0",
"@octokit/rest": "^18.0.4", "@octokit/rest": "^18.0.4",
"archiver": "^5.0.0", "archiver": "^5.0.0",
"colors": "^1.4.0", "colors": "^1.4.0",
"dotenv": "^8.2.0", "dotenv": "^16.0.0",
"execa": "^4.0.0", "execa": "^6.1.0",
"libxmljs": "^0.19.7", "libxmljs": "^0.19.7",
"qrcode.react": "^1.0.1", "qrcode.react": "^2.0.0",
"react-copy-to-clipboard": "^5.0.2", "react-copy-to-clipboard": "^5.0.2",
"simple-git": "^2.20.1" "simple-git": "^3.3.0"
}, },
"husky": { "husky": {
"hooks": { "hooks": {
@ -60,58 +60,59 @@
"extends @nextcloud/browserslist-config" "extends @nextcloud/browserslist-config"
], ],
"engines": { "engines": {
"node": ">=10.0.0" "node": ">=14.0.0"
}, },
"devDependencies": { "devDependencies": {
"@babel/core": "^7.9.0", "@babel/core": "^7.9.0",
"@babel/plugin-syntax-dynamic-import": "^7.8.3", "@babel/plugin-syntax-dynamic-import": "^7.8.3",
"@babel/preset-env": "^7.9.0", "@babel/preset-env": "^7.9.0",
"@nextcloud/browserslist-config": "^1.0.0", "@nextcloud/browserslist-config": "^2.2.0",
"@nextcloud/eslint-plugin": "^2.0.0", "@nextcloud/eslint-plugin": "^2.0.0",
"@nextcloud/files": "^1.0.1", "@nextcloud/files": "^2.1.0",
"@types/bootstrap": "^4.3.2", "@types/bootstrap": "^5.1.9",
"@types/inquirer": "^7.3.1", "@types/inquirer": "^8.2.0",
"@types/jquery": "^3.3.35", "@types/jquery": "^3.3.35",
"@types/node": "^14.6.2", "@types/node": "^17.0.21",
"@types/react": "^16.9.34", "@types/react": "^17.0.40",
"@types/webpack": "^4.41.12", "@types/webpack": "^5.28.0",
"@types/webpack-env": "^1.15.2", "@types/webpack-env": "^1.15.2",
"@typescript-eslint/eslint-plugin": "^4.0.1", "@typescript-eslint/eslint-plugin": "^5.15.0",
"@typescript-eslint/parser": "^4.0.1", "@typescript-eslint/parser": "^5.15.0",
"babel-eslint": "^10.1.0", "babel-eslint": "^10.1.0",
"babel-loader": "^8.1.0", "babel-loader": "^8.1.0",
"css-loader": "^4.2.2", "css-loader": "^6.7.1",
"dotenv-cli": "^3.1.0", "dotenv-cli": "^5.0.0",
"eslint": "^7.8.0", "eslint": "^8.11.0",
"eslint-config-standard": "^14.1.1", "eslint-config-standard": "^16.0.3",
"eslint-import-resolver-webpack": "^0.12.1", "eslint-import-resolver-webpack": "^0.13.2",
"eslint-loader": "^4.0.2",
"eslint-plugin-import": "^2.20.2", "eslint-plugin-import": "^2.20.2",
"eslint-plugin-node": "^11.1.0", "eslint-plugin-node": "^11.1.0",
"eslint-plugin-promise": "^4.2.1", "eslint-plugin-promise": "^6.0.0",
"eslint-plugin-react": "^7.19.0", "eslint-plugin-react": "^7.19.0",
"eslint-plugin-standard": "^4.0.1", "eslint-plugin-standard": "^5.0.0",
"eslint-webpack-plugin": "^3.1.1",
"file-loader": "^6.0.0", "file-loader": "^6.0.0",
"husky": "^4.2.5", "husky": "^4.2.5",
"inquirer": "^7.1.0", "inquirer": "^8.2.1",
"install": "^0.13.0",
"node-sass": "^7.0.0", "node-sass": "^7.0.0",
"npm-run-all": "^4.1.5", "npm-run-all": "^4.1.5",
"react": "^16.13.1", "react": "^17.0.2",
"react-dom": "^16.13.1", "react-dom": "^17.0.2",
"react-flip-move": "^3.0.4", "react-flip-move": "^3.0.4",
"react-hot-loader": "^4.12.20", "react-hot-loader": "^4.12.20",
"react-select": "^3.1.0", "react-select": "^5.2.2",
"sass-loader": "^10.0.1", "sass-loader": "^12.6.0",
"style-loader": "^1.2.0", "style-loader": "^3.3.1",
"stylelint": "^13.7.0", "stylelint": "^14.5.3",
"stylelint-config-recommended-scss": "^4.2.0", "stylelint-config-recommended-scss": "^5.0.2",
"stylelint-scss": "^3.16.0", "stylelint-scss": "^4.2.0",
"ts-loader": "^8.0.3", "ts-loader": "^9.2.8",
"typescript": "^4.0.2", "typescript": "^4.0.2",
"url-loader": "^4.0.0", "url-loader": "^4.0.0",
"webpack": "^4.42.1", "webpack": "^5.70.0",
"webpack-cli": "^3.3.11", "webpack-cli": "^4.9.2",
"webpack-merge": "^5.1.3", "webpack-merge": "^5.1.3",
"webpack-node-externals": "^2.5.2" "webpack-node-externals": "^3.0.0"
} }
} }

View File

@ -21,7 +21,11 @@ const mimeTypes = [
]; ];
async function createDirectShare(fileId: number): Promise<string> { async function createDirectShare(fileId: number): Promise<string> {
const url = generateOcsUrl('apps/dav/api/v1', 1) + 'direct'; const url = generateOcsUrl('apps/dav/api/v1/', undefined, {
ocsVersion: 1,
escape: true,
noRewrite: true,
}) + 'direct';
const createResponse = await axios.post(url, { const createResponse = await axios.post(url, {
fileId, fileId,
}); });

View File

@ -1,4 +1,6 @@
const path = require('path') /* eslint-disable @typescript-eslint/no-var-requires */
const path = require('path');
const ESLintPlugin = require('eslint-webpack-plugin');
module.exports = { module.exports = {
entry: { entry: {
@ -19,7 +21,7 @@ module.exports = {
], ],
waiting: [ waiting: [
path.join(__dirname, 'ts', 'waiting.ts'), path.join(__dirname, 'ts', 'waiting.ts'),
] ],
}, },
output: { output: {
path: path.resolve(__dirname, './js'), path: path.resolve(__dirname, './js'),
@ -50,11 +52,6 @@ module.exports = {
test: /\.scss$/, test: /\.scss$/,
use: ['style-loader', 'css-loader', 'sass-loader'], use: ['style-loader', 'css-loader', 'sass-loader'],
}, },
{
test: /\.(js)$/,
use: 'eslint-loader',
enforce: 'pre',
},
{ {
test: /\.js$/, test: /\.js$/,
loader: 'babel-loader', loader: 'babel-loader',
@ -71,9 +68,10 @@ module.exports = {
], ],
}, },
plugins: [ plugins: [
new ESLintPlugin(),
], ],
resolve: { resolve: {
extensions: ['*', '.tsx', '.ts', '.js', '.scss'], extensions: ['*', '.tsx', '.ts', '.js', '.scss'],
symlinks: false, symlinks: false,
}, },
} };

View File

@ -1,7 +1,8 @@
/* eslint-disable @typescript-eslint/no-var-requires */
const { merge } = require('webpack-merge'); const { merge } = require('webpack-merge');
const common = require('./webpack.common.js'); const common = require('./webpack.common.js');
module.exports = merge(common, { module.exports = merge(common, {
mode: 'development', mode: 'development',
devtool: '#cheap-source-map', devtool: 'cheap-source-map',
}) });

View File

@ -1,7 +1,8 @@
const { merge } = require('webpack-merge') /* eslint-disable @typescript-eslint/no-var-requires */
const common = require('./webpack.common.js') const { merge } = require('webpack-merge');
const common = require('./webpack.common.js');
module.exports = merge(common, { module.exports = merge(common, {
mode: 'production', mode: 'production',
devtool: '#source-map' devtool: 'source-map',
}) });

6262
yarn.lock

File diff suppressed because it is too large Load Diff