fix: timePerScreen setting and third party source labeling
All checks were successful
/ build (push) Successful in 6m14s
/ check-changes (push) Successful in 7s

This commit is contained in:
Djuri 2025-05-02 23:25:21 +02:00
parent a4d629d664
commit 8389ed8e36
Signed by: djuri
GPG key ID: 61B9B2DDE5AA3AC1
4 changed files with 10 additions and 9 deletions

View file

@ -25,10 +25,10 @@
export let invalid: boolean | undefined = undefined; export let invalid: boolean | undefined = undefined;
export let minlength: string | undefined = undefined; export let minlength: string | undefined = undefined;
export let onChange: (() => void) | undefined = undefined; export let onChange: (() => void) | undefined = undefined;
export let onInput: (() => void) | undefined = undefined; export let onInput: ((e: Event) => void) | undefined = undefined;
const onInputHandler = () => { const onInputHandler = (e: Event) => {
onInput?.(); onInput?.(e);
}; };
</script> </script>

View file

@ -33,6 +33,8 @@
: font.charAt(0).toUpperCase() + font.slice(1), : font.charAt(0).toUpperCase() + font.slice(1),
font font
]); ]);
let timePerScreen = $settings.timePerScreen;
</script> </script>
<Row> <Row>
@ -61,7 +63,8 @@
<SettingsInput <SettingsInput
id="timePerScreen" id="timePerScreen"
label={$_('section.settings.timePerScreen')} label={$_('section.settings.timePerScreen')}
bind:value={$settings.timePerScreen} bind:value={timePerScreen}
onInput={(e) => ($settings.timePerScreen = Number(e.target.value))}
type="number" type="number"
min={1} min={1}
step={1} step={1}
@ -69,7 +72,6 @@
suffix={$_('time.minutes')} suffix={$_('time.minutes')}
size={$uiSettings.inputSize} size={$uiSettings.inputSize}
/> />
<SettingsInput <SettingsInput
id="fullRefreshMin" id="fullRefreshMin"
label={$_('section.settings.fullRefreshEvery')} label={$_('section.settings.fullRefreshEvery')}

View file

@ -78,7 +78,7 @@
"dataSource": { "dataSource": {
"label": "Data Source", "label": "Data Source",
"btclock": "BTClock Data Source", "btclock": "BTClock Data Source",
"thirdParty": "mempool.space/coincap.io", "thirdParty": "mempool.space/Kraken",
"nostr": "Nostr publisher", "nostr": "Nostr publisher",
"custom": "Custom Endpoint" "custom": "Custom Endpoint"
}, },

View file

@ -13,9 +13,8 @@
import { uiSettings } from '$lib/uiSettings'; import { uiSettings } from '$lib/uiSettings';
let settings = writable({ let settings = writable({
fgColor: '0', isLoaded: false,
bgColor: '0', timePerScreen: 0
isLoaded: false
}); });
let status = writable({ let status = writable({