Use Yana's emojis.

This commit is contained in:
Boris Grozev 2018-02-08 23:03:48 -06:00
parent 56f82b16c2
commit d7c5d4126f
2 changed files with 16 additions and 3 deletions

View File

@ -18,7 +18,19 @@ const REACTIONS = [
];
// FIXME Pretend there's a list of supported reactions (i.e. reaction buttons).
for (let i = 1; i < 21; ++i) {
REACTIONS.push('bomb');
REACTIONS.push('bulb');
REACTIONS.push('clap');
REACTIONS.push('fistbump');
REACTIONS.push('heart');
REACTIONS.push('highfive');
REACTIONS.push('perfect');
REACTIONS.push('sleep');
REACTIONS.push('star');
REACTIONS.push('thumbsdown');
REACTIONS.push('thumbsup');
for (let i = 1; i < 11; ++i) {
REACTIONS.push(`smiley${i}`);
}
@ -72,7 +84,7 @@ class ReactionsDialog extends Component<Props> {
<img
className = 'reactions-dialog-cell'
onClick = { this._onClick.bind(this, reaction) }
src = { `images/smileys/${reaction}.svg` } />
src = { `images/emojis/${reaction}.png` } />
);
/* eslint-enable react/jsx-no-bind */

View File

@ -183,7 +183,8 @@ module.exports = [
* target, undefined; otherwise, the path to the local file to be served.
*/
function devServerProxyBypass({ path }) {
if (path.startsWith('/css/') || path.startsWith('/doc/')) {
if (path.startsWith('/css/') || path.startsWith('/doc/')
|| path.startsWith('/images/')) {
return path;
}