This commit is contained in:
2026-09-22 19:12:40 +02:00
66 changed files with 408 additions and 69 deletions
@@ -11,7 +11,7 @@ import LoadingOverlay from '../../../../components/LoadingOverlay/LoadingOverlay
import { InputChannel, OutputChannel } from '../../types';
import MatrixSection from '../Matrixsection/Matrixsection';
import GeqSection from '../GeqSection/GeqSection';
import ChannelSection from '../InputSection/ChannelSection';
import ChannelSection from '../ChannelSection/ChannelSection';
import { DSP408Api } from '../../dsp408';
import { DSP408 } from '../../../../types';
import { SidebarId } from '../../constants';
@@ -112,6 +112,7 @@ function MiscellaneousPanel({
value={inputSource.type}
options={INPUT_TYPES}
onChange={handleInputTypeChange}
style={{color: 'var(--font-primary)'}}
/>
</div>
@@ -131,6 +132,7 @@ function MiscellaneousPanel({
return `${frequency.slice(1)} Hz`;
}}
onChange={handleFrequencyChange}
style={{color: 'var(--font-primary)'}}
/>
</div>
)}
+16
View File
@@ -720,6 +720,8 @@ export function forDSP408(dsp: DSP408, setDsps: SetDsps, notify: NotifyFn) {
await updateDSPState();
notify(`Preset stored in ${dsp.state.presets.names[presetIndex]}`, 'success', dsp.name);
return true;
} catch (err) {
notify(`Store configuration failed: ${String(err)}`, 'error', dsp.name);
@@ -746,6 +748,8 @@ export function forDSP408(dsp: DSP408, setDsps: SetDsps, notify: NotifyFn) {
await updateDSPState();
notify('Factory reset completed', 'success', dsp.name);
return true;
} catch (err) {
notify(`Factory reset failed: ${String(err)}`, 'error', dsp.name);
@@ -769,6 +773,8 @@ export function forDSP408(dsp: DSP408, setDsps: SetDsps, notify: NotifyFn) {
await updateDSPState();
notify('Channels copied successfully', 'success', dsp.name)
return true;
} catch (err) {
notify(`Channel copy failed: ${String(err)}`, 'error', dsp.name);
@@ -791,6 +797,8 @@ export function forDSP408(dsp: DSP408, setDsps: SetDsps, notify: NotifyFn) {
await updateDSPState();
notify('Input source updated', 'success', dsp.name);
return true;
} catch (err) {
notify(`Input source update failed: ${String(err)}`, 'error', dsp.name);
@@ -814,6 +822,8 @@ export function forDSP408(dsp: DSP408, setDsps: SetDsps, notify: NotifyFn) {
await updateDSPState();
notify('Channels linked successfully', 'success', dsp.name);
return true;
} catch (err) {
notify(`Channel linking failed: ${String(err)}`, 'error', dsp.name);
@@ -837,6 +847,8 @@ export function forDSP408(dsp: DSP408, setDsps: SetDsps, notify: NotifyFn) {
await updateDSPState();
notify('Channel name updated', 'success', dsp.name);
return true;
} catch (err) {
notify(`Channel name update failed: ${String(err)}`, 'error', dsp.name);
@@ -859,6 +871,8 @@ export function forDSP408(dsp: DSP408, setDsps: SetDsps, notify: NotifyFn) {
await updateDSPState();
notify('Device unlocked', 'success', dsp.name);
return true;
} catch (err) {
notify(`Unlock failed: ${String(err)}`, 'error', dsp.name);
@@ -881,6 +895,8 @@ export function forDSP408(dsp: DSP408, setDsps: SetDsps, notify: NotifyFn) {
await updateDSPState();
notify('Device locked', 'success', dsp.name);
return true;
} catch (err) {
notify(`Lock failed: ${String(err)}`, 'error', dsp.name);