Update babel packages to match major, fix dependency issues #591
12 changed files with 2056 additions and 3255 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -22,3 +22,4 @@ public/bundle/bundle.js.map
|
||||||
public/bundle/Lekton-*
|
public/bundle/Lekton-*
|
||||||
public/bundle/style.css
|
public/bundle/style.css
|
||||||
|
|
||||||
|
uploads
|
|
@ -1,19 +1,16 @@
|
||||||
import React from 'react';
|
import { connect } from 'react-redux';
|
||||||
import PageLayout from '@components/PageLayout';
|
import { onHandleShowPageUri } from '../../actions/show';
|
||||||
|
import View from './view';
|
||||||
|
|
||||||
import PublishTool from '@containers/PublishTool';
|
const mapStateToProps = ({ show }) => {
|
||||||
|
return {
|
||||||
class HomePage extends React.Component {
|
error : show.request.error,
|
||||||
render () {
|
requestType: show.request.type,
|
||||||
return (
|
};
|
||||||
<PageLayout
|
|
||||||
pageTitle={'Speech'}
|
|
||||||
pageUri={''}
|
|
||||||
>
|
|
||||||
<PublishTool />
|
|
||||||
</PageLayout>
|
|
||||||
);
|
|
||||||
}
|
|
||||||
};
|
};
|
||||||
|
|
||||||
export default HomePage;
|
const mapDispatchToProps = {
|
||||||
|
onHandleShowPageUri,
|
||||||
|
};
|
||||||
|
|
||||||
|
export default connect(mapStateToProps, mapDispatchToProps)(View);
|
||||||
|
|
19
client/src/pages/HomePage/view.jsx
Normal file
19
client/src/pages/HomePage/view.jsx
Normal file
|
@ -0,0 +1,19 @@
|
||||||
|
import React from 'react';
|
||||||
|
import PageLayout from '@components/PageLayout';
|
||||||
|
|
||||||
|
import PublishTool from '@containers/PublishTool';
|
||||||
|
|
||||||
|
class HomePage extends React.Component {
|
||||||
|
render () {
|
||||||
|
return (
|
||||||
|
<PageLayout
|
||||||
|
pageTitle={'Speech'}
|
||||||
|
pageUri={''}
|
||||||
|
>
|
||||||
|
<PublishTool />
|
||||||
|
</PageLayout>
|
||||||
|
);
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
export default HomePage;
|
|
@ -11,7 +11,7 @@ server {
|
||||||
|
|
||||||
ssl_session_cache shared:SSL:20m;
|
ssl_session_cache shared:SSL:20m;
|
||||||
ssl_session_timeout 1440m;
|
ssl_session_timeout 1440m;
|
||||||
ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
|
ssl_protocols TLSv1.1 TLSv1.2;
|
||||||
ssl_prefer_server_ciphers on;
|
ssl_prefer_server_ciphers on;
|
||||||
# Using list of ciphers from https://github.com/cloudflare/sslconfig
|
# Using list of ciphers from https://github.com/cloudflare/sslconfig
|
||||||
ssl_ciphers EECDH+CHACHA20:EECDH+AES128:RSA+AES128:EECDH+AES256:RSA+AES256:EECDH+3DES:RSA+3DES:!MD5;
|
ssl_ciphers EECDH+CHACHA20:EECDH+AES128:RSA+AES128:EECDH+AES256:RSA+AES256:EECDH+3DES:RSA+3DES:!MD5;
|
||||||
|
|
5224
package-lock.json
generated
5224
package-lock.json
generated
File diff suppressed because it is too large
Load diff
19
package.json
19
package.json
|
@ -81,19 +81,16 @@
|
||||||
"winston-slack-webhook": "github:billbitt/winston-slack-webhook"
|
"winston-slack-webhook": "github:billbitt/winston-slack-webhook"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@babel/cli": "^7.0.0-beta.51",
|
"@babel/cli": "^7.0.0",
|
||||||
"@babel/core": "^7.0.0-beta.51",
|
"@babel/core": "^7.0.0",
|
||||||
"@babel/plugin-proposal-object-rest-spread": "^7.0.0-beta.51",
|
"@babel/plugin-proposal-object-rest-spread": "^7.0.0",
|
||||||
"@babel/preset-env": "^7.0.0-beta.51",
|
"@babel/polyfill": "^7.0.0",
|
||||||
"@babel/preset-react": "^7.0.0-beta.51",
|
"@babel/preset-env": "^7.0.0",
|
||||||
|
"@babel/preset-react": "^7.0.0",
|
||||||
|
"@babel/preset-stage-2": "^7.0.0",
|
||||||
|
"@babel/register": "^7.0.0",
|
||||||
"babel-loader": "^7.1.2",
|
"babel-loader": "^7.1.2",
|
||||||
"babel-plugin-module-resolver": "^3.1.1",
|
"babel-plugin-module-resolver": "^3.1.1",
|
||||||
"babel-plugin-transform-object-rest-spread": "^6.26.0",
|
|
||||||
"babel-polyfill": "^6.26.0",
|
|
||||||
"babel-preset-es2015": "^6.24.1",
|
|
||||||
"babel-preset-react": "^6.24.1",
|
|
||||||
"babel-preset-stage-2": "^6.24.1",
|
|
||||||
"babel-register": "^6.26.0",
|
|
||||||
"builder": "^4.0.0",
|
"builder": "^4.0.0",
|
||||||
"chai": "^4.1.2",
|
"chai": "^4.1.2",
|
||||||
"chai-http": "^4.0.0",
|
"chai-http": "^4.0.0",
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
// module imports
|
// module imports
|
||||||
const moduleAlias = require('module-alias');
|
const moduleAlias = require('module-alias');
|
||||||
require('babel-polyfill');
|
require('@babel/polyfill');
|
||||||
|
|
||||||
// local imports
|
// local imports
|
||||||
const createModuleAliases = require('./utils/createModuleAliases.js');
|
const createModuleAliases = require('./utils/createModuleAliases.js');
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
const logger = require('winston');
|
const logger = require('winston');
|
||||||
const db = require('../../../../models/index');
|
const db = require('../../../../models');
|
||||||
|
|
||||||
const authenticateChannelCredentials = (channelName, channelId, userPassword) => {
|
const authenticateChannelCredentials = (channelName, channelId, userPassword) => {
|
||||||
return new Promise((resolve, reject) => {
|
return new Promise((resolve, reject) => {
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
const logger = require('winston');
|
const logger = require('winston');
|
||||||
|
|
||||||
const db = require('../../models/index');
|
const db = require('../../models');
|
||||||
|
|
||||||
const getClaimIdByChannel = (channelName, channelClaimId, claimName) => {
|
const getClaimIdByChannel = (channelName, channelClaimId, claimName) => {
|
||||||
logger.debug(`getClaimIdByChannel(${channelName}, ${channelClaimId}, ${claimName})`);
|
logger.debug(`getClaimIdByChannel(${channelName}, ${channelClaimId}, ${claimName})`);
|
||||||
|
|
|
@ -9,7 +9,7 @@ const logger = require('winston');
|
||||||
const Path = require('path');
|
const Path = require('path');
|
||||||
|
|
||||||
// load local modules
|
// load local modules
|
||||||
const db = require('./models/index');
|
const db = require('./models');
|
||||||
const requestLogger = require('./middleware/requestLogger.js');
|
const requestLogger = require('./middleware/requestLogger.js');
|
||||||
const createDatabaseIfNotExists = require('./models/utils/createDatabaseIfNotExists.js');
|
const createDatabaseIfNotExists = require('./models/utils/createDatabaseIfNotExists.js');
|
||||||
const { getWalletBalance } = require('./lbrynet/index');
|
const { getWalletBalance } = require('./lbrynet/index');
|
||||||
|
|
|
@ -9,7 +9,12 @@ const User = require('./user.js');
|
||||||
const Blocked = require('./blocked.js');
|
const Blocked = require('./blocked.js');
|
||||||
const Tor = require('./tor.js');
|
const Tor = require('./tor.js');
|
||||||
|
|
||||||
const {database, username, password} = require('@config/mysqlConfig');
|
const {
|
||||||
|
database,
|
||||||
|
username,
|
||||||
|
password,
|
||||||
|
} = require('@config/mysqlConfig');
|
||||||
|
|
||||||
if (!database || !username || !password) {
|
if (!database || !username || !password) {
|
||||||
logger.warn('missing database, user, or password from mysqlConfig');
|
logger.warn('missing database, user, or password from mysqlConfig');
|
||||||
}
|
}
|
||||||
|
|
|
@ -7,7 +7,7 @@ const customAliases = createModuleAliases();
|
||||||
|
|
||||||
module.exports = {
|
module.exports = {
|
||||||
target: 'web',
|
target: 'web',
|
||||||
entry : ['babel-polyfill', 'whatwg-fetch', './client/build/index.js'],
|
entry : ['@babel/polyfill', 'whatwg-fetch', './client/build/index.js'],
|
||||||
output: {
|
output: {
|
||||||
path : Path.join(__dirname, 'public/bundle'),
|
path : Path.join(__dirname, 'public/bundle'),
|
||||||
publicPath: '/bundle/',
|
publicPath: '/bundle/',
|
||||||
|
|
Loading…
Add table
Reference in a new issue