Commit Graph
42 Commits
Author SHA1 Message Date
Benjamin Arntzen (aider) ffb1d786df Update query timestamp in axios post request to fetch specific data. 2024-06-27 06:14:59 +01:00
Benjamin Arntzen (aider) 32a5564aa3 Implemented error handling for parsing log data and extracted valid logs from the response. 2024-06-27 06:10:25 +01:00
Benjamin Arntzen (aider) c90102f970 Improved error handling for parsing log data in the server.js file. 2024-06-27 06:09:38 +01:00
Benjamin Arntzen (aider) c96ebf3ef0 Refactor response data parsing to use a more descriptive variable name. 2024-06-27 06:07:30 +01:00
Benjamin Arntzen (aider) e3f5c33a04 Refactored error handling for parsing log lines in server.js. 2024-06-27 06:07:09 +01:00
Benjamin Arntzen (aider) 6cbac289ae Parse response data before logging problematic log line. 2024-06-27 06:06:35 +01:00
Benjamin Arntzen (aider) d8af619ca5 Remove unnecessary console log statements. 2024-06-27 06:05:21 +01:00
Benjamin Arntzen (aider) 3d322ff8e2 Add logging for received log and node ID in WebSocket message handler. 2024-06-27 06:04:41 +01:00
Benjamin Arntzen (aider) 68a9d10ee7 Parse response data and handle parsing errors in server.js. 2024-06-27 06:02:12 +01:00
Benjamin Arntzen (aider) 33cba566fa Parse response data before accessing logs. 2024-06-27 06:01:41 +01:00
Benjamin Arntzen (aider) ce9589a87a Add logging for full response from API call in server.js. 2024-06-27 06:00:48 +01:00
Benjamin Arntzen (aider) a93d7f15a1 Refactored logic to send log data to WebSocket clients only if not already cached. 2024-06-27 06:00:24 +01:00
Benjamin Arntzen 4b7a032edf Removed unnecessary comment about assuming log contains nodeId. 2024-06-27 06:00:23 +01:00
Benjamin Arntzen 4de54c9e06 Refactor error handling in log querying. 2024-06-27 06:00:05 +01:00
Benjamin Arntzen de80c1a849 Refactored error handling in log querying. 2024-06-27 06:00:00 +01:00
Benjamin Arntzen fd43082ff5 Refactored log data processing and broadcasting to clients. 2024-06-27 05:59:54 +01:00
Benjamin Arntzen (aider) 1b92f79685 Update logs variable to access data property in response. 2024-06-27 05:59:00 +01:00
Benjamin Arntzen (aider) 3082c6a3d2 Refactored log processing to handle non-array responses. 2024-06-27 05:58:10 +01:00
Benjamin Arntzen (aider) 8f61cc0c15 Added package.json, index.html, and server.js for a Waku node visualizer with WebSocket communication. 2024-06-27 05:57:10 +01:00
Benjamin Arntzen 21bf2edd92 Fixed a bug causing logs not to be processed correctly. 2024-06-27 05:54:55 +01:00
Benjamin Arntzen 2f7041d272 Fixed indentation issue in the loop iterating over logs. 2024-06-27 05:54:38 +01:00
Benjamin Arntzen 72e5ab8d8d Refactored HTML and added a new module import in main.go. 2024-06-27 05:54:31 +01:00
Benjamin Arntzen 44b263fb66 Fix iteration over logs in fetchLogs method. 2024-06-27 05:54:16 +01:00
Benjamin Arntzen 0bf5b0e853 Initialize context in NewApp function and fix indentation issue in fetchLogs function. 2024-06-27 05:54:10 +01:00
Benjamin Arntzen 2ee75bb76f Add context initialization in NewApp and process logs in fetchLogs. 2024-06-27 05:54:03 +01:00
Benjamin Arntzen 58a3c5fa7b Remove unused import statement. 2024-06-27 05:53:57 +01:00
Benjamin Arntzen (aider) 0025f3a799 Move app struct and methods to app.go. 2024-06-27 05:52:18 +01:00
Benjamin Arntzen (aider) 24c2e4a37f App struct and methods moved to app.go. 2024-06-27 05:52:01 +01:00
Benjamin Arntzen (aider) dd2676c72a Refactor project structure to use relative import path for app package. 2024-06-27 05:51:36 +01:00
Benjamin Arntzen 7b0084a1a4 Added a new App struct with a startup method to set the context. 2024-06-27 05:51:35 +01:00
Benjamin Arntzen (aider) 6c70d5159c Update import path for the app package. 2024-06-27 05:51:06 +01:00
Benjamin Arntzen (aider) 9ea2e7e4b3 Add import for custom app package. 2024-06-27 05:50:51 +01:00
Benjamin Arntzen (aider) c7c16c1d35 Removed unnecessary build constraint and logging import from main.go. 2024-06-27 05:48:27 +01:00
Benjamin Arntzen (aider) b1aea1855a Replaced fatal error logging with println for better error handling. 2024-06-27 05:48:03 +01:00
Benjamin Arntzen (aider) af09d27080 Implemented Wails build tag in main.go file. 2024-06-27 05:47:45 +01:00
Benjamin Arntzen (aider) dffa2621c1 Implemented startup method to save the application context. 2024-06-27 05:47:15 +01:00
Benjamin Arntzen (aider) a348deed08 Added context.Context to App struct and NewApp function. 2024-06-27 05:46:56 +01:00
Benjamin Arntzen (aider) 291c761dcb Embedded the frontend directory and configured the asset server to serve the frontend assets. 2024-06-27 05:46:19 +01:00
Benjamin Arntzen (aider) fc80f0cb1c Updated Go version to 1.22 in the go.mod file. 2024-06-27 05:45:20 +01:00
Benjamin Arntzen (aider) 4130c893f4 Added go.mod file and updated the asset path in main.go. 2024-06-27 05:45:02 +01:00
Benjamin Arntzen (aider) 800032d93d Added Wails runtime to send events from backend to frontend 2024-06-27 05:44:26 +01:00
Benjamin Arntzen (aider) 1e9de2d8d8 Added main.go, app.go, and frontend/index.html 2024-06-27 05:43:45 +01:00