Additional device images

This commit is contained in:
Garth Vander Houwen 2024-12-13 09:34:32 -08:00
parent 028dd65420
commit 909100b6d5
20 changed files with 3095 additions and 6 deletions

View file

@ -0,0 +1,12 @@
{
"images" : [
{
"filename" : "promicro.svg",
"idiom" : "universal"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}

File diff suppressed because one or more lines are too long

After

Width:  |  Height:  |  Size: 71 KiB

View file

@ -0,0 +1,12 @@
{
"images" : [
{
"filename" : "rak11310.svg",
"idiom" : "universal"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}

File diff suppressed because one or more lines are too long

After

Width:  |  Height:  |  Size: 58 KiB

View file

@ -0,0 +1,12 @@
{
"images" : [
{
"filename" : "rak4631_case.svg",
"idiom" : "universal"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}

File diff suppressed because one or more lines are too long

After

Width:  |  Height:  |  Size: 9 KiB

View file

@ -0,0 +1,12 @@
{
"images" : [
{
"filename" : "pico.svg",
"idiom" : "universal"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}

File diff suppressed because it is too large Load diff

After

Width:  |  Height:  |  Size: 102 KiB

View file

@ -0,0 +1,12 @@
{
"images" : [
{
"filename" : "seeed-xiao-s3.svg",
"idiom" : "universal"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}

File diff suppressed because one or more lines are too long

After

Width:  |  Height:  |  Size: 28 KiB

View file

@ -0,0 +1,12 @@
{
"images" : [
{
"filename" : "seeed-sensecap-indicator.svg",
"idiom" : "universal"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}

File diff suppressed because one or more lines are too long

After

Width:  |  Height:  |  Size: 8.7 KiB

View file

@ -0,0 +1,12 @@
{
"images" : [
{
"filename" : "tracker-t1000-e.svg",
"idiom" : "universal"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}

File diff suppressed because one or more lines are too long

After

Width:  |  Height:  |  Size: 6.9 KiB

View file

@ -0,0 +1,12 @@
{
"images" : [
{
"filename" : "wio-tracker-wm1110.svg",
"idiom" : "universal"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}

File diff suppressed because one or more lines are too long

After

Width:  |  Height:  |  Size: 91 KiB

View file

@ -0,0 +1,12 @@
{
"images" : [
{
"filename" : "rak-wismeshtap.svg",
"idiom" : "universal"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}

File diff suppressed because one or more lines are too long

After

Width:  |  Height:  |  Size: 5.3 KiB

View file

@ -75,15 +75,32 @@ extension UserEntity {
return "TLORAV2116"
case "TLORAV2118":
return "TLORAV2118"
/// Seeed Studio
case "SENSECAPINDICATOR":
return "SENSECAPINDICATOR"
case "TRACKERT1000E":
return "TRACKERT1000E"
case "SEEEDXIAOS3":
return "SEEEDXIAOS3"
case "WIOWM1110":
return "WIOWM1110"
/// RAK Wireless
case "RAK4631":
return "UNSET"
case "RAK11310":
return "UNSET"
case "WISMESHTAP":
return "UNSET"
/// B&Q Consulting
case "NANOG1", "NANOG1EXPLORER":
return "NANOG1"
return "UNSET"
case "NANOG2ULTRA":
return "NANOG2ULTRA"
return "UNSET"
case "STATIONG2":
return "STATIONG2"
case "SOLAR_NODE":
return "SOLAR_NODE"
return "UNSET"
/// DIY Devices
case "RPIPICO":
return "RPIPICO"
default:
return "UNSET"
}

View file

@ -56,7 +56,7 @@ struct NodeInfoItem: View {
Api().loadDeviceHardwareData { (hw) in
for device in hw {
let currentHardware = node.user?.hwModel ?? "UNSET"
let deviceString = device.hwModelSlug.replacingOccurrences(of: "_", with: "")
let deviceString = device.hwModelSlug.replacingOccurrences(of: "_", with: "").uppercased()
if deviceString == currentHardware {
currentDevice = device
}