Commit Graph

46 Commits

Author SHA1 Message Date
Franck Royer 462569583f
Make command handling more robust 2021-04-27 16:26:32 +10:00
Franck Royer f65d4a20ff
Implement auto-scroll of the chat list 2021-04-27 14:58:20 +10:00
Franck Royer 2d037c3e46
Attempt to fix double scrollbar issue 2021-04-27 14:58:19 +10:00
Franck Royer 973fd95df9
Make chat lines slightly prettier 2021-04-27 14:58:19 +10:00
Franck Royer 14ccfdf2dd
Move ChatList component to dedicated file 2021-04-27 14:58:19 +10:00
Franck Royer 243a9aba77
Make message a component 2021-04-27 14:58:19 +10:00
Franck Royer 5635ca028b
Make functions in Room component pure 2021-04-27 14:58:19 +10:00
Franck Royer f0c0adf226
Move `initWaku` out of `App` 2021-04-27 14:58:19 +10:00
Franck Royer 5998eb1d5d
Split handleNewMessages in smaller pure functions 2021-04-27 14:58:19 +10:00
Franck Royer b943a88aff
Split commandHandler in smaller pure functions 2021-04-27 14:58:18 +10:00
Franck Royer a27080fc34
Use flex to keep the input box at the bottom 2021-04-27 14:58:18 +10:00
Franck Royer 928ae5128e
Fix spelling 2021-04-23 16:05:05 +10:00
Franck Royer b8434dcaa1
Change app name 2021-04-23 16:05:05 +10:00
Franck Royer e467cf1379
Add /info command 2021-04-23 16:05:04 +10:00
Franck Royer f5edd09fa9
Implement /nick command 2021-04-23 16:05:04 +10:00
Franck Royer 5ebceecf92
Use separate state per var 2021-04-23 16:05:04 +10:00
Franck Royer 9e471595fc
Add command to deploy on gh pages 2021-04-22 21:45:30 +10:00
Franck Royer f0cd4064cb
Enable button once waku is ready 2021-04-22 17:05:19 +10:00
Franck Royer fae5959d2f
Format tsx files 2021-04-22 17:03:33 +10:00
Franck Royer 13e93b176d
Convert to functional component 2021-04-22 17:02:10 +10:00
Franck Royer 5aee9f4841
Convert to functional component 2021-04-22 17:01:46 +10:00
Franck Royer c7ba19f43e
Ensure text is cleared when clicking "send" 2021-04-22 16:56:59 +10:00
Franck Royer 80bf4eb4ea
Implement /peers and /connect commands 2021-04-22 16:50:37 +10:00
Franck Royer 2297d09d58
Enable using commands 2021-04-22 16:12:28 +10:00
Franck Royer 4c8a243c51
Improve usage of setState 2021-04-22 15:57:43 +10:00
Franck Royer 25e6b1cbd3
Default connection to a running instance of go-waku 2021-04-22 15:43:21 +10:00
Franck Royer 06d8c2aca6
Enable using enter key to send message 2021-04-22 15:11:37 +10:00
Franck Royer 79846ee196
Pass send message from room so other components can send 2021-04-22 14:57:30 +10:00
Franck Royer 69a3f73ee6
Self emit to see own messages 2021-04-22 14:47:43 +10:00
Franck Royer 9937652105
Remove listener when unmounting component 2021-04-22 11:09:10 +10:00
Franck Royer 1e1ad0332c
Messages do not replace each other 2021-04-22 10:58:56 +10:00
Franck Royer 09fa8a0447
Must pass filter.all to connect to ip4 ws peer 2021-04-22 10:39:05 +10:00
Franck Royer 3285d498c7
Use useEffect for async start of waku 2021-04-21 16:17:33 +10:00
Franck Royer df5a4f8326
waku is undefined 2021-04-21 16:17:32 +10:00
Franck Royer bd3cef1933
Setup CI for web-chat 2021-04-21 14:32:52 +10:00
Franck Royer 35cac9c862
Reduce fixed height 2021-04-21 14:32:52 +10:00
Franck Royer 7921aa5427
Makes lines a functional component 2021-04-21 14:32:52 +10:00
Franck Royer 50a2c3777b
Improved the look 2021-04-21 14:32:52 +10:00
Franck Royer b7d01418ce
Use material ui 2021-04-21 14:32:52 +10:00
Franck Royer 3e409c46b5
Can input messages to send! 2021-04-21 14:32:52 +10:00
Franck Royer dc7b9ba5ae
We can send messages! 2021-04-21 14:32:51 +10:00
Franck Royer 35db88a63e
Display messages emitted by waku mock 2021-04-21 14:32:51 +10:00
Franck Royer ca7445d65c
Create waku mock 2021-04-21 14:32:51 +10:00
Franck Royer 5f9e6b24eb
App holds the messages 2021-04-21 14:32:51 +10:00
Franck Royer c5ea01bcb4
Display lines 2021-04-21 14:32:51 +10:00
Franck Royer 8942f0eca1
Add web chat 2021-04-21 14:32:51 +10:00