mirror of
https://github.com/OpenSquawk/OpenSquawk
synced 2026-08-01 06:06:05 +08:00
1d6490d4d937221a9b814eea38de6f37d0aea1f7
Moves applyBackendDecision, handlePilotTransmission, the silence auto-advance timer, startMonitoring, loadFlightPlans, the screen transitions (startDemoFlight/launchScenario/flyAgain/backToSetup), sendPilotText and restoreBugReportState out of live-atc.vue. The dependency is genuinely circular: the controller drives speech, PTT and the bridge, while all three need to call back into it. It is constructed last, and the page hands the other composables two thin forwarding closures that resolve `session` at call time. The engine, frequency and speech destructures in the page shrink accordingly — most of what they exposed is now only read inside the controller. Also drops normalizeExpectedText, which had no callers. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Description
Languages
TypeScript
67.3%
Vue
31.8%
CSS
0.6%
JavaScript
0.3%