-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
chore(image-upload):configure cloudinary #1
base: master
Are you sure you want to change the base?
Conversation
client/webpack.config.js
Outdated
devtool: setDevTool() | ||
}, | ||
node: { | ||
fs: "empty" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Strings must use singlequote quotes
client/webpack.config.js
Outdated
}, | ||
plugins: [ | ||
new HtmlWebpackPlugin({ | ||
template: __dirname + "/client/public/index.html", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Use path.join() or path.resolve() instead of + to create paths no-path-concat
Strings must use singlequote quotes
client/webpack.config.js
Outdated
__dirname + "/client/src/index.jsx", | ||
], | ||
output: { | ||
path: __dirname + "/client/dist", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Use path.join() or path.resolve() instead of + to create paths no-path-concat
Strings must use singlequote quotes
client/webpack.config.js
Outdated
test: /\.html$/, | ||
use: ['html-loader'] | ||
entry: [ | ||
__dirname + "/client/src/index.jsx", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Use path.join() or path.resolve() instead of + to create paths no-path-concat
Strings must use singlequote quotes
client/webpack.config.js
Outdated
if (isDevelopment) { | ||
publicPath = `http://localhost:${PORT}/` | ||
} else if (isProduction) { | ||
publicPath = `${ROOT_URL}` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Missing semicolon semi
client/webpack.config.js
Outdated
publicPath = `${ROOT_URL}` | ||
} | ||
return publicPath; | ||
let publicPath |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Missing semicolon semi
client/webpack.config.js
Outdated
} else if (isProduction) { | ||
return 'source-map' | ||
} else { | ||
return 'inline-source-map' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Missing semicolon semi
client/webpack.config.js
Outdated
return 'eval' | ||
} else if (isProduction) { | ||
return 'source-map' | ||
} else { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Unnecessary 'else' after 'return' no-else-return
client/webpack.config.js
Outdated
if (isDevelopment) { | ||
return 'eval' | ||
} else if (isProduction) { | ||
return 'source-map' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Missing semicolon semi
client/webpack.config.js
Outdated
return 'inline-source-map' | ||
} | ||
if (isDevelopment) { | ||
return 'eval' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Missing semicolon semi
done(); | ||
}); | ||
}).timeout(5000); | ||
it('it should not post user credentials to database where email exist on the database', (done) => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Line 111 exceeds the maximum line length of 100 max-len
}); | ||
}).timeout(5000); | ||
// Each username should be unique | ||
it('it should not post user credentials to database where username exist on the database', (done) => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Line 87 exceeds the maximum line length of 100 max-len
} | ||
}); | ||
}, | ||
down: function(queryInterface, Sequelize) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
'Sequelize' is defined but never used no-unused-vars
password, | ||
confirmPassword | ||
} = req.body; | ||
if (username === (null || '') || email === (null || '') || password === (null || '') || confirmPassword === (null || '')) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Line 28 exceeds the maximum line length of 100 max-len
return res.status(401).send({ message: 'Your session has expired. Please try logging in again' }); | ||
let decoded = jwt.decode(token, secret, { algorithm: 'HS256' }); | ||
if (decoded === null) { | ||
return res.status(401).send({ message: 'Your session has expired. Please try logging in again' }); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Line 88 exceeds the maximum line length of 100 max-len
if (isDevelopment) { | ||
publicPath = `http://localhost:${PORT}/` | ||
} else if (isProduction) { | ||
publicPath = `${ROOT_URL}` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Missing semicolon semi
const setPublicPath = () => { | ||
let publicPath | ||
if (isDevelopment) { | ||
publicPath = `http://localhost:${PORT}/` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Missing semicolon semi
} | ||
} | ||
const setPublicPath = () => { | ||
let publicPath |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Missing semicolon semi
} else { | ||
return 'inline-source-map' | ||
} | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Missing semicolon semi
} else if (isProduction) { | ||
return 'source-map' | ||
} else { | ||
return 'inline-source-map' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Missing semicolon semi
return 'eval' | ||
} else if (isProduction) { | ||
return 'source-map' | ||
} else { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Unnecessary 'else' after 'return' no-else-return
if (isDevelopment) { | ||
return 'eval' | ||
} else if (isProduction) { | ||
return 'source-map' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Missing semicolon semi
|
||
const setDevTool = () => { | ||
if (isDevelopment) { | ||
return 'eval' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Missing semicolon semi
CLOUDINARY_API_KEY, | ||
CLOUDINARY_API_SECRET, | ||
CLOUD_NAME, | ||
} = process.env |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Missing semicolon semi
Modify content handling by using cloudinary API