Dastan-glitch
7b8e34fd9c
bin/tau-cli: add get-comment subcommand
2022-03-19 17:39:47 -04:00
ghassmo
9ea0a43543
bin/tau-cli: more clean and explicit way to use args
2022-03-19 15:44:32 +04:00
lunar-mining
ba574bd75c
create new data structures to enable addr sub-list
2022-03-19 09:23:05 +01:00
lunar-mining
6e5d94c632
ui: removed redundant is_empty check
2022-03-19 07:43:15 +01:00
lunar-mining
845040f978
small fix on Empty slot data
...
* Stopped pasting "Empty" on top of "Null"
2022-03-19 07:38:06 +01:00
lunar-mining
acb77e5be9
display node name instead of rpc_url
...
* read name param from config and display in UI
* rename node_id to rpc_url
2022-03-19 07:22:08 +01:00
lunar-mining
f19aeeecc8
add 'name' param to dnetview_config.toml
2022-03-19 07:13:00 +01:00
lunar-mining
344e06f7c8
rename Map struct to DNetView
2022-03-19 07:12:36 +01:00
parazyd
33b732516b
vanityaddr: Remove "util" feature from darkfi dependency.
2022-03-19 01:07:49 +01:00
Dastan-glitch
bcd5fed5f0
bin/tau-cli: sort tasks by rank and clean-up
2022-03-18 21:38:58 -04:00
ghassmo
0373d8e090
bin/tau-cli: clean up
2022-03-19 01:44:45 +04:00
parazyd
59687a60ee
vanityaddr: Add example on how to handle SIGINT with channels.
...
Another good approach as well is to consider everyting inside
rayon_pool.install() as the main() function and do things in there for
some weird simplicity. With this, one does not need to use another
channel to get a value out of the closure.
2022-03-18 22:23:18 +01:00
ghassmo
75d01fb0cb
bin/dnetview: use fxhash for HashMap and HashSet
2022-03-19 00:52:33 +04:00
ghassmo
937e06ec4f
Replace HashMap with FxHashMap
2022-03-18 23:19:13 +04:00
lunar-mining
d773815e63
bug fix: only render title if it's not empty
2022-03-18 18:56:31 +01:00
lunar-mining
6165a9fb96
bug fix: stop rendering outbound recursively
...
move outbound outside loop
2022-03-18 18:56:31 +01:00
lunar-mining
ce810207e9
bug fix: only print Incoming/ Outgoing/ Manual once
...
move title outside for loop so it doesn't get printed recursively.
2022-03-18 18:56:31 +01:00
lunar-mining
7b57c39314
bug fix: stop saving duplicate incoming values
...
removed nested loop that was causing incoming data to be saved twice.
2022-03-18 18:56:31 +01:00
lunar-mining
1e7c8c09eb
model: add is_empty param to Slot, OutboundInfo and InboundInfo
...
discard empty connections efficiently and only render when is_empty
== false.
for outbound connections, use iter().all() to ensure that is_empty is
only set to false when all slots are empty.
2022-03-18 18:56:31 +01:00
lunar-mining
9e14a3849f
ui: add debug info
2022-03-18 18:56:31 +01:00
lunar-mining
7895493c84
ui: don't render Incoming sessions if they are empty
2022-03-18 18:56:31 +01:00
parazyd
660c6184ca
taud: Abstract getting config file to a util function.
2022-03-18 18:26:08 +01:00
Dastan-glitch
8f734a9092
bin/tau-cli: add set-comment subcommand
2022-03-18 15:55:56 -04:00
ghassmo
f8ff73cfda
bin/taud: clean up files used in testing
2022-03-18 16:21:24 +04:00
parazyd
7c1b1524ce
vanityaddr: Parse usize for nthreads with clap.
2022-03-18 10:48:02 +01:00
parazyd
b9fa52d363
vanityaddr: Improve and add progress.
2022-03-18 00:22:17 +01:00
parazyd
82f6fa8ea1
zkas: Clean up and don't use Result in main().
2022-03-18 00:03:15 +01:00
Dastan-glitch
2b2f96591a
bin/tau-cli: add get-state and set-state subcommands
2022-03-17 20:55:45 -04:00
parazyd
36fa2e020c
net: Minor cleanups for idiomatic naming.
2022-03-17 13:35:18 +01:00
ghassmo
fa4ea153cf
bin/taud: allow to pass None to due in update function
2022-03-17 05:32:28 +04:00
Dastan-glitch
f81f1734c4
bin/tau-cli: some clean-ups
2022-03-16 22:52:07 -04:00
parazyd
92a4410e31
Miscellaneous fixes and 'make fix'.
2022-03-16 22:30:54 +01:00
parazyd
c7d0d4ca32
Update crate version dependencies throughout the codebase.
2022-03-16 22:30:54 +01:00
Dastan-glitch
dad30e05b3
bin/tau-cli: add update subcommand (edit a task)
2022-03-16 20:15:27 -04:00
ghassmo
04b73fdcd2
bin/taud: a little fix
2022-03-16 20:14:10 +04:00
lunar-mining
560acab1b6
ui: render msgs as a vec![Spans]. finish first version of dnetview.
...
Previously, we were trying to render messages using a seperate widget
called Paragraph. This would enable us to put msgs on the right of the
screen using the enum Alignment.
However, rendering msgs as a seperate widget meant we had to keep track
of the position of other widgets in order to align properly. This quickly
became highly complex.
Instead, we have now rendered all the data in a single widget called List.
List is composed of a ListItem which is composed of Spans. Spans
indiciate a seperate line whereas Span is a grapheme on a single line.
We render addrs and msgs on the same line as follows:
lines.push(Spans::from(vec![addr, msgs])
Where lines is a Vec<Spans> that initializes ListItem.
We are currently aligning the msgs Span with empty spaces, which is the
method used by tui-rs/example/list.rs. Ideally we would use some variant
of Alignment for this so we don't have variation between screen sizes.
2022-03-16 08:49:38 +01:00
ghassmo
a64f1133cb
bin/taud: clean up
2022-03-16 09:21:12 +04:00
ghassmo
702305bbf0
bin/taud: minor changes
2022-03-16 07:44:12 +04:00
Dastan-glitch
7a4e85de96
bin/tau-cli: Add list subcommand
2022-03-15 17:50:00 -04:00
Dastan-glitch
fd58d2c093
bin/ircd: update clap version
2022-03-15 17:43:37 -04:00
lunar-mining
72205bc1f0
ui: render connection data (no msgs)
...
render is working properly as of this commit. we still do not render
msgs, as using a different alignment requires more complexity.
2022-03-15 14:08:22 +01:00
lunar-mining
0086435862
ui: dramatically simplify.
...
removed all structs and now simply printing connection data under the
related node ID.
for now there is zero formatting: we simply print the info.
2022-03-15 14:08:22 +01:00
parazyd
c89db12c71
bin: Implement vanity address search tool as threadpool experiment.
2022-03-14 22:12:42 +01:00
ghassmo
e019472a05
bin/taud: add get_state, set_state, and set_comment rpc functions
2022-03-14 18:15:13 +04:00
lunar-mining
a43c8a84bd
ui: better names.
...
ListObject -> NodeBox
NetFrame -> ConnectBox
NetWidget -> InfoBox
2022-03-14 11:47:58 +01:00
lunar-mining
4f79726875
ui() bug fix.
...
replace
if foo.to_str().is_empty()
with
if foo.to_str() == "Empty"
2022-03-14 10:49:08 +01:00
lunar-mining
73af3e4d02
poll() bug fix.
...
do not discard empty values on outgoing connections.
2022-03-14 10:49:08 +01:00
ghassmo
9c1b5d139e
bin/taud: save the task at the end of parsing update params
2022-03-14 02:33:45 +04:00
ghassmo
456cee39dd
bin/dnetview: cargo fmt
2022-03-14 01:44:50 +04:00
ghassmo
6027d98136
bin/taud: update 'list' function & add update rpc function
2022-03-14 01:44:24 +04:00