Add mining pool stats enable/disable toggle

This commit is contained in:
kdmukai 2024-12-18 15:57:38 -06:00
parent 0c70c74a1a
commit f458417536
3 changed files with 19 additions and 6 deletions

View file

@ -44,6 +44,7 @@
"useNostr": "Use Nostr data source",
"bitaxeHostname": "BitAxe hostname or IP",
"bitaxeEnabled": "Enable BitAxe",
"miningPoolStatsEnabled": "Enable Mining Pool Stats",
"miningPoolName": "Mining Pool",
"miningPoolUser": "Mining Pool username or api key",
"nostrZapPubkey": "Nostr Zap pubkey",

View file

@ -705,14 +705,16 @@
>
<Col md="6">
<Input
type="text"
type="select"
bind:value={$settings.miningPoolName}
name="miningPoolName"
id="miningPoolName"
bsSize={$uiSettings.inputSize}
required
minlength="64"
></Input>
class={$uiSettings.selectClass}
>
<option value="braiins">Braiins Pool</option>
<option value="ocean">Ocean</option>
</Input>
</Col>
</Row>
<Row>
@ -727,7 +729,6 @@
id="miningPoolUser"
bsSize={$uiSettings.inputSize}
required
minlength="64"
></Input>
</Col>
</Row>
@ -811,6 +812,17 @@
/>
</Col>
{/if}
{#if 'miningPoolStatsEnabled' in $settings}
<Col md="6" xl="12" xxl="6">
<Input
id="miningPoolStatsEnabled"
bind:checked={$settings.miningPoolStatsEnabled}
type="switch"
bsSize={$uiSettings.inputSize}
label="{$_('section.settings.miningPoolStatsEnabled')} ({$_('restartRequired')})"
/>
</Col>
{/if}
{#if 'nostrZapNotify' in $settings}
<Col md="6" xl="12" xxl="6">
<Input

View file

@ -45,7 +45,7 @@ export const settingsJson = {
gitTag: '3.1.9',
bitaxeEnabled: false,
bitaxeHostname: 'bitaxe1',
miningPoolStatsEnabled: true,
miningPoolStatsEnabled: false,
miningPoolName: 'ocean',
miningPoolUser: '38Qkkei3SuF1Eo45BaYmRHUneRD54yyTFy',
nostrZapNotify: true,