STATION, LIVE and the station views use the kit's buttons and glyphs

Main now holds every view to the Vue kit: no hand-written button,
Material glyph or aria-pressed. STATION's, LIVE's and the Cockpit LIVE
page's buttons and the orbital view's station steps are ghost UiButtons
that keep their ids, classes and handlers; their glyphs are UiIcons
sized by the stylesheets. A station choice is a pressed toggle through
UiButton's pressed state and its is-active class. The Cockpit control
list counts the LIVE page, the LIVE tab and the two station steps.
This commit is contained in:
Denis Groshev committed 2026-11-20 10:51:57 +01:00
1 parent edbf3a234d
commit 07e89a7024
5 files changed
+27 -17

No files matched your search

+3 -2
View File
@@ -15,6 +15,7 @@ import {
} from '../../ownerFlag.js';
import { useCockpitStore } from '../../stores/cockpit.js';
import UiButton from '../../kit/UiButton.vue';
import UiIcon from '../../kit/UiIcon.vue';
// The orbital view's HUD: a nadir reticle over the picture, the satellite's
// identity and orbit, and the optical zoom. The Cockpit controller presents
@@ -328,9 +329,9 @@ const lensStyle = computed(() => {
<p v-if="mount === null" class="cockpit-orbital-north">{{ trackUp ? t('TRACK UP') : t('NORTH UP') }}</p>
<!-- A station view: which one it is, and the step to the next. -->
<div v-if="mount !== null && mountViews > 1" class="cockpit-orbital-look cockpit-orbital-views">
<button id="cockpit-orbital-view-previous" type="button" class="cockpit-orbital-nadir cockpit-orbital-view-step" :aria-label="t('Previous station view')" :title="t('Previous station view')"><span class="material-symbols-outlined" aria-hidden="true">chevron_left</span></button>
<UiButton id="cockpit-orbital-view-previous" class="cockpit-orbital-nadir cockpit-orbital-view-step" :aria-label="t('Previous station view')" :title="t('Previous station view')"><UiIcon name="chevron_left" :size="null" /></UiButton>
<span id="cockpit-orbital-view-name" class="cockpit-orbital-look-readout" aria-live="polite">{{ mount }}</span>
<button id="cockpit-orbital-view-next" type="button" class="cockpit-orbital-nadir cockpit-orbital-view-step" :aria-label="t('Next station view')" :title="t('Next station view')"><span class="material-symbols-outlined" aria-hidden="true">chevron_right</span></button>
<UiButton id="cockpit-orbital-view-next" class="cockpit-orbital-nadir cockpit-orbital-view-step" :aria-label="t('Next station view')" :title="t('Next station view')"><UiIcon name="chevron_right" :size="null" /></UiButton>
</div>
<!-- Shown only while the view is tilted off nadir: where it looks and the way back. -->
<div v-if="look.offset" class="cockpit-orbital-look">