Update client dependencies

This commit is contained in:
Ken-Håvard Lieng 2018-08-12 23:19:17 +02:00
parent f20ca4038e
commit 004e7890e5
9 changed files with 1733 additions and 1595 deletions

View file

@ -53,13 +53,13 @@ button:active {
background: #6bb758;
}
input[type=checkbox] {
input[type='checkbox'] {
position: absolute;
left: -99999px;
opacity: 0;
}
input[type=checkbox] + span {
input[type='checkbox'] + span {
width: 20px;
height: 20px;
border: 2px solid #777;
@ -67,19 +67,19 @@ input[type=checkbox] + span {
position: relative;
}
input[type=checkbox]:checked + span {
input[type='checkbox']:checked + span {
background: #6bb758;
border-color: #6bb758;
}
input[type=checkbox]:checked + span:before {
content: "";
input[type='checkbox']:checked + span:before {
content: '';
width: 5px;
height: 10px;
border-right: 3px solid #FFF;
border-bottom: 3px solid #FFF;
border-right: 3px solid #fff;
border-bottom: 3px solid #fff;
position: absolute;
color: #FFF;
color: #fff;
transform: rotate(45deg);
left: 4px;
}

View file

@ -4,7 +4,9 @@ import TabListItem from './TabListItem';
export default class TabList extends PureComponent {
handleTabClick = (server, target) => this.props.select(server, target);
handleConnectClick = () => this.props.push('/connect');
handleSettingsClick = () => this.props.push('/settings');
render() {

View file

@ -29,7 +29,10 @@ export default class ChatTitle extends PureComponent {
let serverError = null;
if (!tab.name && status.error) {
serverError = (
<span className="chat-topic error">Error: {status.error}</span>
<span className="chat-topic error">
Error:
{status.error}
</span>
);
}

View file

@ -98,9 +98,12 @@ describe('message reducer', () => {
};
const thunk = broadcast('test', 'srv', ['#chan1', '#chan3']);
thunk(action => {
state.messages = reducer(undefined, action);
}, () => state);
thunk(
action => {
state.messages = reducer(undefined, action);
},
() => state
);
const messages = state.messages;

View file

@ -64,7 +64,8 @@ export function isValidNick(nick, maxLength = 30) {
char > 125
) {
return false;
} else if ((i === 0 && char < 65) || char > 125) {
}
if ((i === 0 && char < 65) || char > 125) {
return false;
}
}