Skip to content
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

Open
wants to merge 8 commits into
base: master
Choose a base branch
from

Conversation

hephzaron
Copy link
Owner

Modify content handling by using cloudinary API

devtool: setDevTool()
},
node: {
fs: "empty"

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

},
plugins: [
new HtmlWebpackPlugin({
template: __dirname + "/client/public/index.html",

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

__dirname + "/client/src/index.jsx",
],
output: {
path: __dirname + "/client/dist",

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

test: /\.html$/,
use: ['html-loader']
entry: [
__dirname + "/client/src/index.jsx",

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

if (isDevelopment) {
publicPath = `http://localhost:${PORT}/`
} else if (isProduction) {
publicPath = `${ROOT_URL}`

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Missing semicolon semi

publicPath = `${ROOT_URL}`
}
return publicPath;
let publicPath

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'

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 {

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'

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Missing semicolon semi

return 'inline-source-map'
}
if (isDevelopment) {
return 'eval'

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Missing semicolon semi

@coveralls
Copy link

coveralls commented Apr 24, 2018

Coverage Status

Coverage increased (+0.03%) to 83.712% when pulling 137e30e on cloudinary-api into 655763a on master.

done();
});
}).timeout(5000);
it('it should not post user credentials to database where email exist on the database', (done) => {

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) => {

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) {

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 || '')) {

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' });

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}`

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}/`

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

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'
}
}

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'

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 {

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'

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'

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

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Missing semicolon semi

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants