From 85b0322fd6e9c2760805e6372c487fb0432955de Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Fri, 13 Dec 2024 15:23:03 +0000 Subject: [PATCH 1/5] chore: update commit hash to d479daa5781a533c68a6f9ffdb3b919914c9305e --- app/commit.json | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/app/commit.json b/app/commit.json index 850911f..5bb6596 100644 --- a/app/commit.json +++ b/app/commit.json @@ -1,2 +1 @@ -{ "commit": "eeafc12522b184dcbded28c5c6606e4a23e6849f" } - +{ "commit": "d479daa5781a533c68a6f9ffdb3b919914c9305e" } From d3727459aa594505efd0cef58c4218eaf48d5baf Mon Sep 17 00:00:00 2001 From: Stijnus <72551117+Stijnus@users.noreply.github.com> Date: Sun, 15 Dec 2024 21:27:07 +0100 Subject: [PATCH 2/5] Update DebugTab.tsx Fix debug information --- app/commit.json | 2 +- app/components/settings/debug/DebugTab.tsx | 119 ++++++++++++++++++++- 2 files changed, 117 insertions(+), 4 deletions(-) diff --git a/app/commit.json b/app/commit.json index 5bb6596..fd14931 100644 --- a/app/commit.json +++ b/app/commit.json @@ -1 +1 @@ -{ "commit": "d479daa5781a533c68a6f9ffdb3b919914c9305e" } +{ "commit": "85b0322fd6e9c2760805e6372c487fb0432955de" } diff --git a/app/components/settings/debug/DebugTab.tsx b/app/components/settings/debug/DebugTab.tsx index e18607d..03f2fa8 100644 --- a/app/components/settings/debug/DebugTab.tsx +++ b/app/components/settings/debug/DebugTab.tsx @@ -21,6 +21,12 @@ interface SystemInfo { timezone: string; memory: string; cores: number; + deviceType: string; + colorDepth: string; + pixelRatio: number; + online: boolean; + cookiesEnabled: boolean; + doNotTrack: boolean; } interface IProviderConfig { @@ -50,14 +56,100 @@ function getSystemInfo(): SystemInfo { return parseFloat((bytes / Math.pow(k, i)).toFixed(2)) + ' ' + sizes[i]; }; + const getBrowserInfo = (): string => { + const ua = navigator.userAgent; + let browser = 'Unknown'; + + if (ua.includes('Firefox/')) { + browser = 'Firefox'; + } else if (ua.includes('Chrome/')) { + if (ua.includes('Edg/')) { + browser = 'Edge'; + } else if (ua.includes('OPR/')) { + browser = 'Opera'; + } else { + browser = 'Chrome'; + } + } else if (ua.includes('Safari/')) { + if (!ua.includes('Chrome')) { + browser = 'Safari'; + } + } + + // Extract version number + const match = ua.match(new RegExp(`${browser}\\/([\\d.]+)`)); + const version = match ? ` ${match[1]}` : ''; + + return `${browser}${version}`; + }; + + const getOperatingSystem = (): string => { + const ua = navigator.userAgent; + const platform = navigator.platform; + + if (ua.includes('Win')) { + return 'Windows'; + } + + if (ua.includes('Mac')) { + if (ua.includes('iPhone') || ua.includes('iPad')) { + return 'iOS'; + } + + return 'macOS'; + } + + if (ua.includes('Linux')) { + return 'Linux'; + } + + if (ua.includes('Android')) { + return 'Android'; + } + + return platform || 'Unknown'; + }; + + const getDeviceType = (): string => { + const ua = navigator.userAgent; + + if (ua.includes('Mobile')) { + return 'Mobile'; + } + + if (ua.includes('Tablet')) { + return 'Tablet'; + } + + return 'Desktop'; + }; + + // Get more detailed memory info if available + const getMemoryInfo = (): string => { + if ('memory' in performance) { + const memory = (performance as any).memory; + return `${formatBytes(memory.jsHeapSizeLimit)} (Used: ${formatBytes(memory.usedJSHeapSize)})`; + } + + return 'Not available'; + }; + return { - os: navigator.platform, - browser: navigator.userAgent.split(' ').slice(-1)[0], + os: getOperatingSystem(), + browser: getBrowserInfo(), screen: `${window.screen.width}x${window.screen.height}`, language: navigator.language, timezone: Intl.DateTimeFormat().resolvedOptions().timeZone, - memory: formatBytes(performance?.memory?.jsHeapSizeLimit || 0), + memory: getMemoryInfo(), cores: navigator.hardwareConcurrency || 0, + deviceType: getDeviceType(), + + // Add new fields + colorDepth: `${window.screen.colorDepth}-bit`, + pixelRatio: window.devicePixelRatio, + online: navigator.onLine, + cookiesEnabled: navigator.cookieEnabled, + doNotTrack: navigator.doNotTrack === '1', }; } @@ -371,10 +463,31 @@ export default function DebugTab() {

Operating System

{systemInfo.os}

+
+

Device Type

+

{systemInfo.deviceType}

+

Browser

{systemInfo.browser}

+
+

Display

+

+ {systemInfo.screen} ({systemInfo.colorDepth}) @{systemInfo.pixelRatio}x +

+
+
+

Connection

+

+ + + {systemInfo.online ? 'Online' : 'Offline'} + +

+

Screen Resolution

{systemInfo.screen}

From 039e616bf57dbc080f0e7698e7c5d31369afe552 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Sun, 15 Dec 2024 22:15:59 +0000 Subject: [PATCH 3/5] chore: update commit hash to d3727459aa594505efd0cef58c4218eaf48d5baf --- app/commit.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/commit.json b/app/commit.json index fd14931..1c1e2be 100644 --- a/app/commit.json +++ b/app/commit.json @@ -1 +1 @@ -{ "commit": "85b0322fd6e9c2760805e6372c487fb0432955de" } +{ "commit": "d3727459aa594505efd0cef58c4218eaf48d5baf" } From c2766cb5fc8fc2bd425e44a733012e76caadb9de Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Mon, 16 Dec 2024 15:33:38 +0000 Subject: [PATCH 4/5] chore: update commit hash to f752bf7da532ec6196dafff1c388250d44db4de5 --- app/commit.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/commit.json b/app/commit.json index ed3bc2c..5da0e32 100644 --- a/app/commit.json +++ b/app/commit.json @@ -1 +1 @@ -{ "commit": "78505ed2f347dd3a7778b4c1c7c38c89ecacedd3" , "version": "" } \ No newline at end of file +{ "commit": "f752bf7da532ec6196dafff1c388250d44db4de5" , "version": "" } From 278322d5445a2cc7bcc93042f6ca3bcf14187ec1 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Mon, 16 Dec 2024 15:59:54 +0000 Subject: [PATCH 5/5] chore: update commit hash to 995fb81ac7a03eb1a6d1c56cf2fc92a60028c024 --- app/commit.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/commit.json b/app/commit.json index 5da0e32..f835d03 100644 --- a/app/commit.json +++ b/app/commit.json @@ -1 +1 @@ -{ "commit": "f752bf7da532ec6196dafff1c388250d44db4de5" , "version": "" } +{ "commit": "995fb81ac7a03eb1a6d1c56cf2fc92a60028c024" , "version": "" }