Skip to content

Samipublicchat#18

Open
nj-io wants to merge 13 commits intomasterfrom
samipublicchat
Open

Samipublicchat#18
nj-io wants to merge 13 commits intomasterfrom
samipublicchat

Conversation

@nj-io
Copy link
Copy Markdown
Collaborator

@nj-io nj-io commented Jan 24, 2018

css update and general interface improvement

Copy link
Copy Markdown
Collaborator

@claireinez claireinez left a comment

Choose a reason for hiding this comment

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

Please get rid of the console logs and commented out code!

Comment thread config.env Outdated
@@ -0,0 +1 @@
DATABASE_URL= postgres://postgress:12345678@localhost:5432/cryptodb
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

This file shouldn't be in source control

Comment thread src/backEnd/SocketManager.js Outdated
@@ -0,0 +1,91 @@
const { io } = require('./server.js');
// console.log('poopoo', io);
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

lol

Comment thread src/backEnd/server.js Outdated

const app = express();
const server = require('http').Server(app);
// const io = require('socket.io')(server);
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

nope

Comment thread src/backEnd/server.js
const app = express();
const server = require('http').Server(app);
// const io = require('socket.io')(server);
var io = (module.exports.io = require('socket.io')(server));
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Why's this a var when all the others are consts?

Comment thread src/backEnd/server.js Outdated

// module.exports = io;

// const express = require('express');
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Come on, you know how I feel about commented out code

Comment thread src/js/PublicChat.jsx
}
}

${
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

What was this block for?

Comment thread src/js/PublicChat.jsx
border-top-left-radius: 5px;
}

${
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

What are these ${ } blocks?

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Can you get rid of these blocks? What are they for?

Comment thread src/js/SideBar.jsx
@@ -0,0 +1,77 @@
import React, { Component } from 'react';
import FAChevronDown from 'react-icons/lib/md/keyboard-arrow-down';
import FAMenu from 'react-icons/lib/fa/list-ul';
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

These aren't used so delete them

Comment thread src/js/SideBar.jsx Outdated
const { chats, activeChat, user, setActiveChat, logout } = this.props;
return (
<div id="side-bar">
{/* <div className="heading">
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Get rid of the commented out code

Comment thread webpack.config.js
'react-hot-loader/patch',
'webpack-dev-server/client?http://localhost:8080',
'webpack/hot/only-dev-server',
// 'react-hot-loader/patch',
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

I'm not sure why these have been commented out. I think they are needed.

@Karyum
Copy link
Copy Markdown
Contributor

Karyum commented Jan 24, 2018

@ionush change title and PR description to relate to an issue

Comment thread config.env
@@ -0,0 +1 @@
DATABASE_URL= postgres://samis:12345@localhost:8080/coin
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

This file shouldn't be in source control.

Comment thread src/backEnd/server.js

const app = express();
const server = require('http').Server(app);
var io = (module.exports.io = require('socket.io')(server));
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Make this a const

Comment thread src/js/InfoBox.jsx
currentPrice: null,
differenceDollars: null,
differencePercentage: null,
monthChangeD: null,
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

These should still be differenceDollars and differencePercentage throughout this file.

Comment thread src/js/PublicChat.jsx
border-top-left-radius: 5px;
}

${
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Can you get rid of these blocks? What are they for?

Comment thread webpack.config.js
module.exports = {
context: __dirname,
entry: [
'react-hot-loader/patch',
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

These shouldn't have been deleted, right?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants