Jakub Sokołowski
|
d793156f62
|
manage cursor based on current peer position
Signed-off-by: Jakub Sokołowski <jakub@status.im>
|
2019-07-01 13:07:20 -04:00 |
Jakub Sokołowski
|
b307b82ac4
|
re-add removing of peers
Signed-off-by: Jakub Sokołowski <jakub@status.im>
|
2019-07-01 13:07:20 -04:00 |
Jakub Sokołowski
|
d48daf6481
|
use redux store for managing state of underlying data
Signed-off-by: Jakub Sokołowski <jakub@status.im>
|
2019-07-01 13:07:20 -04:00 |
Jakub Sokołowski
|
51d299888d
|
implement peer removal without prompt
Signed-off-by: Jakub Sokołowski <jakub@status.im>
|
2019-07-01 13:07:20 -04:00 |
Jakub Sokołowski
|
08ec326ea4
|
configure keybindings, placeholder, and cursor only once
Signed-off-by: Jakub Sokołowski <jakub@status.im>
|
2019-07-01 13:07:20 -04:00 |
Jakub Sokołowski
|
15634abaf6
|
fix resizing
Signed-off-by: Jakub Sokołowski <jakub@status.im>
|
2019-07-01 13:07:20 -04:00 |
Jakub Sokołowski
|
71c4d860e3
|
add Enabled attribute for ViewController
Signed-off-by: Jakub Sokołowski <jakub@status.im>
|
2019-07-01 13:07:20 -04:00 |
Jakub Sokołowski
|
aa49194e75
|
add trusted to details
Signed-off-by: Jakub Sokołowski <jakub@status.im>
|
2019-07-01 13:07:20 -04:00 |
Jakub Sokołowski
|
d8b743f211
|
show if peer is static
Signed-off-by: Jakub Sokołowski <jakub@status.im>
|
2019-07-01 13:07:20 -04:00 |
Jakub Sokołowski
|
a9f41a482c
|
use wider table dividers
Signed-off-by: Jakub Sokołowski <jakub@status.im>
|
2019-07-01 13:07:20 -04:00 |
Jakub Sokołowski
|
70a04b015e
|
use just j and k for navigation
Signed-off-by: Jakub Sokołowski <jakub@status.im>
|
2019-07-01 13:07:20 -04:00 |
Jakub Sokołowski
|
3cda42fc03
|
add ctrl+k and ctrl+j for navigation
Signed-off-by: Jakub Sokołowski <jakub@status.im>
|
2019-07-01 13:07:20 -04:00 |
Jakub Sokołowski
|
4d7b92f743
|
write peer details on first render
Signed-off-by: Jakub Sokołowski <jakub@status.im>
|
2019-07-01 13:07:20 -04:00 |
Jakub Sokołowski
|
39c5461495
|
build to bin/
Signed-off-by: Jakub Sokołowski <jakub@status.im>
|
2019-07-01 13:07:20 -04:00 |
Jakub Sokołowski
|
fce1049354
|
add Wrap setting to views, add local addr to peer details
Signed-off-by: Jakub Sokołowski <jakub@status.im>
|
2019-07-01 13:07:20 -04:00 |
Jakub Sokołowski
|
f2a7540bb8
|
use better details formatting
Signed-off-by: Jakub Sokołowski <jakub@status.im>
|
2019-07-01 13:07:20 -04:00 |
Jakub Sokołowski
|
017a84a59f
|
update peer details on cursor movement
Signed-off-by: Jakub Sokołowski <jakub@status.im>
|
2019-07-01 13:07:20 -04:00 |
Jakub Sokołowski
|
0c50c2d05c
|
Extract fetch to its own function
Signed-off-by: Jakub Sokołowski <jakub@status.im>
|
2019-07-01 13:07:20 -04:00 |
Jakub Sokołowski
|
c635fdd0c4
|
drop NewViewManager function
Signed-off-by: Jakub Sokołowski <jakub@status.im>
|
2019-07-01 13:07:20 -04:00 |
Jakub Sokołowski
|
abb276f6f1
|
rename extra field in ViewController to State
Signed-off-by: Jakub Sokołowski <jakub@status.im>
|
2019-07-01 13:07:20 -04:00 |
Jakub Sokołowski
|
197679f10c
|
attach PeersState under Data for ViewController
Signed-off-by: Jakub Sokołowski <jakub@status.im>
|
2019-07-01 13:07:20 -04:00 |
Jakub Sokołowski
|
176330a41f
|
refactor to make arrow key handlers into methods of *View
Signed-off-by: Jakub Sokołowski <jakub@status.im>
|
2019-07-01 13:07:20 -04:00 |
Jakub Sokołowski
|
ccad242463
|
don't set global highight or cursor
Signed-off-by: Jakub Sokołowski <jakub@status.im>
|
2019-07-01 13:07:20 -04:00 |
Jakub Sokołowski
|
ae37f8b1e8
|
refactor to add ViewManager and View structs
Signed-off-by: Jakub Sokołowski <jakub@status.im>
|
2019-07-01 13:07:20 -04:00 |
Jakub Sokołowski
|
fbb29afb49
|
add comment about possible solution
Signed-off-by: Jakub Sokołowski <jakub@status.im>
|
2019-07-01 13:07:20 -04:00 |
Jakub Sokołowski
|
55af1447e4
|
ignore log files
Signed-off-by: Jakub Sokołowski <jakub@status.im>
|
2019-07-01 13:07:20 -04:00 |
Jakub Sokołowski
|
c55d3c610b
|
fix moving of cursor
Signed-off-by: Jakub Sokołowski <jakub@status.im>
|
2019-07-01 13:07:20 -04:00 |
Jakub Sokołowski
|
66e418d3a3
|
use local app.log for logs
Signed-off-by: Jakub Sokołowski <jakub@status.im>
|
2019-07-01 13:07:20 -04:00 |
Jakub Sokołowski
|
d03bc79725
|
add logging to a tmp file
Signed-off-by: Jakub Sokołowski <jakub@status.im>
|
2019-07-01 13:07:20 -04:00 |
Jakub Sokołowski
|
7e3aa2a85b
|
add mor columns, remote ip, trusted, static
Signed-off-by: Jakub Sokołowski <jakub@status.im>
|
2019-07-01 13:07:20 -04:00 |
Jakub Sokołowski
|
f22a1554f5
|
move table formatting to peers.go
Signed-off-by: Jakub Sokołowski <jakub@status.im>
|
2019-07-01 13:07:20 -04:00 |
Jakub Sokołowski
|
fd834252fb
|
add info view
Signed-off-by: Jakub Sokołowski <jakub@status.im>
|
2019-07-01 13:07:20 -04:00 |
Jakub Sokołowski
|
62c32b7a3d
|
implement moving of cursor with arrow keys
Signed-off-by: Jakub Sokołowski <jakub@status.im>
|
2019-07-01 13:07:20 -04:00 |
Jakub Sokołowski
|
33d12b5198
|
extract key bindings to separate file
Signed-off-by: Jakub Sokołowski <jakub@status.im>
|
2019-07-01 13:07:20 -04:00 |
Jakub Sokołowski
|
5107d344dd
|
add MIT license
Signed-off-by: Jakub Sokołowski <jakub@status.im>
|
2019-07-01 13:07:20 -04:00 |
Jakub Sokołowski
|
ed94437bdd
|
check maxWidth od window to show full peer ID
Signed-off-by: Jakub Sokołowski <jakub@status.im>
|
2019-07-01 13:07:20 -04:00 |
Jakub Sokołowski
|
1c60834a07
|
print name and caps in table
Signed-off-by: Jakub Sokołowski <jakub@status.im>
|
2019-07-01 13:07:20 -04:00 |
Jakub Sokołowski
|
b7fd7b20ed
|
add AsTable method to print peer in a table
Signed-off-by: Jakub Sokołowski <jakub@status.im>
|
2019-07-01 13:07:20 -04:00 |
Jakub Sokołowski
|
fba5f56834
|
print shortened version of ID
Signed-off-by: Jakub Sokołowski <jakub@status.im>
|
2019-07-01 13:07:20 -04:00 |
Jakub Sokołowski
|
c6b3fa3b9d
|
add displaying of list of peers
Signed-off-by: Jakub Sokołowski <jakub@status.im>
|
2019-07-01 13:07:20 -04:00 |
Jakub Sokołowski
|
1e7e996e9f
|
add incrementing counter in goroutine
Signed-off-by: Jakub Sokołowski <jakub@status.im>
|
2019-07-01 13:07:20 -04:00 |
Jakub Sokołowski
|
4f4a8dd95f
|
so gocui for basic UI
Signed-off-by: Jakub Sokołowski <jakub@status.im>
|
2019-07-01 13:07:20 -04:00 |
Jakub Sokołowski
|
d13d2c9935
|
add basic Makefile
Signed-off-by: Jakub Sokołowski <jakub@status.im>
|
2019-07-01 13:07:20 -04:00 |
Jakub Sokołowski
|
e046fc0471
|
remove useless print
Signed-off-by: Jakub Sokołowski <jakub@status.im>
|
2019-07-01 13:07:20 -04:00 |
Jakub Sokołowski
|
938f5f18d8
|
add gitignore
Signed-off-by: Jakub Sokołowski <jakub@status.im>
|
2019-07-01 13:07:20 -04:00 |
Jakub Sokołowski
|
dfb8d41a35
|
move rpc code to client.go
Signed-off-by: Jakub Sokołowski <jakub@status.im>
|
2019-07-01 13:07:20 -04:00 |
Jakub Sokołowski
|
3565768230
|
add basic rpc client calling admin_peers
Signed-off-by: Jakub Sokołowski <jakub@status.im>
|
2019-07-01 13:07:20 -04:00 |
Jakub Sokołowski
|
fb913dbcf6
|
empty commit
Signed-off-by: Jakub Sokołowski <jakub@status.im>
|
2019-06-16 10:25:36 -04:00 |