Update dependencies
This commit is contained in:
parent
4eda7ef396
commit
c1e1f2c327
60 changed files with 1126 additions and 711 deletions
|
@ -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);
|
||||
|
|
|
@ -90,7 +90,7 @@ export default class TabList extends PureComponent {
|
|||
{privateChats[address].length}
|
||||
</span>
|
||||
</span>
|
||||
{/*<Button>+</Button>*/}
|
||||
{/* <Button>+</Button> */}
|
||||
</div>
|
||||
);
|
||||
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -67,7 +67,7 @@ class Connect extends Component {
|
|||
.filter(s => s)
|
||||
.join(',');
|
||||
|
||||
return comma ? channels + ',' : channels;
|
||||
return comma ? `${channels },` : channels;
|
||||
};
|
||||
|
||||
render() {
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
};
|
||||
|
|
|
@ -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
|
||||
};
|
||||
}
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
let width, height;
|
||||
let width; let height;
|
||||
const listeners = [];
|
||||
|
||||
function update() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue