diff --git a/meshchatx/src/frontend/components/about/AboutPage.vue b/meshchatx/src/frontend/components/about/AboutPage.vue index f392f2d..0e73d3b 100644 --- a/meshchatx/src/frontend/components/about/AboutPage.vue +++ b/meshchatx/src/frontend/components/about/AboutPage.vue @@ -175,9 +175,9 @@
{{ formatBytes( - appInfo.database_files + (appInfo.database_files ? appInfo.database_files.total_bytes - : appInfo.database_file_size + : appInfo.database_file_size) || 0 ) }}
@@ -188,7 +188,7 @@
-
+ @@ -867,7 +899,9 @@ export default { data() { return { Utils, - appInfo: null, + appInfo: { + version: "unknown", + }, config: null, updateInterval: null, healthInterval: null, @@ -927,6 +961,14 @@ export default { return ""; } }, + environmentInfo() { + return { + platform: navigator?.platform || "unknown", + language: navigator?.language || "unknown", + userAgent: navigator?.userAgent || "unknown", + backendUrl: window?.location?.origin || "unknown", + }; + }, }, mounted() { this.getAppInfo(); @@ -1096,7 +1138,10 @@ export default { async getAppInfo() { try { const response = await window.api.get("/api/v1/app/info"); - this.appInfo = response.data.app_info; + this.appInfo = { + ...(this.appInfo || {}), + ...(response?.data?.app_info || {}), + }; if (this.isElectron) { this.electronMemoryUsage = await ElectronUtils.getMemoryUsage(); @@ -1105,7 +1150,6 @@ export default { this.nodeVersion = window.electron.nodeVersion(); } } catch (e) { - // do nothing if failed to load app info console.log(e); } },