mirror of
https://github.com/bilawalsidhu/gods-eye-view.git
synced 2026-11-06 11:24:00 +00:00
refactor: separate Cockpit controller and presentation components
This commit is contained in:
1 parent
43db5c19bb
commit
8075c70e6e
24 files changed
+2258
-1928
No files matched your search
@@ -1,3 +1,4 @@
|
||||
import { onKeyDown as cockpitKeyDown } from './ui/cockpitInput.js';
|
||||
import { readFileSync as readRadioSource } from 'node:fs';
|
||||
const radioBindings = readRadioSource(new URL('./ui/radioBindings.js', import.meta.url), 'utf8');
|
||||
const radioPresentation = readRadioSource(new URL('./ui/radioPresentation.js', import.meta.url), 'utf8');
|
||||
@@ -139,7 +140,7 @@ test('panel chrome wires Escape for every declared collapse target', () => {
|
||||
});
|
||||
|
||||
test('Cockpit Escape collapses Contact or Live Signals before exiting Cockpit', () => {
|
||||
const onKeyDown = method('onKeyDown', 'enter');
|
||||
const onKeyDown = cockpitKeyDown.toString();
|
||||
assert.match(
|
||||
onKeyDown,
|
||||
/event\.target\?\.closest\?\.\('\.cesium-credit-lightbox'\)[\s\S]*?return;/,
|
||||
|
||||
Reference in new issue
Block a user