Upgrade babel to 6.4.0, fail gulp builds on webpack errors

This commit is contained in:
Ken-Håvard Lieng 2016-01-07 00:28:11 +01:00
parent 47dd4f51cb
commit d7c5d0f9cd
16 changed files with 36 additions and 33 deletions

View file

@ -68,7 +68,7 @@ export function setNick(nick, server) {
socket: {
type: 'nick',
data: {
'new': nick,
new: nick,
server
}
}

View file

@ -16,7 +16,7 @@ export default class ChatTitle extends Component {
} else {
disconnect(tab.server);
}
}
};
render() {
const { title, tab, channel, toggleSearch } = this.props;

View file

@ -8,7 +8,7 @@ import MessageLine from './MessageLine';
export default class MessageBox extends Component {
state = {
height: window.innerHeight - 100
}
};
componentDidMount() {
this.updateWidth();
@ -43,12 +43,12 @@ export default class MessageBox extends Component {
setWrapWidth(width);
}
}
}
};
handleResize = () => {
this.updateWidth();
this.setState({ height: window.innerHeight - 100 });
}
};
render() {
const { tab, messages, select, openPrivateChat } = this.props;

View file

@ -12,7 +12,7 @@ export default class MessageHeader extends Component {
openPrivateChat(message.server, message.from);
select(message.server, message.from, true);
}
};
render() {
const { message } = this.props;

View file

@ -5,7 +5,7 @@ import pure from 'pure-render-decorator';
export default class MessageInput extends Component {
state = {
value: ''
}
};
handleKey = e => {
const { tab, runCommand, sendMessage, addInputHistory, incrementInputHistory,
@ -34,11 +34,11 @@ export default class MessageInput extends Component {
this.setState({ value: e.target.value });
resetInputHistory();
}
}
};
handleChange = e => {
this.setState({ value: e.target.value });
}
};
render() {
return (

View file

@ -5,7 +5,7 @@ import { toggleMenu } from '../actions/tab';
@pure
class Navicon extends Component {
handleClick = () => this.props.dispatch(toggleMenu())
handleClick = () => this.props.dispatch(toggleMenu());
render() {
return (

View file

@ -10,7 +10,7 @@ export default class Search extends Component {
}
}
handleSearch = e => this.props.onSearch(e.target.value)
handleSearch = e => this.props.onSearch(e.target.value);
render() {
const { search } = this.props;

View file

@ -7,17 +7,17 @@ export default class TabList extends Component {
handleTabClick = (server, target) => {
this.props.select(server, target, target && target.charAt(0) !== '#');
this.props.hideMenu();
}
};
handleConnectClick = () => {
this.props.pushPath('/connect');
this.props.hideMenu();
}
};
handleSettingsClick = () => {
this.props.pushPath('/settings');
this.props.hideMenu();
}
};
render() {
const { channels, servers, privateChats, showMenu, selected } = this.props;

View file

@ -6,7 +6,7 @@ export default class TabListItem extends Component {
handleClick = () => {
const { server, target, onClick } = this.props;
onClick(server, target);
}
};
render() {
const { target, content, selected } = this.props;

View file

@ -7,7 +7,7 @@ import UserListItem from './UserListItem';
export default class UserList extends Component {
state = {
height: window.innerHeight - 100
}
};
componentDidMount() {
window.addEventListener('resize', this.handleResize);
@ -19,7 +19,7 @@ export default class UserList extends Component {
handleResize = () => {
this.setState({ height: window.innerHeight - 100 });
}
};
render() {
const { tab, openPrivateChat, select } = this.props;

View file

@ -8,7 +8,7 @@ export default class UserListItem extends Component {
openPrivateChat(tab.server, user.nick);
select(tab.server, user.nick, true);
}
};
render() {
return <p onClick={this.handleClick}>{this.props.user.renderName}</p>;

View file

@ -60,7 +60,7 @@ class Chat extends Component {
if (tab.channel) {
dispatch(searchMessages(tab.server, tab.channel, phrase));
}
}
};
render() {
const { tab, channel, search, history, dispatch } = this.props;

View file

@ -10,7 +10,7 @@ import { select } from '../actions/tab';
class Connect extends Component {
state = {
showOptionals: false
}
};
handleSubmit = (e) => {
e.preventDefault();
@ -38,11 +38,11 @@ class Connect extends Component {
dispatch(join(channels, address));
}
}
}
};
handleShowClick = () => {
this.setState({ showOptionals: !this.state.showOptionals });
}
};
render() {
let optionals = null;