mirror of
https://github.com/bilawalsidhu/gods-eye-view.git
synced 2026-11-16 08:12:24 +00:00
feat(ui): render the local RTL-SDR card from the store
LocalSdrControls publishes the card to the radio store and SdrCard renders it. The new v-field-value directive never overwrites a focused field, including one a render disables.
This commit is contained in:
1 parent
ccb7edd0d1
commit
b6c7c130f6
11 files changed
+402
-158
No files matched your search
@@ -184,15 +184,16 @@ test('the card shows one read-only decoder-feed line after a single probe', asyn
|
||||
for (const listener of listeners) listener(state);
|
||||
},
|
||||
};
|
||||
let shown = null;
|
||||
const controls = new LocalSdrControls({
|
||||
document: doc,
|
||||
receiver: stubReceiver(),
|
||||
feeds,
|
||||
store: { publishSdr: (view) => (shown = view) },
|
||||
});
|
||||
t.after(() => controls.destroy());
|
||||
const line = doc.getElementById('sdr-feed-status');
|
||||
assert.equal(probes, 1);
|
||||
assert.equal(line.hidden, true);
|
||||
assert.equal(shown.feedLine, null);
|
||||
feeds.set({
|
||||
configured: true,
|
||||
polling: true,
|
||||
@@ -202,6 +203,5 @@ test('the card shows one read-only decoder-feed line after a single probe', asyn
|
||||
],
|
||||
});
|
||||
await new Promise((resolve) => setTimeout(resolve, 30));
|
||||
assert.equal(line.hidden, false);
|
||||
assert.equal(line.textContent, 'Decoder feeds: 1090 live · 978 live');
|
||||
assert.equal(shown.feedLine, 'Decoder feeds: 1090 live · 978 live');
|
||||
});
|
||||
Reference in new issue
Block a user