forked from Alex/Pterodactyl-Panel
Package updates
This commit is contained in:
parent
ae3f05b8f7
commit
bfd62304ae
61
package.json
61
package.json
@ -4,14 +4,13 @@
|
|||||||
"@fortawesome/fontawesome-svg-core": "^1.2.19",
|
"@fortawesome/fontawesome-svg-core": "^1.2.19",
|
||||||
"@fortawesome/free-solid-svg-icons": "^5.9.0",
|
"@fortawesome/free-solid-svg-icons": "^5.9.0",
|
||||||
"@fortawesome/react-fontawesome": "^0.1.4",
|
"@fortawesome/react-fontawesome": "^0.1.4",
|
||||||
"@hot-loader/react-dom": "^16.8.6",
|
"axios": "^0.19.0",
|
||||||
"axios": "^0.18.0",
|
|
||||||
"ayu-ace": "^2.0.4",
|
"ayu-ace": "^2.0.4",
|
||||||
"brace": "^0.11.1",
|
"brace": "^0.11.1",
|
||||||
"chart.js": "^2.8.0",
|
"chart.js": "^2.8.0",
|
||||||
"classnames": "^2.2.6",
|
"classnames": "^2.2.6",
|
||||||
"date-fns": "^1.29.0",
|
"date-fns": "^1.29.0",
|
||||||
"easy-peasy": "^3.0.2",
|
"easy-peasy": "^3.2.3",
|
||||||
"events": "^3.0.0",
|
"events": "^3.0.0",
|
||||||
"formik": "^1.5.7",
|
"formik": "^1.5.7",
|
||||||
"i18next": "^19.0.0",
|
"i18next": "^19.0.0",
|
||||||
@ -22,15 +21,15 @@
|
|||||||
"lodash-es": "^4.17.15",
|
"lodash-es": "^4.17.15",
|
||||||
"path": "^0.12.7",
|
"path": "^0.12.7",
|
||||||
"query-string": "^6.7.0",
|
"query-string": "^6.7.0",
|
||||||
"react": "^16.8.6",
|
"react": "^16.12.0",
|
||||||
"react-dom": "^16.8.6",
|
"react-dom": "npm:@hot-loader/react-dom",
|
||||||
"react-hot-loader": "^4.12.13",
|
"react-hot-loader": "^4.12.18",
|
||||||
"react-i18next": "^11.2.1",
|
"react-i18next": "^11.2.1",
|
||||||
"react-redux": "^7.1.0",
|
"react-redux": "^7.1.0",
|
||||||
"react-router-dom": "^5.0.1",
|
"react-router-dom": "^5.1.2",
|
||||||
"react-transition-group": "^4.1.0",
|
"react-transition-group": "^4.3.0",
|
||||||
"sockette": "^2.0.6",
|
"sockette": "^2.0.6",
|
||||||
"styled-components": "^4.3.2",
|
"styled-components": "^4.4.1",
|
||||||
"use-react-router": "^1.0.7",
|
"use-react-router": "^1.0.7",
|
||||||
"uuid": "^3.3.2",
|
"uuid": "^3.3.2",
|
||||||
"xterm": "^3.14.4",
|
"xterm": "^3.14.4",
|
||||||
@ -39,15 +38,15 @@
|
|||||||
"yup": "^0.27.0"
|
"yup": "^0.27.0"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@babel/core": "^7.6.0",
|
"@babel/core": "^7.7.5",
|
||||||
"@babel/plugin-proposal-class-properties": "^7.5.5",
|
"@babel/plugin-proposal-class-properties": "^7.7.4",
|
||||||
"@babel/plugin-proposal-object-rest-spread": "^7.5.5",
|
"@babel/plugin-proposal-object-rest-spread": "^7.7.4",
|
||||||
"@babel/plugin-syntax-dynamic-import": "^7.2.0",
|
"@babel/plugin-syntax-dynamic-import": "^7.7.4",
|
||||||
"@babel/plugin-transform-runtime": "^7.6.0",
|
"@babel/plugin-transform-runtime": "^7.7.5",
|
||||||
"@babel/preset-env": "^7.6.0",
|
"@babel/preset-env": "^7.7.5",
|
||||||
"@babel/preset-react": "^7.0.0",
|
"@babel/preset-react": "^7.7.4",
|
||||||
"@babel/preset-typescript": "^7.6.0",
|
"@babel/preset-typescript": "^7.7.4",
|
||||||
"@babel/runtime": "^7.6.0",
|
"@babel/runtime": "^7.7.5",
|
||||||
"@types/chart.js": "^2.8.5",
|
"@types/chart.js": "^2.8.5",
|
||||||
"@types/classnames": "^2.2.8",
|
"@types/classnames": "^2.2.8",
|
||||||
"@types/events": "^3.0.0",
|
"@types/events": "^3.0.0",
|
||||||
@ -56,12 +55,13 @@
|
|||||||
"@types/lodash-es": "^4.17.3",
|
"@types/lodash-es": "^4.17.3",
|
||||||
"@types/node": "^12.6.9",
|
"@types/node": "^12.6.9",
|
||||||
"@types/query-string": "^6.3.0",
|
"@types/query-string": "^6.3.0",
|
||||||
"@types/react": "^16.8.19",
|
"@types/react": "^16.9.15",
|
||||||
"@types/react-dom": "^16.8.4",
|
"@types/react-dom": "^16.9.4",
|
||||||
"@types/react-redux": "^7.1.1",
|
"@types/react-redux": "^7.1.1",
|
||||||
"@types/react-router-dom": "^4.3.3",
|
"@types/react-router": "^5.1.3",
|
||||||
|
"@types/react-router-dom": "^5.1.3",
|
||||||
"@types/react-transition-group": "^2.9.2",
|
"@types/react-transition-group": "^2.9.2",
|
||||||
"@types/styled-components": "^4.1.18",
|
"@types/styled-components": "^4.4.0",
|
||||||
"@types/uuid": "^3.4.5",
|
"@types/uuid": "^3.4.5",
|
||||||
"@types/webpack-env": "^1.13.6",
|
"@types/webpack-env": "^1.13.6",
|
||||||
"@types/yup": "^0.26.17",
|
"@types/yup": "^0.26.17",
|
||||||
@ -70,7 +70,7 @@
|
|||||||
"babel-loader": "^8.0.6",
|
"babel-loader": "^8.0.6",
|
||||||
"babel-plugin-styled-components": "^1.10.6",
|
"babel-plugin-styled-components": "^1.10.6",
|
||||||
"babel-plugin-tailwind-components": "^0.5.10",
|
"babel-plugin-tailwind-components": "^0.5.10",
|
||||||
"css-loader": "^3.2.0",
|
"css-loader": "^3.2.1",
|
||||||
"cssnano": "^4.1.10",
|
"cssnano": "^4.1.10",
|
||||||
"eslint": "^5.16.0",
|
"eslint": "^5.16.0",
|
||||||
"eslint-config-standard": "^12.0.0",
|
"eslint-config-standard": "^12.0.0",
|
||||||
@ -83,12 +83,12 @@
|
|||||||
"glob-all": "^3.1.0",
|
"glob-all": "^3.1.0",
|
||||||
"html-webpack-plugin": "^3.2.0",
|
"html-webpack-plugin": "^3.2.0",
|
||||||
"mini-css-extract-plugin": "^0.8.0",
|
"mini-css-extract-plugin": "^0.8.0",
|
||||||
"postcss": "^7.0.21",
|
"postcss": "^7.0.24",
|
||||||
"postcss-import": "^12.0.1",
|
"postcss-import": "^12.0.1",
|
||||||
"postcss-loader": "^3.0.0",
|
"postcss-loader": "^3.0.0",
|
||||||
"postcss-preset-env": "^6.7.0",
|
"postcss-preset-env": "^6.7.0",
|
||||||
"precss": "^4.0.0",
|
"precss": "^4.0.0",
|
||||||
"purgecss-webpack-plugin": "^1.1.0",
|
"purgecss-webpack-plugin": "^1.6.0",
|
||||||
"resolve-url-loader": "^3.0.0",
|
"resolve-url-loader": "^3.0.0",
|
||||||
"source-map-loader": "^0.2.4",
|
"source-map-loader": "^0.2.4",
|
||||||
"style-loader": "^0.23.1",
|
"style-loader": "^0.23.1",
|
||||||
@ -96,17 +96,18 @@
|
|||||||
"terser-webpack-plugin": "^1.3.0",
|
"terser-webpack-plugin": "^1.3.0",
|
||||||
"ts-loader": "^5.3.3",
|
"ts-loader": "^5.3.3",
|
||||||
"typescript": "^3.6.3",
|
"typescript": "^3.6.3",
|
||||||
"webpack": "^4.40.2",
|
"webpack": "^4.41.2",
|
||||||
"webpack-assets-manifest": "^3.1.1",
|
"webpack-assets-manifest": "^3.1.1",
|
||||||
"webpack-cli": "^3.3.9",
|
"webpack-cli": "^3.3.10",
|
||||||
"webpack-dev-server": "^3.8.1",
|
"webpack-dev-server": "^3.9.0",
|
||||||
"webpack-manifest-plugin": "^2.0.3"
|
"webpack-manifest-plugin": "^2.0.3",
|
||||||
|
"yarn-deduplicate": "^1.1.1"
|
||||||
},
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"clean": "rm -rf public/assets/*.js && rm -rf public/assets/*.css",
|
"clean": "rm -rf public/assets/*.js && rm -rf public/assets/*.css",
|
||||||
"watch": "NODE_ENV=development ./node_modules/.bin/webpack --watch --progress",
|
"watch": "NODE_ENV=development ./node_modules/.bin/webpack --watch --progress",
|
||||||
"build": "NODE_ENV=development ./node_modules/.bin/webpack --progress",
|
"build": "NODE_ENV=development ./node_modules/.bin/webpack --progress",
|
||||||
"build:production": "NODE_ENV=production ./node_modules/.bin/webpack",
|
"build:production": "NODE_ENV=production ./node_modules/.bin/webpack --mode production",
|
||||||
"serve": "yarn run clean && PUBLIC_PATH=https://pterodactyl.test:8080 NODE_ENV=development webpack-dev-server --host 0.0.0.0 --hot --https --key /etc/ssl/private/pterodactyl.test-key.pem --cert /etc/ssl/private/pterodactyl.test.pem"
|
"serve": "yarn run clean && PUBLIC_PATH=https://pterodactyl.test:8080 NODE_ENV=development webpack-dev-server --host 0.0.0.0 --hot --https --key /etc/ssl/private/pterodactyl.test-key.pem --cert /etc/ssl/private/pterodactyl.test.pem"
|
||||||
},
|
},
|
||||||
"browserslist": [
|
"browserslist": [
|
||||||
|
@ -5,7 +5,7 @@ export default (server: string, file: string): Promise<string> => {
|
|||||||
http.get(`/api/client/servers/${server}/files/contents`, {
|
http.get(`/api/client/servers/${server}/files/contents`, {
|
||||||
params: { file },
|
params: { file },
|
||||||
transformResponse: res => res,
|
transformResponse: res => res,
|
||||||
responseType: 'text/plain',
|
responseType: 'text',
|
||||||
})
|
})
|
||||||
.then(({ data }) => resolve(data))
|
.then(({ data }) => resolve(data))
|
||||||
.catch(reject);
|
.catch(reject);
|
||||||
|
@ -53,7 +53,11 @@ module.exports = {
|
|||||||
performance: {
|
performance: {
|
||||||
hints: false,
|
hints: false,
|
||||||
},
|
},
|
||||||
entry: ['./resources/styles/main.css', './resources/scripts/index.tsx'],
|
entry: [
|
||||||
|
'react-hot-loader/patch',
|
||||||
|
'./resources/styles/main.css',
|
||||||
|
'./resources/scripts/index.tsx',
|
||||||
|
],
|
||||||
output: {
|
output: {
|
||||||
path: path.resolve(__dirname, 'public/assets'),
|
path: path.resolve(__dirname, 'public/assets'),
|
||||||
filename: isProduction ? 'bundle.[chunkhash:8].js' : 'bundle.[hash:8].js',
|
filename: isProduction ? 'bundle.[chunkhash:8].js' : 'bundle.[hash:8].js',
|
||||||
@ -138,7 +142,6 @@ module.exports = {
|
|||||||
extensions: ['.ts', '.tsx', '.js', '.json'],
|
extensions: ['.ts', '.tsx', '.js', '.json'],
|
||||||
alias: {
|
alias: {
|
||||||
'@': path.join(__dirname, 'resources/scripts'),
|
'@': path.join(__dirname, 'resources/scripts'),
|
||||||
'react-dom': '@hot-loader/react-dom',
|
|
||||||
},
|
},
|
||||||
symlinks: false,
|
symlinks: false,
|
||||||
},
|
},
|
||||||
|
Loading…
Reference in New Issue
Block a user