Skip to content

Commit

Permalink
Display MAC address and bug fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Levminer committed Jun 24, 2024
1 parent ee33cf7 commit 260ebee
Show file tree
Hide file tree
Showing 7 changed files with 14 additions and 9 deletions.
2 changes: 1 addition & 1 deletion apps/web/src/routes/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,7 @@
</div>
</div>

<div id="download" class="flex min-h-screen justify-center rounded-xl py-20">
<div id="downloads" class="flex min-h-screen justify-center rounded-xl py-20">
<div class="flex select-text flex-wrap items-center justify-between gap-10 px-20 sm:w-full sm:px-2 md:flex-nowrap">
<div class="flex w-full flex-col">
<!-- card 0 -->
Expand Down
2 changes: 1 addition & 1 deletion packages/ui/pages/connections.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
}}
>
<ExternalLink />
<span class="copy">Setup</span>
<span class="copy">Open</span>
</button>
</div>
</div>
Expand Down
1 change: 1 addition & 0 deletions packages/ui/pages/home.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -498,6 +498,7 @@
<h3>Name: {name}</h3>
<h3>Description: {description}</h3>
<h3>Address: {ipAddress} ({mask})</h3>
<h3>MAC address: {macAddress}</h3>
<h3>Gateway: {gateway} ({dns})</h3>
<h3>Speed: {speed} Mbit/s</h3>
</div>
Expand Down
1 change: 1 addition & 0 deletions packages/ui/pages/network.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
<h3>Name: {name}</h3>
<h3>Description: {description}</h3>
<h3>Address: {ipAddress} ({mask})</h3>
<h3>MAC address: {macAddress}</h3>
<h3>Gateway: {gateway} ({dns})</h3>
<h3>Speed: {speed} Mbit/s</h3>
</div>
Expand Down
4 changes: 3 additions & 1 deletion packages/ui/pages/onboarding.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,9 @@
const free = () => {
$settings.licenseKey = "free"
$settings.licenseActivated = new Date().toISOString()
step3()
setTimeout(() => {
step3()
}, 250)
}
const activate = async () => {
Expand Down
6 changes: 1 addition & 5 deletions platforms/core/src/utils.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
use std::env;
use serde::{Deserialize, Serialize};
use std::env;
use sysinfo::System;

#[derive(Serialize, Deserialize, Debug)]
Expand Down Expand Up @@ -41,15 +41,11 @@ pub fn system_info() -> SystemInfo {
String::from("N/A")
};

println!("GPU name: {}", gpu_name_json);

let gpu_name = match serde_json::from_str::<PowershellGPUOutput>(&gpu_name_json) {
Ok(parsed) => parsed.name,
Err(_) => "N/A".to_string(),
};

println!("GPU name: {}", gpu_name);

os_name = match os_name.as_str() {
"Darwin" => "macOS".to_string(),
_ => os_name,
Expand Down
7 changes: 6 additions & 1 deletion platforms/windows/lib/HardwareInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@ public HardwareInfo() {
}

public void GetInfo() {
var errorSent = false;

try {
var computerHardware = computer.Hardware;

Expand Down Expand Up @@ -651,7 +653,10 @@ public void GetInfo() {
firstRun = false;
}
catch (Exception e) {
SentrySdk.CaptureException(e);
if (errorSent == false) {
SentrySdk.CaptureException(e);
errorSent = true;
}
}
}

Expand Down

0 comments on commit 260ebee

Please sign in to comment.