From 6327e16c1b740e72d0eceec32dbbb425bb8e90a7 Mon Sep 17 00:00:00 2001 From: Ivan Date: Mon, 18 May 2026 05:09:08 -0500 Subject: [PATCH] chore(config): remove git.quad4.io references from codebase --- electron/main.js | 2 +- meshchatx/meshchat.py | 17 +++--- meshchatx/src/backend/config_manager.py | 2 +- .../micron-editor/MicronEditorPage.vue | 52 ++++++++++++++++++- .../nomadnetwork/NomadNetworkPage.vue | 2 +- .../components/settings/SettingsPage.vue | 6 +-- scripts/build/fetch_reticulum_manual.py | 13 ++++- scripts/rpi/install_meshchatx.sh | 8 +-- tests/frontend/MarkdownRenderer.test.js | 8 +-- .../frontend/fixtures/settingsPageTestApi.js | 2 +- 10 files changed, 85 insertions(+), 27 deletions(-) diff --git a/electron/main.js b/electron/main.js index ba468d39..9b36fe09 100644 --- a/electron/main.js +++ b/electron/main.js @@ -513,7 +513,7 @@ app.whenReady().then(async () => { "style-src 'self' 'unsafe-inline'", "img-src 'self' data: blob: https://*.tile.openstreetmap.org https://tile.openstreetmap.org https://*.cartocdn.com https://tiles.openfreemap.org https://*.openfreemap.org", "font-src 'self' data: https://tiles.openfreemap.org https://*.openfreemap.org", - "connect-src 'self' http://127.0.0.1:9337 https://127.0.0.1:9337 http://localhost:9337 https://localhost:9337 ws://127.0.0.1:* wss://127.0.0.1:* ws://localhost:* wss://localhost:* blob: https://*.tile.openstreetmap.org https://tile.openstreetmap.org https://nominatim.openstreetmap.org https://git.quad4.io https://*.cartocdn.com https://tiles.openfreemap.org https://*.openfreemap.org", + "connect-src 'self' http://127.0.0.1:9337 https://127.0.0.1:9337 http://localhost:9337 https://localhost:9337 ws://127.0.0.1:* wss://127.0.0.1:* ws://localhost:* wss://localhost:* blob: https://*.tile.openstreetmap.org https://tile.openstreetmap.org https://nominatim.openstreetmap.org https://github.com https://*.cartocdn.com https://tiles.openfreemap.org https://*.openfreemap.org", "media-src 'self' blob:", "worker-src 'self' blob:", "frame-src 'self'", diff --git a/meshchatx/meshchat.py b/meshchatx/meshchat.py index 8734642c..bd96aaba 100644 --- a/meshchatx/meshchat.py +++ b/meshchatx/meshchat.py @@ -3507,7 +3507,7 @@ class ReticulumMeshChat:

The MeshChatX web interface files were not found.

If you are running from source, you must build the frontend first:

pnpm install && pnpm run build-frontend
-

For more information, see the README.

+

For more information, see the README.

""", @@ -4243,17 +4243,16 @@ class ReticulumMeshChat: return web.json_response({"error": "URL is required"}, status=400) # Restrict to allowed sources for safety - gitea_url = "https://git.quad4.io" + gitea_url = "" if self.current_context and self.current_context.config: gitea_url = self.current_context.config.gitea_base_url.get() - if ( - not url.startswith(gitea_url + "/") - and not url.startswith("https://git.quad4.io/") - and not url.startswith("https://github.com/") - and not url.startswith("https://objects.githubusercontent.com/") - and not url.startswith("https://release-assets.githubusercontent.com/") - ): + allowed = ["https://github.com/", "https://objects.githubusercontent.com/", + "https://release-assets.githubusercontent.com/"] + if gitea_url: + allowed.insert(0, gitea_url + "/") + + if not any(url.startswith(a) for a in allowed): return web.json_response({"error": "Invalid download URL"}, status=403) try: diff --git a/meshchatx/src/backend/config_manager.py b/meshchatx/src/backend/config_manager.py index 0b017e70..3cde54d9 100644 --- a/meshchatx/src/backend/config_manager.py +++ b/meshchatx/src/backend/config_manager.py @@ -161,7 +161,7 @@ class ConfigManager: self.gitea_base_url = self.StringConfig( self, "gitea_base_url", - "https://git.quad4.io", + None, ) # desktop config diff --git a/meshchatx/src/frontend/components/micron-editor/MicronEditorPage.vue b/meshchatx/src/frontend/components/micron-editor/MicronEditorPage.vue index 04592f83..a0240cda 100644 --- a/meshchatx/src/frontend/components/micron-editor/MicronEditorPage.vue +++ b/meshchatx/src/frontend/components/micron-editor/MicronEditorPage.vue @@ -17,7 +17,7 @@ {{ $t("tools.micron_editor.title") }}