fix: timePerScreen setting and third party source labeling
This commit is contained in:
parent
a4d629d664
commit
8389ed8e36
4 changed files with 10 additions and 9 deletions
|
@ -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>
|
||||||
|
|
||||||
|
|
|
@ -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')}
|
||||||
|
|
|
@ -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"
|
||||||
},
|
},
|
||||||
|
|
|
@ -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({
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue