Commit Graph

141 Commits

Author SHA1 Message Date
19854e59da Refactor: Adjust formatting and structure in database.py and meshchat.py
- Improved readability by restructuring function arguments and parameters across multiple files.
- Enhanced consistency in the formatting of method signatures and exception handling.
- Minor adjustments to comments for clarity and alignment with code style.
2025-11-30 22:38:07 -06:00
deepsource-autofix[bot]
73f677d319 refactor: change methods not using its bound instance to staticmethods
The method doesn't use its bound instance. Decorate this method with `@staticmethod` decorator, so that Python does not have to instantiate a bound method for every instance of this class thereby saving memory and computation. Read more about staticmethods [here](https://docs.python.org/3/library/functions.html#staticmethod).
2025-12-01 03:22:30 +00:00
1c98a231fd Refactor ReticulumMeshChat methods to static
- Updated several instance methods in ReticulumMeshChat to static methods for improved clarity and usability.
- Adjusted method calls to reflect the new static context, enhancing code organization.
2025-11-30 21:17:09 -06:00
8ec7acd57e Refactor error handling and improve code clarity
- Updated exception handling across multiple files to specify Exception type, enhancing clarity and maintainability.
- Renamed several route handler functions in meshchat.py for better readability and consistency.
- Added noqa comments to suppress linting warnings for specific lines in database.py and other files.
2025-11-30 21:00:04 -06:00
cc30e6abc1 code cleanup 2025-11-30 20:51:30 -06:00
a3cb84fa06 Implement spam and blocking features in database and API
- Incremented database version to 6 and added 'is_spam' column to LxmfMessage model.
- Introduced BlockedDestination and SpamKeyword models for managing blocked destinations and spam keywords.
- Added API endpoints for managing blocked destinations and spam keywords, including create, read, and delete operations.
- Enhanced message handling to mark messages as spam based on keywords and block messages from blocked sources.
2025-11-30 20:41:48 -06:00
c65cb04da9 Overhual entire codebase part 1
- Big UI/UX changes
- Improved Config parser
- Some minor improvements and changes
2025-11-30 19:09:08 -06:00
919d191e61 Add download cancellation feature for nomadnet files and pages
- Implemented tracking for active downloads with unique IDs.
- Added functionality to cancel ongoing downloads from the client side.
- Updated UI to include cancel buttons for file and page downloads.
- Enhanced download success, failure, and progress handling to include download IDs for better tracking.
2025-11-28 13:42:25 -06:00
9e352e5058 fix prop node app data parsing 2025-11-21 11:51:14 -06:00
3566c6b2da Add system resource tracking and download speed estimation to ReticulumMeshChat
- Integrated psutil for memory and network statistics.
- Enhanced app info API to include memory usage, network stats, and download statistics.
- Implemented download speed tracking for files in NomadNetworkPage.
- Added utility functions for formatting numbers and bytes per second.
- Updated frontend components to display new statistics in real-time.
2025-11-11 08:04:07 -06:00
95ef0935da Remove None values from I2PInterface config before saving 2025-10-01 21:34:11 -05:00
51eaa83301 Fix: Prevent writing None to I2PInterface config 2025-10-01 21:02:54 -05:00
liamcottle
d6847d262a add python version to about screen 2025-07-28 21:38:43 +12:00
liamcottle
65df111b87 rework async utils to always use main event loop in threadsafe manner 2025-07-28 19:01:15 +12:00
liamcottle
747236ae8b add try catch for fallback file download parsing, so client can show as unsupported 2025-07-28 17:23:03 +12:00
liamcottle
4e55006084 fix bug where downloading files from cicada forums was not working 2025-07-28 17:21:52 +12:00
liamcottle
9031c1a3d7 add dropdown menu to nomadnetwork favourites list to rename and remove 2025-07-27 20:17:08 +12:00
liamcottle
4734e62468 implement favourites system for nomadnetwork nodes 2025-07-25 23:02:05 +12:00
liamcottle
37cc6aa158 add button to identify self to nomad network node 2025-07-25 21:56:02 +12:00
liamcottle
90445467e1 remove todos 2025-07-18 20:34:26 +12:00
liamcottle
51bdd35f01 fix downloading files from nomadnet by handling buffered reader responses 2025-07-18 20:29:10 +12:00
liamcottle
817d5b5e59 don't use await in websocket handler as it blocks all other requests 2025-07-18 19:47:47 +12:00
liamcottle
a094a741a8 don't use await in websocket handler as it blocks all other requests 2025-07-18 19:37:59 +12:00
liamcottle
9e7d0cdfeb add ping pong to make sure websocket connection doesn't go stale 2025-02-08 11:53:10 +13:00
liamcottle
2c518d1b31 fix for calling async functions in sync callbacks from different threads 2025-02-03 13:13:11 +13:00
liamcottle
e1ae122297 remove spaces so config format is the same as normal file saving 2025-02-03 01:25:27 +13:00
liamcottle
4f497620c8 dont export json dict 2025-02-03 01:20:53 +13:00
liamcottle
4d816ae87c fix validation 2025-02-03 01:07:18 +13:00
liamcottle
df8e98366b remove existing sub interfaces when saving an rnode multi interface 2025-02-03 00:13:00 +13:00
liamcottle
54b1d56107 make for loop more readable 2025-02-02 23:58:58 +13:00
liamcottle
ba118f7a9c allow vport 0 2025-02-02 23:56:55 +13:00
liamcottle
734eaeed1b refactor updating of interface settings to allow removing values when saving an existing interface 2025-02-02 23:06:06 +13:00
liamcottle
33e4888737 prevent crash caused by interface settings being set to none 2025-02-02 20:13:52 +13:00
liamcottle
408a62dffe slight adjustments 2025-02-02 20:01:27 +13:00
rfnx
adad97e917 Add additional interfaces to AddInterfacePage 2025-02-01 01:09:06 -05:00
liamcottle
580c907138 add ability to double click an lxmf.delivery node in network visualiser to open the conversation 2025-01-21 23:19:55 +13:00
liamcottle
4ae83ca980 fix formatting 2025-01-20 21:14:53 +13:00
liamcottle
29c062d701 stop updating message state if message gets cancelled 2025-01-20 16:14:08 +13:00
liamcottle
6f325d24e7 fix issues with calling async function from different threads that may or may not have an event loop 2025-01-20 13:20:03 +13:00
liamcottle
cf059fab63 add button to cancel messages being sent 2025-01-20 12:50:50 +13:00
liamcottle
a3565ef063 add new lxmf message states 2025-01-20 12:45:01 +13:00
liamcottle
9b36120faa update lang 2025-01-06 19:05:22 +13:00
liamcottle
6b4bf0e31a ignore lxmf messages if they are telemetry requests from sideband 2025-01-05 23:22:20 +13:00
liamcottle
4b6978f7cc add setting to enable and disable transport mode 2025-01-02 17:13:37 +13:00
liamcottle
b19ee171eb add button to export single interface 2025-01-02 00:05:51 +13:00
liamcottle
fabb6d5ca3 refactor importing interfaces to use interface parser and allow importing all key value pairs 2025-01-01 23:22:21 +13:00
liamcottle
0b6b390388 refactor interface parser to its own class 2025-01-01 22:04:58 +13:00
liamcottle
372e61ed7c refactor importing interfaces preview 2025-01-01 20:55:10 +13:00
liamcottle
9815decc99 refactor exporting interfaces 2025-01-01 20:30:56 +13:00
liamcottle
65dfd6c540 send json body instead of multipart 2025-01-01 20:26:03 +13:00