mirror of https://github.com/sualko/cloud_bbb
Merge pull request #199 from sualko/chore-upgrade-dependencies
upgrade required Node version and dependenciespull/200/head
commit
96a3a4527d
|
@ -28,7 +28,8 @@ module.exports = {
|
|||
'comma-dangle': ['error', 'always-multiline'],
|
||||
'array-bracket-newline': ['error', 'consistent'],
|
||||
'quote-props': ['error', 'as-needed'],
|
||||
'indent': ['warn', 'tab'],
|
||||
semi: ["error", "always"],
|
||||
indent: ['warn', 'tab'],
|
||||
semi: ['error', 'always'],
|
||||
'@typescript-eslint/ban-types': 'off',
|
||||
},
|
||||
}
|
81
package.json
81
package.json
|
@ -14,7 +14,7 @@
|
|||
"license": "agpl",
|
||||
"private": true,
|
||||
"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",
|
||||
"watch": "NODE_ENV=development webpack --progress --watch --config webpack.dev.js",
|
||||
"test": "run-s --continue-on-error --print-label test:**",
|
||||
|
@ -34,20 +34,20 @@
|
|||
"release:publish": "node scripts/publish-release.js"
|
||||
},
|
||||
"dependencies": {
|
||||
"@commitlint/cli": "^9.1.2",
|
||||
"@commitlint/config-conventional": "^9.1.2",
|
||||
"@commitlint/travis-cli": "^9.1.2",
|
||||
"@commitlint/cli": "^16.2.3",
|
||||
"@commitlint/config-conventional": "^16.2.1",
|
||||
"@commitlint/travis-cli": "^16.2.3",
|
||||
"@nextcloud/axios": "^1.3.2",
|
||||
"@nextcloud/router": "^1.0.2",
|
||||
"@nextcloud/router": "^2.0.0",
|
||||
"@octokit/rest": "^18.0.4",
|
||||
"archiver": "^5.0.0",
|
||||
"colors": "^1.4.0",
|
||||
"dotenv": "^8.2.0",
|
||||
"execa": "^4.0.0",
|
||||
"dotenv": "^16.0.0",
|
||||
"execa": "^6.1.0",
|
||||
"libxmljs": "^0.19.7",
|
||||
"qrcode.react": "^1.0.1",
|
||||
"qrcode.react": "^2.0.0",
|
||||
"react-copy-to-clipboard": "^5.0.2",
|
||||
"simple-git": "^2.20.1"
|
||||
"simple-git": "^3.3.0"
|
||||
},
|
||||
"husky": {
|
||||
"hooks": {
|
||||
|
@ -60,58 +60,59 @@
|
|||
"extends @nextcloud/browserslist-config"
|
||||
],
|
||||
"engines": {
|
||||
"node": ">=10.0.0"
|
||||
"node": ">=14.0.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@babel/core": "^7.9.0",
|
||||
"@babel/plugin-syntax-dynamic-import": "^7.8.3",
|
||||
"@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/files": "^1.0.1",
|
||||
"@types/bootstrap": "^4.3.2",
|
||||
"@types/inquirer": "^7.3.1",
|
||||
"@nextcloud/files": "^2.1.0",
|
||||
"@types/bootstrap": "^5.1.9",
|
||||
"@types/inquirer": "^8.2.0",
|
||||
"@types/jquery": "^3.3.35",
|
||||
"@types/node": "^14.6.2",
|
||||
"@types/react": "^16.9.34",
|
||||
"@types/webpack": "^4.41.12",
|
||||
"@types/node": "^17.0.21",
|
||||
"@types/react": "^17.0.40",
|
||||
"@types/webpack": "^5.28.0",
|
||||
"@types/webpack-env": "^1.15.2",
|
||||
"@typescript-eslint/eslint-plugin": "^4.0.1",
|
||||
"@typescript-eslint/parser": "^4.0.1",
|
||||
"@typescript-eslint/eslint-plugin": "^5.15.0",
|
||||
"@typescript-eslint/parser": "^5.15.0",
|
||||
"babel-eslint": "^10.1.0",
|
||||
"babel-loader": "^8.1.0",
|
||||
"css-loader": "^4.2.2",
|
||||
"dotenv-cli": "^3.1.0",
|
||||
"eslint": "^7.8.0",
|
||||
"eslint-config-standard": "^14.1.1",
|
||||
"eslint-import-resolver-webpack": "^0.12.1",
|
||||
"eslint-loader": "^4.0.2",
|
||||
"css-loader": "^6.7.1",
|
||||
"dotenv-cli": "^5.0.0",
|
||||
"eslint": "^8.11.0",
|
||||
"eslint-config-standard": "^16.0.3",
|
||||
"eslint-import-resolver-webpack": "^0.13.2",
|
||||
"eslint-plugin-import": "^2.20.2",
|
||||
"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-standard": "^4.0.1",
|
||||
"eslint-plugin-standard": "^5.0.0",
|
||||
"eslint-webpack-plugin": "^3.1.1",
|
||||
"file-loader": "^6.0.0",
|
||||
"husky": "^4.2.5",
|
||||
"inquirer": "^7.1.0",
|
||||
"inquirer": "^8.2.1",
|
||||
"install": "^0.13.0",
|
||||
"node-sass": "^7.0.0",
|
||||
"npm-run-all": "^4.1.5",
|
||||
"react": "^16.13.1",
|
||||
"react-dom": "^16.13.1",
|
||||
"react": "^17.0.2",
|
||||
"react-dom": "^17.0.2",
|
||||
"react-flip-move": "^3.0.4",
|
||||
"react-hot-loader": "^4.12.20",
|
||||
"react-select": "^3.1.0",
|
||||
"sass-loader": "^10.0.1",
|
||||
"style-loader": "^1.2.0",
|
||||
"stylelint": "^13.7.0",
|
||||
"stylelint-config-recommended-scss": "^4.2.0",
|
||||
"stylelint-scss": "^3.16.0",
|
||||
"ts-loader": "^8.0.3",
|
||||
"react-select": "^5.2.2",
|
||||
"sass-loader": "^12.6.0",
|
||||
"style-loader": "^3.3.1",
|
||||
"stylelint": "^14.5.3",
|
||||
"stylelint-config-recommended-scss": "^5.0.2",
|
||||
"stylelint-scss": "^4.2.0",
|
||||
"ts-loader": "^9.2.8",
|
||||
"typescript": "^4.0.2",
|
||||
"url-loader": "^4.0.0",
|
||||
"webpack": "^4.42.1",
|
||||
"webpack-cli": "^3.3.11",
|
||||
"webpack": "^5.70.0",
|
||||
"webpack-cli": "^4.9.2",
|
||||
"webpack-merge": "^5.1.3",
|
||||
"webpack-node-externals": "^2.5.2"
|
||||
"webpack-node-externals": "^3.0.0"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -21,7 +21,11 @@ const mimeTypes = [
|
|||
];
|
||||
|
||||
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, {
|
||||
fileId,
|
||||
});
|
||||
|
|
|
@ -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 = {
|
||||
entry: {
|
||||
|
@ -19,7 +21,7 @@ module.exports = {
|
|||
],
|
||||
waiting: [
|
||||
path.join(__dirname, 'ts', 'waiting.ts'),
|
||||
]
|
||||
],
|
||||
},
|
||||
output: {
|
||||
path: path.resolve(__dirname, './js'),
|
||||
|
@ -50,11 +52,6 @@ module.exports = {
|
|||
test: /\.scss$/,
|
||||
use: ['style-loader', 'css-loader', 'sass-loader'],
|
||||
},
|
||||
{
|
||||
test: /\.(js)$/,
|
||||
use: 'eslint-loader',
|
||||
enforce: 'pre',
|
||||
},
|
||||
{
|
||||
test: /\.js$/,
|
||||
loader: 'babel-loader',
|
||||
|
@ -71,9 +68,10 @@ module.exports = {
|
|||
],
|
||||
},
|
||||
plugins: [
|
||||
new ESLintPlugin(),
|
||||
],
|
||||
resolve: {
|
||||
extensions: ['*', '.tsx', '.ts', '.js', '.scss'],
|
||||
symlinks: false,
|
||||
},
|
||||
}
|
||||
};
|
||||
|
|
|
@ -1,7 +1,8 @@
|
|||
/* eslint-disable @typescript-eslint/no-var-requires */
|
||||
const { merge } = require('webpack-merge');
|
||||
const common = require('./webpack.common.js');
|
||||
|
||||
module.exports = merge(common, {
|
||||
mode: 'development',
|
||||
devtool: '#cheap-source-map',
|
||||
})
|
||||
devtool: 'cheap-source-map',
|
||||
});
|
||||
|
|
|
@ -1,7 +1,8 @@
|
|||
const { merge } = require('webpack-merge')
|
||||
const common = require('./webpack.common.js')
|
||||
/* eslint-disable @typescript-eslint/no-var-requires */
|
||||
const { merge } = require('webpack-merge');
|
||||
const common = require('./webpack.common.js');
|
||||
|
||||
module.exports = merge(common, {
|
||||
mode: 'production',
|
||||
devtool: '#source-map'
|
||||
})
|
||||
devtool: 'source-map',
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue