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", "hostnamePrefix": "Hostname prefix",
"StealFocusOnNewBlock": "Steal focus on new block", "StealFocusOnNewBlock": "Steal focus on new block",
"useBigCharsMcap": "Use big characters for market cap", "useBigCharsMcap": "Use big characters for market cap",
"useBlkCountdown": "Blocks countdown for halving",
"useSatsSymbol": "Use sats symbol",
"otaUpdates": "OTA updates", "otaUpdates": "OTA updates",
"enableMdns": "mDNS", "enableMdns": "mDNS",
"fetchEuroPrice": "Fetch € price", "fetchEuroPrice": "Fetch € price",

View File

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

View File

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

View File

@ -5,6 +5,7 @@
//@import "@fontsource/antonio/latin-400.css"; //@import "@fontsource/antonio/latin-400.css";
@import '@fontsource/ubuntu/latin-400.css'; @import '@fontsource/ubuntu/latin-400.css';
@import '@fontsource/oswald/latin-400.css'; @import '@fontsource/oswald/latin-400.css';
@import './satsymbol.scss';
$form-range-track-bg: #fff; $form-range-track-bg: #fff;
$color-mode-type: media-query; $color-mode-type: media-query;
@ -182,6 +183,13 @@ nav {
padding-right: 10px; padding-right: 10px;
} }
.digit.sats {
padding-top: 15px;
padding-bottom: 5px;
font-size: 4.5rem;
font-family: 'Satoshi Symbol';
}
.digit-blank { .digit-blank {
content: 'abc'; 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> <div class="flex-items">{part}</div>
{/each} {/each}
</div> </div>
{:else if char === 'STS'}
<div class="digit sats">S</div>
{:else if char.length >= 3} {:else if char.length >= 3}
<div class="mediumText">{char}</div> <div class="mediumText">{char}</div>
{:else if char.length === 0 || char === ' '} {:else if char.length === 0 || char === ' '}

View File

@ -305,6 +305,24 @@
label="{$_('section.settings.fetchEuroPrice')} ({$_('restartRequired')})" label="{$_('section.settings.fetchEuroPrice')} ({$_('restartRequired')})"
/> />
</Col> </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>
<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