Identify BigPapa as Bitaxe
This commit is contained in:
@@ -15,6 +15,16 @@ export const MINER_PROFILES: readonly MinerProfile[] = [
|
||||
watts: 80,
|
||||
workerNameMatchers: ["nerdqaxe", "qu4ck", "quack"],
|
||||
},
|
||||
{
|
||||
slug: "bitaxe-bigpapa",
|
||||
nickname: "BigPapa",
|
||||
model: "Bitaxe",
|
||||
ownerLabel: "shared",
|
||||
locationLabel: "Site A",
|
||||
expectedHashrateThs: 1.2,
|
||||
watts: 18,
|
||||
workerNameMatchers: ["bigpapa", "big-papa", "big_papa"],
|
||||
},
|
||||
{
|
||||
slug: "bitaxe",
|
||||
nickname: "P1XEL",
|
||||
|
||||
22
apps/web/public/miners/bigpapa-bitaxe.svg
Normal file
22
apps/web/public/miners/bigpapa-bitaxe.svg
Normal file
@@ -0,0 +1,22 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 320 220" role="img" aria-label="BigPapa Bitaxe miner">
|
||||
<rect width="320" height="220" fill="none"/>
|
||||
<g filter="url(#shadow)">
|
||||
<rect x="54" y="62" width="212" height="96" rx="10" fill="#16121f" stroke="#ff3df0" stroke-width="5"/>
|
||||
<rect x="76" y="84" width="66" height="52" rx="6" fill="#07090f" stroke="#ffd84a" stroke-width="4"/>
|
||||
<circle cx="109" cy="110" r="20" fill="#0b0f19" stroke="#29ffe6" stroke-width="5"/>
|
||||
<path d="M109 88v44M87 110h44" stroke="#ff4f78" stroke-width="4"/>
|
||||
<path d="M178 81h50l14 17-14 17h-50l-14-17z" fill="#ff3df0" opacity=".9"/>
|
||||
<text x="203" y="104" text-anchor="middle" fill="#07090f" font-family="monospace" font-size="18" font-weight="700">BIG</text>
|
||||
<rect x="166" y="124" width="76" height="13" rx="4" fill="#29ffe6" opacity=".8"/>
|
||||
<path d="M74 160h172M96 177h128" stroke="#475569" stroke-width="8" stroke-linecap="round"/>
|
||||
<path d="M62 56l28-24h34l-12 30zM258 56l-28-24h-34l12 30z" fill="#ffd84a" stroke="#ff3df0" stroke-width="3"/>
|
||||
<circle cx="61" cy="72" r="6" fill="#6cff8c"/>
|
||||
<circle cx="259" cy="72" r="6" fill="#6cff8c"/>
|
||||
</g>
|
||||
<text x="160" y="207" text-anchor="middle" fill="#ffd84a" font-family="monospace" font-size="18" font-weight="700">BIGPAPA BITAXE</text>
|
||||
<defs>
|
||||
<filter id="shadow">
|
||||
<feDropShadow dx="0" dy="8" stdDeviation="8" flood-color="#000" flood-opacity=".6"/>
|
||||
</filter>
|
||||
</defs>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 1.4 KiB |
@@ -1,8 +1,9 @@
|
||||
const CACHE_VERSION = "gashboard-pwa-v2";
|
||||
const CACHE_VERSION = "gashboard-pwa-v3";
|
||||
const APP_SHELL = ["/", "/manifest.webmanifest", "/icons/icon.svg", "/icons/maskable.svg"];
|
||||
const MINER_ASSETS = [
|
||||
"/miners/nerdqaxe.svg",
|
||||
"/miners/bitaxe.svg",
|
||||
"/miners/bigpapa-bitaxe.svg",
|
||||
"/miners/avalon-nano-3.svg",
|
||||
"/miners/avalon-mini-3.svg",
|
||||
"/miners/boomer-heater.svg",
|
||||
@@ -49,7 +50,12 @@ self.addEventListener("fetch", (event) => {
|
||||
return;
|
||||
}
|
||||
|
||||
if (url.pathname.startsWith("/assets/") || url.pathname.startsWith("/icons/") || url.pathname.startsWith("/stickers/")) {
|
||||
if (
|
||||
url.pathname.startsWith("/assets/")
|
||||
|| url.pathname.startsWith("/icons/")
|
||||
|| url.pathname.startsWith("/miners/")
|
||||
|| url.pathname.startsWith("/stickers/")
|
||||
) {
|
||||
event.respondWith(cacheFirst(req));
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -12,6 +12,7 @@ const slug = computed(() => {
|
||||
const map: Record<string, string> = {
|
||||
QU4CK: "nerdqaxe",
|
||||
P1XEL: "bitaxe",
|
||||
BigPapa: "bitaxe",
|
||||
N4N0: "avalon-nano-3",
|
||||
M1N1: "avalon-mini-3",
|
||||
};
|
||||
|
||||
@@ -80,6 +80,7 @@ function minerKey(m: MinerStat): string {
|
||||
function imageFor(m: MinerStat): string {
|
||||
if (m.nickname === "QU4CK") return "/miners/nerdqaxe.svg";
|
||||
if (m.nickname === "P1XEL") return "/miners/bitaxe.svg";
|
||||
if (m.nickname === "BigPapa" && /bitaxe/i.test(m.model)) return "/miners/bigpapa-bitaxe.svg";
|
||||
if (m.nickname === "N4N0") return "/miners/avalon-nano-3.svg";
|
||||
return "/miners/avalon-mini-3.svg";
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user