Commit Graph

232 Commits

Author SHA1 Message Date
Dastan-glitch
ea4261007b bin/tau-cli: switch assign and project to vectors 2022-03-10 23:06:12 -05:00
Dastan-glitch
15890f4d65 bin/tau-cli: reading title and desc from user input if not specified in the command 2022-03-10 22:55:51 -05:00
ghassmo
ab52c593e0 bin/taud: Runs the executor when start 2022-03-11 01:07:35 +04:00
Dastan-glitch
3c05ed70fc bin/tau-cli: remove Client struct and imple and adding optional feature on some subcommands 2022-03-10 16:38:13 -05:00
Dastan-glitch
faf1bd67fb bin/tau-cli: implement add function 2022-03-10 11:27:13 -05:00
lunar-mining
827062ff96 ui: render Outbound, Inbound, and Manual connection data
created seperate functions to render the different data types.  frames
dynamically resize according to the length of the data.  we do this by
keeping track of the previous length and passing it into each new render.

there's a lot of boilerplate rn that needs to be cleaned up, and the
dynamic resizing can probably be further simplified.
2022-03-10 13:54:09 +01:00
lunar-mining
69161945d9 stop passing Config to ui::ui
NodeId is read from config and is initalized into Model.
The values from Model are then copied into View.

We therefore do not need to read this data in the UI, as it already exists in View.
2022-03-10 13:54:09 +01:00
lunar-mining
4dd9bc00d7 poll: initalize node_info HashMap and pass parsed values.
node_info = HashMap<NodeId, NodeInfo>

If we receive an external addr from the rpc data, we set that as the NodeID.
otherwise we display client's rpc port as the NodeID.

Note: this is a temporary solution until we add a 'name' param to the
config. This commit indicates a number of TODOs.
2022-03-10 13:54:09 +01:00
ghassmo
1496842f75 bin/taud: clean up add function 2022-03-10 01:58:19 +04:00
ghassmo
fba1b48951 bin/taud: implement add function 2022-03-09 23:02:01 +04:00
ghassmo
72c1d516ad bin/taud: load config file & add cli functions 2022-03-09 21:22:08 +04:00
ghassmo
f13d58d7d0 bin/ircd: add tmux session to run local nodes 2022-03-09 18:45:13 +04:00
ghassmo
d42f9b9863 bin/taud: make base structs 2022-03-09 18:39:49 +04:00
ghassmo
241375e519 bin/taud: minor changes & clean up 2022-03-09 18:05:17 +04:00
ghassmo
eb6db85d4c bin/ircd: make script directory 2022-03-09 17:49:21 +04:00
ghassmo
77a52ea0fe bin/ircd: run four executor threads 2022-03-09 17:49:21 +04:00
Dastan-glitch
657f8ec806 formatting 2022-03-09 10:22:46 -05:00
Dastan-glitch
7c3810021f Add tau-cli in bin/ 2022-03-09 10:20:25 -05:00
Dastan-glitch
1a59f443f7 Add taud in bin/ with a simple cmd_add as an example on rpc 2022-03-09 10:20:05 -05:00
lunar-mining
70819883e2 poll: parse json data into Model structs
as the values may be null we cannot parse using this form:

    let foo: Foo = serde_json::from_value(bar)

manual_connect is the exception to this as right now we are just parsing
dummy data which is never null.

otherwise if the data is empty we simply write empty values to NodeInfo.
this will be rendered as Null in ui::ui()
2022-03-09 12:09:18 +01:00
lunar-mining
ab7650e3e0 model: created new data structures to handle p2p data
this change removes the struct called Connection and introduces ManualInfo, OutboundInfo and InboundInfo structs
2022-03-09 08:45:37 +01:00
lunar-mining
a3a8112f2e make DnvConfig a seperate crate and pass to ui 2022-03-09 08:45:37 +01:00
lunar-mining
0fadfe39d1 renamed MapConfig to DnvConfig and pass to render() 2022-03-09 08:45:37 +01:00
lunar-mining
b91955c151 cleaned up old comments and simplified run_rpc() 2022-03-09 08:45:36 +01:00
narodnik
e3857fd211 add get_info() hooks throughout net code (incomplete) used for introspecting state while p2p network is live. 2022-03-07 15:47:07 +01:00
lunar-mining
d8a2ebab23 dnetview_config: change default rpc_port 2022-03-07 11:28:28 +01:00
lunar-mining
d3fd551e23 renamed map to dnetview
rationale: map is too generic. dnetview is a descriptive name as it
captures the following:

d for dark
net for network
view for view network topology
2022-03-07 10:44:07 +01:00
lunar-mining
e8bb31873b map/poll: parse info from rpc request and render in ui.rs.
there is now a new type of connection called manual session. this change
passes manual session to NodeInfo and renders.

rendering here is still very primitive-- we are still working with dummy
network values.
2022-03-07 10:37:03 +01:00
narodnik
198061daa2 add get_info() hook for p2p and sessions 2022-03-06 21:57:56 +01:00
lunar-mining
31a991ea7f poll(): print rpc reply and do not render for testing purposes 2022-03-06 21:59:12 +01:00
narodnik
fc79d6469b add LOG_TARGETS 2022-03-02 13:14:05 +01:00
narodnik
7c265f932f add README.md 2022-03-02 10:14:43 +01:00
Dastan-glitch
1680d56b2f ircd: cleanup 2022-03-01 21:01:43 -05:00
ghassmo
aad2caa3df clean up & remove warning messages 2022-02-27 00:51:35 +04:00
ghassmo
59261f0d43 rpc/jsonrpc: finish the implementation for supporting tor and nym protocols on client side 2022-02-26 23:24:05 +04:00
ghassmo
d82ecbb6bc bin/darkfid: pass socks_url to send_request function 2022-02-26 20:14:05 +04:00
ghassmo
db39cc4948 bin/darkfid: add socks_url to darkfid's config 2022-02-26 20:00:37 +04:00
ghassmo
99238b7f26 bin/drk: use UrlConfig & cargo fmt 2022-02-25 18:52:46 +04:00
ghassmo
55c3532f23 bin/darkfid: use UrlConfig in configuration file 2022-02-25 18:28:41 +04:00
ghassmo
35706c16e1 remove cli module & move the cli_config to util 2022-02-24 21:01:25 +04:00
Dastan-glitch
a14355263c splitting config struct in src/cli between aps in bin/ 2022-02-24 13:56:02 +01:00
parazyd
33ea16a504 book: Finalize design. 2022-02-24 13:44:57 +01:00
lunar-mining
c6ca1b4c6d map: cleaned up warnings 2022-02-23 13:46:19 +01:00
lunar-mining
97523e1435 map: render id, msg, titles of node info using Layout and Paragraph rather than empty spaces 2022-02-23 13:42:08 +01:00
lunar-mining
2ad2198183 map: remove loading page and initialize empty variables directly 2022-02-23 11:11:06 +01:00
ghassmo
e3a68e334b rpc: pass Url object to send_request function instead of &str 2022-02-23 04:09:22 +04:00
lunar-mining
c75cdf57a6 map: added todo's 2022-02-22 12:38:22 +01:00
Dastan-glitch
cb888aadbf splitting clap related code on apps in bin/ 2022-02-22 11:29:23 +01:00
lunar-mining
2506932665 map: error if view.node_id is still empty after first initialization loop 2022-02-22 11:26:01 +01:00
lunar-mining
505ee3c141 map: implement loading widget while we initialize values 2022-02-22 10:49:21 +01:00