Get available pools from device
All checks were successful
/ build (push) Successful in 3m23s
/ check-changes (push) Successful in 5s

This commit is contained in:
Djuri Baars 2024-12-20 01:20:15 +01:00
parent 711c625648
commit a00eb54573

View file

@ -44,6 +44,18 @@
['5dBm', 20] // 5dBm
]);
const miningPoolMap = new Map<string, string>([
['noderunners', 'pool.noderunners.network'],
['braiins', 'braiins pool'],
['ocean', 'ocean.xyz']
]);
const getMiningPoolName = (name: string) => {
if (miningPoolMap.has(name)) return miningPoolMap.get(name);
return name;
};
const dispatch = createEventDispatcher();
const handleReset = (e: Event) => {
@ -712,8 +724,9 @@
bsSize={$uiSettings.inputSize}
class={$uiSettings.selectClass}
>
<option value="braiins">Braiins Pool</option>
<option value="ocean">Ocean</option>
{#each $settings.availablePools as pool}
<option value={pool}>{getMiningPoolName(pool)}</option>
{/each}
</Input>
</Col>
</Row>