Dependency updates, add settings for new functionality

This commit is contained in:
Djuri Baars 2024-03-10 12:21:25 +01:00
parent 3f20d67f1a
commit 1b8ab93da6
11 changed files with 1046 additions and 933 deletions

View file

@ -15,6 +15,8 @@
"hostnamePrefix": "Hostname prefix",
"StealFocusOnNewBlock": "Steal focus on new block",
"useBigCharsMcap": "Use big characters for market cap",
"useBlkCountdown": "Blocks countdown for halving",
"useSatsSymbol": "Use sats symbol",
"otaUpdates": "OTA updates",
"enableMdns": "mDNS",
"fetchEuroPrice": "Fetch € price",

View file

@ -14,6 +14,8 @@
"StealFocusOnNewBlock": "Presta atención al nuevo bloque",
"ledFlashOnBlock": "El LED parpadea con un bloque nuevo",
"useBigCharsMcap": "Utilice caracteres grandes para la market cap",
"useBlkCountdown": "Cuenta regresiva en bloques",
"useSatsSymbol": "Usar símbolo sats",
"fetchEuroPrice": "Obtener precio en €",
"timeBetweenPriceUpdates": "Tiempo entre actualizaciones de precios",
"ledPowerOnTest": "Prueba de encendido del LED",

View file

@ -16,6 +16,8 @@
"StealFocusOnNewBlock": "Pak aandacht bij nieuw blok",
"ledFlashOnBlock": "Knipper led bij nieuw blok",
"useBigCharsMcap": "Gebruik grote tekens bij market cap",
"useBlkCountdown": "Blocks aftellen voor halving",
"useSatsSymbol": "Gebruik sats symbol",
"fetchEuroPrice": "Toon € prijs",
"screens": "Schermen",
"hostnamePrefix": "Hostnaam voorvoegsel",

View file

@ -5,6 +5,7 @@
//@import "@fontsource/antonio/latin-400.css";
@import '@fontsource/ubuntu/latin-400.css';
@import '@fontsource/oswald/latin-400.css';
@import './satsymbol.scss';
$form-range-track-bg: #fff;
$color-mode-type: media-query;
@ -182,6 +183,13 @@ nav {
padding-right: 10px;
}
.digit.sats {
padding-top: 15px;
padding-bottom: 5px;
font-size: 4.5rem;
font-family: 'Satoshi Symbol';
}
.digit-blank {
content: 'abc';
}

View file

@ -0,0 +1,9 @@
@font-face {
font-family: 'Satoshi Symbol';
src:
url('/fonts/Satoshi_Symbol.woff2') format('woff2'),
url('/fonts/Satoshi_Symbol.woff') format('woff');
font-weight: normal;
font-style: normal;
font-display: swap;
}

View file

@ -15,6 +15,8 @@
<div class="flex-items">{part}</div>
{/each}
</div>
{:else if char === 'STS'}
<div class="digit sats">S</div>
{:else if char.length >= 3}
<div class="mediumText">{char}</div>
{:else if char.length === 0 || char === ' '}

View file

@ -305,6 +305,24 @@
label="{$_('section.settings.fetchEuroPrice')} ({$_('restartRequired')})"
/>
</Col>
<Col md="6">
<Input
id="useBlkCountdown"
bind:checked={$settings.useBlkCountdown}
type="switch"
bsSize="sm"
label={$_('section.settings.useBlkCountdown')}
/>
</Col>
<Col md="6">
<Input
id="useSatsSymbol"
bind:checked={$settings.useSatsSymbol}
type="switch"
bsSize="sm"
label={$_('section.settings.useSatsSymbol')}
/>
</Col>
</Row>
<Row>

Binary file not shown.

Binary file not shown.

Binary file not shown.

1936
yarn.lock

File diff suppressed because it is too large Load diff