Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions public/devices/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,11 @@ before including it in a public release package.
URL for the OP1 8K. Confirm redistribution terms before including it in a
public release package.

`razer-viper-v2-pro.png` was supplied from Razer's support FAQ device-layout
asset (`dl.razerzone.com/src/6048-1-en-v10.png`). Ideally replace it with a
higher-resolution image if one is found. Confirm redistribution terms before
including it in a public release package.

`keychron-nape-pro.png` was supplied from Keychron's sysmgr cover CDN for the
Nape Pro. Confirm redistribution terms before including it in a public release
package.
Expand Down
Binary file added public/devices/razer-viper-v2-pro.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions src/ui/device-images.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@
*/
const DEVICE_IMAGES: ReadonlyMap<string, string> = new Map([
// Wired and receiver are separate product ids for the same mouse.
["1532:00a5", "/devices/razer-viper-v2-pro.png"],
["1532:00a6", "/devices/razer-viper-v2-pro.png"],
["1532:00c0", "/devices/razer-viper-v3-pro.png"],
["1532:00c1", "/devices/razer-viper-v3-pro.png"],
["1532:008a", "/devices/razer-viper-mini.webp"],
Expand Down Expand Up @@ -55,6 +57,7 @@ export function deviceImage(device: HIDDevice | null | undefined, displayName =
if (mapped) return mapped;
if (/superlight/i.test(displayName)) return "/devices/logitech-pro-x-superlight-2c.png";
if (/\bop1\s*8k\b/i.test(displayName)) return "/devices/endgame-gear-op1-8k.png";
if (/\bviper\s*v2\s*pro\b/i.test(displayName)) return "/devices/razer-viper-v2-pro.png";
if (/\bnape\s*pro\b/i.test(displayName)) return "/devices/keychron-nape-pro.png";
return "/devices/unknown-device.png";
}