Add early search prototype on the client, add leave button
This commit is contained in:
parent
deba58dbff
commit
7aae7685c5
19 changed files with 297 additions and 60 deletions
15
client/src/js/actions/search.js
Normal file
15
client/src/js/actions/search.js
Normal file
|
@ -0,0 +1,15 @@
|
|||
var Reflux = require('reflux');
|
||||
|
||||
var socket = require('../socket');
|
||||
|
||||
var searchActions = Reflux.createActions([
|
||||
'search',
|
||||
'searchDone',
|
||||
'toggle'
|
||||
]);
|
||||
|
||||
searchActions.search.preEmit = (server, channel, phrase) => {
|
||||
socket.send('search', { server, channel, phrase });
|
||||
};
|
||||
|
||||
module.exports = searchActions;
|
Loading…
Add table
Add a link
Reference in a new issue