draoi
a20ab3b5a8
doc: add dnet code comments
2024-02-09 09:39:27 +01:00
draoi
af7ac9edb3
dnet: also render lilith info in the event render loop
2024-02-02 15:41:12 +01:00
draoi
716af31848
dnet+lilith: enable hostlist debugging
...
display lilith's whitelist, greylist and anchorlist in dnet
2024-02-02 15:41:12 +01:00
draoi
e2a47f99db
dnet: fix bug that caused lilith info not to be displayed
2024-02-02 15:41:12 +01:00
parazyd
0e6f51e895
chore: Update copyright year in license headers
2024-01-16 13:07:22 +01:00
lunar-mining
cc6c27b034
dnet: add license to src/util.py
2023-11-24 16:17:15 +01:00
lunar-mining
a4523f6017
dnet: move source files to src/, rename main.py to dnet and make executable
...
also rename default config to dnet_config.toml
2023-11-24 16:17:15 +01:00
lunar-mining
55d18695de
dnet: update README
2023-11-24 16:17:15 +01:00
lunar-mining
9f1b19d17b
dnet: move config directory to platform specific config dir
2023-11-24 16:17:15 +01:00
lunar-mining
d47df7930f
dnet: add python version to README
2023-11-24 16:17:15 +01:00
lunar-mining
9a63c70658
dnet: add msg log usage to README
2023-11-14 12:58:42 +01:00
lunar-mining
54bb7ed476
dnet: fix typo on README
2023-11-13 15:39:24 +01:00
lunar-mining
b5b8179648
dnet: fix env usage in README
2023-11-13 15:10:41 +01:00
lunar-mining
cff87e6926
dnet: move python-venv from root .gitignore to bin/dnet/.gitignore
2023-11-13 13:45:16 +01:00
lunar-mining
6cd14256fc
dnet: add venv activation step to README
2023-11-13 13:42:27 +01:00
lunar-mining
964e3bcc9d
add bin/dnet/python-venv to .gitignore and standadize naming in dnet README
2023-11-13 13:39:56 +01:00
lunar-mining
5cc1100b6e
dnet: add venv instructions to README and do minor edit
2023-11-13 13:36:13 +01:00
lunar-mining
04780f241b
dnet: add README
2023-11-13 13:17:02 +01:00
lunar-mining
2b35f1cfb9
dnet: update default config
2023-11-13 12:59:38 +01:00
lunar-mining
6bf00e5d29
dnet: add additional check to prevent logic error
...
also remove unnecessary nesting
2023-11-12 19:02:53 +01:00
lunar-mining
adf9606dcd
dnet: fix logic error due to misnamed variable
...
peabrain.png
2023-11-12 14:18:48 +01:00
lunar-mining
36e39736d3
dnet: add lilith support to view
...
we now render urls, hosts etc and the lilith spawns
2023-11-11 17:44:50 +01:00
lunar-mining
887ebff1f1
dnet: add lilith support to dnet (mostly)
...
* calls spawns() rpc method to retrieve lilith info
* add data to model
* renders lilith name and name of spawned network
still TODO:
* display hosts and URLs when spawned network is selected
2023-11-10 19:02:31 +01:00
y
13a18f3ca5
[dnet] Add .gitignore to prevent tracking log file
2023-11-09 15:14:20 -05:00
lunar-mining
6f3b4a715b
dnet: fix KeyError due to misnamed variable
2023-11-09 15:36:44 +01:00
lunar-mining
77eb05c60d
dnet: fix logic error
2023-11-09 11:40:42 +01:00
lunar-mining
a26e0c4799
dnet: refresh when new outbounds come online. add TODO for logic error
2023-11-09 10:55:28 +01:00
lunar-mining
55462ce3bc
dnet: reduce LOC by adding a refresh flag that gets called on event changes.
2023-11-09 08:50:51 +01:00
lunar-mining
6fbab2b29e
dnet: improve and simplify view handling
...
now we can more easily re-render on event changes (like nodes going
offline etc)
2023-11-08 16:37:47 +01:00
lunar-mining
7f3539704e
dnet: render nodes as offline when rpc can't connect
2023-11-06 17:46:25 +01:00
lunar-mining
9c9a101996
dnet: check inbound/outbound/manual/seed exists to prevent KeyErrors
2023-11-06 17:12:51 +01:00
lunar-mining
314cfa5b56
Revert "dnet: improve view() logic and cleanup"
...
This reverts commit 34ffc26fa6be6a07261afadd6d0e9476f98fcecf.
2023-11-06 17:08:59 +01:00
lunar-mining
f9d4e486c9
dnet: improve view() logic and cleanup
2023-11-06 17:08:57 +01:00
y
74b197d008
[dnet] Add KeyError check
...
Add a check for 'inbound' key. Previously, the program would crash when
there were no connected nodes. Now the view panel correctly displays the
existing node as offline.
2023-11-01 11:31:47 -04:00
lunar-mining
0b0436131f
dnet: redraw the screen on inbound (disconnect) and inbound (connect) events
2023-10-30 11:29:07 +01:00
lunar-mining
536f340aa4
dnet: render offline nodes as: node name (offline)
2023-10-30 08:14:50 +01:00
lunar-mining
52b172ece7
dnet: cleanup and add TODOs. also don't crash if a node goes offline.
2023-10-29 21:43:32 +01:00
lunar-mining
3bb75a4717
dnet: cleanup and reduce LOC
...
makes use of inheritance to avoid repetition widget classes and deletes
various redundant functions
2023-10-29 14:22:08 +01:00
lunar-mining
e5d0aca1f4
dnet: fix bug which caused dnet to crash on receiving unhandled mouse input
2023-10-29 08:03:32 +01:00
lunar-mining
06099510b1
dnet: remove test file
2023-10-26 21:05:09 +02:00
lunar-mining
1621456f01
dnet: fix test to work with urwid 2.2.0
2023-10-26 21:04:58 +02:00
lunar-mining
de3c4eb09f
dnet: update dnet to new urwid version and fix asyncio usage
...
We were previously relying on idle emulation to redraw the screen. This
is no longer supported as of urwid 2.2.0 and later.
See: https://github.com/urwid/urwid/issues/665
2023-10-26 21:04:47 +02:00
lunar-mining
9039b8241d
dnet: commit test script that shows breaking usage
2023-10-26 20:57:04 +02:00
lunar-mining
387897cf7b
dnet: downgrade urwid version
...
upgrading urwid to 2.2.0 breaks dnet in two ways:
* ui is not visible unless the terminal is in focus
* the screen is not redrawing correctly- contains artifacts from previous draw.
it may have to do with this breaking change that was added to 2.2.0:
https://github.com/urwid/urwid/pull/541
but i am not sure yet, investigating.
2023-10-26 20:57:03 +02:00
lunar-mining
e211406b59
dnet: fix bug in data structures that propagated notes with duplicate node info
...
also clean up a bit
2023-10-26 20:57:03 +02:00
lunar-mining
128421b6c0
dnet: display manual connections
2023-10-26 20:57:03 +02:00
lunar-mining
7d2ad6f167
dnet: render inbound connections on disconnect/reconnect
2023-10-26 20:57:03 +02:00
lunar-mining
618d3911d3
dnet: fix weird queue behavior by adding a sleep
...
¯\_(ツ)_/¯
2023-10-26 20:57:03 +02:00
lunar-mining
0ca8a9e256
dnet: display outbound disconnect events and mutate inbound dict on disconnect/connect
2023-10-26 20:57:03 +02:00
lunar-mining
a1bdf77d0f
dnet: sort outbound slots by index, not index and ID, thus improving display
2023-10-26 20:57:03 +02:00