Update dependencies

This commit is contained in:
Ken-Håvard Lieng 2019-02-08 09:10:06 +01:00
parent 4eda7ef396
commit c1e1f2c327
60 changed files with 1126 additions and 711 deletions

View file

@ -80,7 +80,7 @@ export default createCommandMiddleware(COMMAND, {
if (newTopic.length > 0) {
dispatch(setTopic(newTopic.join(' '), channel, server));
return;
} else if (channel) {
} if (channel) {
const { topic } = getState().channels[server][channel];
if (topic) {
return text(topic);

View file

@ -90,7 +90,7 @@ export default class TabList extends PureComponent {
{privateChats[address].length}
</span>
</span>
{/*<Button>+</Button>*/}
{/* <Button>+</Button> */}
</div>
);

View file

@ -56,7 +56,7 @@ export default function withModal({ name, ...modalProps }) {
});
const mapDispatch = dispatch => {
let actions = { onRequestClose: () => dispatch(closeModal(name)) };
const actions = { onRequestClose: () => dispatch(closeModal(name)) };
if (modalProps.actions) {
return {
...actions,

View file

@ -13,11 +13,13 @@ const fetchThreshold = 600;
// this is done to prevent the scroll from jumping all over the place
const scrollbackDebounce = 150;
const scrollBarWidth = measureScrollBarWidth() + 'px';
const scrollBarWidth = `${measureScrollBarWidth() }px`;
export default class MessageBox extends PureComponent {
state = { topDate: '' };
list = createRef();
outer = createRef();
addMore = debounce(() => {
@ -91,7 +93,7 @@ export default class MessageBox extends PureComponent {
return 100;
}
return 7;
} else if (index === messages.length + 1) {
} if (index === messages.length + 1) {
return 7;
}
return messages[index - 1].height;
@ -102,7 +104,7 @@ export default class MessageBox extends PureComponent {
if (index === 0) {
return 'top';
} else if (index === messages.length + 1) {
} if (index === messages.length + 1) {
return 'bottom';
}
return messages[index - 1].id;
@ -218,7 +220,7 @@ export default class MessageBox extends PureComponent {
);
}
return null;
} else if (index === messages.length + 1) {
} if (index === messages.length + 1) {
return null;
}

View file

@ -28,7 +28,7 @@ export default class UserList extends PureComponent {
if (index === 0) {
return 12;
} else if (index === users.length + 1) {
} if (index === users.length + 1) {
return 10;
}
return 24;
@ -39,7 +39,7 @@ export default class UserList extends PureComponent {
if (index === 0) {
return 'top';
} else if (index === users.length + 1) {
} if (index === users.length + 1) {
return 'bottom';
}
return index;

View file

@ -67,7 +67,7 @@ class Connect extends Component {
.filter(s => s)
.join(',');
return comma ? channels + ',' : channels;
return comma ? `${channels },` : channels;
};
render() {

View file

@ -23,11 +23,9 @@ function registerValidSW(swUrl, config) {
if (config && config.onUpdate) {
config.onUpdate(registration);
}
} else {
if (config && config.onSuccess) {
} else if (config && config.onSuccess) {
config.onSuccess(registration);
}
}
}
};
};

View file

@ -79,7 +79,7 @@ export function setCert(fileName, cert) {
return {
type: actions.SET_CERT,
fileName,
cert: cert
cert
};
}
@ -87,7 +87,7 @@ export function setKey(fileName, key) {
return {
type: actions.SET_KEY,
fileName,
key: key
key
};
}

View file

@ -1,4 +1,4 @@
let width, height;
let width; let height;
const listeners = [];
function update() {