From be5647e1a518036aedec2e51543c19e04bbfa191 Mon Sep 17 00:00:00 2001 From: Djuri Baars Date: Mon, 29 Jul 2024 20:10:26 +0200 Subject: [PATCH] Add BitAxe support --- package.json | 3 ++- src/icons/PickaxeIcon.svelte | 5 +++++ src/icons/RocketIcon.svelte | 8 ++++++++ src/lib/locales/en.json | 4 +++- src/routes/Rendered.svelte | 19 ++++++++++++++++++- src/routes/Settings.svelte | 27 +++++++++++++++++++++++++++ static/icons/pickaxe.svg | 1 + static/icons/rocket.svg | 1 + 8 files changed, 65 insertions(+), 3 deletions(-) create mode 100644 src/icons/PickaxeIcon.svelte create mode 100644 src/icons/RocketIcon.svelte create mode 100644 static/icons/pickaxe.svg create mode 100644 static/icons/rocket.svg diff --git a/package.json b/package.json index f3af94e..6ea1f5a 100644 --- a/package.json +++ b/package.json @@ -56,5 +56,6 @@ "svelte-i18n": "^4.0.0", "sveltestrap": "^5.11.2", "swagger-ui": "^5.10.0" - } + }, + "packageManager": "yarn@1.22.21+sha1.1959a18351b811cdeedbd484a8f86c3cc3bbaf72" } diff --git a/src/icons/PickaxeIcon.svelte b/src/icons/PickaxeIcon.svelte new file mode 100644 index 0000000..6d35c68 --- /dev/null +++ b/src/icons/PickaxeIcon.svelte @@ -0,0 +1,5 @@ + diff --git a/src/icons/RocketIcon.svelte b/src/icons/RocketIcon.svelte new file mode 100644 index 0000000..1317fd7 --- /dev/null +++ b/src/icons/RocketIcon.svelte @@ -0,0 +1,8 @@ + + +rocket-launch diff --git a/src/lib/locales/en.json b/src/lib/locales/en.json index db7a9d1..38bb386 100644 --- a/src/lib/locales/en.json +++ b/src/lib/locales/en.json @@ -39,7 +39,9 @@ "wpTimeout": "WiFi-config portal timeout", "nostrPubKey": "Nostr source pubkey", "nostrRelay": "Nostr Relay", - "useNostr": "Use Nostr datasource" + "useNostr": "Use Nostr datasource", + "bitaxeHostname": "BitAxe hostname", + "bitaxeEnabled": "Enable BitAxe" }, "control": { "systemInfo": "System info", diff --git a/src/routes/Rendered.svelte b/src/routes/Rendered.svelte index 95b01fc..ede920f 100644 --- a/src/routes/Rendered.svelte +++ b/src/routes/Rendered.svelte @@ -1,5 +1,7 @@