mirror of
https://github.com/bilawalsidhu/gods-eye-view.git
synced 2026-11-17 00:32:21 +00:00
Merge pull request #1773 from bilawalsidhu/manjunath/context-panel
Context panel: one card for what is picked, the view when nothing is
This commit is contained in:
55 files changed
+12247
-166
No files matched your search
@@ -0,0 +1,5 @@
|
||||
- Rebuild Context around one card for whatever is picked (facts, route,
|
||||
weather, local news and what is nearby) and a description of the view when
|
||||
nothing is; Contacts, Space Missions and Radio stay in it, and the Labels
|
||||
and 3D aircraft settings move into its Properties tab while their layers
|
||||
are on (manjunath22466, samehkhamis, #1773).
|
||||
@@ -898,6 +898,41 @@ and touch screens, while the rails are hidden (clean view, recording), and it
|
||||
follows the rails' sides in a right-to-left language. On a phone, Visual is in
|
||||
the More sheet with the dock's Visual Presets, as before.
|
||||
|
||||
## Context panel — November 16, 2026
|
||||
|
||||
Context leads with one card for whatever is picked. A click on anything a
|
||||
layer can identify (`src/ui/entityContextBridge.js`, through
|
||||
`src/data/pickedContext.js`) opens its card (`src/ui/stores/entityCard.js`,
|
||||
`src/ui/views/panels/EntityCard.vue`): the item's facts from its record, a
|
||||
route with progress for a flight, an altitude graph, the weather, local
|
||||
time and news where it is, and the flights, vessels, hazards and warnings
|
||||
within the radius the panel sets (25 to 2,500 km). Aircraft, satellites and
|
||||
vessels are followed as they are picked; the card says Following only while
|
||||
the camera follows the card's own item, and closing the card lets go.
|
||||
Aircraft and satellites offer Enter Cockpit and Enter orbital view; transit
|
||||
vehicles show their motion and fleet. A camera's card shows its latest frame
|
||||
from the CCTV panel.
|
||||
|
||||
With nothing picked, the panel describes the view
|
||||
(`src/ui/views/panels/ViewContext.vue`): the place under the middle of the
|
||||
screen and the towns around it from the Wikidata cities pack, the height,
|
||||
the local solar time and daylight, what is in view per layer with live
|
||||
counts and breakdowns, and the same weather and hazards. A search field in
|
||||
the header narrows every list. Expanded, Context becomes a full-height
|
||||
column at the right edge (the left edge right to left) and the map credits
|
||||
stop short of it.
|
||||
|
||||
The Contacts and Space Missions modes and the Radio strip stay in the
|
||||
panel's main tab, below the card. When Contacts follows the aircraft the
|
||||
card shows, its list sits inside the card. Turning Radio or Launches on
|
||||
opens Context. The Properties tab holds the Labels and 3D aircraft
|
||||
settings from Visual while a layer they act on is on.
|
||||
|
||||
Context does its reading only while its panel is open. Weather and news
|
||||
come through the regional brief service; earthquakes, tropical storms and
|
||||
fire perimeters come from the same feeds as their layers, cached for five
|
||||
minutes; satellite fire hits only while the FIRMS layer is on.
|
||||
|
||||
## Wikidata cities pack — November 15, 2026
|
||||
|
||||
`src/data/local_data/wikidata_cities/cities.json` bundles 31,827 settlements of
|
||||
|
||||
+1
-1
@@ -26,7 +26,7 @@
|
||||
with the sources: src/materialSymbolsSubset.test.mjs fails when a source
|
||||
names a glyph this list is missing, because a missing glyph does not draw
|
||||
a box — the ligature never forms and the element renders the literal word. -->
|
||||
<link href="https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL,GRAD@20,400,0,0&icon_names=adjust,align_horizontal_left,align_horizontal_right,arrow_drop_down,arrow_forward,arrow_left,arrow_right,bolt,bug_report,category,chevron_left,chevron_right,close,close_fullscreen,dark_mode,delete,directions_boat,draw,east,eco,egg_alt,filter_list,flare,flight,handyman,layers,layers_clear,light_mode,local_fire_department,location_on,more_horiz,movie,my_location,navigation,normal,on,open_in_full,palette,partly_cloudy_day,pause,pentagon,pest_control,pets,play_arrow,public,question_mark,radar,radio,radio_button_checked,radio_button_unchecked,raven,restart_alt,right_panel_close,right_panel_open,rocket_launch,satellite_alt,search,set_meal,settings,skip_next,skip_previous,streetview,timeline,traffic,tune,umbrella,upload_file,videocam,view_in_ar,visibility,visibility_off,water_drop,zoom_in_map" rel="stylesheet" />
|
||||
<link href="https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL,GRAD@20,400,0,0&icon_names=add,adjust,ads_click,air,airline_seat_recline_normal,align_horizontal_left,align_horizontal_right,arrow_drop_down,arrow_forward,arrow_left,arrow_right,bolt,bug_report,category,chevron_left,chevron_right,close,close_fullscreen,cloud,cyclone,dark_mode,delete,directions_boat,draw,earthquake,east,eco,egg_alt,emergency_home,factory,filter_list,flare,flight,foggy,handyman,history,label,layers,layers_clear,light_mode,local_fire_department,location_city,location_off,location_on,more_horiz,movie,my_location,navigation,newspaper,normal,on,open_in_full,palette,partly_cloudy_day,pause,pedal_bike,pentagon,pest_control,pets,play_arrow,public,question_mark,radar,radio,radio_button_checked,radio_button_unchecked,rainy,raven,restart_alt,right_panel_close,right_panel_open,rocket_launch,satellite_alt,schedule,search,set_meal,settings,skip_next,skip_previous,star,streetview,sunny,thunderstorm,timeline,traffic,train,travel_explore,tune,umbrella,upload_file,videocam,view_in_ar,visibility,visibility_off,warning,water_drop,weather_snowy,zoom_in_map" rel="stylesheet" />
|
||||
</head>
|
||||
<body>
|
||||
<div class="gev-view" data-gev-view="scene-chrome"></div>
|
||||
|
||||
@@ -250,7 +250,33 @@
|
||||
"src/ui/stores/worldTime.js",
|
||||
"src/ui/views/panels/WorldTimeline.vue",
|
||||
"src/ui/surfaceKeyboard.js",
|
||||
"src/scenes/storyTags.js"
|
||||
"src/scenes/storyTags.js",
|
||||
"src/ui/contextLayerTabs.js",
|
||||
"src/ui/contextSearch.js",
|
||||
"src/ui/layerNames.js",
|
||||
"src/ui/views/panels/AltitudeGraph.vue",
|
||||
"src/ui/stores/omnibar.js",
|
||||
"src/ui/views/panels/SunDial.vue",
|
||||
"src/ui/views/panels/CctvPreview.vue",
|
||||
"src/data/contextStore.js",
|
||||
"src/data/entityContext.js",
|
||||
"src/ui/stores/entityCard.js",
|
||||
"src/ui/contextRadius.js",
|
||||
"src/layers/firms/source.js",
|
||||
"src/layers/earthquakes/records.js",
|
||||
"src/ui/views/panels/ViewContext.vue",
|
||||
"src/layers/earthquakes/source.js",
|
||||
"src/layers/cyclones/source.js",
|
||||
"src/i18n/marker.js",
|
||||
"src/sources/httpBody.js",
|
||||
"src/layers/perimeters/source.js",
|
||||
"src/ui/spotConditions.js",
|
||||
"src/ui/views/panels/SpotConditions.vue",
|
||||
"src/data/wikidataCities.js",
|
||||
"src/ui/views/panels/EntityCard.vue",
|
||||
"src/data/aircraftEmergency.js",
|
||||
"src/data/aircraftClass.js",
|
||||
"src/data/entityRecords.js"
|
||||
],
|
||||
"external": ["vue", "pinia", "vue-i18n"]
|
||||
},
|
||||
@@ -1521,7 +1547,6 @@
|
||||
"src/ui/stores/cockpit.js",
|
||||
"src/ui/stores/locale.js",
|
||||
"src/ui/stores/providerSettings.js",
|
||||
"src/ui/stores/sceneSharing.js",
|
||||
"src/ui/stores/voice.js",
|
||||
"src/ui/stores/location.js",
|
||||
"src/ui/stores/display.js",
|
||||
@@ -1601,7 +1626,17 @@
|
||||
"src/render/vectorBase/style.js",
|
||||
"src/render/vectorBase/paint.js",
|
||||
"src/render/vectorBase/expressions.js",
|
||||
"src/time/frameWait.js"
|
||||
"src/time/frameWait.js",
|
||||
"src/ui/stores/omnibar.js",
|
||||
"src/data/contextStore.js",
|
||||
"src/data/pickedContext.js",
|
||||
"src/data/entityContext.js",
|
||||
"src/data/aircraftClass.js",
|
||||
"src/data/aircraftEmergency.js",
|
||||
"src/ui/stores/entityCard.js",
|
||||
"src/ui/entityContextBridge.js",
|
||||
"src/data/trackingClickGesture.js",
|
||||
"src/ui/stores/sceneSharing.js"
|
||||
],
|
||||
"external": [
|
||||
"cesium",
|
||||
@@ -3989,7 +4024,8 @@
|
||||
"src/ui/stores/voice.js",
|
||||
"src/ui/vueRuntime.js",
|
||||
"src/ui/stores/pointerReticle.js",
|
||||
"src/ui/i18n.js"
|
||||
"src/ui/i18n.js",
|
||||
"src/ui/stores/omnibar.js"
|
||||
],
|
||||
"external": ["vue", "pinia", "vue-i18n"]
|
||||
},
|
||||
@@ -5404,7 +5440,11 @@
|
||||
"src/data/courseFromFixes.js",
|
||||
"src/time/frameWait.js",
|
||||
"src/scenes/storyTags.js",
|
||||
"src/scenes/storyThumb.js"
|
||||
"src/scenes/storyThumb.js",
|
||||
"src/ui/stores/omnibar.js",
|
||||
"src/data/entityContext.js",
|
||||
"src/ui/stores/entityCard.js",
|
||||
"src/ui/entityContextBridge.js"
|
||||
],
|
||||
"external": [
|
||||
"hls.js",
|
||||
@@ -6849,7 +6889,8 @@
|
||||
"src/ui/vueRuntime.js",
|
||||
"src/ui/stores/voice.js",
|
||||
"src/ui/stores/pointerReticle.js",
|
||||
"src/ui/i18n.js"
|
||||
"src/ui/i18n.js",
|
||||
"src/ui/stores/omnibar.js"
|
||||
],
|
||||
"external": ["vue", "pinia", "vue-i18n"]
|
||||
},
|
||||
|
||||
Vendored
+1
@@ -38,6 +38,7 @@ export function createApplicationControls({
|
||||
...services,
|
||||
...operations.surface.controlServices,
|
||||
searchAndFlyTo: operations.searchAndFlyTo,
|
||||
pickWorldFromScreen: operations.annotationResolver?.pickWorldFromScreen,
|
||||
fetchRegionalBrief: (...args) =>
|
||||
operations.requests.regional.getBrief(...args),
|
||||
...catalogControlServices(catalog),
|
||||
|
||||
@@ -152,7 +152,7 @@ test('Context async action buttons remain focused while busy', () => {
|
||||
assert.match(clearButton, /:aria-busy=/);
|
||||
});
|
||||
|
||||
test('Context header holds only its title, edge switch and collapse control', () => {
|
||||
test('Context header holds its title, search, expand, edge switch and collapse control', () => {
|
||||
const panel = html.match(
|
||||
/<div id="global-context-panel"[\s\S]*?<div class="cyber-panel-body[ "]/,
|
||||
);
|
||||
@@ -174,6 +174,10 @@ test('Context header holds only its title, edge switch and collapse control', ()
|
||||
assert.deepEqual(tags, [
|
||||
'span.panel-title',
|
||||
'span.panel-divider',
|
||||
'button.context-dock-btn',
|
||||
'span.material-symbols-outlined',
|
||||
'button.context-dock-btn',
|
||||
'span.material-symbols-outlined',
|
||||
'button.panel-edge-btn',
|
||||
'span.material-symbols-outlined',
|
||||
'button.panel-collapse-btn',
|
||||
|
||||
+484
-112
@@ -95,7 +95,10 @@ function specificity(selector) {
|
||||
if (rest[i] === '(') depth += 1;
|
||||
else if (rest[i] === ')') {
|
||||
depth -= 1;
|
||||
if (depth === 0) { end = i; break; }
|
||||
if (depth === 0) {
|
||||
end = i;
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
assert.ok(end > 0, `unbalanced functional pseudo-class in "${selector}"`);
|
||||
@@ -116,7 +119,9 @@ function specificity(selector) {
|
||||
classes += (rest.match(/\[[^\]]*\]/g) || []).length;
|
||||
types += (rest.match(/::[\w-]+/g) || []).length;
|
||||
classes += (rest.replace(/::[\w-]+/g, '').match(/:[\w-]+/g) || []).length;
|
||||
types += (rest.replace(/\[[^\]]*\]/g, '').match(/(?:^|[\s>+~])[a-zA-Z][\w-]*/g) || []).length;
|
||||
types += (
|
||||
rest.replace(/\[[^\]]*\]/g, '').match(/(?:^|[\s>+~])[a-zA-Z][\w-]*/g) || []
|
||||
).length;
|
||||
return [ids, classes, types];
|
||||
}
|
||||
|
||||
@@ -165,7 +170,11 @@ function flattenRules(source) {
|
||||
rules.push({
|
||||
order: rules.length,
|
||||
media: [...mediaStack],
|
||||
parts: splitTopLevel(head, ',').map((part) => part.trim().replace(/\(\s+/g, '(').replace(/\s+\)/g, ')')).filter(Boolean),
|
||||
parts: splitTopLevel(head, ',')
|
||||
.map((part) =>
|
||||
part.trim().replace(/\(\s+/g, '(').replace(/\s+\)/g, ')'),
|
||||
)
|
||||
.filter(Boolean),
|
||||
decls,
|
||||
});
|
||||
index = close + 1;
|
||||
@@ -217,14 +226,37 @@ const RECOGNIZED = new Set([
|
||||
'#command-dock.dock-has-two-pinned-trays #control-panel.dock-pinned-top.dock-pinned:not(.collapsed) .dock-popover-content',
|
||||
]);
|
||||
|
||||
const ELEMENT_KEYS = ['#cesium-credits', '#command-dock', '#right-context-rail', '.dock-popover-content'];
|
||||
const DOCKED_RAIL = 'body.context-docked #right-context-rail';
|
||||
const ELEMENT_KEYS = [
|
||||
'#cesium-credits',
|
||||
'#command-dock',
|
||||
'#right-context-rail',
|
||||
'.dock-popover-content',
|
||||
];
|
||||
|
||||
// Any of these on a modelled element's own box changes the geometry this pin
|
||||
// reasons about, so each occurrence must be recognized and vetted.
|
||||
const GUARDED_PROPS = new Set([
|
||||
'bottom', 'top', 'inset', 'inset-block', 'inset-block-end', 'inset-inline', 'inset-inline-end',
|
||||
'margin', 'margin-bottom', 'margin-block', 'margin-block-end', 'all',
|
||||
'height', 'min-height', 'max-height', 'position', 'transform', 'translate', 'scale', 'zoom',
|
||||
'bottom',
|
||||
'top',
|
||||
'inset',
|
||||
'inset-block',
|
||||
'inset-block-end',
|
||||
'inset-inline',
|
||||
'inset-inline-end',
|
||||
'margin',
|
||||
'margin-bottom',
|
||||
'margin-block',
|
||||
'margin-block-end',
|
||||
'all',
|
||||
'height',
|
||||
'min-height',
|
||||
'max-height',
|
||||
'position',
|
||||
'transform',
|
||||
'translate',
|
||||
'scale',
|
||||
'zoom',
|
||||
]);
|
||||
|
||||
// Custom properties allowed inside a modelled offset. Each is a pinned-tray
|
||||
@@ -290,7 +322,10 @@ function parseMediaCondition(condition) {
|
||||
function appliesAt(rule, width, label) {
|
||||
return rule.media.every((condition) => {
|
||||
const maxWidth = parseMediaCondition(condition);
|
||||
assert.ok(maxWidth !== null, `unmodelled media condition "${condition}" gates ${label}`);
|
||||
assert.ok(
|
||||
maxWidth !== null,
|
||||
`unmodelled media condition "${condition}" gates ${label}`,
|
||||
);
|
||||
return width <= maxWidth;
|
||||
});
|
||||
}
|
||||
@@ -305,13 +340,26 @@ function resolve(candidates, prop, width, label) {
|
||||
if (!candidates.includes(part)) continue;
|
||||
for (const decl of rule.decls) {
|
||||
if (decl.prop !== prop) continue;
|
||||
const contender = { decl, part, order: rule.order, spec: specificity(part) };
|
||||
if (!winner) { winner = contender; continue; }
|
||||
const byImportance = Number(contender.decl.important) - Number(winner.decl.important);
|
||||
const contender = {
|
||||
decl,
|
||||
part,
|
||||
order: rule.order,
|
||||
spec: specificity(part),
|
||||
};
|
||||
if (!winner) {
|
||||
winner = contender;
|
||||
continue;
|
||||
}
|
||||
const byImportance =
|
||||
Number(contender.decl.important) - Number(winner.decl.important);
|
||||
const bySpecificity = compareSpecificity(contender.spec, winner.spec);
|
||||
if (byImportance > 0
|
||||
|| (byImportance === 0 && bySpecificity > 0)
|
||||
|| (byImportance === 0 && bySpecificity === 0 && contender.order > winner.order)) {
|
||||
if (
|
||||
byImportance > 0 ||
|
||||
(byImportance === 0 && bySpecificity > 0) ||
|
||||
(byImportance === 0 &&
|
||||
bySpecificity === 0 &&
|
||||
contender.order > winner.order)
|
||||
) {
|
||||
winner = contender;
|
||||
}
|
||||
}
|
||||
@@ -325,10 +373,26 @@ function resolve(candidates, prop, width, label) {
|
||||
function toPx(value, viewportHeight, where) {
|
||||
const trimmed = value.trim();
|
||||
const inner = /^calc\(/.test(trimmed) ? trimmed.slice(5, -1) : trimmed;
|
||||
assert.doesNotMatch(inner, /\bcalc\(/, `nested calc() in ${where}: "${value}"`);
|
||||
assert.doesNotMatch(inner, /\b(min|max|clamp|env|attr|round|mod)\(/, `unmodelled function in ${where}: "${value}"`);
|
||||
assert.doesNotMatch(inner, /[*/]/, `unmodelled operator in ${where}: "${value}"`);
|
||||
assert.doesNotMatch(inner, /\s-\s/, `unmodelled subtraction in ${where}: "${value}"`);
|
||||
assert.doesNotMatch(
|
||||
inner,
|
||||
/\bcalc\(/,
|
||||
`nested calc() in ${where}: "${value}"`,
|
||||
);
|
||||
assert.doesNotMatch(
|
||||
inner,
|
||||
/\b(min|max|clamp|env|attr|round|mod)\(/,
|
||||
`unmodelled function in ${where}: "${value}"`,
|
||||
);
|
||||
assert.doesNotMatch(
|
||||
inner,
|
||||
/[*/]/,
|
||||
`unmodelled operator in ${where}: "${value}"`,
|
||||
);
|
||||
assert.doesNotMatch(
|
||||
inner,
|
||||
/\s-\s/,
|
||||
`unmodelled subtraction in ${where}: "${value}"`,
|
||||
);
|
||||
let total = 0;
|
||||
for (const raw of splitTopLevel(inner, '+')) {
|
||||
const term = raw.trim();
|
||||
@@ -336,40 +400,60 @@ function toPx(value, viewportHeight, where) {
|
||||
if (term === '100%') continue; // the tray's own panel height, added separately
|
||||
if (term.startsWith('var(')) {
|
||||
const name = term.slice(4, term.lastIndexOf(')')).split(',')[0].trim();
|
||||
assert.ok(VETTED_VARS.has(name), `unvetted custom property ${name} in ${where}: "${value}"`);
|
||||
assert.ok(
|
||||
VETTED_VARS.has(name),
|
||||
`unvetted custom property ${name} in ${where}: "${value}"`,
|
||||
);
|
||||
if (name === '--world-timeline-lift') total += liftPx;
|
||||
continue; // proven non-negative; 0 is the conservative floor
|
||||
}
|
||||
assert.match(term, /^-?[\d.]+(px|rem|vh)$/, `unmodelled length term "${term}" in ${where}: "${value}"`);
|
||||
assert.match(
|
||||
term,
|
||||
/^-?[\d.]+(px|rem|vh)$/,
|
||||
`unmodelled length term "${term}" in ${where}: "${value}"`,
|
||||
);
|
||||
const number = Number.parseFloat(term);
|
||||
if (term.endsWith('rem')) total += number * REM_PX;
|
||||
else if (term.endsWith('vh')) total += number * viewportHeight / 100;
|
||||
else if (term.endsWith('vh')) total += (number * viewportHeight) / 100;
|
||||
else total += number;
|
||||
}
|
||||
return total;
|
||||
}
|
||||
|
||||
const WIDTHS = [1440, 1024, 980, 900, 830, 800, 760, 721, 720, 700, 640, 600, 480, 375];
|
||||
const WIDTHS = [
|
||||
1440, 1024, 980, 900, 830, 800, 760, 721, 720, 700, 640, 600, 480, 375,
|
||||
];
|
||||
const HEIGHTS = [500, 560, 640, 700, 800, 900, 1000, 1080, 1200, 1440, 1600];
|
||||
|
||||
const CREDIT_SELECTORS = ['#cesium-credits', 'body:not(.ui-clean-view):not(.recording-mode) #cesium-credits'];
|
||||
const MINIMAL_HUD_CREDIT = "body:not(.ui-clean-view):not(.recording-mode):has(#intel-hud[data-variant='minimal'].active) #cesium-credits";
|
||||
const TRAY_ORDINARY = ['#command-dock .dock-popover-content', '#command-dock #location-bar .dock-popover-content'];
|
||||
const CREDIT_SELECTORS = [
|
||||
'#cesium-credits',
|
||||
'body:not(.ui-clean-view):not(.recording-mode) #cesium-credits',
|
||||
];
|
||||
const MINIMAL_HUD_CREDIT =
|
||||
"body:not(.ui-clean-view):not(.recording-mode):has(#intel-hud[data-variant='minimal'].active) #cesium-credits";
|
||||
const TRAY_ORDINARY = [
|
||||
'#command-dock .dock-popover-content',
|
||||
'#command-dock #location-bar .dock-popover-content',
|
||||
];
|
||||
const TRAY_SCENARIOS = [
|
||||
{ name: 'ordinary tray', offset: TRAY_ORDINARY },
|
||||
{
|
||||
name: 'one pinned tray',
|
||||
offset: [...TRAY_ORDINARY,
|
||||
'#command-dock.dock-has-pinned-tray #location-bar:not(.collapsed):not(.dock-pinned) .dock-popover-content'],
|
||||
offset: [
|
||||
...TRAY_ORDINARY,
|
||||
'#command-dock.dock-has-pinned-tray #location-bar:not(.collapsed):not(.dock-pinned) .dock-popover-content',
|
||||
],
|
||||
stackVar: '--dock-pinned-stack-height',
|
||||
},
|
||||
{
|
||||
name: 'two pinned trays (upper)',
|
||||
offset: [...TRAY_ORDINARY,
|
||||
offset: [
|
||||
...TRAY_ORDINARY,
|
||||
// The stock form still governs above 900px; the ID form is what keeps it
|
||||
// ahead of the ordinary narrow rule below it.
|
||||
'#command-dock.dock-has-two-pinned-trays .dock-pinned-top.dock-pinned:not(.collapsed) .dock-popover-content',
|
||||
'#command-dock.dock-has-two-pinned-trays #location-bar.dock-pinned-top.dock-pinned:not(.collapsed) .dock-popover-content'],
|
||||
'#command-dock.dock-has-two-pinned-trays #location-bar.dock-pinned-top.dock-pinned:not(.collapsed) .dock-popover-content',
|
||||
],
|
||||
stackVar: '--dock-lower-pinned-height',
|
||||
},
|
||||
];
|
||||
@@ -382,12 +466,18 @@ function creditTopPx(width, height) {
|
||||
function trayBottomPx(scenario, width, height) {
|
||||
const dock = resolve(['#command-dock'], 'bottom', width, 'command dock');
|
||||
const offset = resolve(scenario.offset, 'bottom', width, scenario.name);
|
||||
const margin = resolve(['#command-dock #location-bar:not(.collapsed) .dock-popover-content'],
|
||||
'margin-bottom', width, 'open tray margin');
|
||||
return toPx(dock.decl.value, height, 'dock bottom')
|
||||
+ COMPACT_DOCK_HEIGHT_PX
|
||||
+ toPx(offset.decl.value, height, `${scenario.name} offset`)
|
||||
+ toPx(margin.decl.value, height, 'tray margin');
|
||||
const margin = resolve(
|
||||
['#command-dock #location-bar:not(.collapsed) .dock-popover-content'],
|
||||
'margin-bottom',
|
||||
width,
|
||||
'open tray margin',
|
||||
);
|
||||
return (
|
||||
toPx(dock.decl.value, height, 'dock bottom') +
|
||||
COMPACT_DOCK_HEIGHT_PX +
|
||||
toPx(offset.decl.value, height, `${scenario.name} offset`) +
|
||||
toPx(margin.decl.value, height, 'tray margin')
|
||||
);
|
||||
}
|
||||
|
||||
// ── Fail-closed guards ──────────────────────────────────────────────────────
|
||||
@@ -395,15 +485,31 @@ function trayBottomPx(scenario, width, height) {
|
||||
test('the specificity calculator itself is pinned', () => {
|
||||
const cases = [
|
||||
['#cesium-credits', [1, 0, 0]],
|
||||
['body:not(.ui-clean-view):not(.recording-mode) #cesium-credits', [1, 2, 1]],
|
||||
[
|
||||
'body:not(.ui-clean-view):not(.recording-mode) #cesium-credits',
|
||||
[1, 2, 1],
|
||||
],
|
||||
['#command-dock #location-bar .dock-popover-content', [2, 1, 0]],
|
||||
['#command-dock.dock-has-pinned-tray #location-bar:not(.collapsed):not(.dock-pinned) .dock-popover-content', [2, 4, 0]],
|
||||
['#command-dock.dock-has-two-pinned-trays #location-bar.dock-pinned-top.dock-pinned:not(.collapsed) .dock-popover-content', [2, 5, 0]],
|
||||
['#command-dock.dock-has-two-pinned-trays .dock-pinned-top.dock-pinned:not(.collapsed) .dock-popover-content', [1, 5, 0]],
|
||||
[
|
||||
'#command-dock.dock-has-pinned-tray #location-bar:not(.collapsed):not(.dock-pinned) .dock-popover-content',
|
||||
[2, 4, 0],
|
||||
],
|
||||
[
|
||||
'#command-dock.dock-has-two-pinned-trays #location-bar.dock-pinned-top.dock-pinned:not(.collapsed) .dock-popover-content',
|
||||
[2, 5, 0],
|
||||
],
|
||||
[
|
||||
'#command-dock.dock-has-two-pinned-trays .dock-pinned-top.dock-pinned:not(.collapsed) .dock-popover-content',
|
||||
[1, 5, 0],
|
||||
],
|
||||
['#command-dock .dock-popover-content::after', [1, 1, 1]],
|
||||
];
|
||||
for (const [selector, expected] of cases) {
|
||||
assert.deepEqual(specificity(selector), expected, `specificity of "${selector}"`);
|
||||
assert.deepEqual(
|
||||
specificity(selector),
|
||||
expected,
|
||||
`specificity of "${selector}"`,
|
||||
);
|
||||
}
|
||||
});
|
||||
|
||||
@@ -412,28 +518,46 @@ test('the model refuses every cascade construct it cannot resolve', () => {
|
||||
for (const { rule, part } of ownBoxEntries()) {
|
||||
const guarded = rule.decls.filter((decl) => GUARDED_PROPS.has(decl.prop));
|
||||
if (!guarded.length) continue;
|
||||
// Expanded Context covers the right edge top to bottom; the credit row
|
||||
// stops short of it instead (the docked-Context test below).
|
||||
if (part === DOCKED_RAIL) continue;
|
||||
if (!RECOGNIZED.has(part)) {
|
||||
complaints.push(`unrecognized selector positions a modelled element: "${part}" (${guarded.map((d) => d.prop).join(', ')})`);
|
||||
complaints.push(
|
||||
`unrecognized selector positions a modelled element: "${part}" (${guarded.map((d) => d.prop).join(', ')})`,
|
||||
);
|
||||
continue;
|
||||
}
|
||||
for (const condition of rule.media) {
|
||||
if (parseMediaCondition(condition) === null) {
|
||||
complaints.push(`unmodelled media condition "${condition}" on "${part}"`);
|
||||
complaints.push(
|
||||
`unmodelled media condition "${condition}" on "${part}"`,
|
||||
);
|
||||
}
|
||||
}
|
||||
if (rule.media.length > 1) {
|
||||
complaints.push(`nested media queries on "${part}": ${rule.media.join(' && ')}`);
|
||||
complaints.push(
|
||||
`nested media queries on "${part}": ${rule.media.join(' && ')}`,
|
||||
);
|
||||
}
|
||||
for (const decl of guarded) {
|
||||
// Measurement is synchronous and restored before returning or painting.
|
||||
// Only these two exact declarations earn the exemption tested below.
|
||||
const railMeasurement = part === '#right-context-rail[data-rail-measuring]'
|
||||
&& ((decl.prop === 'height' && decl.value === 'auto')
|
||||
|| (decl.prop === 'max-height' && decl.value === 'none'));
|
||||
if (decl.important && !railMeasurement) complaints.push(`!important on ${decl.prop} of "${part}"`);
|
||||
if (decl.prop === 'inset' || decl.prop === 'margin' || decl.prop === 'all'
|
||||
|| decl.prop.startsWith('inset-') || decl.prop.startsWith('margin-block')) {
|
||||
complaints.push(`shorthand ${decl.prop} on "${part}" — the model reads longhands only`);
|
||||
const railMeasurement =
|
||||
part === '#right-context-rail[data-rail-measuring]' &&
|
||||
((decl.prop === 'height' && decl.value === 'auto') ||
|
||||
(decl.prop === 'max-height' && decl.value === 'none'));
|
||||
if (decl.important && !railMeasurement)
|
||||
complaints.push(`!important on ${decl.prop} of "${part}"`);
|
||||
if (
|
||||
decl.prop === 'inset' ||
|
||||
decl.prop === 'margin' ||
|
||||
decl.prop === 'all' ||
|
||||
decl.prop.startsWith('inset-') ||
|
||||
decl.prop.startsWith('margin-block')
|
||||
) {
|
||||
complaints.push(
|
||||
`shorthand ${decl.prop} on "${part}" — the model reads longhands only`,
|
||||
);
|
||||
}
|
||||
if (decl.prop === 'height' || decl.prop === 'max-height') {
|
||||
// A capped height can override `bottom` and invalidate the measured
|
||||
@@ -442,68 +566,159 @@ test('the model refuses every cascade construct it cannot resolve', () => {
|
||||
// modelled band by the rail clearance test) and `.layout-focus`
|
||||
// (proven inapplicable at <=720px by the mobile-mode test), plus
|
||||
// synchronous measurement, which is removed before any paint.
|
||||
const railOwn = part === '#right-context-rail' && decl.prop === 'max-height';
|
||||
const railOwn =
|
||||
part === '#right-context-rail' && decl.prop === 'max-height';
|
||||
const railFocus = part === '#right-context-rail.layout-focus';
|
||||
if (!railOwn && !railFocus && !railMeasurement) complaints.push(`${decl.prop}: ${decl.value} on "${part}"`);
|
||||
if (!railOwn && !railFocus && !railMeasurement)
|
||||
complaints.push(`${decl.prop}: ${decl.value} on "${part}"`);
|
||||
}
|
||||
if (decl.prop === 'transform' && /translateY|translate3d|matrix|scale\(/.test(decl.value)) {
|
||||
if (
|
||||
decl.prop === 'transform' &&
|
||||
/translateY|translate3d|matrix|scale\(/.test(decl.value)
|
||||
) {
|
||||
const identity = decl.value === 'translateY(0) scale(1)';
|
||||
const closedTray = part === '#command-dock .dock-popover-content'
|
||||
&& decl.value === 'translateY(0.55rem) scale(0.985)';
|
||||
if (!identity && !closedTray) complaints.push(`vertical transform on "${part}": ${decl.value}`);
|
||||
const closedTray =
|
||||
part === '#command-dock .dock-popover-content' &&
|
||||
decl.value === 'translateY(0.55rem) scale(0.985)';
|
||||
if (!identity && !closedTray)
|
||||
complaints.push(`vertical transform on "${part}": ${decl.value}`);
|
||||
}
|
||||
if (decl.prop === 'translate' || decl.prop === 'scale' || decl.prop === 'zoom') {
|
||||
complaints.push(`${decl.prop} on "${part}" moves the box outside the model`);
|
||||
if (
|
||||
decl.prop === 'translate' ||
|
||||
decl.prop === 'scale' ||
|
||||
decl.prop === 'zoom'
|
||||
) {
|
||||
complaints.push(
|
||||
`${decl.prop} on "${part}" moves the box outside the model`,
|
||||
);
|
||||
}
|
||||
}
|
||||
}
|
||||
assert.deepEqual(complaints, [], `the attribution model cannot resolve:\n ${complaints.join('\n ')}\n`);
|
||||
assert.deepEqual(
|
||||
complaints,
|
||||
[],
|
||||
`the attribution model cannot resolve:\n ${complaints.join('\n ')}\n`,
|
||||
);
|
||||
});
|
||||
|
||||
test('custom properties inside modelled offsets are provably non-negative', () => {
|
||||
// The model evaluates them at 0, which is only a conservative floor if they
|
||||
// can never go negative. Both writers are checked: CSS and the JS.
|
||||
const declared = RULES.flatMap((rule) => rule.decls.filter((decl) => VETTED_VARS.has(decl.prop)));
|
||||
assert.ok(declared.length >= VETTED_VARS.size, 'every vetted custom property needs a CSS default');
|
||||
const declared = RULES.flatMap((rule) =>
|
||||
rule.decls.filter((decl) => VETTED_VARS.has(decl.prop)),
|
||||
);
|
||||
assert.ok(
|
||||
declared.length >= VETTED_VARS.size,
|
||||
'every vetted custom property needs a CSS default',
|
||||
);
|
||||
for (const decl of declared) {
|
||||
assert.doesNotMatch(decl.value, /-\s*\d/, `${decl.prop} has a negative CSS default: ${decl.value}`);
|
||||
const shape = FIXED_LENGTH_VARS.has(decl.prop) ? /^(0|\d+px)$/ : /^(0|0px)$/;
|
||||
assert.match(decl.value, shape, `${decl.prop} default is not a vetted shape: ${decl.value}`);
|
||||
assert.doesNotMatch(
|
||||
decl.value,
|
||||
/-\s*\d/,
|
||||
`${decl.prop} has a negative CSS default: ${decl.value}`,
|
||||
);
|
||||
const shape = FIXED_LENGTH_VARS.has(decl.prop)
|
||||
? /^(0|\d+px)$/
|
||||
: /^(0|0px)$/;
|
||||
assert.match(
|
||||
decl.value,
|
||||
shape,
|
||||
`${decl.prop} default is not a vetted shape: ${decl.value}`,
|
||||
);
|
||||
}
|
||||
const layout = fs.readFileSync(new URL('./ui/panelLayoutController.js', import.meta.url), 'utf8');
|
||||
const layout = fs.readFileSync(
|
||||
new URL('./ui/panelLayoutController.js', import.meta.url),
|
||||
'utf8',
|
||||
);
|
||||
const start = layout.indexOf('_updateCommandDockTrayStack() {');
|
||||
assert.ok(start > 0, '_updateCommandDockTrayStack is missing');
|
||||
const writer = layout.slice(start, layout.indexOf(' _scheduleAdaptivePanelLayout(', start));
|
||||
const writer = layout.slice(
|
||||
start,
|
||||
layout.indexOf(' _scheduleAdaptivePanelLayout(', start),
|
||||
);
|
||||
// Every value traces back to a rect height, floored at 0 and rounded up.
|
||||
assert.match(writer, /const locationHeight =\s*[\s\S]{0,180}?getBoundingClientRect\(\)\.height\s*\|\| 0;/);
|
||||
assert.match(writer, /const presetsHeight =\s*[\s\S]{0,180}?getBoundingClientRect\(\)\.height\s*\|\| 0;/);
|
||||
assert.match(writer, /const lowerPinnedHeight =\s*[\s\S]{0,220}?getBoundingClientRect\(\)\.height\s*\|\| 0;/);
|
||||
assert.match(writer, /const locationHeightPx = Math\.ceil\(locationHeight\);/);
|
||||
assert.match(
|
||||
writer,
|
||||
/const locationHeight =\s*[\s\S]{0,180}?getBoundingClientRect\(\)\.height\s*\|\| 0;/,
|
||||
);
|
||||
assert.match(
|
||||
writer,
|
||||
/const presetsHeight =\s*[\s\S]{0,180}?getBoundingClientRect\(\)\.height\s*\|\| 0;/,
|
||||
);
|
||||
assert.match(
|
||||
writer,
|
||||
/const lowerPinnedHeight =\s*[\s\S]{0,220}?getBoundingClientRect\(\)\.height\s*\|\| 0;/,
|
||||
);
|
||||
assert.match(
|
||||
writer,
|
||||
/const locationHeightPx = Math\.ceil\(locationHeight\);/,
|
||||
);
|
||||
assert.match(writer, /const presetsHeightPx = Math\.ceil\(presetsHeight\);/);
|
||||
assert.match(writer, /'--dock-location-pinned-height',\s*`\$\{locationHeightPx\}px`/);
|
||||
assert.match(writer, /'--dock-presets-pinned-height',\s*`\$\{presetsHeightPx\}px`/);
|
||||
assert.match(writer, /'--dock-lower-pinned-height',\s*`\$\{Math\.ceil\(lowerPinnedHeight\)\}px`/);
|
||||
assert.match(
|
||||
writer,
|
||||
/'--dock-location-pinned-height',\s*`\$\{locationHeightPx\}px`/,
|
||||
);
|
||||
assert.match(
|
||||
writer,
|
||||
/'--dock-presets-pinned-height',\s*`\$\{presetsHeightPx\}px`/,
|
||||
);
|
||||
assert.match(
|
||||
writer,
|
||||
/'--dock-lower-pinned-height',\s*`\$\{Math\.ceil\(lowerPinnedHeight\)\}px`/,
|
||||
);
|
||||
assert.match(writer, /'--dock-pinned-stack-height', stackHeight/);
|
||||
assert.match(writer, /const stackHeight =\s*pinnedCount > 1[\s\S]{0,160}?`calc\(\$\{locationHeightPx\}px \+ \$\{presetsHeightPx\}px \+ 1\.2rem\)`/);
|
||||
assert.match(
|
||||
writer,
|
||||
/const stackHeight =\s*pinnedCount > 1[\s\S]{0,160}?`calc\(\$\{locationHeightPx\}px \+ \$\{presetsHeightPx\}px \+ 1\.2rem\)`/,
|
||||
);
|
||||
});
|
||||
|
||||
test('the inputs behind the measured constants are unchanged', () => {
|
||||
// 28px credit / 62px dock are measured, not derived. Guard the CSS that
|
||||
// determines them so a change forces a re-measure instead of a silent drift.
|
||||
const creditBase = RULES.find((rule) => rule.parts.length === 1 && rule.parts[0] === '#cesium-credits');
|
||||
const creditBase = RULES.find(
|
||||
(rule) => rule.parts.length === 1 && rule.parts[0] === '#cesium-credits',
|
||||
);
|
||||
assert.ok(creditBase, '#cesium-credits base rule is missing');
|
||||
const declOf = (rule, prop) => rule.decls.find((decl) => decl.prop === prop)?.value;
|
||||
assert.equal(declOf(creditBase, 'font-size'), '10px', 'credit font-size drives its measured 28px height');
|
||||
assert.equal(declOf(creditBase, 'white-space'), 'nowrap', 'a wrapping credit is taller than the measured 28px');
|
||||
for (const prop of ['height', 'min-height', 'max-height', 'line-height', 'padding']) {
|
||||
assert.equal(declOf(creditBase, prop), undefined, `#cesium-credits gained ${prop}; re-measure CREDIT_HEIGHT_PX`);
|
||||
const declOf = (rule, prop) =>
|
||||
rule.decls.find((decl) => decl.prop === prop)?.value;
|
||||
assert.equal(
|
||||
declOf(creditBase, 'font-size'),
|
||||
'10px',
|
||||
'credit font-size drives its measured 28px height',
|
||||
);
|
||||
assert.equal(
|
||||
declOf(creditBase, 'white-space'),
|
||||
'nowrap',
|
||||
'a wrapping credit is taller than the measured 28px',
|
||||
);
|
||||
for (const prop of [
|
||||
'height',
|
||||
'min-height',
|
||||
'max-height',
|
||||
'line-height',
|
||||
'padding',
|
||||
]) {
|
||||
assert.equal(
|
||||
declOf(creditBase, prop),
|
||||
undefined,
|
||||
`#cesium-credits gained ${prop}; re-measure CREDIT_HEIGHT_PX`,
|
||||
);
|
||||
}
|
||||
// Only `min-height` may floor the dock — that direction only ADDS clearance.
|
||||
for (const { rule, part } of ownBoxEntries()) {
|
||||
if (part !== '#command-dock') continue;
|
||||
for (const decl of rule.decls) {
|
||||
assert.notEqual(decl.prop, 'height', 'a fixed dock height invalidates COMPACT_DOCK_HEIGHT_PX');
|
||||
assert.notEqual(decl.prop, 'max-height', 'a capped dock height invalidates COMPACT_DOCK_HEIGHT_PX');
|
||||
assert.notEqual(
|
||||
decl.prop,
|
||||
'height',
|
||||
'a fixed dock height invalidates COMPACT_DOCK_HEIGHT_PX',
|
||||
);
|
||||
assert.notEqual(
|
||||
decl.prop,
|
||||
'max-height',
|
||||
'a capped dock height invalidates COMPACT_DOCK_HEIGHT_PX',
|
||||
);
|
||||
}
|
||||
}
|
||||
});
|
||||
@@ -514,23 +729,44 @@ test('the full-width rail cannot inherit a height that overrides its floor', ()
|
||||
// over-constrained. It is safe only because the rail's layout pass switches
|
||||
// to a mobile mode at the SAME breakpoint and removes both the class and the
|
||||
// custom property. Pin that, or the exemption above is unearned.
|
||||
const rail = fs.readFileSync(path.join(ROOT, 'src', 'ui', 'rightPanelRail.js'), 'utf8');
|
||||
const rail = fs.readFileSync(
|
||||
path.join(ROOT, 'src', 'ui', 'rightPanelRail.js'),
|
||||
'utf8',
|
||||
);
|
||||
const gate = rail.indexOf("windowRef.matchMedia('(max-width: 720px)')");
|
||||
assert.ok(gate > 0, 'the rail layout pass no longer keys off (max-width: 720px)');
|
||||
const mobileBranch = rail.slice(gate, rail.indexOf("layoutMode = 'mobile'", gate) + 40);
|
||||
assert.ok(
|
||||
gate > 0,
|
||||
'the rail layout pass no longer keys off (max-width: 720px)',
|
||||
);
|
||||
const mobileBranch = rail.slice(
|
||||
gate,
|
||||
rail.indexOf("layoutMode = 'mobile'", gate) + 40,
|
||||
);
|
||||
assert.match(mobileBranch, /stack\.classList\.remove\('layout-focus'\)/);
|
||||
assert.match(mobileBranch, /stack\.style\.removeProperty\('--right-stack-max-height'\)/);
|
||||
assert.match(
|
||||
mobileBranch,
|
||||
/stack\.style\.removeProperty\('--right-stack-max-height'\)/,
|
||||
);
|
||||
});
|
||||
|
||||
test('right rail measurement cannot persist into a painted attribution layout', () => {
|
||||
const rail = fs.readFileSync(path.join(ROOT, 'src', 'ui', 'rightPanelRail.js'), 'utf8');
|
||||
const rail = fs.readFileSync(
|
||||
path.join(ROOT, 'src', 'ui', 'rightPanelRail.js'),
|
||||
'utf8',
|
||||
);
|
||||
const start = rail.indexOf("stack.setAttribute('data-rail-measuring', '')");
|
||||
const end = rail.indexOf("stack.removeAttribute('data-rail-measuring')", start);
|
||||
const end = rail.indexOf(
|
||||
"stack.removeAttribute('data-rail-measuring')",
|
||||
start,
|
||||
);
|
||||
assert.ok(start > rail.indexOf("layoutMode = 'mobile'"));
|
||||
assert.ok(end > start);
|
||||
const measurement = rail.slice(start, end);
|
||||
assert.match(measurement, /try \{[\s\S]*\} finally \{/);
|
||||
assert.doesNotMatch(measurement, /\b(?:await|return|yield)\b|requestAnimationFrame|setTimeout/);
|
||||
assert.doesNotMatch(
|
||||
measurement,
|
||||
/\b(?:await|return|yield)\b|requestAnimationFrame|setTimeout/,
|
||||
);
|
||||
});
|
||||
|
||||
// ── Clearance ───────────────────────────────────────────────────────────────
|
||||
@@ -545,15 +781,22 @@ test('every open dock tray clears the required credit at every modelled viewport
|
||||
for (const scenario of TRAY_SCENARIOS) {
|
||||
for (const width of WIDTHS.filter((w) => w <= 900)) {
|
||||
for (const height of HEIGHTS) {
|
||||
const clearance = trayBottomPx(scenario, width, height) - creditTopPx(width, height);
|
||||
const clearance =
|
||||
trayBottomPx(scenario, width, height) - creditTopPx(width, height);
|
||||
if (clearance < MIN_CLEARANCE_PX) {
|
||||
failures.push(`${scenario.name} @ ${width}x${height} lift ${lift}: ${clearance.toFixed(1)}px`);
|
||||
failures.push(
|
||||
`${scenario.name} @ ${width}x${height} lift ${lift}: ${clearance.toFixed(1)}px`,
|
||||
);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
});
|
||||
assert.deepEqual(failures, [], `a dock tray re-enters the credit band:\n ${failures.join('\n ')}\n`);
|
||||
assert.deepEqual(
|
||||
failures,
|
||||
[],
|
||||
`a dock tray re-enters the credit band:\n ${failures.join('\n ')}\n`,
|
||||
);
|
||||
});
|
||||
|
||||
test('a pinned tray still stacks above its sibling at narrow widths', () => {
|
||||
@@ -580,33 +823,100 @@ test('the full-width context rail clears the required credit at every modelled v
|
||||
if (decl.prop === 'bottom') anchors.push({ rule, decl });
|
||||
}
|
||||
}
|
||||
assert.equal(anchors.length, 1, 'the rail has exactly one bottom anchor to reason about');
|
||||
assert.equal(parseMediaCondition(anchors[0].rule.media[0]), 720, 'the rail only goes full-width below 720px');
|
||||
assert.equal(
|
||||
anchors.length,
|
||||
1,
|
||||
'the rail has exactly one bottom anchor to reason about',
|
||||
);
|
||||
assert.equal(
|
||||
parseMediaCondition(anchors[0].rule.media[0]),
|
||||
720,
|
||||
'the rail only goes full-width below 720px',
|
||||
);
|
||||
|
||||
const failures = [];
|
||||
for (const width of WIDTHS.filter((w) => w <= 720)) {
|
||||
// `bottom` only governs the floor while the box is not height-capped:
|
||||
// top + bottom + a resolved height is over-constrained and drops `bottom`.
|
||||
assert.equal(
|
||||
resolve(['#right-context-rail'], 'max-height', width, 'context rail').decl.value,
|
||||
resolve(['#right-context-rail'], 'max-height', width, 'context rail').decl
|
||||
.value,
|
||||
'none',
|
||||
`at ${width}px the rail is height-capped, so its bottom anchor no longer decides its floor`,
|
||||
);
|
||||
eachLift((lift) => {
|
||||
for (const height of HEIGHTS) {
|
||||
const rail = resolve(['#right-context-rail'], 'bottom', width, 'context rail');
|
||||
const clearance = toPx(rail.decl.value, height, 'rail bottom') - creditTopPx(width, height);
|
||||
if (clearance < MIN_CLEARANCE_PX) failures.push(`${width}x${height} lift ${lift}: ${clearance.toFixed(1)}px`);
|
||||
const rail = resolve(
|
||||
['#right-context-rail'],
|
||||
'bottom',
|
||||
width,
|
||||
'context rail',
|
||||
);
|
||||
const clearance =
|
||||
toPx(rail.decl.value, height, 'rail bottom') -
|
||||
creditTopPx(width, height);
|
||||
if (clearance < MIN_CLEARANCE_PX)
|
||||
failures.push(
|
||||
`${width}x${height} lift ${lift}: ${clearance.toFixed(1)}px`,
|
||||
);
|
||||
}
|
||||
});
|
||||
}
|
||||
assert.deepEqual(failures, [], `context rail re-enters the credit band at ${failures.join(', ')}`);
|
||||
assert.deepEqual(
|
||||
failures,
|
||||
[],
|
||||
`context rail re-enters the credit band at ${failures.join(', ')}`,
|
||||
);
|
||||
});
|
||||
|
||||
test('expanded Context and the credit row never overlap', () => {
|
||||
const docked = RULES.filter((rule) => rule.parts.includes(DOCKED_RAIL));
|
||||
assert.equal(
|
||||
docked.length,
|
||||
1,
|
||||
'expanded Context has exactly one rule for its column',
|
||||
);
|
||||
assert.deepEqual(
|
||||
docked[0].media,
|
||||
[],
|
||||
'the expanded column applies at every width',
|
||||
);
|
||||
const decl = (prop) => docked[0].decls.find((d) => d.prop === prop)?.value;
|
||||
assert.equal(decl('right'), '0');
|
||||
assert.equal(decl('width'), 'var(--context-dock-width)');
|
||||
// The credit row starts under 3rem from the left and may run to its
|
||||
// max-width: with 3rem and the column's width taken off, it ends short of
|
||||
// the column.
|
||||
for (const base of [CREDIT_SELECTORS[1], MINIMAL_HUD_CREDIT]) {
|
||||
const selector = base.replace('body:not(', 'body.context-docked:not(');
|
||||
assert.ok(compareSpecificity(specificity(selector), specificity(base)) > 0);
|
||||
for (const width of WIDTHS) {
|
||||
const left = resolve([base], 'left', width, 'credit').decl.value;
|
||||
const rem = /^(\d*\.?\d+)rem$/.exec(left);
|
||||
assert.ok(
|
||||
rem && Number(rem[1]) < 3,
|
||||
`at ${width}px the credit starts at ${left}`,
|
||||
);
|
||||
assert.equal(
|
||||
resolve([base, selector], 'max-width', width, 'docked credit').decl
|
||||
.value,
|
||||
'calc(100vw - 3rem - var(--context-dock-width))',
|
||||
`at ${width}px the credit row can run under expanded Context`,
|
||||
);
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
test('the dock anchor changes at 720px — the 2vh cancellation is band-limited', () => {
|
||||
const lift = 'var(--world-timeline-lift, 0px)';
|
||||
assert.equal(resolve(['#command-dock'], 'bottom', 800, 'dock').decl.value, `calc(2vh + ${lift})`);
|
||||
assert.equal(resolve(['#command-dock'], 'bottom', 720, 'dock').decl.value, `calc(8px + ${lift})`);
|
||||
assert.equal(
|
||||
resolve(['#command-dock'], 'bottom', 800, 'dock').decl.value,
|
||||
`calc(2vh + ${lift})`,
|
||||
);
|
||||
assert.equal(
|
||||
resolve(['#command-dock'], 'bottom', 720, 'dock').decl.value,
|
||||
`calc(8px + ${lift})`,
|
||||
);
|
||||
assert.equal(
|
||||
resolve(CREDIT_SELECTORS, 'bottom', 720, 'credit').decl.value,
|
||||
`calc(2vh + 5rem + ${lift})`,
|
||||
@@ -617,10 +927,16 @@ test('the dock anchor changes at 720px — the 2vh cancellation is band-limited'
|
||||
test('the minimal-HUD credit variant tracks the ordinary one', () => {
|
||||
// It is MORE specific, so if the two ever diverge the model reads the wrong
|
||||
// anchor while the browser paints the other.
|
||||
assert.ok(compareSpecificity(specificity(MINIMAL_HUD_CREDIT), specificity(CREDIT_SELECTORS[1])) > 0);
|
||||
assert.ok(
|
||||
compareSpecificity(
|
||||
specificity(MINIMAL_HUD_CREDIT),
|
||||
specificity(CREDIT_SELECTORS[1]),
|
||||
) > 0,
|
||||
);
|
||||
for (const width of WIDTHS) {
|
||||
assert.equal(
|
||||
resolve([MINIMAL_HUD_CREDIT], 'bottom', width, 'minimal-HUD credit').decl.value,
|
||||
resolve([MINIMAL_HUD_CREDIT], 'bottom', width, 'minimal-HUD credit').decl
|
||||
.value,
|
||||
resolve(CREDIT_SELECTORS, 'bottom', width, 'credit').decl.value,
|
||||
`the minimal-HUD credit anchor diverges at ${width}px`,
|
||||
);
|
||||
@@ -628,25 +944,81 @@ test('the minimal-HUD credit variant tracks the ordinary one', () => {
|
||||
});
|
||||
|
||||
test('the tray only spans the credit corner at the widths the model covers', () => {
|
||||
const widened = RULES.filter((rule) => rule.parts.includes('#command-dock .dock-popover-content')
|
||||
&& rule.decls.some((decl) => decl.prop === 'width' && decl.value.includes('--dock-popover-mobile-width')));
|
||||
const widened = RULES.filter(
|
||||
(rule) =>
|
||||
rule.parts.includes('#command-dock .dock-popover-content') &&
|
||||
rule.decls.some(
|
||||
(decl) =>
|
||||
decl.prop === 'width' &&
|
||||
decl.value.includes('--dock-popover-mobile-width'),
|
||||
),
|
||||
);
|
||||
assert.equal(widened.length, 1);
|
||||
assert.equal(parseMediaCondition(widened[0].media[0]), 900);
|
||||
});
|
||||
|
||||
test('the credit line is never suppressed to make room', () => {
|
||||
const creditBlocks = [...css.matchAll(/#cesium-credits[^{]*\{([^}]*)\}/g)].map((m) => m[1]);
|
||||
const creditBlocks = [
|
||||
...css.matchAll(/#cesium-credits[^{]*\{([^}]*)\}/g),
|
||||
].map((m) => m[1]);
|
||||
assert.ok(creditBlocks.length > 0);
|
||||
for (const block of creditBlocks) {
|
||||
assert.doesNotMatch(block, /display\s*:\s*none/, 'the credit must never be display:none');
|
||||
assert.doesNotMatch(block, /visibility\s*:\s*hidden/, 'the credit must never be hidden');
|
||||
assert.doesNotMatch(block, /opacity\s*:\s*0(\D|$)/, 'the credit must never be faded out');
|
||||
assert.doesNotMatch(
|
||||
block,
|
||||
/display\s*:\s*none/,
|
||||
'the credit must never be display:none',
|
||||
);
|
||||
assert.doesNotMatch(
|
||||
block,
|
||||
/visibility\s*:\s*hidden/,
|
||||
'the credit must never be hidden',
|
||||
);
|
||||
assert.doesNotMatch(
|
||||
block,
|
||||
/opacity\s*:\s*0(\D|$)/,
|
||||
'the credit must never be faded out',
|
||||
);
|
||||
}
|
||||
assert.match(css, /body\.ui-clean-view #cesium-credits,\s*\n\s*body\.recording-mode #cesium-credits \{[^}]*bottom: 36px;/);
|
||||
assert.match(
|
||||
css,
|
||||
/body\.ui-clean-view #cesium-credits,\s*\n\s*body\.recording-mode #cesium-credits \{[^}]*bottom: 36px;/,
|
||||
);
|
||||
});
|
||||
|
||||
|
||||
test('OSM-derived layers never force the desktop credit row into a stack', () => {
|
||||
assert.doesNotMatch(css, /body:has\([^)]*alpr-cameras[^}]*#cesium-credits/);
|
||||
assert.doesNotMatch(css, /#cesium-credits\s+\.cesium-credit-expand-link\s*\{[^}]*display:\s*block/);
|
||||
assert.doesNotMatch(
|
||||
css,
|
||||
/#cesium-credits\s+\.cesium-credit-expand-link\s*\{[^}]*display:\s*block/,
|
||||
);
|
||||
});
|
||||
|
||||
test('expanded Context keeps the credits beside it right to left and with the minimal HUD', () => {
|
||||
const css = fs
|
||||
.readFileSync(
|
||||
path.join(ROOT, 'src', 'ui', 'styles', 'context-dock.css'),
|
||||
'utf8',
|
||||
)
|
||||
.replace(/\/\*[\s\S]*?\*\//g, '')
|
||||
.replace(/\s+/g, ' ');
|
||||
const rule = (selectorPart, decl) =>
|
||||
new RegExp(
|
||||
`${selectorPart}[^{}]*:is\\(#cesium-credits, #gev-credits\\) \\{[^}]*${decl}`,
|
||||
).test(css);
|
||||
// Right to left the column docks to the left edge, where the credits start.
|
||||
assert.ok(
|
||||
rule(
|
||||
"html\\[dir='rtl'\\] body\\.context-docked",
|
||||
'left: calc\\(36px \\+ var\\(--context-dock-width\\)\\)',
|
||||
),
|
||||
'right to left, the credits start past the expanded column',
|
||||
);
|
||||
// The minimal HUD puts the credits bottom right, where the column docks.
|
||||
assert.ok(
|
||||
rule(
|
||||
"^.*body\\.context-docked:not\\(\\.ui-clean-view\\):not\\(\\.recording-mode\\):has\\( #intel-hud\\[data-variant='minimal'\\]\\.active \\)",
|
||||
'right: calc\\(36px \\+ var\\(--context-dock-width\\)\\)',
|
||||
),
|
||||
'with the minimal HUD, the credits end before the expanded column',
|
||||
);
|
||||
});
|
||||
File diff suppressed because it is too large.
Load diff
@@ -0,0 +1,257 @@
|
||||
import { test } from 'node:test';
|
||||
import assert from 'node:assert/strict';
|
||||
import {
|
||||
aircraftInsights,
|
||||
describeEntity,
|
||||
findRecord,
|
||||
formatFact,
|
||||
layerBreakdown,
|
||||
nearbyEntities,
|
||||
recordTitle,
|
||||
recordWarnings,
|
||||
searchEntities,
|
||||
viewSummary,
|
||||
} from './entityContext.js';
|
||||
|
||||
/** A data manager over fixed layer records. */
|
||||
function manager(layers) {
|
||||
const map = new Map(
|
||||
Object.entries(layers).map(([id, { name, records }]) => [
|
||||
id,
|
||||
{ id, name, enabled: true, module: { getAnalystRecords: () => records } },
|
||||
]),
|
||||
);
|
||||
return {
|
||||
layers: map,
|
||||
isEnabled: (id) => map.get(id)?.enabled === true,
|
||||
getAll: () => [...map.values()],
|
||||
};
|
||||
}
|
||||
|
||||
const flights = Array.from({ length: 2500 }, (_, i) => ({
|
||||
id: `FLT${i}`,
|
||||
icao24: `a${String(i).padStart(5, '0')}`,
|
||||
callsign: `FLT${i}`,
|
||||
lat: 34 + i * 0.001,
|
||||
lon: -118,
|
||||
altitudeM: 10000,
|
||||
}));
|
||||
const dams = [
|
||||
{ id: 'Grand Coulee Dam', name: 'Grand Coulee Dam', lat: 47.957, lon: -118.981, operator: 'Bureau of Reclamation' },
|
||||
{ id: '123456', name: null, lat: 47.9, lon: -118.9, operator: 'Some Utility' },
|
||||
];
|
||||
const dm = manager({
|
||||
flights: { name: 'Live Flights', records: flights },
|
||||
'local-dams': { name: 'Dams', records: dams },
|
||||
});
|
||||
|
||||
test('a click identity finds its record by key, past the first 2000 records', () => {
|
||||
const record = findRecord(dm, { layerId: 'flights', id: 'a02400', lat: 0, lon: 0 });
|
||||
assert.equal(record?.callsign, 'FLT2400');
|
||||
});
|
||||
|
||||
test('a transit click finds its vehicle by the layer key and reads its state', () => {
|
||||
const buses = manager({
|
||||
transit: {
|
||||
name: 'Transit',
|
||||
records: [
|
||||
{
|
||||
id: 'M634',
|
||||
key: 'capmetro-austin:M634',
|
||||
route: '801',
|
||||
operator: 'CapMetro',
|
||||
status: 'IN_TRANSIT_TO',
|
||||
lat: 30.2,
|
||||
lon: -97.7,
|
||||
},
|
||||
],
|
||||
},
|
||||
});
|
||||
const card = describeEntity(buses, {
|
||||
layerId: 'transit',
|
||||
id: 'capmetro-austin:M634',
|
||||
lat: 30.21,
|
||||
lon: -97.71,
|
||||
});
|
||||
assert.equal(card?.title, 'M634');
|
||||
const facts = Object.fromEntries(card.facts.map((fact) => [fact.label, fact.value]));
|
||||
assert.equal(facts.Operator, 'CapMetro');
|
||||
assert.equal(facts.Status, 'Heading to next stop');
|
||||
assert.equal(facts.Key, undefined, 'the layer key is not shown');
|
||||
});
|
||||
|
||||
test('transit vehicles break down by motion, mode and reported state', () => {
|
||||
const at = { lat: 30.2, lon: -97.7 };
|
||||
const buses = manager({
|
||||
transit: {
|
||||
name: 'Transit',
|
||||
records: [
|
||||
{ id: '1', mode: 'bus', motion: 'moving', status: 'IN_TRANSIT_TO', ...at },
|
||||
{ id: '2', mode: 'bus', motion: 'stopped', status: 'STOPPED_AT', ...at },
|
||||
{ id: '3', mode: 'rail', motion: 'moving', occupancy: 'FULL', ...at },
|
||||
],
|
||||
},
|
||||
});
|
||||
const breakdown = layerBreakdown(buses, 'transit');
|
||||
assert.equal(breakdown.total, 3);
|
||||
const split = (title) =>
|
||||
Object.fromEntries(breakdown.splits.find((item) => item.title === title).parts.map((part) => [part.label, part.count]));
|
||||
assert.deepEqual(split('Motion'), { Moving: 2, Stopped: 1 });
|
||||
assert.deepEqual(split('Mode'), { Bus: 2, Rail: 1 });
|
||||
assert.deepEqual(split('Last reported'), { 'Heading to next stop': 1, 'Stopped at a stop': 1 });
|
||||
assert.deepEqual(split('Crowding'), { Full: 1 });
|
||||
});
|
||||
|
||||
test('a moving item never borrows a nearby craft when its key is unknown', () => {
|
||||
const record = findRecord(dm, { layerId: 'flights', id: 'zzzzzz', label: 'NOPE', lat: 34.0004, lon: -118.05 });
|
||||
assert.equal(record, null);
|
||||
});
|
||||
|
||||
test('an unnamed site goes by its operator, not its database number', () => {
|
||||
assert.equal(recordTitle(dams[1]), 'Some Utility');
|
||||
});
|
||||
|
||||
test('a card lists facts with units and keeps the title out of them', () => {
|
||||
const card = describeEntity(dm, { layerId: 'flights', id: 'a00001' });
|
||||
assert.equal(card.title, 'FLT1');
|
||||
assert.equal(card.kind, 'aircraft');
|
||||
assert.ok(card.facts.some((fact) => fact.label === 'Altitude' && fact.value === '32,808 ft'));
|
||||
assert.ok(!card.facts.some((fact) => fact.value === 'FLT1'));
|
||||
});
|
||||
|
||||
test('nearby lists the closest of the same kind and one of each other layer', () => {
|
||||
const card = describeEntity(dm, { layerId: 'local-dams', id: 'Grand Coulee Dam' });
|
||||
const { same, other } = nearbyEntities(dm, card, { radiusKm: 2000 });
|
||||
assert.equal(same[0].title, 'Some Utility');
|
||||
assert.equal(other.length, 1);
|
||||
assert.equal(other[0].layerId, 'flights');
|
||||
});
|
||||
|
||||
test('search ranks an exact name first and needs two characters', () => {
|
||||
assert.deepEqual(searchEntities(dm, 'f'), []);
|
||||
const [first] = searchEntities(dm, 'FLT12');
|
||||
assert.equal(first.title, 'FLT12');
|
||||
assert.equal(searchEntities(dm, 'coulee')[0]?.title, 'Grand Coulee Dam');
|
||||
});
|
||||
|
||||
test('fact formatting follows the field suffix', () => {
|
||||
assert.equal(formatFact('speedMps', 100).value, '194 kt');
|
||||
// Orbital speeds read in km/s, road and rail in km/h.
|
||||
assert.equal(formatFact('speedMps', 7670).value, '7.67 km/s');
|
||||
assert.equal(formatFact('speedMps', 10, { kind: 'vehicle' }).value, '36 km/h');
|
||||
// Units follow the field's suffix; feed codes and bare words read as words.
|
||||
assert.equal(formatFact('containedPct', 96).value, '96%');
|
||||
assert.equal(formatFact('windKt', 30).value, '30 kt');
|
||||
assert.equal(formatFact('pressureHpa', 1009).value, '1,009 hPa');
|
||||
assert.equal(formatFact('classification', 'TD').value, 'Tropical depression');
|
||||
assert.equal(formatFact('telecom', 'data_center').value, 'Data center');
|
||||
assert.equal(formatFact('icao24', 'abcdef').value, 'abcdef');
|
||||
assert.equal(formatFact('shipType', 70).value, 'Cargo');
|
||||
assert.equal(formatFact('shipType', 'Tanker').value, 'Tanker');
|
||||
assert.equal(formatFact('discoveredTime', Date.UTC(2026, 5, 29)).value, '29 Jun 2026');
|
||||
assert.equal(formatFact('updatedTime', 1_700_000_000_000, { nowMs: 1_700_000_060_000 }).age, 60_000);
|
||||
assert.equal(formatFact('altitudeM', 420000).value, '420 km');
|
||||
assert.equal(formatFact('confidence', 0.82).value, '82%');
|
||||
assert.equal(formatFact('onGround', false), null);
|
||||
assert.equal(formatFact('lastContactAtMs', 1_700_000_000_000, { nowMs: 1_700_000_060_000 }).age, 60_000);
|
||||
});
|
||||
|
||||
test('warnings lead with an emergency, then the squawk code, and stay out of the facts', () => {
|
||||
assert.deepEqual(recordWarnings({ emergency: true, emergencyKind: 'medical' }), ['Emergency: medical']);
|
||||
assert.deepEqual(recordWarnings({ squawk: '7600' }), ['Radio failure (squawk 7600)']);
|
||||
assert.deepEqual(recordWarnings({ squawk: '1200', emergencyKind: 'none' }), []);
|
||||
assert.deepEqual(recordWarnings({ tsunami: 1 }), ['Tsunami warning issued']);
|
||||
const urgent = manager({
|
||||
flights: { name: 'Live Flights', records: [{ id: 'X1', icao24: 'x00001', callsign: 'X1', lat: 1, lon: 1, emergency: true, emergencyKind: 'fuel' }] },
|
||||
});
|
||||
const card = describeEntity(urgent, { layerId: 'flights', id: 'x00001' });
|
||||
assert.deepEqual(card.warnings, ['Emergency: fuel']);
|
||||
assert.ok(!card.facts.some((fact) => /emergency/i.test(fact.label)));
|
||||
});
|
||||
|
||||
test('the view summary counts each layer inside the view, closest to the middle first', () => {
|
||||
const groups = viewSummary(
|
||||
dm,
|
||||
{ west: -119, south: 34, east: -117, north: 34.5 },
|
||||
{ lat: 34.1, lon: -118 },
|
||||
{ perLayer: 2 },
|
||||
);
|
||||
assert.equal(groups.length, 1);
|
||||
assert.equal(groups[0].layerId, 'flights');
|
||||
assert.equal(groups[0].count, 501);
|
||||
assert.equal(groups[0].items[0].title, 'FLT100');
|
||||
});
|
||||
|
||||
test('flight insights work out phase, flight level, Mach, squawk meaning and signal age', () => {
|
||||
const insights = aircraftInsights(
|
||||
{ altitudeM: 10668, verticalRateMps: 0, speedMps: 230, squawk: '7000', lastContactAtMs: 1_000_000 },
|
||||
{ nowMs: 1_012_000 },
|
||||
);
|
||||
const value = (label) => insights.find((item) => item.label === label)?.value;
|
||||
assert.equal(value('Phase'), 'Cruising, level');
|
||||
assert.equal(value('Flight level'), 'FL350');
|
||||
assert.equal(value('Mach'), 'M 0.78');
|
||||
assert.equal(value('Squawk {code}'), 'VFR conspicuity');
|
||||
assert.deepEqual(insights.find((item) => item.label === 'Squawk {code}').labelValues, { code: '7000' });
|
||||
assert.equal(value('Signal'), '12 s ago');
|
||||
assert.equal(aircraftInsights({ onGround: true })[0].value, 'On the ground');
|
||||
assert.match(aircraftInsights({ verticalRateMps: -8 })[0].value, /^Descending 1600 ft\/min$/);
|
||||
});
|
||||
|
||||
test('a layer breakdown splits aircraft by status and type, inside a view when given', () => {
|
||||
const craft = [
|
||||
{ id: 'A', lat: 10, lon: 10, onGround: false, military: false, aircraftClass: 'airliner' },
|
||||
{ id: 'B', lat: 10, lon: 11, onGround: false, military: true, aircraftClass: 'fastjet' },
|
||||
{ id: 'C', lat: 10, lon: 12, onGround: true, military: true, aircraftClass: 'airliner' },
|
||||
{ id: 'D', lat: 60, lon: 12, onGround: false, military: false, aircraftClass: 'airliner' },
|
||||
];
|
||||
const data = manager({ flights: { name: 'Live Flights', records: craft }, 'local-dams': { name: 'Dams', records: dams } });
|
||||
const all = layerBreakdown(data, 'flights');
|
||||
assert.equal(all.total, 4);
|
||||
assert.deepEqual(all.splits[0].parts, [
|
||||
{ label: 'Civilian, in the air', count: 2 },
|
||||
{ label: 'Military, in the air', count: 1 },
|
||||
{ label: 'On the ground', count: 1 },
|
||||
]);
|
||||
assert.deepEqual(all.splits[1].parts, [
|
||||
{ label: 'Airliners', count: 3 },
|
||||
{ label: 'Fast jets', count: 1 },
|
||||
]);
|
||||
const near = layerBreakdown(data, 'flights', { rect: { west: 9, east: 13, south: 9, north: 11 } });
|
||||
assert.equal(near.total, 3);
|
||||
assert.equal(layerBreakdown(data, 'local-dams'), null);
|
||||
});
|
||||
|
||||
test('a moving item with an unknown key is not matched to a craft right beside it', () => {
|
||||
// About 110 m from FLT0: well inside any nearest-item reach.
|
||||
assert.equal(findRecord(dm, { layerId: 'flights', id: 'zzzzzz', label: 'NOPE', lat: 34.001, lon: -118 }), null);
|
||||
});
|
||||
|
||||
test('sites that share a key are told apart by where the identity says they are', () => {
|
||||
const sites = [
|
||||
{ id: 'Amazon Web Services', name: 'Amazon Web Services', lat: -52.942, lon: -70.849 },
|
||||
{ id: 'Amazon Web Services', name: 'Amazon Web Services', lat: -33.557, lon: -70.813 },
|
||||
];
|
||||
const data = manager({ 'local-datacenters': { name: 'Datacenters', records: sites } });
|
||||
const identity = { layerId: 'local-datacenters', id: 'Amazon Web Services', label: 'Amazon Web Services', lat: -33.557, lon: -70.813 };
|
||||
assert.equal(findRecord(data, identity), sites[1]);
|
||||
const card = describeEntity(data, identity);
|
||||
assert.equal(card.lat, -33.557);
|
||||
// The card's own identity finds the same site again, as its refresh does.
|
||||
assert.equal(findRecord(data, card.identity), sites[1]);
|
||||
});
|
||||
|
||||
test('a link is built only from a language code, and a level is not a warning', () => {
|
||||
const site = { id: 'X', name: 'X', lat: 1, lon: 1, wikipedia: 'evil.example/a#:Y' };
|
||||
const data = manager({ 'local-dams': { name: 'Dams', records: [site] } });
|
||||
assert.deepEqual(describeEntity(data, { layerId: 'local-dams', id: 'X', lat: 1, lon: 1 }).links, []);
|
||||
assert.deepEqual(recordWarnings({ alert: 'green' }), []);
|
||||
});
|
||||
|
||||
test('a breakdown names "Other" once', () => {
|
||||
const ships = [30, 30, 70, 70, 70, 80, 80, 60, 37, 52, 52, 90, 90, 90].map((shipType, i) => ({ id: `S${i}`, mmsi: String(i), lat: 1, lon: 1 + i * 0.01, shipType }));
|
||||
const data = manager({ 'ais-live-vessels': { name: 'Vessels', records: ships } });
|
||||
const labels = layerBreakdown(data, 'ais-live-vessels').splits[0].parts.map((part) => part.label);
|
||||
assert.equal(labels.filter((label) => label === 'Other').length <= 1, true);
|
||||
assert.equal(new Set(labels).size, labels.length);
|
||||
});
|
||||
@@ -124,6 +124,9 @@ test('flights analyst record: full record maps every contract field', () => {
|
||||
lastContactAtMs: null,
|
||||
routeOrigin: 'AUS',
|
||||
routeDestination: 'LAX',
|
||||
routeFrom: null,
|
||||
routeTo: null,
|
||||
routeScheduled: null,
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
@@ -1370,8 +1370,9 @@ test('a cached Context subject re-reads its label when enrichment lands after se
|
||||
/N123AB/,
|
||||
'the rendered Context panel must show the registration without a position change',
|
||||
);
|
||||
// `subjectIdentity` is the subject's id for matching, never shown.
|
||||
assert.doesNotMatch(
|
||||
JSON.stringify(repainted.view),
|
||||
JSON.stringify({ ...repainted.view, subjectIdentity: undefined }),
|
||||
/ae1fa4/,
|
||||
'the hex must be gone from the panel',
|
||||
);
|
||||
|
||||
+297
-2
@@ -3993,7 +3993,7 @@
|
||||
"Under 1 min": "أقل من دقيقة",
|
||||
"1 min or more": "دقيقة أو أكثر",
|
||||
"Shots": "لقطات",
|
||||
"Layers on": "طبقات مفعّلة",
|
||||
"Layers on": "الطبقات المفعّلة",
|
||||
"Stories": "القصص",
|
||||
"NEW": "جديد",
|
||||
"GEV Stories": "قصص GEV",
|
||||
@@ -4163,5 +4163,300 @@
|
||||
"A visualization of the 26 August 2026 Bhote Koshi outburst flood, not an official hazard model. The historical (2021) and post-event views are Vantor WorldView imagery; the river’s path is GeoPera’s reconstruction. Witness clips link to their original posts, and their capture times are unverified.": "تصوير مرئي لفيضان Bhote Koshi الانفجاري في 26 أغسطس 2026، وليس نموذجًا رسميًا للمخاطر. المشاهد التاريخية (2021) وما بعد الحدث هي صور Vantor WorldView؛ ومسار النهر هو إعادة بناء من GeoPera. ترتبط مقاطع الشهود بمنشوراتها الأصلية، وأوقات تصويرها غير مُتحقَّق منها.",
|
||||
"That story is not available here": "هذه القصة غير متاحة هنا",
|
||||
"DRAFT": "مسودة",
|
||||
"A draft, not saved as a story yet. Use SAVE TO STORIES in AUTHORING to save it.": "مسودة لم تُحفظ كقصة بعد. استخدم «حفظ في STORIES» في «الإنشاء» لحفظها."
|
||||
"A draft, not saved as a story yet. Use SAVE TO STORIES in AUTHORING to save it.": "مسودة لم تُحفظ كقصة بعد. استخدم «حفظ في STORIES» في «الإنشاء» لحفظها.",
|
||||
"Heading to next stop": "متجه إلى المحطة التالية",
|
||||
"Arriving at a stop": "يصل إلى محطة",
|
||||
"Stopped at a stop": "متوقف في محطة",
|
||||
"Wikipedia": "ويكيبيديا",
|
||||
"Wikidata": "ويكي بيانات",
|
||||
"Website": "الموقع الإلكتروني",
|
||||
"Phase": "المرحلة",
|
||||
"Flight level": "مستوى الطيران",
|
||||
"Mach": "ماخ",
|
||||
"Squawk {code}": "رمز المرسل المجيب {code}",
|
||||
"Signal": "الإشارة",
|
||||
"Civilian, in the air": "مدنية، في الجو",
|
||||
"Military, in the air": "عسكرية، في الجو",
|
||||
"On the ground": "على الأرض",
|
||||
"Motion": "الحركة",
|
||||
"Operator": "المشغّل",
|
||||
"Last reported": "آخر تقرير",
|
||||
"Crowding": "الازدحام",
|
||||
"Class": "الفئة",
|
||||
"Magnitude": "القوة",
|
||||
"Labels": "التسميات",
|
||||
"3D aircraft": "طائرات ثلاثية الأبعاد",
|
||||
"M{mag} earthquake": "زلزال بقوة {mag}",
|
||||
"Earthquake": "زلزال",
|
||||
"{n} kt winds": "رياح {n} عقدة",
|
||||
"Wildfire": "حريق غابات",
|
||||
"{n} acres": "{n} فدان",
|
||||
"{n}% contained": "احتواء {n}%",
|
||||
"prescribed burn": "حرق مخطط",
|
||||
"{count} satellite fire hits": {
|
||||
"zero": "{count} رصد حرائق بالأقمار الصناعية",
|
||||
"one": "رصد واحد لحريق بالأقمار الصناعية ({count})",
|
||||
"two": "رصدان لحرائق بالأقمار الصناعية ({count})",
|
||||
"few": "{count} رصدات لحرائق بالأقمار الصناعية",
|
||||
"many": "{count} رصدًا لحرائق بالأقمار الصناعية",
|
||||
"other": "{count} رصد لحرائق بالأقمار الصناعية"
|
||||
},
|
||||
"last day": "آخر يوم",
|
||||
"Conditions unknown": "الأحوال غير معروفة",
|
||||
"Partly cloudy": "غائم جزئيًا",
|
||||
"Overcast": "غائم كليًا",
|
||||
"Fog": "ضباب",
|
||||
"Drizzle": "رذاذ",
|
||||
"Rain": "مطر",
|
||||
"Snow": "ثلج",
|
||||
"Rain showers": "زخات مطر",
|
||||
"Snow showers": "زخات ثلج",
|
||||
"Thunderstorm": "عاصفة رعدية",
|
||||
"Mixed conditions": "أحوال متقلبة",
|
||||
"Search {name} and nearby": "ابحث في {name} وما حوله",
|
||||
"Search what is in view": "ابحث فيما يظهر في العرض",
|
||||
"Close Context search": "إغلاق البحث في السياق",
|
||||
"Search in Context": "البحث في السياق",
|
||||
"Close search": "إغلاق البحث",
|
||||
"Shrink Context back to a panel": "تصغير السياق إلى لوحة",
|
||||
"Expand Context to a full-height column": "توسيع السياق إلى عمود بكامل الارتفاع",
|
||||
"Context tabs": "علامات تبويب السياق",
|
||||
"Inspector": "الفاحص",
|
||||
"Properties": "الخصائص",
|
||||
"Level": "المستوى",
|
||||
"Last {n} min": "آخر {n} د",
|
||||
"Just now": "الآن",
|
||||
"Since selected": "منذ التحديد",
|
||||
"Altitude": "الارتفاع",
|
||||
"Heading": "الاتجاه",
|
||||
"Field of view": "مجال الرؤية",
|
||||
"Camera frame": "إطار الكاميرا",
|
||||
"Acquiring frame…": "جارٍ جلب الإطار…",
|
||||
"Show a bigger view": "عرض أكبر",
|
||||
"Camera view": "عرض الكاميرا",
|
||||
"More info": "مزيد من المعلومات",
|
||||
"{n} s ago": "قبل {n} ث",
|
||||
"{n} min ago": "قبل {n} د",
|
||||
"{n} h ago": "قبل {n} س",
|
||||
"{n} d ago": "قبل {n} يوم",
|
||||
"Out of feed · last reading": "خارج البث · آخر قراءة",
|
||||
"Live · {age}": "مباشر · {age}",
|
||||
"{n} m": "{n} م",
|
||||
"{n} km": "{n} كم",
|
||||
"updated {age}": "حُدّث {age}",
|
||||
"Selected on the map": "المحدد على الخريطة",
|
||||
"Close card": "إغلاق البطاقة",
|
||||
"{n}% flown": "قُطع {n}%",
|
||||
"to go": "متبقية",
|
||||
"The scheduled route for this flight number does not match where the plane is; it may be another leg of the same flight.": "المسار المجدول لرقم هذه الرحلة لا يطابق موقع الطائرة؛ قد يكون مرحلة أخرى من الرحلة نفسها.",
|
||||
"Scheduled · unverified: does not match where the plane is": "مجدول · غير مؤكد: لا يطابق موقع الطائرة",
|
||||
"Nothing in this item’s details matches “{text}”.": "لا شيء في تفاصيل هذا العنصر يطابق «{text}».",
|
||||
"Matching details": "التفاصيل المطابقة",
|
||||
"Enter orbital view": "دخول العرض المداري",
|
||||
"Enter Cockpit": "دخول القمرة",
|
||||
"Fly to": "الانتقال إلى",
|
||||
"Following": "تتم المتابعة",
|
||||
"Follow": "متابعة",
|
||||
"Ask GEV about {name}": "اسأل GEV عن {name}",
|
||||
"Flights within {radius}": "الرحلات ضمن {radius}",
|
||||
"No flights within {radius} from the layers that are on.": "لا رحلات ضمن {radius} من الطبقات المفعّلة.",
|
||||
"Vessels within {radius}": "السفن ضمن {radius}",
|
||||
"No vessels within {radius} from the layers that are on.": "لا سفن ضمن {radius} من الطبقات المفعّلة.",
|
||||
"Cloud": "الغيوم",
|
||||
"Visibility": "الرؤية",
|
||||
"Conditions here": "الأحوال هنا",
|
||||
"feels {n}°": "المحسوسة {n}°",
|
||||
"Reading conditions here…": "جارٍ قراءة الأحوال هنا…",
|
||||
"No weather reading here.": "لا توجد قراءة للطقس هنا.",
|
||||
"Local solar time": "التوقيت الشمسي المحلي",
|
||||
"Nearby radius": "نطاق القرب",
|
||||
"How far out the nearby lists look": "إلى أي مدى تبحث قوائم الجوار",
|
||||
"Hazards within {radius}": "المخاطر ضمن {radius}",
|
||||
"Turns the layer on": "يفعّل الطبقة",
|
||||
"No earthquakes, tropical storms or wildfires reported within {radius}.": "لا زلازل أو عواصف استوائية أو حرائق غابات مُبلَّغ عنها ضمن {radius}.",
|
||||
"Broadcast alerts within {radius}": "التنبيهات المبثوثة ضمن {radius}",
|
||||
"Also within {radius}": "أيضًا ضمن {radius}",
|
||||
"Local news": "الأخبار المحلية",
|
||||
"Sundial · {time} solar · sun {deg}° {dir}": "مزولة · {time} بالتوقيت الشمسي · الشمس {deg}° {dir}",
|
||||
"Sundial · {time} solar · sun below the horizon": "مزولة · {time} بالتوقيت الشمسي · الشمس تحت الأفق",
|
||||
"{count} things": {
|
||||
"zero": "{count} عنصر",
|
||||
"one": "عنصر واحد ({count})",
|
||||
"two": "عنصران ({count})",
|
||||
"few": "{count} عناصر",
|
||||
"many": "{count} عنصرًا",
|
||||
"other": "{count} عنصر"
|
||||
},
|
||||
"{count} layers": {
|
||||
"zero": "{count} طبقة",
|
||||
"one": "طبقة واحدة ({count})",
|
||||
"two": "طبقتين ({count})",
|
||||
"few": "{count} طبقات",
|
||||
"many": "{count} طبقة",
|
||||
"other": "{count} طبقة"
|
||||
},
|
||||
"{things} in view from {layers}": "{things} في العرض من {layers}",
|
||||
"{n} km up": "على ارتفاع {n} كم",
|
||||
"{n} m up": "على ارتفاع {n} م",
|
||||
"This view": "هذا العرض",
|
||||
"Day": "نهار",
|
||||
"Twilight": "شفق",
|
||||
"Night": "ليل",
|
||||
"Daylight": "ضوء النهار",
|
||||
"sun {n}°": "الشمس {n}°",
|
||||
"Of {n} read, {total} loaded": "من {n} مقروءة، {total} محمّلة",
|
||||
"Of all {n}": "من إجمالي {n}",
|
||||
"Of {n} in view": "من {n} في العرض",
|
||||
"Error": "خطأ",
|
||||
"Stale": "قديم",
|
||||
"In view": "في العرض",
|
||||
"Globe view": "عرض الكرة الأرضية",
|
||||
"Nothing selected": "لا شيء محدد",
|
||||
"Worldwide now": "حول العالم الآن",
|
||||
"Turn on {name}": "تفعيل {name}",
|
||||
"{n} loaded": "{n} محمّلة",
|
||||
"{n} in view": "{n} في العرض",
|
||||
"Turn off {name}": "إيقاف {name}",
|
||||
"Camera height": "ارتفاع الكاميرا",
|
||||
"Nothing in view matches “{text}”.": "لا شيء في العرض يطابق «{text}».",
|
||||
"Nothing from the layers that are on is in view here. Zoom out to see more.": "لا شيء من الطبقات المفعّلة في العرض هنا. صغّر العرض لرؤية المزيد.",
|
||||
"No loaded layer has anything in view. Turn some on in Data Layers.": "لا توجد طبقة محمّلة بها شيء في العرض. فعّل بعضها في طبقات البيانات.",
|
||||
"Places in view": "أماكن في العرض",
|
||||
"Show here": "عرض هنا",
|
||||
"Ask GEV what's here": "اسأل GEV عمّا هنا",
|
||||
"aircraft": "طائرة",
|
||||
"vessel": "سفينة",
|
||||
"launch": "إطلاق",
|
||||
"fire": "حريق",
|
||||
"Fire detection": "رصد حريق",
|
||||
"fire perimeter": "محيط حريق",
|
||||
"earthquake": "زلزال",
|
||||
"storm": "عاصفة",
|
||||
"air quality station": "محطة جودة الهواء",
|
||||
"installation": "منشأة",
|
||||
"dam": "سد",
|
||||
"data centre": "مركز بيانات",
|
||||
"place": "مكان",
|
||||
"vehicle": "مركبة",
|
||||
"bike station": "محطة دراجات",
|
||||
"plate reader": "قارئ لوحات",
|
||||
"camera": "كاميرا",
|
||||
"airspace": "مجال جوي",
|
||||
"sighting": "مشاهدة",
|
||||
"Callsign": "رمز النداء",
|
||||
"Registration": "التسجيل",
|
||||
"Aircraft class": "فئة الطائرة",
|
||||
"Course": "المسار",
|
||||
"Vertical rate": "معدل الصعود",
|
||||
"Squawk": "رمز المرسل المجيب",
|
||||
"Emergency": "طوارئ",
|
||||
"Last contact": "آخر اتصال",
|
||||
"Ship type": "نوع السفينة",
|
||||
"Destination": "الوجهة",
|
||||
"Depth": "العمق",
|
||||
"Time": "الوقت",
|
||||
"Place": "المكان",
|
||||
"Fire power": "قدرة الحريق",
|
||||
"Satellite": "القمر الصناعي",
|
||||
"Sensor": "المستشعر",
|
||||
"Detected": "رُصد",
|
||||
"Contained": "نسبة الاحتواء",
|
||||
"Discovered": "اكتُشف",
|
||||
"Basin": "الحوض",
|
||||
"Index": "المؤشر",
|
||||
"Health risk": "الخطر الصحي",
|
||||
"Bikes": "الدراجات",
|
||||
"Docks": "المراسي",
|
||||
"Floor": "الحد الأدنى",
|
||||
"Ceiling": "الحد الأعلى",
|
||||
"Active": "نشط",
|
||||
"NORAD ID": "معرّف NORAD",
|
||||
"MMSI": "MMSI",
|
||||
"ICAO24": "ICAO24",
|
||||
"Capacity": "السعة",
|
||||
"Output": "الإنتاج",
|
||||
"River": "النهر",
|
||||
"City": "المدينة",
|
||||
"State": "الولاية",
|
||||
"Street": "الشارع",
|
||||
"Opened": "افتُتح",
|
||||
"Height": "الارتفاع",
|
||||
"IT load": "حمل تقنية المعلومات",
|
||||
"Waterway": "المجرى المائي",
|
||||
"Military": "عسكري",
|
||||
"Land use": "استخدام الأرض",
|
||||
"Telecom": "الاتصالات",
|
||||
"feature": "عنصر",
|
||||
"Empty": "فارغة",
|
||||
"Many seats free": "مقاعد كثيرة متاحة",
|
||||
"Few seats free": "مقاعد قليلة متاحة",
|
||||
"Standing room only": "وقوف فقط",
|
||||
"Crowded": "مزدحمة",
|
||||
"Not taking passengers": "لا تقبل ركابًا",
|
||||
"Major hurricane": "إعصار كبير",
|
||||
"Typhoon": "إعصار التيفون",
|
||||
"Super typhoon": "إعصار تيفون هائل",
|
||||
"Tropical cyclone": "إعصار مداري",
|
||||
"Prescribed burn": "حرق مخطط",
|
||||
"Atlantic": "الأطلسي",
|
||||
"Eastern Pacific": "شرق المحيط الهادئ",
|
||||
"Central Pacific": "وسط المحيط الهادئ",
|
||||
"Western Pacific": "غرب المحيط الهادئ",
|
||||
"Indian Ocean": "المحيط الهندي",
|
||||
"Southern Hemisphere": "نصف الكرة الجنوبي",
|
||||
"Cable tram": "ترام بالكابل",
|
||||
"Aerial lift": "تلفريك",
|
||||
"Fishing": "صيد",
|
||||
"Tug": "قاطرة",
|
||||
"Sailing": "شراعي",
|
||||
"Pleasure craft": "قارب نزهة",
|
||||
"Pilot vessel": "سفينة إرشاد",
|
||||
"Search and rescue": "بحث وإنقاذ",
|
||||
"Law enforcement": "إنفاذ القانون",
|
||||
"High-speed craft": "مركب عالي السرعة",
|
||||
"Passenger": "ركاب",
|
||||
"Cargo": "شحن",
|
||||
"Tanker": "ناقلة",
|
||||
"Yes": "نعم",
|
||||
"{n} ft": "{n} قدم",
|
||||
"{n} km/s": "{n} كم/ث",
|
||||
"{n} km/h": "{n} كم/س",
|
||||
"{n} kt": "{n} عقدة",
|
||||
"{n} ft/min": "{n} قدم/د",
|
||||
"{n}°": "{n}°",
|
||||
"M {n}": "M {n}",
|
||||
"{n} MW": "{n} ميغاواط",
|
||||
"{n}%": "{n}%",
|
||||
"{n} hPa": "{n} hPa",
|
||||
"Hijack (squawk 7500)": "اختطاف (الرمز 7500)",
|
||||
"Radio failure (squawk 7600)": "عطل لاسلكي (الرمز 7600)",
|
||||
"Emergency (squawk 7700)": "حالة طوارئ (الرمز 7700)",
|
||||
"Emergency: {kind}": "طوارئ: {kind}",
|
||||
"Emergency declared": "أُعلنت حالة طوارئ",
|
||||
"Tsunami warning issued": "صدر تحذير من تسونامي",
|
||||
"VFR, no flight plan": "VFR، بلا خطة طيران",
|
||||
"VFR conspicuity": "رمز VFR العام",
|
||||
"IFR, no code yet": "IFR، بلا رمز بعد",
|
||||
"Hijack": "اختطاف",
|
||||
"Climbing {n} ft/min": "يصعد {n} قدم/د",
|
||||
"Descending {n} ft/min": "يهبط {n} قدم/د",
|
||||
"Cruising, level": "طيران مستوٍ",
|
||||
"Airliners": "طائرات ركاب",
|
||||
"Widebodies": "طائرات عريضة البدن",
|
||||
"Business jets": "طائرات رجال أعمال",
|
||||
"Helicopters": "مروحيات",
|
||||
"Turboprops": "طائرات مروحية توربينية",
|
||||
"Fast jets": "طائرات نفاثة سريعة",
|
||||
"Four-engine jets": "طائرات رباعية المحركات",
|
||||
"M6 and above": "M6 فأكثر",
|
||||
"M5 to 6": "من M5 إلى 6",
|
||||
"M4 to 5": "من M4 إلى 5",
|
||||
"Below M4": "أقل من M4",
|
||||
"{kind} {name}": "{kind} {name}",
|
||||
"place|Country": "البلد",
|
||||
"altitude|Level": "ثابت",
|
||||
"{h} h {m} min": "{h} س {m} د",
|
||||
"{n} min": "{n} د",
|
||||
"{speed} {direction}": "{speed} {direction}",
|
||||
"{n} mm": "{n} مم"
|
||||
}
|
||||
+284
-1
@@ -3803,5 +3803,288 @@
|
||||
"A visualization of the 26 August 2026 Bhote Koshi outburst flood, not an official hazard model. The historical (2021) and post-event views are Vantor WorldView imagery; the river’s path is GeoPera’s reconstruction. Witness clips link to their original posts, and their capture times are unverified.": "Eine Visualisierung der Ausbruchsflut am Bhote Koshi vom 26. August 2026, kein offizielles Gefahrenmodell. Die historischen Ansichten (2021) und die Ansichten nach dem Ereignis sind Vantor-WorldView-Bilder; der Flussverlauf ist die Rekonstruktion von GeoPera. Augenzeugenclips verlinken auf ihre ursprünglichen Beiträge, ihre Aufnahmezeiten sind nicht überprüft.",
|
||||
"That story is not available here": "Diese Story ist hier nicht verfügbar",
|
||||
"DRAFT": "ENTWURF",
|
||||
"A draft, not saved as a story yet. Use SAVE TO STORIES in AUTHORING to save it.": "Ein Entwurf, noch nicht als Story gespeichert. Mit IN STORIES SPEICHERN unter SZENEN speicherst du ihn."
|
||||
"A draft, not saved as a story yet. Use SAVE TO STORIES in AUTHORING to save it.": "Ein Entwurf, noch nicht als Story gespeichert. Mit IN STORIES SPEICHERN unter SZENEN speicherst du ihn.",
|
||||
"Heading to next stop": "Unterwegs zur nächsten Haltestelle",
|
||||
"Arriving at a stop": "Erreicht eine Haltestelle",
|
||||
"Stopped at a stop": "Hält an einer Haltestelle",
|
||||
"Wikipedia": "Wikipedia",
|
||||
"Wikidata": "Wikidata",
|
||||
"Website": "Website",
|
||||
"Phase": "Flugphase",
|
||||
"Flight level": "Flugfläche",
|
||||
"Mach": "Mach",
|
||||
"Squawk {code}": "Squawk {code}",
|
||||
"Signal": "Signal",
|
||||
"Civilian, in the air": "Zivil, in der Luft",
|
||||
"Military, in the air": "Militär, in der Luft",
|
||||
"On the ground": "Am Boden",
|
||||
"Motion": "Bewegung",
|
||||
"Operator": "Betreiber",
|
||||
"Last reported": "Zuletzt gemeldet",
|
||||
"Crowding": "Auslastung",
|
||||
"Class": "Klasse",
|
||||
"Magnitude": "Magnitude",
|
||||
"Labels": "Beschriftungen",
|
||||
"3D aircraft": "3D-Flugzeuge",
|
||||
"M{mag} earthquake": "Erdbeben der Stärke {mag}",
|
||||
"Earthquake": "Erdbeben",
|
||||
"{n} kt winds": "Wind {n} kn",
|
||||
"Wildfire": "Waldbrand",
|
||||
"{n} acres": "{n} Acres",
|
||||
"{n}% contained": "{n} % eingedämmt",
|
||||
"prescribed burn": "kontrolliertes Abbrennen",
|
||||
"{count} satellite fire hits": {
|
||||
"one": "{count} Feuermeldung per Satellit",
|
||||
"other": "{count} Feuermeldungen per Satellit"
|
||||
},
|
||||
"last day": "letzter Tag",
|
||||
"Conditions unknown": "Wetterlage unbekannt",
|
||||
"Partly cloudy": "Teilweise bewölkt",
|
||||
"Overcast": "Bedeckt",
|
||||
"Fog": "Nebel",
|
||||
"Drizzle": "Nieselregen",
|
||||
"Rain": "Regen",
|
||||
"Snow": "Schnee",
|
||||
"Rain showers": "Regenschauer",
|
||||
"Snow showers": "Schneeschauer",
|
||||
"Thunderstorm": "Gewitter",
|
||||
"Mixed conditions": "Wechselhaft",
|
||||
"Search {name} and nearby": "{name} und Umgebung durchsuchen",
|
||||
"Search what is in view": "Sichtbares durchsuchen",
|
||||
"Close Context search": "Kontextsuche schließen",
|
||||
"Search in Context": "Im Kontext suchen",
|
||||
"Close search": "Suche schließen",
|
||||
"Shrink Context back to a panel": "Kontext wieder als Bereich anzeigen",
|
||||
"Expand Context to a full-height column": "Kontext als Spalte in voller Höhe anzeigen",
|
||||
"Context tabs": "Kontext-Tabs",
|
||||
"Inspector": "Inspektor",
|
||||
"Properties": "Eigenschaften",
|
||||
"Level": "Stufe",
|
||||
"Last {n} min": "Letzte {n} Min.",
|
||||
"Just now": "Gerade eben",
|
||||
"Since selected": "Seit der Auswahl",
|
||||
"Altitude": "Höhe",
|
||||
"Heading": "Kurs",
|
||||
"Field of view": "Sichtfeld",
|
||||
"Camera frame": "Kamerabild",
|
||||
"Acquiring frame…": "Bild wird geladen…",
|
||||
"Show a bigger view": "Größer anzeigen",
|
||||
"Camera view": "Kameraansicht",
|
||||
"More info": "Mehr Infos",
|
||||
"{n} s ago": "vor {n} s",
|
||||
"{n} min ago": "vor {n} Min.",
|
||||
"{n} h ago": "vor {n} Std.",
|
||||
"{n} d ago": "vor {n} T.",
|
||||
"Out of feed · last reading": "Nicht mehr im Feed · letzter Stand",
|
||||
"Live · {age}": "Live · {age}",
|
||||
"{n} m": "{n} m",
|
||||
"{n} km": "{n} km",
|
||||
"updated {age}": "aktualisiert {age}",
|
||||
"Selected on the map": "Auf der Karte ausgewählt",
|
||||
"Close card": "Karte schließen",
|
||||
"{n}% flown": "{n} % geflogen",
|
||||
"to go": "verbleibend",
|
||||
"The scheduled route for this flight number does not match where the plane is; it may be another leg of the same flight.": "Die geplante Route dieser Flugnummer passt nicht zur Position des Flugzeugs; vielleicht ist es eine andere Teilstrecke desselben Flugs.",
|
||||
"Scheduled · unverified: does not match where the plane is": "Geplant · unbestätigt: passt nicht zur Position des Flugzeugs",
|
||||
"Nothing in this item’s details matches “{text}”.": "Nichts in den Details dieses Elements passt zu „{text}“.",
|
||||
"Matching details": "Passende Details",
|
||||
"Enter orbital view": "Orbitalansicht öffnen",
|
||||
"Enter Cockpit": "Cockpit öffnen",
|
||||
"Fly to": "Hinfliegen",
|
||||
"Following": "Folgt",
|
||||
"Follow": "Folgen",
|
||||
"Ask GEV about {name}": "GEV zu {name} fragen",
|
||||
"Flights within {radius}": "Flüge im Umkreis von {radius}",
|
||||
"No flights within {radius} from the layers that are on.": "Keine Flüge im Umkreis von {radius} aus den aktiven Ebenen.",
|
||||
"Vessels within {radius}": "Schiffe im Umkreis von {radius}",
|
||||
"No vessels within {radius} from the layers that are on.": "Keine Schiffe im Umkreis von {radius} aus den aktiven Ebenen.",
|
||||
"Cloud": "Bewölkung",
|
||||
"Visibility": "Sicht",
|
||||
"Conditions here": "Bedingungen hier",
|
||||
"feels {n}°": "gefühlt {n}°",
|
||||
"Reading conditions here…": "Bedingungen werden abgerufen…",
|
||||
"No weather reading here.": "Hier keine Wetterdaten.",
|
||||
"Local solar time": "Wahre Ortszeit",
|
||||
"Nearby radius": "Umkreis",
|
||||
"How far out the nearby lists look": "Wie weit die Umgebungslisten reichen",
|
||||
"Hazards within {radius}": "Gefahren im Umkreis von {radius}",
|
||||
"Turns the layer on": "Schaltet die Ebene ein",
|
||||
"No earthquakes, tropical storms or wildfires reported within {radius}.": "Keine Erdbeben, Tropenstürme oder Waldbrände im Umkreis von {radius} gemeldet.",
|
||||
"Broadcast alerts within {radius}": "Gesendete Warnungen im Umkreis von {radius}",
|
||||
"Also within {radius}": "Ebenfalls im Umkreis von {radius}",
|
||||
"Local news": "Lokale Nachrichten",
|
||||
"Sundial · {time} solar · sun {deg}° {dir}": "Sonnenuhr · {time} Sonnenzeit · Sonne {deg}° {dir}",
|
||||
"Sundial · {time} solar · sun below the horizon": "Sonnenuhr · {time} Sonnenzeit · Sonne unter dem Horizont",
|
||||
"{count} things": {
|
||||
"one": "{count} Objekt",
|
||||
"other": "{count} Objekte"
|
||||
},
|
||||
"{count} layers": {
|
||||
"one": "{count} Ebene",
|
||||
"other": "{count} Ebenen"
|
||||
},
|
||||
"{things} in view from {layers}": "{things} im Blick aus {layers}",
|
||||
"{n} km up": "{n} km hoch",
|
||||
"{n} m up": "{n} m hoch",
|
||||
"This view": "Diese Ansicht",
|
||||
"Day": "Tag",
|
||||
"Twilight": "Dämmerung",
|
||||
"Night": "Nacht",
|
||||
"Daylight": "Tageslicht",
|
||||
"sun {n}°": "Sonne {n}°",
|
||||
"Of {n} read, {total} loaded": "Von {n} gelesen, {total} geladen",
|
||||
"Of all {n}": "Von allen {n}",
|
||||
"Of {n} in view": "Von {n} im Blick",
|
||||
"Error": "Fehler",
|
||||
"Stale": "Veraltet",
|
||||
"In view": "Im Blick",
|
||||
"Globe view": "Globusansicht",
|
||||
"Nothing selected": "Nichts ausgewählt",
|
||||
"Worldwide now": "Weltweit jetzt",
|
||||
"Turn on {name}": "{name} einschalten",
|
||||
"{n} loaded": "{n} geladen",
|
||||
"{n} in view": "{n} im Blick",
|
||||
"Turn off {name}": "{name} ausschalten",
|
||||
"Camera height": "Kamerahöhe",
|
||||
"Nothing in view matches “{text}”.": "Nichts im Blick passt zu „{text}“.",
|
||||
"Nothing from the layers that are on is in view here. Zoom out to see more.": "Aus den aktiven Ebenen ist hier nichts im Blick. Herauszoomen, um mehr zu sehen.",
|
||||
"No loaded layer has anything in view. Turn some on in Data Layers.": "Keine geladene Ebene hat etwas im Blick. Schalte welche unter Datenebenen ein.",
|
||||
"Places in view": "Orte im Blick",
|
||||
"Show here": "Hier anzeigen",
|
||||
"Ask GEV what's here": "GEV fragen, was hier ist",
|
||||
"aircraft": "Flugzeug",
|
||||
"vessel": "Schiff",
|
||||
"launch": "Start",
|
||||
"fire": "Feuer",
|
||||
"Fire detection": "Feuererkennung",
|
||||
"fire perimeter": "Brandfläche",
|
||||
"earthquake": "Erdbeben",
|
||||
"storm": "Sturm",
|
||||
"air quality station": "Luftmessstation",
|
||||
"installation": "Anlage",
|
||||
"dam": "Damm",
|
||||
"data centre": "Rechenzentrum",
|
||||
"place": "Ort",
|
||||
"vehicle": "Fahrzeug",
|
||||
"bike station": "Fahrradstation",
|
||||
"plate reader": "Kennzeichenleser",
|
||||
"camera": "Kamera",
|
||||
"airspace": "Luftraum",
|
||||
"sighting": "Sichtung",
|
||||
"Callsign": "Rufzeichen",
|
||||
"Registration": "Kennzeichen",
|
||||
"Aircraft class": "Flugzeugklasse",
|
||||
"Course": "Kurs über Grund",
|
||||
"Vertical rate": "Steigrate",
|
||||
"Squawk": "Squawk",
|
||||
"Emergency": "Notfall",
|
||||
"Last contact": "Letzter Kontakt",
|
||||
"Ship type": "Schiffstyp",
|
||||
"Destination": "Ziel",
|
||||
"Depth": "Tiefe",
|
||||
"Time": "Zeit",
|
||||
"Place": "Ort",
|
||||
"Fire power": "Feuerleistung",
|
||||
"Satellite": "Satellit",
|
||||
"Sensor": "Sensor",
|
||||
"Detected": "Erkannt",
|
||||
"Contained": "Eingedämmt",
|
||||
"Discovered": "Entdeckt",
|
||||
"Basin": "Becken",
|
||||
"Index": "Index",
|
||||
"Health risk": "Gesundheitsrisiko",
|
||||
"Bikes": "Fahrräder",
|
||||
"Docks": "Stellplätze",
|
||||
"Floor": "Untergrenze",
|
||||
"Ceiling": "Obergrenze",
|
||||
"Active": "Aktiv",
|
||||
"NORAD ID": "NORAD-ID",
|
||||
"MMSI": "MMSI",
|
||||
"ICAO24": "ICAO24",
|
||||
"Capacity": "Kapazität",
|
||||
"Output": "Leistung",
|
||||
"River": "Fluss",
|
||||
"City": "Stadt",
|
||||
"State": "Bundesstaat",
|
||||
"Street": "Straße",
|
||||
"Opened": "Eröffnet",
|
||||
"Height": "Höhe",
|
||||
"IT load": "IT-Last",
|
||||
"Waterway": "Wasserweg",
|
||||
"Military": "Militär",
|
||||
"Land use": "Landnutzung",
|
||||
"Telecom": "Telekommunikation",
|
||||
"feature": "Objekt",
|
||||
"Empty": "Leer",
|
||||
"Many seats free": "Viele Plätze frei",
|
||||
"Few seats free": "Wenige Plätze frei",
|
||||
"Standing room only": "Nur Stehplätze",
|
||||
"Crowded": "Überfüllt",
|
||||
"Not taking passengers": "Kein Einstieg",
|
||||
"Major hurricane": "Schwerer Hurrikan",
|
||||
"Typhoon": "Taifun",
|
||||
"Super typhoon": "Supertaifun",
|
||||
"Tropical cyclone": "Tropischer Wirbelsturm",
|
||||
"Prescribed burn": "Kontrolliertes Abbrennen",
|
||||
"Atlantic": "Atlantik",
|
||||
"Eastern Pacific": "Ostpazifik",
|
||||
"Central Pacific": "Zentralpazifik",
|
||||
"Western Pacific": "Westpazifik",
|
||||
"Indian Ocean": "Indischer Ozean",
|
||||
"Southern Hemisphere": "Südhalbkugel",
|
||||
"Cable tram": "Kabelstraßenbahn",
|
||||
"Aerial lift": "Seilbahn",
|
||||
"Fishing": "Fischerei",
|
||||
"Tug": "Schlepper",
|
||||
"Sailing": "Segelschiff",
|
||||
"Pleasure craft": "Sportboot",
|
||||
"Pilot vessel": "Lotsenboot",
|
||||
"Search and rescue": "Seenotrettung",
|
||||
"Law enforcement": "Behördenschiff",
|
||||
"High-speed craft": "Schnellboot",
|
||||
"Passenger": "Passagierschiff",
|
||||
"Cargo": "Frachter",
|
||||
"Tanker": "Tanker",
|
||||
"Yes": "Ja",
|
||||
"{n} ft": "{n} ft",
|
||||
"{n} km/s": "{n} km/s",
|
||||
"{n} km/h": "{n} km/h",
|
||||
"{n} kt": "{n} kn",
|
||||
"{n} ft/min": "{n} ft/min",
|
||||
"{n}°": "{n}°",
|
||||
"M {n}": "M {n}",
|
||||
"{n} MW": "{n} MW",
|
||||
"{n}%": "{n} %",
|
||||
"{n} hPa": "{n} hPa",
|
||||
"Hijack (squawk 7500)": "Entführung (Squawk 7500)",
|
||||
"Radio failure (squawk 7600)": "Funkausfall (Squawk 7600)",
|
||||
"Emergency (squawk 7700)": "Notfall (Squawk 7700)",
|
||||
"Emergency: {kind}": "Notfall: {kind}",
|
||||
"Emergency declared": "Notfall erklärt",
|
||||
"Tsunami warning issued": "Tsunamiwarnung ausgegeben",
|
||||
"VFR, no flight plan": "VFR, ohne Flugplan",
|
||||
"VFR conspicuity": "VFR-Standardcode",
|
||||
"IFR, no code yet": "IFR, noch kein Code",
|
||||
"Hijack": "Entführung",
|
||||
"Climbing {n} ft/min": "Steigt mit {n} ft/min",
|
||||
"Descending {n} ft/min": "Sinkt mit {n} ft/min",
|
||||
"Cruising, level": "Reiseflug, gleichbleibend",
|
||||
"Airliners": "Verkehrsflugzeuge",
|
||||
"Widebodies": "Großraumflugzeuge",
|
||||
"Business jets": "Businessjets",
|
||||
"Helicopters": "Hubschrauber",
|
||||
"Turboprops": "Turboprops",
|
||||
"Fast jets": "Kampfjets",
|
||||
"Four-engine jets": "Vierstrahlige Jets",
|
||||
"M6 and above": "M6 und mehr",
|
||||
"M5 to 6": "M5 bis 6",
|
||||
"M4 to 5": "M4 bis 5",
|
||||
"Below M4": "Unter M4",
|
||||
"{kind} {name}": "{kind} {name}",
|
||||
"place|Country": "Land",
|
||||
"altitude|Level": "Gleichbleibend",
|
||||
"{h} h {m} min": "{h} Std. {m} Min.",
|
||||
"{n} min": "{n} Min.",
|
||||
"{speed} {direction}": "{speed} aus {direction}",
|
||||
"{n} mm": "{n} mm"
|
||||
}
|
||||
+287
-1
@@ -3893,5 +3893,291 @@
|
||||
"A visualization of the 26 August 2026 Bhote Koshi outburst flood, not an official hazard model. The historical (2021) and post-event views are Vantor WorldView imagery; the river’s path is GeoPera’s reconstruction. Witness clips link to their original posts, and their capture times are unverified.": "Una visualización de la inundación por desborde del Bhote Koshi del 26 de agosto de 2026, no un modelo oficial de riesgos. Las vistas históricas (2021) y posteriores al evento son imágenes de Vantor WorldView; el recorrido del río es la reconstrucción de GeoPera. Los clips de testigos enlazan a sus publicaciones originales, y sus horas de captura no están verificadas.",
|
||||
"That story is not available here": "Esa historia no está disponible aquí",
|
||||
"DRAFT": "BORRADOR",
|
||||
"A draft, not saved as a story yet. Use SAVE TO STORIES in AUTHORING to save it.": "Un borrador, aún no guardado como historia. Usa GUARDAR EN STORIES en CREACIÓN para guardarlo."
|
||||
"A draft, not saved as a story yet. Use SAVE TO STORIES in AUTHORING to save it.": "Un borrador, aún no guardado como historia. Usa GUARDAR EN STORIES en CREACIÓN para guardarlo.",
|
||||
"Heading to next stop": "Hacia la próxima parada",
|
||||
"Arriving at a stop": "Llegando a una parada",
|
||||
"Stopped at a stop": "Detenido en una parada",
|
||||
"Wikipedia": "Wikipedia",
|
||||
"Wikidata": "Wikidata",
|
||||
"Website": "Sitio web",
|
||||
"Phase": "Fase",
|
||||
"Flight level": "Nivel de vuelo",
|
||||
"Mach": "Mach",
|
||||
"Squawk {code}": "Squawk {code}",
|
||||
"Signal": "Señal",
|
||||
"Civilian, in the air": "Civiles, en vuelo",
|
||||
"Military, in the air": "Militares, en vuelo",
|
||||
"On the ground": "En tierra",
|
||||
"Motion": "Movimiento",
|
||||
"Operator": "Operador",
|
||||
"Last reported": "Último informe",
|
||||
"Crowding": "Ocupación",
|
||||
"Class": "Clase",
|
||||
"Magnitude": "Magnitud",
|
||||
"Labels": "Etiquetas",
|
||||
"3D aircraft": "Aeronaves 3D",
|
||||
"M{mag} earthquake": "Sismo de magnitud {mag}",
|
||||
"Earthquake": "Sismo",
|
||||
"{n} kt winds": "Vientos de {n} kt",
|
||||
"Wildfire": "Incendio forestal",
|
||||
"{n} acres": "{n} acres",
|
||||
"{n}% contained": "{n} % contenido",
|
||||
"prescribed burn": "quema prescrita",
|
||||
"{count} satellite fire hits": {
|
||||
"one": "{count} detección satelital de fuego",
|
||||
"many": "{count} de detecciones satelitales de fuego",
|
||||
"other": "{count} detecciones satelitales de fuego"
|
||||
},
|
||||
"last day": "último día",
|
||||
"Conditions unknown": "Condiciones desconocidas",
|
||||
"Partly cloudy": "Parcialmente nublado",
|
||||
"Overcast": "Cubierto",
|
||||
"Fog": "Niebla",
|
||||
"Drizzle": "Llovizna",
|
||||
"Rain": "Lluvia",
|
||||
"Snow": "Nieve",
|
||||
"Rain showers": "Chubascos",
|
||||
"Snow showers": "Chubascos de nieve",
|
||||
"Thunderstorm": "Tormenta eléctrica",
|
||||
"Mixed conditions": "Condiciones variables",
|
||||
"Search {name} and nearby": "Buscar en {name} y alrededores",
|
||||
"Search what is in view": "Buscar en lo que está a la vista",
|
||||
"Close Context search": "Cerrar la búsqueda en Contexto",
|
||||
"Search in Context": "Buscar en Contexto",
|
||||
"Close search": "Cerrar búsqueda",
|
||||
"Shrink Context back to a panel": "Reducir Contexto a un panel",
|
||||
"Expand Context to a full-height column": "Ampliar Contexto a una columna de altura completa",
|
||||
"Context tabs": "Pestañas de Contexto",
|
||||
"Inspector": "Inspector",
|
||||
"Properties": "Propiedades",
|
||||
"Level": "Nivel",
|
||||
"Last {n} min": "Últimos {n} min",
|
||||
"Just now": "Justo ahora",
|
||||
"Since selected": "Desde la selección",
|
||||
"Altitude": "Altitud",
|
||||
"Heading": "Rumbo",
|
||||
"Field of view": "Campo de visión",
|
||||
"Camera frame": "Imagen de la cámara",
|
||||
"Acquiring frame…": "Obteniendo imagen…",
|
||||
"Show a bigger view": "Ver en grande",
|
||||
"Camera view": "Vista de la cámara",
|
||||
"More info": "Más información",
|
||||
"{n} s ago": "hace {n} s",
|
||||
"{n} min ago": "hace {n} min",
|
||||
"{n} h ago": "hace {n} h",
|
||||
"{n} d ago": "hace {n} d",
|
||||
"Out of feed · last reading": "Fuera del feed · última lectura",
|
||||
"Live · {age}": "En vivo · {age}",
|
||||
"{n} m": "{n} m",
|
||||
"{n} km": "{n} km",
|
||||
"updated {age}": "actualizado {age}",
|
||||
"Selected on the map": "Seleccionado en el mapa",
|
||||
"Close card": "Cerrar ficha",
|
||||
"{n}% flown": "{n} % recorrido",
|
||||
"to go": "restantes",
|
||||
"The scheduled route for this flight number does not match where the plane is; it may be another leg of the same flight.": "La ruta programada de este número de vuelo no coincide con la posición del avión; puede ser otro tramo del mismo vuelo.",
|
||||
"Scheduled · unverified: does not match where the plane is": "Programado · sin verificar: no coincide con la posición del avión",
|
||||
"Nothing in this item’s details matches “{text}”.": "Nada en los detalles de este elemento coincide con «{text}».",
|
||||
"Matching details": "Detalles coincidentes",
|
||||
"Enter orbital view": "Entrar en la vista orbital",
|
||||
"Enter Cockpit": "Entrar en la cabina",
|
||||
"Fly to": "Volar hasta",
|
||||
"Following": "Siguiendo",
|
||||
"Follow": "Seguir",
|
||||
"Ask GEV about {name}": "Preguntar a GEV sobre {name}",
|
||||
"Flights within {radius}": "Vuelos en {radius}",
|
||||
"No flights within {radius} from the layers that are on.": "No hay vuelos en {radius} en las capas activas.",
|
||||
"Vessels within {radius}": "Buques en {radius}",
|
||||
"No vessels within {radius} from the layers that are on.": "No hay buques en {radius} en las capas activas.",
|
||||
"Cloud": "Nubosidad",
|
||||
"Visibility": "Visibilidad",
|
||||
"Conditions here": "Condiciones aquí",
|
||||
"feels {n}°": "sensación {n}°",
|
||||
"Reading conditions here…": "Leyendo las condiciones aquí…",
|
||||
"No weather reading here.": "No hay datos del tiempo aquí.",
|
||||
"Local solar time": "Hora solar local",
|
||||
"Nearby radius": "Radio cercano",
|
||||
"How far out the nearby lists look": "Hasta dónde llegan las listas cercanas",
|
||||
"Hazards within {radius}": "Peligros en {radius}",
|
||||
"Turns the layer on": "Activa la capa",
|
||||
"No earthquakes, tropical storms or wildfires reported within {radius}.": "No hay sismos, tormentas tropicales ni incendios forestales en {radius}.",
|
||||
"Broadcast alerts within {radius}": "Alertas emitidas en {radius}",
|
||||
"Also within {radius}": "También en {radius}",
|
||||
"Local news": "Noticias locales",
|
||||
"Sundial · {time} solar · sun {deg}° {dir}": "Reloj de sol · {time} solar · sol a {deg}° {dir}",
|
||||
"Sundial · {time} solar · sun below the horizon": "Reloj de sol · {time} solar · sol bajo el horizonte",
|
||||
"{count} things": {
|
||||
"one": "{count} elemento",
|
||||
"many": "{count} de elementos",
|
||||
"other": "{count} elementos"
|
||||
},
|
||||
"{count} layers": {
|
||||
"one": "{count} capa",
|
||||
"many": "{count} de capas",
|
||||
"other": "{count} capas"
|
||||
},
|
||||
"{things} in view from {layers}": "{things} a la vista de {layers}",
|
||||
"{n} km up": "a {n} km de altura",
|
||||
"{n} m up": "a {n} m de altura",
|
||||
"This view": "Esta vista",
|
||||
"Day": "Día",
|
||||
"Twilight": "Crepúsculo",
|
||||
"Night": "Noche",
|
||||
"Daylight": "Luz del día",
|
||||
"sun {n}°": "sol {n}°",
|
||||
"Of {n} read, {total} loaded": "De {n} leídos, {total} cargados",
|
||||
"Of all {n}": "De los {n}",
|
||||
"Of {n} in view": "De {n} a la vista",
|
||||
"Error": "Error",
|
||||
"Stale": "Desactualizado",
|
||||
"In view": "A la vista",
|
||||
"Globe view": "Vista del globo",
|
||||
"Nothing selected": "Nada seleccionado",
|
||||
"Worldwide now": "En el mundo ahora",
|
||||
"Turn on {name}": "Activar {name}",
|
||||
"{n} loaded": "{n} cargados",
|
||||
"{n} in view": "{n} a la vista",
|
||||
"Turn off {name}": "Desactivar {name}",
|
||||
"Camera height": "Altura de la cámara",
|
||||
"Nothing in view matches “{text}”.": "Nada a la vista coincide con «{text}».",
|
||||
"Nothing from the layers that are on is in view here. Zoom out to see more.": "Nada de las capas activas está a la vista aquí. Aleja el zoom para ver más.",
|
||||
"No loaded layer has anything in view. Turn some on in Data Layers.": "Ninguna capa cargada tiene nada a la vista. Activa algunas en Capas de datos.",
|
||||
"Places in view": "Lugares a la vista",
|
||||
"Show here": "Mostrar aquí",
|
||||
"Ask GEV what's here": "Preguntar a GEV qué hay aquí",
|
||||
"aircraft": "aeronave",
|
||||
"vessel": "buque",
|
||||
"launch": "lanzamiento",
|
||||
"fire": "incendio",
|
||||
"Fire detection": "Detección de fuego",
|
||||
"fire perimeter": "perímetro de incendio",
|
||||
"earthquake": "sismo",
|
||||
"storm": "tormenta",
|
||||
"air quality station": "estación de calidad del aire",
|
||||
"installation": "instalación",
|
||||
"dam": "presa",
|
||||
"data centre": "centro de datos",
|
||||
"place": "lugar",
|
||||
"vehicle": "vehículo",
|
||||
"bike station": "estación de bicicletas",
|
||||
"plate reader": "lector de matrículas",
|
||||
"camera": "cámara",
|
||||
"airspace": "espacio aéreo",
|
||||
"sighting": "avistamiento",
|
||||
"Callsign": "Indicativo",
|
||||
"Registration": "Matrícula",
|
||||
"Aircraft class": "Clase de aeronave",
|
||||
"Course": "Rumbo",
|
||||
"Vertical rate": "Velocidad vertical",
|
||||
"Squawk": "Squawk",
|
||||
"Emergency": "Emergencia",
|
||||
"Last contact": "Último contacto",
|
||||
"Ship type": "Tipo de buque",
|
||||
"Destination": "Destino",
|
||||
"Depth": "Profundidad",
|
||||
"Time": "Hora",
|
||||
"Place": "Lugar",
|
||||
"Fire power": "Potencia del fuego",
|
||||
"Satellite": "Satélite",
|
||||
"Sensor": "Sensor",
|
||||
"Detected": "Detectado",
|
||||
"Contained": "Contenido",
|
||||
"Discovered": "Descubierto",
|
||||
"Basin": "Cuenca",
|
||||
"Index": "Índice",
|
||||
"Health risk": "Riesgo para la salud",
|
||||
"Bikes": "Bicicletas",
|
||||
"Docks": "Anclajes",
|
||||
"Floor": "Límite inferior",
|
||||
"Ceiling": "Límite superior",
|
||||
"Active": "Activo",
|
||||
"NORAD ID": "ID NORAD",
|
||||
"MMSI": "MMSI",
|
||||
"ICAO24": "ICAO24",
|
||||
"Capacity": "Capacidad",
|
||||
"Output": "Producción",
|
||||
"River": "Río",
|
||||
"City": "Ciudad",
|
||||
"State": "Estado",
|
||||
"Street": "Calle",
|
||||
"Opened": "Inaugurado",
|
||||
"Height": "Altura",
|
||||
"IT load": "Carga de TI",
|
||||
"Waterway": "Vía fluvial",
|
||||
"Military": "Militar",
|
||||
"Land use": "Uso del suelo",
|
||||
"Telecom": "Telecomunicaciones",
|
||||
"feature": "elemento",
|
||||
"Empty": "Vacío",
|
||||
"Many seats free": "Muchos asientos libres",
|
||||
"Few seats free": "Pocos asientos libres",
|
||||
"Standing room only": "Solo de pie",
|
||||
"Crowded": "Lleno",
|
||||
"Not taking passengers": "No admite pasajeros",
|
||||
"Major hurricane": "Huracán mayor",
|
||||
"Typhoon": "Tifón",
|
||||
"Super typhoon": "Supertifón",
|
||||
"Tropical cyclone": "Ciclón tropical",
|
||||
"Prescribed burn": "Quema prescrita",
|
||||
"Atlantic": "Atlántico",
|
||||
"Eastern Pacific": "Pacífico oriental",
|
||||
"Central Pacific": "Pacífico central",
|
||||
"Western Pacific": "Pacífico occidental",
|
||||
"Indian Ocean": "Océano Índico",
|
||||
"Southern Hemisphere": "Hemisferio sur",
|
||||
"Cable tram": "Tranvía de cable",
|
||||
"Aerial lift": "Teleférico",
|
||||
"Fishing": "Pesca",
|
||||
"Tug": "Remolcador",
|
||||
"Sailing": "Velero",
|
||||
"Pleasure craft": "Embarcación de recreo",
|
||||
"Pilot vessel": "Embarcación de prácticos",
|
||||
"Search and rescue": "Búsqueda y rescate",
|
||||
"Law enforcement": "Fuerzas del orden",
|
||||
"High-speed craft": "Embarcación de alta velocidad",
|
||||
"Passenger": "Pasajeros",
|
||||
"Cargo": "Carga",
|
||||
"Tanker": "Petrolero",
|
||||
"Yes": "Sí",
|
||||
"{n} ft": "{n} ft",
|
||||
"{n} km/s": "{n} km/s",
|
||||
"{n} km/h": "{n} km/h",
|
||||
"{n} kt": "{n} kn",
|
||||
"{n} ft/min": "{n} ft/min",
|
||||
"{n}°": "{n}°",
|
||||
"M {n}": "M {n}",
|
||||
"{n} MW": "{n} MW",
|
||||
"{n}%": "{n} %",
|
||||
"{n} hPa": "{n} hPa",
|
||||
"Hijack (squawk 7500)": "Secuestro (squawk 7500)",
|
||||
"Radio failure (squawk 7600)": "Fallo de radio (squawk 7600)",
|
||||
"Emergency (squawk 7700)": "Emergencia (squawk 7700)",
|
||||
"Emergency: {kind}": "Emergencia: {kind}",
|
||||
"Emergency declared": "Emergencia declarada",
|
||||
"Tsunami warning issued": "Alerta de tsunami emitida",
|
||||
"VFR, no flight plan": "VFR, sin plan de vuelo",
|
||||
"VFR conspicuity": "Código VFR de visibilidad",
|
||||
"IFR, no code yet": "IFR, aún sin código",
|
||||
"Hijack": "Secuestro",
|
||||
"Climbing {n} ft/min": "Ascendiendo a {n} ft/min",
|
||||
"Descending {n} ft/min": "Descendiendo a {n} ft/min",
|
||||
"Cruising, level": "Crucero, nivelado",
|
||||
"Airliners": "Aviones comerciales",
|
||||
"Widebodies": "Aviones de fuselaje ancho",
|
||||
"Business jets": "Jets ejecutivos",
|
||||
"Helicopters": "Helicópteros",
|
||||
"Turboprops": "Turbohélices",
|
||||
"Fast jets": "Reactores rápidos",
|
||||
"Four-engine jets": "Cuatrimotores",
|
||||
"M6 and above": "M6 o más",
|
||||
"M5 to 6": "M5 a 6",
|
||||
"M4 to 5": "M4 a 5",
|
||||
"Below M4": "Menos de M4",
|
||||
"{kind} {name}": "{kind} {name}",
|
||||
"place|Country": "País",
|
||||
"altitude|Level": "Nivelado",
|
||||
"{h} h {m} min": "{h} h {m} min",
|
||||
"{n} min": "{n} min",
|
||||
"{speed} {direction}": "{speed} del {direction}",
|
||||
"{n} mm": "{n} mm"
|
||||
}
|
||||
+288
-2
@@ -3732,7 +3732,7 @@
|
||||
"Under 1 min": "Moins de 1 min",
|
||||
"1 min or more": "1 min ou plus",
|
||||
"Shots": "Plans",
|
||||
"Layers on": "Couches actives",
|
||||
"Layers on": "Couches activées",
|
||||
"Stories": "Récits",
|
||||
"NEW": "NOUVEAU",
|
||||
"GEV Stories": "Récits GEV",
|
||||
@@ -3893,5 +3893,291 @@
|
||||
"A visualization of the 26 August 2026 Bhote Koshi outburst flood, not an official hazard model. The historical (2021) and post-event views are Vantor WorldView imagery; the river’s path is GeoPera’s reconstruction. Witness clips link to their original posts, and their capture times are unverified.": "Une visualisation de la crue par débâcle de la Bhote Koshi du 26 août 2026, et non un modèle officiel de risque. Les vues historiques (2021) et postérieures à l'événement sont des images Vantor WorldView ; le tracé de la rivière est la reconstitution de GeoPera. Les vidéos de témoins renvoient à leurs publications d'origine, et leurs heures de prise de vue ne sont pas vérifiées.",
|
||||
"That story is not available here": "Ce récit n'est pas disponible ici",
|
||||
"DRAFT": "BROUILLON",
|
||||
"A draft, not saved as a story yet. Use SAVE TO STORIES in AUTHORING to save it.": "Un brouillon, pas encore enregistré comme récit. Utilisez ENREGISTRER DANS STORIES dans CRÉATION pour l'enregistrer."
|
||||
"A draft, not saved as a story yet. Use SAVE TO STORIES in AUTHORING to save it.": "Un brouillon, pas encore enregistré comme récit. Utilisez ENREGISTRER DANS STORIES dans CRÉATION pour l'enregistrer.",
|
||||
"Heading to next stop": "Vers le prochain arrêt",
|
||||
"Arriving at a stop": "Arrive à un arrêt",
|
||||
"Stopped at a stop": "À l’arrêt",
|
||||
"Wikipedia": "Wikipédia",
|
||||
"Wikidata": "Wikidata",
|
||||
"Website": "Site web",
|
||||
"Phase": "Phase de vol",
|
||||
"Flight level": "Niveau de vol",
|
||||
"Mach": "Mach",
|
||||
"Squawk {code}": "Squawk {code}",
|
||||
"Signal": "Signal",
|
||||
"Civilian, in the air": "Civils, en vol",
|
||||
"Military, in the air": "Militaires, en vol",
|
||||
"On the ground": "Au sol",
|
||||
"Motion": "Mouvement",
|
||||
"Operator": "Exploitant",
|
||||
"Last reported": "Dernier signalement",
|
||||
"Crowding": "Affluence",
|
||||
"Class": "Classe",
|
||||
"Magnitude": "Magnitude",
|
||||
"Labels": "Libellés",
|
||||
"3D aircraft": "Avions 3D",
|
||||
"M{mag} earthquake": "Séisme de magnitude {mag}",
|
||||
"Earthquake": "Séisme",
|
||||
"{n} kt winds": "Vents de {n} nœuds",
|
||||
"Wildfire": "Feu de forêt",
|
||||
"{n} acres": "{n} acres",
|
||||
"{n}% contained": "Maîtrisé à {n} %",
|
||||
"prescribed burn": "brûlage dirigé",
|
||||
"{count} satellite fire hits": {
|
||||
"one": "{count} détection de feu par satellite",
|
||||
"many": "{count} de détections de feu par satellite",
|
||||
"other": "{count} détections de feu par satellite"
|
||||
},
|
||||
"last day": "dernières 24 h",
|
||||
"Conditions unknown": "Conditions inconnues",
|
||||
"Partly cloudy": "Partiellement nuageux",
|
||||
"Overcast": "Couvert",
|
||||
"Fog": "Brouillard",
|
||||
"Drizzle": "Bruine",
|
||||
"Rain": "Pluie",
|
||||
"Snow": "Neige",
|
||||
"Rain showers": "Averses de pluie",
|
||||
"Snow showers": "Averses de neige",
|
||||
"Thunderstorm": "Orage",
|
||||
"Mixed conditions": "Temps variable",
|
||||
"Search {name} and nearby": "Rechercher dans {name} et alentour",
|
||||
"Search what is in view": "Rechercher dans la vue",
|
||||
"Close Context search": "Fermer la recherche du Contexte",
|
||||
"Search in Context": "Rechercher dans le Contexte",
|
||||
"Close search": "Fermer la recherche",
|
||||
"Shrink Context back to a panel": "Réduire le Contexte en panneau",
|
||||
"Expand Context to a full-height column": "Agrandir le Contexte en colonne pleine hauteur",
|
||||
"Context tabs": "Onglets du Contexte",
|
||||
"Inspector": "Inspecteur",
|
||||
"Properties": "Propriétés",
|
||||
"Level": "Niveau",
|
||||
"Last {n} min": "{n} dernières min",
|
||||
"Just now": "À l’instant",
|
||||
"Since selected": "Depuis la sélection",
|
||||
"Altitude": "Altitude",
|
||||
"Heading": "Cap",
|
||||
"Field of view": "Champ de vision",
|
||||
"Camera frame": "Image de la caméra",
|
||||
"Acquiring frame…": "Récupération de l’image…",
|
||||
"Show a bigger view": "Agrandir",
|
||||
"Camera view": "Vue de la caméra",
|
||||
"More info": "Plus d’infos",
|
||||
"{n} s ago": "il y a {n} s",
|
||||
"{n} min ago": "il y a {n} min",
|
||||
"{n} h ago": "il y a {n} h",
|
||||
"{n} d ago": "il y a {n} j",
|
||||
"Out of feed · last reading": "Hors du flux · dernière lecture",
|
||||
"Live · {age}": "Direct · {age}",
|
||||
"{n} m": "{n} m",
|
||||
"{n} km": "{n} km",
|
||||
"updated {age}": "mis à jour {age}",
|
||||
"Selected on the map": "Sélection sur la carte",
|
||||
"Close card": "Fermer la fiche",
|
||||
"{n}% flown": "{n} % parcouru",
|
||||
"to go": "restants",
|
||||
"The scheduled route for this flight number does not match where the plane is; it may be another leg of the same flight.": "La route prévue pour ce numéro de vol ne correspond pas à la position de l’avion ; il peut s’agir d’une autre étape du même vol.",
|
||||
"Scheduled · unverified: does not match where the plane is": "Prévu · non vérifié : ne correspond pas à la position de l’avion",
|
||||
"Nothing in this item’s details matches “{text}”.": "Rien dans les détails de cet élément ne correspond à « {text} ».",
|
||||
"Matching details": "Détails correspondants",
|
||||
"Enter orbital view": "Passer en vue orbitale",
|
||||
"Enter Cockpit": "Entrer dans le cockpit",
|
||||
"Fly to": "Rejoindre",
|
||||
"Following": "Suivi actif",
|
||||
"Follow": "Suivre",
|
||||
"Ask GEV about {name}": "Interroger GEV sur {name}",
|
||||
"Flights within {radius}": "Vols dans un rayon de {radius}",
|
||||
"No flights within {radius} from the layers that are on.": "Aucun vol dans un rayon de {radius} dans les couches activées.",
|
||||
"Vessels within {radius}": "Navires dans un rayon de {radius}",
|
||||
"No vessels within {radius} from the layers that are on.": "Aucun navire dans un rayon de {radius} dans les couches activées.",
|
||||
"Cloud": "Nébulosité",
|
||||
"Visibility": "Visibilité",
|
||||
"Conditions here": "Conditions ici",
|
||||
"feels {n}°": "ressenti {n}°",
|
||||
"Reading conditions here…": "Lecture des conditions ici…",
|
||||
"No weather reading here.": "Aucune donnée météo ici.",
|
||||
"Local solar time": "Heure solaire locale",
|
||||
"Nearby radius": "Rayon de proximité",
|
||||
"How far out the nearby lists look": "Jusqu’où vont les listes de proximité",
|
||||
"Hazards within {radius}": "Risques dans un rayon de {radius}",
|
||||
"Turns the layer on": "Active la couche",
|
||||
"No earthquakes, tropical storms or wildfires reported within {radius}.": "Aucun séisme, tempête tropicale ni feu de forêt signalé dans un rayon de {radius}.",
|
||||
"Broadcast alerts within {radius}": "Alertes diffusées dans un rayon de {radius}",
|
||||
"Also within {radius}": "Aussi dans un rayon de {radius}",
|
||||
"Local news": "Actualités locales",
|
||||
"Sundial · {time} solar · sun {deg}° {dir}": "Cadran solaire · {time} solaire · soleil à {deg}° {dir}",
|
||||
"Sundial · {time} solar · sun below the horizon": "Cadran solaire · {time} solaire · soleil sous l’horizon",
|
||||
"{count} things": {
|
||||
"one": "{count} élément",
|
||||
"many": "{count} d’éléments",
|
||||
"other": "{count} éléments"
|
||||
},
|
||||
"{count} layers": {
|
||||
"one": "{count} couche",
|
||||
"many": "{count} de couches",
|
||||
"other": "{count} couches"
|
||||
},
|
||||
"{things} in view from {layers}": "{things} visibles depuis {layers}",
|
||||
"{n} km up": "à {n} km d’altitude",
|
||||
"{n} m up": "à {n} m d’altitude",
|
||||
"This view": "Cette vue",
|
||||
"Day": "Jour",
|
||||
"Twilight": "Crépuscule",
|
||||
"Night": "Nuit",
|
||||
"Daylight": "Lumière du jour",
|
||||
"sun {n}°": "soleil {n}°",
|
||||
"Of {n} read, {total} loaded": "Sur {n} lus, {total} chargés",
|
||||
"Of all {n}": "Sur les {n}",
|
||||
"Of {n} in view": "Sur {n} visibles",
|
||||
"Error": "Erreur",
|
||||
"Stale": "Obsolète",
|
||||
"In view": "Dans la vue",
|
||||
"Globe view": "Vue du globe",
|
||||
"Nothing selected": "Aucune sélection",
|
||||
"Worldwide now": "Dans le monde en ce moment",
|
||||
"Turn on {name}": "Activer {name}",
|
||||
"{n} loaded": "{n} chargés",
|
||||
"{n} in view": "{n} visibles",
|
||||
"Turn off {name}": "Désactiver {name}",
|
||||
"Camera height": "Altitude de la caméra",
|
||||
"Nothing in view matches “{text}”.": "Rien dans la vue ne correspond à « {text} ».",
|
||||
"Nothing from the layers that are on is in view here. Zoom out to see more.": "Rien des couches activées n’est visible ici. Dézoomez pour en voir plus.",
|
||||
"No loaded layer has anything in view. Turn some on in Data Layers.": "Aucune couche chargée n’a rien de visible. Activez-en dans Couches.",
|
||||
"Places in view": "Lieux visibles",
|
||||
"Show here": "Afficher ici",
|
||||
"Ask GEV what's here": "Demander à GEV ce qu’il y a ici",
|
||||
"aircraft": "aéronef",
|
||||
"vessel": "navire",
|
||||
"launch": "lancement",
|
||||
"fire": "feu",
|
||||
"Fire detection": "Détection de feu",
|
||||
"fire perimeter": "périmètre de feu",
|
||||
"earthquake": "séisme",
|
||||
"storm": "tempête",
|
||||
"air quality station": "station de qualité de l’air",
|
||||
"installation": "installation",
|
||||
"dam": "barrage",
|
||||
"data centre": "centre de données",
|
||||
"place": "lieu",
|
||||
"vehicle": "véhicule",
|
||||
"bike station": "station de vélos",
|
||||
"plate reader": "lecteur de plaques",
|
||||
"camera": "caméra",
|
||||
"airspace": "espace aérien",
|
||||
"sighting": "observation",
|
||||
"Callsign": "Indicatif",
|
||||
"Registration": "Immatriculation",
|
||||
"Aircraft class": "Classe d’aéronef",
|
||||
"Course": "Route",
|
||||
"Vertical rate": "Vitesse verticale",
|
||||
"Squawk": "Squawk",
|
||||
"Emergency": "Urgence",
|
||||
"Last contact": "Dernier contact",
|
||||
"Ship type": "Type de navire",
|
||||
"Destination": "Destination",
|
||||
"Depth": "Profondeur",
|
||||
"Time": "Heure",
|
||||
"Place": "Lieu",
|
||||
"Fire power": "Puissance du feu",
|
||||
"Satellite": "Satellite",
|
||||
"Sensor": "Capteur",
|
||||
"Detected": "Détecté",
|
||||
"Contained": "Maîtrisé",
|
||||
"Discovered": "Découvert",
|
||||
"Basin": "Bassin",
|
||||
"Index": "Indice",
|
||||
"Health risk": "Risque sanitaire",
|
||||
"Bikes": "Vélos",
|
||||
"Docks": "Bornes",
|
||||
"Floor": "Plancher",
|
||||
"Ceiling": "Plafond",
|
||||
"Active": "Actif",
|
||||
"NORAD ID": "ID NORAD",
|
||||
"MMSI": "MMSI",
|
||||
"ICAO24": "ICAO24",
|
||||
"Capacity": "Capacité",
|
||||
"Output": "Production",
|
||||
"River": "Rivière",
|
||||
"City": "Ville",
|
||||
"State": "État",
|
||||
"Street": "Rue",
|
||||
"Opened": "Ouvert",
|
||||
"Height": "Hauteur",
|
||||
"IT load": "Charge informatique",
|
||||
"Waterway": "Voie d’eau",
|
||||
"Military": "Militaire",
|
||||
"Land use": "Occupation du sol",
|
||||
"Telecom": "Télécoms",
|
||||
"feature": "élément",
|
||||
"Empty": "Vide",
|
||||
"Many seats free": "Beaucoup de places libres",
|
||||
"Few seats free": "Peu de places libres",
|
||||
"Standing room only": "Places debout uniquement",
|
||||
"Crowded": "Bondé",
|
||||
"Not taking passengers": "Ne prend pas de passagers",
|
||||
"Major hurricane": "Ouragan majeur",
|
||||
"Typhoon": "Typhon",
|
||||
"Super typhoon": "Super typhon",
|
||||
"Tropical cyclone": "Cyclone tropical",
|
||||
"Prescribed burn": "Brûlage dirigé",
|
||||
"Atlantic": "Atlantique",
|
||||
"Eastern Pacific": "Pacifique Est",
|
||||
"Central Pacific": "Pacifique central",
|
||||
"Western Pacific": "Pacifique Ouest",
|
||||
"Indian Ocean": "Océan Indien",
|
||||
"Southern Hemisphere": "Hémisphère sud",
|
||||
"Cable tram": "Tramway à câble",
|
||||
"Aerial lift": "Remontée par câble",
|
||||
"Fishing": "Pêche",
|
||||
"Tug": "Remorqueur",
|
||||
"Sailing": "Voilier",
|
||||
"Pleasure craft": "Navire de plaisance",
|
||||
"Pilot vessel": "Bateau pilote",
|
||||
"Search and rescue": "Recherche et sauvetage",
|
||||
"Law enforcement": "Forces de l’ordre",
|
||||
"High-speed craft": "Navire à grande vitesse",
|
||||
"Passenger": "Passagers",
|
||||
"Cargo": "Cargo",
|
||||
"Tanker": "Pétrolier",
|
||||
"Yes": "Oui",
|
||||
"{n} ft": "{n} ft",
|
||||
"{n} km/s": "{n} km/s",
|
||||
"{n} km/h": "{n} km/h",
|
||||
"{n} kt": "{n} nd",
|
||||
"{n} ft/min": "{n} ft/min",
|
||||
"{n}°": "{n}°",
|
||||
"M {n}": "M {n}",
|
||||
"{n} MW": "{n} MW",
|
||||
"{n}%": "{n} %",
|
||||
"{n} hPa": "{n} hPa",
|
||||
"Hijack (squawk 7500)": "Détournement (squawk 7500)",
|
||||
"Radio failure (squawk 7600)": "Panne radio (squawk 7600)",
|
||||
"Emergency (squawk 7700)": "Urgence (squawk 7700)",
|
||||
"Emergency: {kind}": "Urgence : {kind}",
|
||||
"Emergency declared": "Urgence déclarée",
|
||||
"Tsunami warning issued": "Alerte au tsunami émise",
|
||||
"VFR, no flight plan": "VFR, sans plan de vol",
|
||||
"VFR conspicuity": "Code VFR de visibilité",
|
||||
"IFR, no code yet": "IFR, pas encore de code",
|
||||
"Hijack": "Détournement",
|
||||
"Climbing {n} ft/min": "En montée à {n} ft/min",
|
||||
"Descending {n} ft/min": "En descente à {n} ft/min",
|
||||
"Cruising, level": "En croisière, palier",
|
||||
"Airliners": "Avions de ligne",
|
||||
"Widebodies": "Gros-porteurs",
|
||||
"Business jets": "Jets d’affaires",
|
||||
"Helicopters": "Hélicoptères",
|
||||
"Turboprops": "Turbopropulseurs",
|
||||
"Fast jets": "Avions de chasse",
|
||||
"Four-engine jets": "Quadriréacteurs",
|
||||
"M6 and above": "M6 et plus",
|
||||
"M5 to 6": "M5 à 6",
|
||||
"M4 to 5": "M4 à 5",
|
||||
"Below M4": "Moins de M4",
|
||||
"{kind} {name}": "{kind} {name}",
|
||||
"place|Country": "Pays",
|
||||
"altitude|Level": "Stable",
|
||||
"{h} h {m} min": "{h} h {m} min",
|
||||
"{n} min": "{n} min",
|
||||
"{speed} {direction}": "{speed} de {direction}",
|
||||
"{n} mm": "{n} mm"
|
||||
}
|
||||
+287
-1
@@ -3893,5 +3893,291 @@
|
||||
"A visualization of the 26 August 2026 Bhote Koshi outburst flood, not an official hazard model. The historical (2021) and post-event views are Vantor WorldView imagery; the river’s path is GeoPera’s reconstruction. Witness clips link to their original posts, and their capture times are unverified.": "הדמיה של שיטפון הפריצה ב-Bhote Koshi ב-26 באוגוסט 2026, ולא מודל סיכונים רשמי. המראות ההיסטוריים (2021) ומלאחר האירוע הם צילומי Vantor WorldView; מסלול הנהר הוא השחזור של GeoPera. קטעי העדים מקשרים לפוסטים המקוריים שלהם, וזמני הצילום שלהם לא אומתו.",
|
||||
"That story is not available here": "הסיפור הזה אינו זמין כאן",
|
||||
"DRAFT": "טיוטה",
|
||||
"A draft, not saved as a story yet. Use SAVE TO STORIES in AUTHORING to save it.": "טיוטה שעדיין לא נשמרה כסיפור. השתמשו ב„שמירה ב-STORIES” ב„יצירה” כדי לשמור אותה."
|
||||
"A draft, not saved as a story yet. Use SAVE TO STORIES in AUTHORING to save it.": "טיוטה שעדיין לא נשמרה כסיפור. השתמשו ב„שמירה ב-STORIES” ב„יצירה” כדי לשמור אותה.",
|
||||
"Heading to next stop": "בדרך לתחנה הבאה",
|
||||
"Arriving at a stop": "מגיע לתחנה",
|
||||
"Stopped at a stop": "עומד בתחנה",
|
||||
"Wikipedia": "ויקיפדיה",
|
||||
"Wikidata": "ויקינתונים",
|
||||
"Website": "אתר",
|
||||
"Phase": "שלב",
|
||||
"Flight level": "גובה טיסה",
|
||||
"Mach": "מאך",
|
||||
"Squawk {code}": "סקוואק {code}",
|
||||
"Signal": "אות",
|
||||
"Civilian, in the air": "אזרחיים, באוויר",
|
||||
"Military, in the air": "צבאיים, באוויר",
|
||||
"On the ground": "על הקרקע",
|
||||
"Motion": "תנועה",
|
||||
"Operator": "מפעיל",
|
||||
"Last reported": "דיווח אחרון",
|
||||
"Crowding": "עומס",
|
||||
"Class": "סוג",
|
||||
"Magnitude": "עוצמה",
|
||||
"Labels": "תוויות",
|
||||
"3D aircraft": "מטוסים בתלת־ממד",
|
||||
"M{mag} earthquake": "רעידת אדמה בעוצמה {mag}",
|
||||
"Earthquake": "רעידת אדמה",
|
||||
"{n} kt winds": "רוחות של {n} קשר",
|
||||
"Wildfire": "שריפת יער",
|
||||
"{n} acres": "{n} אקר",
|
||||
"{n}% contained": "{n}% בשליטה",
|
||||
"prescribed burn": "שריפה מבוקרת",
|
||||
"{count} satellite fire hits": {
|
||||
"one": "{count} זיהוי שריפה לווייני",
|
||||
"two": "{count} זיהויי שריפה לווייניים",
|
||||
"other": "{count} זיהויי שריפה לווייניים"
|
||||
},
|
||||
"last day": "היום האחרון",
|
||||
"Conditions unknown": "התנאים לא ידועים",
|
||||
"Partly cloudy": "מעונן חלקית",
|
||||
"Overcast": "מעונן",
|
||||
"Fog": "ערפל",
|
||||
"Drizzle": "טפטוף",
|
||||
"Rain": "גשם",
|
||||
"Snow": "שלג",
|
||||
"Rain showers": "ממטרי גשם",
|
||||
"Snow showers": "ממטרי שלג",
|
||||
"Thunderstorm": "סופת רעמים",
|
||||
"Mixed conditions": "תנאים משתנים",
|
||||
"Search {name} and nearby": "חיפוש ב־{name} ובסביבה",
|
||||
"Search what is in view": "חיפוש במה שבתצוגה",
|
||||
"Close Context search": "סגירת החיפוש בהקשר",
|
||||
"Search in Context": "חיפוש בהקשר",
|
||||
"Close search": "סגירת החיפוש",
|
||||
"Shrink Context back to a panel": "כיווץ ההקשר בחזרה ללוח",
|
||||
"Expand Context to a full-height column": "הרחבת ההקשר לעמודה בגובה מלא",
|
||||
"Context tabs": "לשוניות ההקשר",
|
||||
"Inspector": "בודק",
|
||||
"Properties": "מאפיינים",
|
||||
"Level": "רמה",
|
||||
"Last {n} min": "{n} הדקות האחרונות",
|
||||
"Just now": "כרגע",
|
||||
"Since selected": "מאז הבחירה",
|
||||
"Altitude": "גובה",
|
||||
"Heading": "כיוון",
|
||||
"Field of view": "שדה ראייה",
|
||||
"Camera frame": "פריים מהמצלמה",
|
||||
"Acquiring frame…": "מקבל פריים…",
|
||||
"Show a bigger view": "הצגה בגודל גדול יותר",
|
||||
"Camera view": "תצוגת המצלמה",
|
||||
"More info": "מידע נוסף",
|
||||
"{n} s ago": "לפני {n} שנ׳",
|
||||
"{n} min ago": "לפני {n} דק׳",
|
||||
"{n} h ago": "לפני {n} שע׳",
|
||||
"{n} d ago": "לפני {n} ימים",
|
||||
"Out of feed · last reading": "מחוץ להזנה · קריאה אחרונה",
|
||||
"Live · {age}": "חי · {age}",
|
||||
"{n} m": "{n} m",
|
||||
"{n} km": "{n} km",
|
||||
"updated {age}": "עודכן {age}",
|
||||
"Selected on the map": "נבחר במפה",
|
||||
"Close card": "סגירת הכרטיס",
|
||||
"{n}% flown": "{n}% מהדרך",
|
||||
"to go": "נותרו",
|
||||
"The scheduled route for this flight number does not match where the plane is; it may be another leg of the same flight.": "המסלול המתוכנן למספר הטיסה הזה לא תואם את מיקום המטוס; ייתכן שזה קטע אחר של אותה טיסה.",
|
||||
"Scheduled · unverified: does not match where the plane is": "מתוכנן · לא מאומת: לא תואם את מיקום המטוס",
|
||||
"Nothing in this item’s details matches “{text}”.": "אין בפרטי הפריט הזה התאמה ל־„{text}”.",
|
||||
"Matching details": "פרטים תואמים",
|
||||
"Enter orbital view": "כניסה לתצוגה המסלולית",
|
||||
"Enter Cockpit": "כניסה לתא הטייס",
|
||||
"Fly to": "טיסה אל",
|
||||
"Following": "במעקב",
|
||||
"Follow": "מעקב",
|
||||
"Ask GEV about {name}": "לשאול את GEV על {name}",
|
||||
"Flights within {radius}": "טיסות בטווח {radius}",
|
||||
"No flights within {radius} from the layers that are on.": "אין טיסות בטווח {radius} מהשכבות הפעילות.",
|
||||
"Vessels within {radius}": "כלי שיט בטווח {radius}",
|
||||
"No vessels within {radius} from the layers that are on.": "אין כלי שיט בטווח {radius} מהשכבות הפעילות.",
|
||||
"Cloud": "עננות",
|
||||
"Visibility": "ראות",
|
||||
"Conditions here": "התנאים כאן",
|
||||
"feels {n}°": "מורגש {n}°",
|
||||
"Reading conditions here…": "קורא את התנאים כאן…",
|
||||
"No weather reading here.": "אין כאן נתוני מזג אוויר.",
|
||||
"Local solar time": "זמן שמש מקומי",
|
||||
"Nearby radius": "רדיוס סביבה",
|
||||
"How far out the nearby lists look": "עד כמה רחוק מגיעות רשימות הסביבה",
|
||||
"Hazards within {radius}": "סכנות בטווח {radius}",
|
||||
"Turns the layer on": "מפעיל את השכבה",
|
||||
"No earthquakes, tropical storms or wildfires reported within {radius}.": "לא דווחו רעידות אדמה, סופות טרופיות או שריפות יער בטווח {radius}.",
|
||||
"Broadcast alerts within {radius}": "התרעות משודרות בטווח {radius}",
|
||||
"Also within {radius}": "גם בטווח {radius}",
|
||||
"Local news": "חדשות מקומיות",
|
||||
"Sundial · {time} solar · sun {deg}° {dir}": "שעון שמש · {time} זמן שמש · השמש {deg}° {dir}",
|
||||
"Sundial · {time} solar · sun below the horizon": "שעון שמש · {time} זמן שמש · השמש מתחת לאופק",
|
||||
"{count} things": {
|
||||
"one": "{count} פריט",
|
||||
"two": "{count} פריטים",
|
||||
"other": "{count} פריטים"
|
||||
},
|
||||
"{count} layers": {
|
||||
"one": "{count} שכבה",
|
||||
"two": "{count} שכבות",
|
||||
"other": "{count} שכבות"
|
||||
},
|
||||
"{things} in view from {layers}": "{things} בתצוגה, מתוך {layers}",
|
||||
"{n} km up": "בגובה {n} ק\"מ",
|
||||
"{n} m up": "בגובה {n} מ׳",
|
||||
"This view": "התצוגה הזו",
|
||||
"Day": "יום",
|
||||
"Twilight": "דמדומים",
|
||||
"Night": "לילה",
|
||||
"Daylight": "אור יום",
|
||||
"sun {n}°": "השמש {n}°",
|
||||
"Of {n} read, {total} loaded": "מתוך {n} שנקראו, {total} נטענו",
|
||||
"Of all {n}": "מתוך כל {n}",
|
||||
"Of {n} in view": "מתוך {n} בתצוגה",
|
||||
"Error": "שגיאה",
|
||||
"Stale": "לא עדכני",
|
||||
"In view": "בתצוגה",
|
||||
"Globe view": "תצוגת גלובוס",
|
||||
"Nothing selected": "לא נבחר דבר",
|
||||
"Worldwide now": "בעולם עכשיו",
|
||||
"Turn on {name}": "הפעלת {name}",
|
||||
"{n} loaded": "{n} נטענו",
|
||||
"{n} in view": "{n} בתצוגה",
|
||||
"Turn off {name}": "כיבוי {name}",
|
||||
"Camera height": "גובה המצלמה",
|
||||
"Nothing in view matches “{text}”.": "אין בתצוגה התאמה ל־„{text}”.",
|
||||
"Nothing from the layers that are on is in view here. Zoom out to see more.": "שום דבר מהשכבות הפעילות לא נמצא בתצוגה כאן. הקטינו את התצוגה כדי לראות יותר.",
|
||||
"No loaded layer has anything in view. Turn some on in Data Layers.": "לאף שכבה טעונה אין דבר בתצוגה. הפעילו שכבות בשכבות נתונים.",
|
||||
"Places in view": "מקומות בתצוגה",
|
||||
"Show here": "הצגה כאן",
|
||||
"Ask GEV what's here": "לשאול את GEV מה יש כאן",
|
||||
"aircraft": "כלי טיס",
|
||||
"vessel": "כלי שיט",
|
||||
"launch": "שיגור",
|
||||
"fire": "שריפה",
|
||||
"Fire detection": "זיהוי שריפה",
|
||||
"fire perimeter": "היקף שריפה",
|
||||
"earthquake": "רעידת אדמה",
|
||||
"storm": "סופה",
|
||||
"air quality station": "תחנת איכות אוויר",
|
||||
"installation": "מתקן",
|
||||
"dam": "סכר",
|
||||
"data centre": "מרכז נתונים",
|
||||
"place": "מקום",
|
||||
"vehicle": "כלי רכב",
|
||||
"bike station": "תחנת אופניים",
|
||||
"plate reader": "קורא לוחיות רישוי",
|
||||
"camera": "מצלמה",
|
||||
"airspace": "מרחב אווירי",
|
||||
"sighting": "תצפית",
|
||||
"Callsign": "אות קריאה",
|
||||
"Registration": "רישום",
|
||||
"Aircraft class": "סוג כלי טיס",
|
||||
"Course": "נתיב",
|
||||
"Vertical rate": "קצב אנכי",
|
||||
"Squawk": "סקוואק",
|
||||
"Emergency": "חירום",
|
||||
"Last contact": "קשר אחרון",
|
||||
"Ship type": "סוג כלי שיט",
|
||||
"Destination": "יעד",
|
||||
"Depth": "עומק",
|
||||
"Time": "זמן",
|
||||
"Place": "מקום",
|
||||
"Fire power": "עוצמת השריפה",
|
||||
"Satellite": "לוויין",
|
||||
"Sensor": "חיישן",
|
||||
"Detected": "זוהה",
|
||||
"Contained": "בשליטה",
|
||||
"Discovered": "התגלה",
|
||||
"Basin": "אגן",
|
||||
"Index": "מדד",
|
||||
"Health risk": "סיכון בריאותי",
|
||||
"Bikes": "אופניים",
|
||||
"Docks": "עמדות",
|
||||
"Floor": "גבול תחתון",
|
||||
"Ceiling": "גבול עליון",
|
||||
"Active": "פעיל",
|
||||
"NORAD ID": "מזהה NORAD",
|
||||
"MMSI": "MMSI",
|
||||
"ICAO24": "ICAO24",
|
||||
"Capacity": "קיבולת",
|
||||
"Output": "תפוקה",
|
||||
"River": "נהר",
|
||||
"City": "עיר",
|
||||
"State": "מדינה",
|
||||
"Street": "רחוב",
|
||||
"Opened": "נפתח",
|
||||
"Height": "גובה",
|
||||
"IT load": "עומס IT",
|
||||
"Waterway": "נתיב מים",
|
||||
"Military": "צבאי",
|
||||
"Land use": "שימוש בקרקע",
|
||||
"Telecom": "תקשורת",
|
||||
"feature": "פריט",
|
||||
"Empty": "ריק",
|
||||
"Many seats free": "מקומות פנויים רבים",
|
||||
"Few seats free": "מעט מקומות פנויים",
|
||||
"Standing room only": "מקומות עמידה בלבד",
|
||||
"Crowded": "צפוף",
|
||||
"Not taking passengers": "לא מעלה נוסעים",
|
||||
"Major hurricane": "הוריקן חזק",
|
||||
"Typhoon": "טייפון",
|
||||
"Super typhoon": "סופר־טייפון",
|
||||
"Tropical cyclone": "ציקלון טרופי",
|
||||
"Prescribed burn": "שריפה מבוקרת",
|
||||
"Atlantic": "האוקיינוס האטלנטי",
|
||||
"Eastern Pacific": "מזרח האוקיינוס השקט",
|
||||
"Central Pacific": "מרכז האוקיינוס השקט",
|
||||
"Western Pacific": "מערב האוקיינוס השקט",
|
||||
"Indian Ocean": "האוקיינוס ההודי",
|
||||
"Southern Hemisphere": "חצי הכדור הדרומי",
|
||||
"Cable tram": "חשמלית כבלים",
|
||||
"Aerial lift": "רכבל",
|
||||
"Fishing": "דיג",
|
||||
"Tug": "גוררת",
|
||||
"Sailing": "מפרשית",
|
||||
"Pleasure craft": "כלי שיט לפנאי",
|
||||
"Pilot vessel": "סירת נתבים",
|
||||
"Search and rescue": "חיפוש והצלה",
|
||||
"Law enforcement": "אכיפת חוק",
|
||||
"High-speed craft": "כלי שיט מהיר",
|
||||
"Passenger": "נוסעים",
|
||||
"Cargo": "מטען",
|
||||
"Tanker": "מכלית",
|
||||
"Yes": "כן",
|
||||
"{n} ft": "{n} ft",
|
||||
"{n} km/s": "{n} km/s",
|
||||
"{n} km/h": "{n} km/h",
|
||||
"{n} kt": "{n} kt",
|
||||
"{n} ft/min": "{n} ft/min",
|
||||
"{n}°": "{n}°",
|
||||
"M {n}": "M {n}",
|
||||
"{n} MW": "{n} MW",
|
||||
"{n}%": "{n}%",
|
||||
"{n} hPa": "{n} hPa",
|
||||
"Hijack (squawk 7500)": "חטיפה (סקוואק 7500)",
|
||||
"Radio failure (squawk 7600)": "תקלת קשר (סקוואק 7600)",
|
||||
"Emergency (squawk 7700)": "חירום (סקוואק 7700)",
|
||||
"Emergency: {kind}": "חירום: {kind}",
|
||||
"Emergency declared": "הוכרז מצב חירום",
|
||||
"Tsunami warning issued": "הוצאה אזהרת צונאמי",
|
||||
"VFR, no flight plan": "VFR, ללא תוכנית טיסה",
|
||||
"VFR conspicuity": "קוד VFR כללי",
|
||||
"IFR, no code yet": "IFR, עדיין ללא קוד",
|
||||
"Hijack": "חטיפה",
|
||||
"Climbing {n} ft/min": "מטפס {n} ft/min",
|
||||
"Descending {n} ft/min": "יורד {n} ft/min",
|
||||
"Cruising, level": "שיוט, גובה קבוע",
|
||||
"Airliners": "מטוסי נוסעים",
|
||||
"Widebodies": "מטוסי גוף רחב",
|
||||
"Business jets": "מטוסי מנהלים",
|
||||
"Helicopters": "מסוקים",
|
||||
"Turboprops": "מטוסי טורבו־פרופ",
|
||||
"Fast jets": "מטוסי קרב",
|
||||
"Four-engine jets": "מטוסים ארבעה־מנועיים",
|
||||
"M6 and above": "M6 ומעלה",
|
||||
"M5 to 6": "M5 עד 6",
|
||||
"M4 to 5": "M4 עד 5",
|
||||
"Below M4": "מתחת ל־M4",
|
||||
"{kind} {name}": "{kind} {name}",
|
||||
"place|Country": "מדינה",
|
||||
"altitude|Level": "יציב",
|
||||
"{h} h {m} min": "{h} שע׳ {m} דק׳",
|
||||
"{n} min": "{n} דק׳",
|
||||
"{speed} {direction}": "{speed} מ־{direction}",
|
||||
"{n} mm": "{n} מ״מ"
|
||||
}
|
||||
+287
-1
@@ -3893,5 +3893,291 @@
|
||||
"A visualization of the 26 August 2026 Bhote Koshi outburst flood, not an official hazard model. The historical (2021) and post-event views are Vantor WorldView imagery; the river’s path is GeoPera’s reconstruction. Witness clips link to their original posts, and their capture times are unverified.": "Una visualizzazione dell'alluvione da rottura del Bhote Koshi del 26 agosto 2026, non un modello ufficiale di pericolosità. Le viste storiche (2021) e successive all'evento sono immagini Vantor WorldView; il percorso del fiume è la ricostruzione di GeoPera. I video dei testimoni rimandano ai post originali, e i loro orari di ripresa non sono verificati.",
|
||||
"That story is not available here": "Questa storia non è disponibile qui",
|
||||
"DRAFT": "BOZZA",
|
||||
"A draft, not saved as a story yet. Use SAVE TO STORIES in AUTHORING to save it.": "Una bozza, non ancora salvata come storia. Usa SALVA IN STORIES in CREAZIONE per salvarla."
|
||||
"A draft, not saved as a story yet. Use SAVE TO STORIES in AUTHORING to save it.": "Una bozza, non ancora salvata come storia. Usa SALVA IN STORIES in CREAZIONE per salvarla.",
|
||||
"Heading to next stop": "Verso la prossima fermata",
|
||||
"Arriving at a stop": "In arrivo a una fermata",
|
||||
"Stopped at a stop": "Fermo a una fermata",
|
||||
"Wikipedia": "Wikipedia",
|
||||
"Wikidata": "Wikidata",
|
||||
"Website": "Sito web",
|
||||
"Phase": "Fase",
|
||||
"Flight level": "Livello di volo",
|
||||
"Mach": "Mach",
|
||||
"Squawk {code}": "Squawk {code}",
|
||||
"Signal": "Segnale",
|
||||
"Civilian, in the air": "Civili, in volo",
|
||||
"Military, in the air": "Militari, in volo",
|
||||
"On the ground": "A terra",
|
||||
"Motion": "Movimento",
|
||||
"Operator": "Operatore",
|
||||
"Last reported": "Ultima segnalazione",
|
||||
"Crowding": "Affollamento",
|
||||
"Class": "Classe",
|
||||
"Magnitude": "Magnitudo",
|
||||
"Labels": "Etichette",
|
||||
"3D aircraft": "Aerei 3D",
|
||||
"M{mag} earthquake": "Terremoto di magnitudo {mag}",
|
||||
"Earthquake": "Terremoto",
|
||||
"{n} kt winds": "Venti a {n} nodi",
|
||||
"Wildfire": "Incendio boschivo",
|
||||
"{n} acres": "{n} acri",
|
||||
"{n}% contained": "Contenuto al {n}%",
|
||||
"prescribed burn": "fuoco prescritto",
|
||||
"{count} satellite fire hits": {
|
||||
"one": "{count} rilevamento satellitare di fuoco",
|
||||
"many": "{count} di rilevamenti satellitari di fuoco",
|
||||
"other": "{count} rilevamenti satellitari di fuoco"
|
||||
},
|
||||
"last day": "ultimo giorno",
|
||||
"Conditions unknown": "Condizioni sconosciute",
|
||||
"Partly cloudy": "Parzialmente nuvoloso",
|
||||
"Overcast": "Coperto",
|
||||
"Fog": "Nebbia",
|
||||
"Drizzle": "Pioviggine",
|
||||
"Rain": "Pioggia",
|
||||
"Snow": "Neve",
|
||||
"Rain showers": "Rovesci di pioggia",
|
||||
"Snow showers": "Rovesci di neve",
|
||||
"Thunderstorm": "Temporale",
|
||||
"Mixed conditions": "Condizioni variabili",
|
||||
"Search {name} and nearby": "Cerca in {name} e dintorni",
|
||||
"Search what is in view": "Cerca in ciò che è in vista",
|
||||
"Close Context search": "Chiudi la ricerca in Contesto",
|
||||
"Search in Context": "Cerca in Contesto",
|
||||
"Close search": "Chiudi ricerca",
|
||||
"Shrink Context back to a panel": "Riduci Contesto a pannello",
|
||||
"Expand Context to a full-height column": "Espandi Contesto a colonna a tutta altezza",
|
||||
"Context tabs": "Schede di Contesto",
|
||||
"Inspector": "Ispettore",
|
||||
"Properties": "Proprietà",
|
||||
"Level": "Livello",
|
||||
"Last {n} min": "Ultimi {n} min",
|
||||
"Just now": "Proprio ora",
|
||||
"Since selected": "Dalla selezione",
|
||||
"Altitude": "Altitudine",
|
||||
"Heading": "Prua",
|
||||
"Field of view": "Campo visivo",
|
||||
"Camera frame": "Fotogramma della telecamera",
|
||||
"Acquiring frame…": "Acquisizione fotogramma…",
|
||||
"Show a bigger view": "Mostra più grande",
|
||||
"Camera view": "Vista della telecamera",
|
||||
"More info": "Più informazioni",
|
||||
"{n} s ago": "{n} s fa",
|
||||
"{n} min ago": "{n} min fa",
|
||||
"{n} h ago": "{n} h fa",
|
||||
"{n} d ago": "{n} g fa",
|
||||
"Out of feed · last reading": "Fuori dal feed · ultima lettura",
|
||||
"Live · {age}": "Diretta · {age}",
|
||||
"{n} m": "{n} m",
|
||||
"{n} km": "{n} km",
|
||||
"updated {age}": "aggiornato {age}",
|
||||
"Selected on the map": "Selezionato sulla mappa",
|
||||
"Close card": "Chiudi scheda",
|
||||
"{n}% flown": "{n}% percorso",
|
||||
"to go": "rimanenti",
|
||||
"The scheduled route for this flight number does not match where the plane is; it may be another leg of the same flight.": "La rotta prevista per questo numero di volo non corrisponde alla posizione dell’aereo; potrebbe essere un’altra tratta dello stesso volo.",
|
||||
"Scheduled · unverified: does not match where the plane is": "Previsto · non verificato: non corrisponde alla posizione dell’aereo",
|
||||
"Nothing in this item’s details matches “{text}”.": "Nessun dettaglio di questo elemento corrisponde a “{text}”.",
|
||||
"Matching details": "Dettagli corrispondenti",
|
||||
"Enter orbital view": "Entra nella vista orbitale",
|
||||
"Enter Cockpit": "Entra nel cockpit",
|
||||
"Fly to": "Vola qui",
|
||||
"Following": "In seguimento",
|
||||
"Follow": "Segui",
|
||||
"Ask GEV about {name}": "Chiedi a GEV di {name}",
|
||||
"Flights within {radius}": "Voli entro {radius}",
|
||||
"No flights within {radius} from the layers that are on.": "Nessun volo entro {radius} dai livelli attivi.",
|
||||
"Vessels within {radius}": "Navi entro {radius}",
|
||||
"No vessels within {radius} from the layers that are on.": "Nessuna nave entro {radius} dai livelli attivi.",
|
||||
"Cloud": "Nuvolosità",
|
||||
"Visibility": "Visibilità",
|
||||
"Conditions here": "Condizioni qui",
|
||||
"feels {n}°": "percepita {n}°",
|
||||
"Reading conditions here…": "Lettura delle condizioni qui…",
|
||||
"No weather reading here.": "Nessun dato meteo qui.",
|
||||
"Local solar time": "Ora solare locale",
|
||||
"Nearby radius": "Raggio vicino",
|
||||
"How far out the nearby lists look": "Fin dove arrivano gli elenchi vicini",
|
||||
"Hazards within {radius}": "Pericoli entro {radius}",
|
||||
"Turns the layer on": "Attiva il livello",
|
||||
"No earthquakes, tropical storms or wildfires reported within {radius}.": "Nessun terremoto, tempesta tropicale o incendio boschivo segnalato entro {radius}.",
|
||||
"Broadcast alerts within {radius}": "Allerte trasmesse entro {radius}",
|
||||
"Also within {radius}": "Anche entro {radius}",
|
||||
"Local news": "Notizie locali",
|
||||
"Sundial · {time} solar · sun {deg}° {dir}": "Meridiana · {time} solari · sole a {deg}° {dir}",
|
||||
"Sundial · {time} solar · sun below the horizon": "Meridiana · {time} solari · sole sotto l’orizzonte",
|
||||
"{count} things": {
|
||||
"one": "{count} elemento",
|
||||
"many": "{count} di elementi",
|
||||
"other": "{count} elementi"
|
||||
},
|
||||
"{count} layers": {
|
||||
"one": "{count} livello",
|
||||
"many": "{count} di livelli",
|
||||
"other": "{count} livelli"
|
||||
},
|
||||
"{things} in view from {layers}": "{things} in vista da {layers}",
|
||||
"{n} km up": "a {n} km di quota",
|
||||
"{n} m up": "a {n} m di quota",
|
||||
"This view": "Questa vista",
|
||||
"Day": "Giorno",
|
||||
"Twilight": "Crepuscolo",
|
||||
"Night": "Notte",
|
||||
"Daylight": "Luce diurna",
|
||||
"sun {n}°": "sole {n}°",
|
||||
"Of {n} read, {total} loaded": "Su {n} letti, {total} caricati",
|
||||
"Of all {n}": "Su tutti i {n}",
|
||||
"Of {n} in view": "Su {n} in vista",
|
||||
"Error": "Errore",
|
||||
"Stale": "Non aggiornato",
|
||||
"In view": "In vista",
|
||||
"Globe view": "Vista globo",
|
||||
"Nothing selected": "Nessuna selezione",
|
||||
"Worldwide now": "Nel mondo ora",
|
||||
"Turn on {name}": "Attiva {name}",
|
||||
"{n} loaded": "{n} caricati",
|
||||
"{n} in view": "{n} in vista",
|
||||
"Turn off {name}": "Disattiva {name}",
|
||||
"Camera height": "Altezza della camera",
|
||||
"Nothing in view matches “{text}”.": "Niente in vista corrisponde a “{text}”.",
|
||||
"Nothing from the layers that are on is in view here. Zoom out to see more.": "Niente dei livelli attivi è in vista qui. Riduci lo zoom per vedere di più.",
|
||||
"No loaded layer has anything in view. Turn some on in Data Layers.": "Nessun livello caricato ha qualcosa in vista. Attivane alcuni in Livelli dati.",
|
||||
"Places in view": "Luoghi in vista",
|
||||
"Show here": "Mostra qui",
|
||||
"Ask GEV what's here": "Chiedi a GEV cosa c’è qui",
|
||||
"aircraft": "aeromobile",
|
||||
"vessel": "nave",
|
||||
"launch": "lancio",
|
||||
"fire": "incendio",
|
||||
"Fire detection": "Rilevamento di fuoco",
|
||||
"fire perimeter": "perimetro dell’incendio",
|
||||
"earthquake": "terremoto",
|
||||
"storm": "tempesta",
|
||||
"air quality station": "stazione della qualità dell’aria",
|
||||
"installation": "installazione",
|
||||
"dam": "diga",
|
||||
"data centre": "data center",
|
||||
"place": "luogo",
|
||||
"vehicle": "veicolo",
|
||||
"bike station": "stazione bici",
|
||||
"plate reader": "lettore di targhe",
|
||||
"camera": "telecamera",
|
||||
"airspace": "spazio aereo",
|
||||
"sighting": "avvistamento",
|
||||
"Callsign": "Nominativo",
|
||||
"Registration": "Marche",
|
||||
"Aircraft class": "Classe di aeromobile",
|
||||
"Course": "Rotta",
|
||||
"Vertical rate": "Velocità verticale",
|
||||
"Squawk": "Squawk",
|
||||
"Emergency": "Emergenza",
|
||||
"Last contact": "Ultimo contatto",
|
||||
"Ship type": "Tipo di nave",
|
||||
"Destination": "Destinazione",
|
||||
"Depth": "Profondità",
|
||||
"Time": "Ora",
|
||||
"Place": "Luogo",
|
||||
"Fire power": "Potenza del fuoco",
|
||||
"Satellite": "Satellite",
|
||||
"Sensor": "Sensore",
|
||||
"Detected": "Rilevato",
|
||||
"Contained": "Contenuto",
|
||||
"Discovered": "Scoperto",
|
||||
"Basin": "Bacino",
|
||||
"Index": "Indice",
|
||||
"Health risk": "Rischio per la salute",
|
||||
"Bikes": "Bici",
|
||||
"Docks": "Stalli",
|
||||
"Floor": "Limite inferiore",
|
||||
"Ceiling": "Limite superiore",
|
||||
"Active": "Attivo",
|
||||
"NORAD ID": "ID NORAD",
|
||||
"MMSI": "MMSI",
|
||||
"ICAO24": "ICAO24",
|
||||
"Capacity": "Capacità",
|
||||
"Output": "Produzione",
|
||||
"River": "Fiume",
|
||||
"City": "Città",
|
||||
"State": "Stato",
|
||||
"Street": "Via",
|
||||
"Opened": "Aperto",
|
||||
"Height": "Altezza",
|
||||
"IT load": "Carico IT",
|
||||
"Waterway": "Corso d’acqua",
|
||||
"Military": "Militare",
|
||||
"Land use": "Uso del suolo",
|
||||
"Telecom": "Telecomunicazioni",
|
||||
"feature": "elemento",
|
||||
"Empty": "Vuoto",
|
||||
"Many seats free": "Molti posti liberi",
|
||||
"Few seats free": "Pochi posti liberi",
|
||||
"Standing room only": "Solo posti in piedi",
|
||||
"Crowded": "Affollato",
|
||||
"Not taking passengers": "Non accetta passeggeri",
|
||||
"Major hurricane": "Uragano maggiore",
|
||||
"Typhoon": "Tifone",
|
||||
"Super typhoon": "Supertifone",
|
||||
"Tropical cyclone": "Ciclone tropicale",
|
||||
"Prescribed burn": "Fuoco prescritto",
|
||||
"Atlantic": "Atlantico",
|
||||
"Eastern Pacific": "Pacifico orientale",
|
||||
"Central Pacific": "Pacifico centrale",
|
||||
"Western Pacific": "Pacifico occidentale",
|
||||
"Indian Ocean": "Oceano Indiano",
|
||||
"Southern Hemisphere": "Emisfero australe",
|
||||
"Cable tram": "Tram a fune",
|
||||
"Aerial lift": "Funivia",
|
||||
"Fishing": "Pesca",
|
||||
"Tug": "Rimorchiatore",
|
||||
"Sailing": "Vela",
|
||||
"Pleasure craft": "Diporto",
|
||||
"Pilot vessel": "Pilotina",
|
||||
"Search and rescue": "Ricerca e soccorso",
|
||||
"Law enforcement": "Forze dell’ordine",
|
||||
"High-speed craft": "Unità veloce",
|
||||
"Passenger": "Passeggeri",
|
||||
"Cargo": "Mercantile",
|
||||
"Tanker": "Petroliera",
|
||||
"Yes": "Sì",
|
||||
"{n} ft": "{n} ft",
|
||||
"{n} km/s": "{n} km/s",
|
||||
"{n} km/h": "{n} km/h",
|
||||
"{n} kt": "{n} kn",
|
||||
"{n} ft/min": "{n} ft/min",
|
||||
"{n}°": "{n}°",
|
||||
"M {n}": "M {n}",
|
||||
"{n} MW": "{n} MW",
|
||||
"{n}%": "{n}%",
|
||||
"{n} hPa": "{n} hPa",
|
||||
"Hijack (squawk 7500)": "Dirottamento (squawk 7500)",
|
||||
"Radio failure (squawk 7600)": "Avaria radio (squawk 7600)",
|
||||
"Emergency (squawk 7700)": "Emergenza (squawk 7700)",
|
||||
"Emergency: {kind}": "Emergenza: {kind}",
|
||||
"Emergency declared": "Emergenza dichiarata",
|
||||
"Tsunami warning issued": "Allerta tsunami emessa",
|
||||
"VFR, no flight plan": "VFR, senza piano di volo",
|
||||
"VFR conspicuity": "Codice VFR di cospicuità",
|
||||
"IFR, no code yet": "IFR, codice non ancora assegnato",
|
||||
"Hijack": "Dirottamento",
|
||||
"Climbing {n} ft/min": "In salita a {n} ft/min",
|
||||
"Descending {n} ft/min": "In discesa a {n} ft/min",
|
||||
"Cruising, level": "Crociera, livellato",
|
||||
"Airliners": "Aerei di linea",
|
||||
"Widebodies": "Aerei a fusoliera larga",
|
||||
"Business jets": "Business jet",
|
||||
"Helicopters": "Elicotteri",
|
||||
"Turboprops": "Turboelica",
|
||||
"Fast jets": "Jet veloci",
|
||||
"Four-engine jets": "Quadrimotori",
|
||||
"M6 and above": "M6 e oltre",
|
||||
"M5 to 6": "Da M5 a 6",
|
||||
"M4 to 5": "Da M4 a 5",
|
||||
"Below M4": "Sotto M4",
|
||||
"{kind} {name}": "{kind} {name}",
|
||||
"place|Country": "Paese",
|
||||
"altitude|Level": "Stabile",
|
||||
"{h} h {m} min": "{h} h {m} min",
|
||||
"{n} min": "{n} min",
|
||||
"{speed} {direction}": "{speed} da {direction}",
|
||||
"{n} mm": "{n} mm"
|
||||
}
|
||||
+281
-1
@@ -3713,5 +3713,285 @@
|
||||
"A visualization of the 26 August 2026 Bhote Koshi outburst flood, not an official hazard model. The historical (2021) and post-event views are Vantor WorldView imagery; the river’s path is GeoPera’s reconstruction. Witness clips link to their original posts, and their capture times are unverified.": "2026年8月26日の Bhote Koshi 決壊洪水の可視化であり、公式のハザードモデルではありません。過去 (2021年) と事後の画像は Vantor WorldView の画像で、川の経路は GeoPera による再現です。目撃者の動画は元の投稿にリンクしており、撮影時刻は検証されていません。",
|
||||
"That story is not available here": "そのストーリーはここでは利用できません",
|
||||
"DRAFT": "下書き",
|
||||
"A draft, not saved as a story yet. Use SAVE TO STORIES in AUTHORING to save it.": "まだストーリーとして保存されていない下書きです。シーン作成の「STORIESに保存」で保存できます。"
|
||||
"A draft, not saved as a story yet. Use SAVE TO STORIES in AUTHORING to save it.": "まだストーリーとして保存されていない下書きです。シーン作成の「STORIESに保存」で保存できます。",
|
||||
"Heading to next stop": "次の停留所へ向かう",
|
||||
"Arriving at a stop": "停留所に到着中",
|
||||
"Stopped at a stop": "停留所に停車中",
|
||||
"Wikipedia": "ウィキペディア",
|
||||
"Wikidata": "ウィキデータ",
|
||||
"Website": "ウェブサイト",
|
||||
"Phase": "フェーズ",
|
||||
"Flight level": "フライトレベル",
|
||||
"Mach": "マッハ",
|
||||
"Squawk {code}": "スコーク {code}",
|
||||
"Signal": "信号",
|
||||
"Civilian, in the air": "民間機・飛行中",
|
||||
"Military, in the air": "軍用機・飛行中",
|
||||
"On the ground": "地上",
|
||||
"Motion": "動き",
|
||||
"Operator": "運行会社",
|
||||
"Last reported": "最終報告",
|
||||
"Crowding": "混雑",
|
||||
"Class": "種別",
|
||||
"Magnitude": "マグニチュード",
|
||||
"Labels": "ラベル",
|
||||
"3D aircraft": "3D航空機",
|
||||
"M{mag} earthquake": "M{mag}の地震",
|
||||
"Earthquake": "地震",
|
||||
"{n} kt winds": "風速{n}ノット",
|
||||
"Wildfire": "山火事",
|
||||
"{n} acres": "{n}エーカー",
|
||||
"{n}% contained": "鎮圧率{n}%",
|
||||
"prescribed burn": "計画的野焼き",
|
||||
"{count} satellite fire hits": {
|
||||
"other": "衛星による火災検知{count}件"
|
||||
},
|
||||
"last day": "過去1日",
|
||||
"Conditions unknown": "天候不明",
|
||||
"Partly cloudy": "晴れ時々曇り",
|
||||
"Overcast": "曇り",
|
||||
"Fog": "霧",
|
||||
"Drizzle": "霧雨",
|
||||
"Rain": "雨",
|
||||
"Snow": "雪",
|
||||
"Rain showers": "にわか雨",
|
||||
"Snow showers": "にわか雪",
|
||||
"Thunderstorm": "雷雨",
|
||||
"Mixed conditions": "不安定な天気",
|
||||
"Search {name} and nearby": "{name}と周辺を検索",
|
||||
"Search what is in view": "表示中のものを検索",
|
||||
"Close Context search": "コンテキスト検索を閉じる",
|
||||
"Search in Context": "コンテキスト内を検索",
|
||||
"Close search": "検索を閉じる",
|
||||
"Shrink Context back to a panel": "コンテキストをパネルに戻す",
|
||||
"Expand Context to a full-height column": "コンテキストを全高の列に広げる",
|
||||
"Context tabs": "コンテキストのタブ",
|
||||
"Inspector": "インスペクター",
|
||||
"Properties": "プロパティ",
|
||||
"Level": "レベル",
|
||||
"Last {n} min": "過去{n}分",
|
||||
"Just now": "たった今",
|
||||
"Since selected": "選択以降",
|
||||
"Altitude": "高度",
|
||||
"Heading": "方位",
|
||||
"Field of view": "画角",
|
||||
"Camera frame": "カメラ画像",
|
||||
"Acquiring frame…": "画像を取得中…",
|
||||
"Show a bigger view": "大きく表示",
|
||||
"Camera view": "カメラ映像",
|
||||
"More info": "詳細情報",
|
||||
"{n} s ago": "{n}秒前",
|
||||
"{n} min ago": "{n}分前",
|
||||
"{n} h ago": "{n}時間前",
|
||||
"{n} d ago": "{n}日前",
|
||||
"Out of feed · last reading": "フィード外・最終データ",
|
||||
"Live · {age}": "ライブ・{age}",
|
||||
"{n} m": "{n} m",
|
||||
"{n} km": "{n} km",
|
||||
"updated {age}": "{age}に更新",
|
||||
"Selected on the map": "地図上で選択中",
|
||||
"Close card": "カードを閉じる",
|
||||
"{n}% flown": "{n}%飛行済み",
|
||||
"to go": "残り",
|
||||
"The scheduled route for this flight number does not match where the plane is; it may be another leg of the same flight.": "この便名の予定ルートは機体の位置と一致しません。同じ便の別区間かもしれません。",
|
||||
"Scheduled · unverified: does not match where the plane is": "予定・未確認:機体の位置と一致しません",
|
||||
"Nothing in this item’s details matches “{text}”.": "この項目の詳細に「{text}」に一致するものはありません。",
|
||||
"Matching details": "一致する詳細",
|
||||
"Enter orbital view": "軌道ビューに入る",
|
||||
"Enter Cockpit": "コックピットに入る",
|
||||
"Fly to": "移動",
|
||||
"Following": "追従中",
|
||||
"Follow": "追従",
|
||||
"Ask GEV about {name}": "{name}についてGEVに質問",
|
||||
"Flights within {radius}": "{radius}以内のフライト",
|
||||
"No flights within {radius} from the layers that are on.": "オンのレイヤーには{radius}以内のフライトがありません。",
|
||||
"Vessels within {radius}": "{radius}以内の船舶",
|
||||
"No vessels within {radius} from the layers that are on.": "オンのレイヤーには{radius}以内の船舶がありません。",
|
||||
"Cloud": "雲量",
|
||||
"Visibility": "視程",
|
||||
"Conditions here": "この場所の状況",
|
||||
"feels {n}°": "体感{n}°",
|
||||
"Reading conditions here…": "この場所の状況を取得中…",
|
||||
"No weather reading here.": "この場所の気象データはありません。",
|
||||
"Local solar time": "地方太陽時",
|
||||
"Nearby radius": "周辺の半径",
|
||||
"How far out the nearby lists look": "周辺リストの範囲",
|
||||
"Hazards within {radius}": "{radius}以内の災害",
|
||||
"Turns the layer on": "レイヤーをオンにします",
|
||||
"No earthquakes, tropical storms or wildfires reported within {radius}.": "{radius}以内に地震・熱帯低気圧・山火事の報告はありません。",
|
||||
"Broadcast alerts within {radius}": "{radius}以内の発信された警報",
|
||||
"Also within {radius}": "ほかに{radius}以内",
|
||||
"Local news": "地元ニュース",
|
||||
"Sundial · {time} solar · sun {deg}° {dir}": "日時計・太陽時{time}・太陽{deg}° {dir}",
|
||||
"Sundial · {time} solar · sun below the horizon": "日時計・太陽時{time}・太陽は地平線の下",
|
||||
"{count} things": {
|
||||
"other": "{count}件"
|
||||
},
|
||||
"{count} layers": {
|
||||
"other": "{count}レイヤー"
|
||||
},
|
||||
"{things} in view from {layers}": "{layers}から{things}を表示中",
|
||||
"{n} km up": "高度{n} km",
|
||||
"{n} m up": "高度{n} m",
|
||||
"This view": "この表示",
|
||||
"Day": "昼",
|
||||
"Twilight": "薄明",
|
||||
"Night": "夜",
|
||||
"Daylight": "日照",
|
||||
"sun {n}°": "太陽{n}°",
|
||||
"Of {n} read, {total} loaded": "読み込み{n}件中、{total}件をロード",
|
||||
"Of all {n}": "全{n}件中",
|
||||
"Of {n} in view": "表示中の{n}件中",
|
||||
"Error": "エラー",
|
||||
"Stale": "更新遅延",
|
||||
"In view": "表示中",
|
||||
"Globe view": "地球全体",
|
||||
"Nothing selected": "何も選択されていません",
|
||||
"Worldwide now": "現在の世界",
|
||||
"Turn on {name}": "{name}をオン",
|
||||
"{n} loaded": "{n}件ロード",
|
||||
"{n} in view": "{n}件表示中",
|
||||
"Turn off {name}": "{name}をオフ",
|
||||
"Camera height": "カメラの高度",
|
||||
"Nothing in view matches “{text}”.": "表示中に「{text}」に一致するものはありません。",
|
||||
"Nothing from the layers that are on is in view here. Zoom out to see more.": "オンのレイヤーにはここに表示できるものがありません。ズームアウトしてください。",
|
||||
"No loaded layer has anything in view. Turn some on in Data Layers.": "ロード済みのレイヤーに表示中のものはありません。データレイヤーでオンにしてください。",
|
||||
"Places in view": "表示中の地名",
|
||||
"Show here": "ここに表示",
|
||||
"Ask GEV what's here": "ここに何があるかGEVに質問",
|
||||
"aircraft": "航空機",
|
||||
"vessel": "船舶",
|
||||
"launch": "打ち上げ",
|
||||
"fire": "火災",
|
||||
"Fire detection": "火災検知",
|
||||
"fire perimeter": "火災範囲",
|
||||
"earthquake": "地震",
|
||||
"storm": "嵐",
|
||||
"air quality station": "大気質測定局",
|
||||
"installation": "施設",
|
||||
"dam": "ダム",
|
||||
"data centre": "データセンター",
|
||||
"place": "場所",
|
||||
"vehicle": "車両",
|
||||
"bike station": "自転車ステーション",
|
||||
"plate reader": "ナンバー読取装置",
|
||||
"camera": "カメラ",
|
||||
"airspace": "空域",
|
||||
"sighting": "目撃",
|
||||
"Callsign": "コールサイン",
|
||||
"Registration": "登録記号",
|
||||
"Aircraft class": "機種区分",
|
||||
"Course": "針路",
|
||||
"Vertical rate": "昇降率",
|
||||
"Squawk": "スコーク",
|
||||
"Emergency": "緊急",
|
||||
"Last contact": "最終受信",
|
||||
"Ship type": "船種",
|
||||
"Destination": "目的地",
|
||||
"Depth": "深さ",
|
||||
"Time": "時刻",
|
||||
"Place": "場所",
|
||||
"Fire power": "火災放射強度",
|
||||
"Satellite": "衛星",
|
||||
"Sensor": "センサー",
|
||||
"Detected": "検知",
|
||||
"Contained": "鎮圧率",
|
||||
"Discovered": "発見",
|
||||
"Basin": "海域",
|
||||
"Index": "指数",
|
||||
"Health risk": "健康リスク",
|
||||
"Bikes": "自転車",
|
||||
"Docks": "ドック",
|
||||
"Floor": "下限",
|
||||
"Ceiling": "上限",
|
||||
"Active": "有効時間",
|
||||
"NORAD ID": "NORAD ID",
|
||||
"MMSI": "MMSI",
|
||||
"ICAO24": "ICAO24",
|
||||
"Capacity": "容量",
|
||||
"Output": "出力",
|
||||
"River": "河川",
|
||||
"City": "市区町村",
|
||||
"State": "州",
|
||||
"Street": "通り",
|
||||
"Opened": "開業",
|
||||
"Height": "高さ",
|
||||
"IT load": "ITロード",
|
||||
"Waterway": "水路",
|
||||
"Military": "軍用",
|
||||
"Land use": "土地利用",
|
||||
"Telecom": "通信",
|
||||
"feature": "地物",
|
||||
"Empty": "空車",
|
||||
"Many seats free": "空席多数",
|
||||
"Few seats free": "空席わずか",
|
||||
"Standing room only": "立席のみ",
|
||||
"Crowded": "混雑",
|
||||
"Not taking passengers": "乗車不可",
|
||||
"Major hurricane": "大型ハリケーン",
|
||||
"Typhoon": "台風",
|
||||
"Super typhoon": "スーパー台風",
|
||||
"Tropical cyclone": "熱帯低気圧",
|
||||
"Prescribed burn": "計画的野焼き",
|
||||
"Atlantic": "大西洋",
|
||||
"Eastern Pacific": "東太平洋",
|
||||
"Central Pacific": "中部太平洋",
|
||||
"Western Pacific": "西太平洋",
|
||||
"Indian Ocean": "インド洋",
|
||||
"Southern Hemisphere": "南半球",
|
||||
"Cable tram": "ケーブルカー",
|
||||
"Aerial lift": "ロープウェイ",
|
||||
"Fishing": "漁船",
|
||||
"Tug": "タグボート",
|
||||
"Sailing": "帆船",
|
||||
"Pleasure craft": "プレジャーボート",
|
||||
"Pilot vessel": "水先船",
|
||||
"Search and rescue": "捜索救難",
|
||||
"Law enforcement": "法執行機関",
|
||||
"High-speed craft": "高速船",
|
||||
"Passenger": "旅客船",
|
||||
"Cargo": "貨物船",
|
||||
"Tanker": "タンカー",
|
||||
"Yes": "はい",
|
||||
"{n} ft": "{n} ft",
|
||||
"{n} km/s": "{n} km/s",
|
||||
"{n} km/h": "{n} km/h",
|
||||
"{n} kt": "{n} kt",
|
||||
"{n} ft/min": "{n} ft/min",
|
||||
"{n}°": "{n}°",
|
||||
"M {n}": "M {n}",
|
||||
"{n} MW": "{n} MW",
|
||||
"{n}%": "{n}%",
|
||||
"{n} hPa": "{n} hPa",
|
||||
"Hijack (squawk 7500)": "ハイジャック(スコーク7500)",
|
||||
"Radio failure (squawk 7600)": "無線故障(スコーク7600)",
|
||||
"Emergency (squawk 7700)": "緊急事態(スコーク7700)",
|
||||
"Emergency: {kind}": "緊急:{kind}",
|
||||
"Emergency declared": "緊急事態宣言",
|
||||
"Tsunami warning issued": "津波警報発表",
|
||||
"VFR, no flight plan": "VFR・飛行計画なし",
|
||||
"VFR conspicuity": "VFR視認用コード",
|
||||
"IFR, no code yet": "IFR・コード未割当",
|
||||
"Hijack": "ハイジャック",
|
||||
"Climbing {n} ft/min": "上昇中 {n} ft/min",
|
||||
"Descending {n} ft/min": "降下中 {n} ft/min",
|
||||
"Cruising, level": "巡航・水平飛行",
|
||||
"Airliners": "旅客機",
|
||||
"Widebodies": "ワイドボディ機",
|
||||
"Business jets": "ビジネスジェット",
|
||||
"Helicopters": "ヘリコプター",
|
||||
"Turboprops": "ターボプロップ機",
|
||||
"Fast jets": "高速ジェット機",
|
||||
"Four-engine jets": "4発ジェット機",
|
||||
"M6 and above": "M6以上",
|
||||
"M5 to 6": "M5〜6",
|
||||
"M4 to 5": "M4〜5",
|
||||
"Below M4": "M4未満",
|
||||
"{kind} {name}": "{kind}{name}",
|
||||
"place|Country": "国",
|
||||
"altitude|Level": "水平",
|
||||
"{h} h {m} min": "{h}時間{m}分",
|
||||
"{n} min": "{n}分",
|
||||
"{speed} {direction}": "{direction}の風 {speed}",
|
||||
"{n} mm": "{n} mm"
|
||||
}
|
||||
+288
-2
@@ -3761,7 +3761,7 @@
|
||||
"Filters": "Filtros",
|
||||
"Search stories": "Buscar histórias",
|
||||
"Search stories, places, creators": "Buscar histórias, lugares, criadores",
|
||||
"Clear search": "Limpar busca",
|
||||
"Clear search": "Limpar pesquisa",
|
||||
"Topics": "Temas",
|
||||
"Filter stories": "Filtrar histórias",
|
||||
"Show {count} stories": {
|
||||
@@ -3893,5 +3893,291 @@
|
||||
"A visualization of the 26 August 2026 Bhote Koshi outburst flood, not an official hazard model. The historical (2021) and post-event views are Vantor WorldView imagery; the river’s path is GeoPera’s reconstruction. Witness clips link to their original posts, and their capture times are unverified.": "Uma visualização da inundação por rompimento do Bhote Koshi de 26 de agosto de 2026, não um modelo oficial de risco. As vistas históricas (2021) e pós-evento são imagens Vantor WorldView; o trajeto do rio é a reconstrução da GeoPera. Os vídeos de testemunhas levam às publicações originais, e os horários de captura não foram verificados.",
|
||||
"That story is not available here": "Essa história não está disponível aqui",
|
||||
"DRAFT": "RASCUNHO",
|
||||
"A draft, not saved as a story yet. Use SAVE TO STORIES in AUTHORING to save it.": "Um rascunho, ainda não salvo como história. Use SALVAR EM STORIES em CRIAÇÃO para salvá-lo."
|
||||
"A draft, not saved as a story yet. Use SAVE TO STORIES in AUTHORING to save it.": "Um rascunho, ainda não salvo como história. Use SALVAR EM STORIES em CRIAÇÃO para salvá-lo.",
|
||||
"Heading to next stop": "A caminho da próxima parada",
|
||||
"Arriving at a stop": "Chegando a uma parada",
|
||||
"Stopped at a stop": "Parado em uma parada",
|
||||
"Wikipedia": "Wikipédia",
|
||||
"Wikidata": "Wikidata",
|
||||
"Website": "Site",
|
||||
"Phase": "Fase",
|
||||
"Flight level": "Nível de voo",
|
||||
"Mach": "Mach",
|
||||
"Squawk {code}": "Squawk {code}",
|
||||
"Signal": "Sinal",
|
||||
"Civilian, in the air": "Civis, em voo",
|
||||
"Military, in the air": "Militares, em voo",
|
||||
"On the ground": "No solo",
|
||||
"Motion": "Movimento",
|
||||
"Operator": "Operadora",
|
||||
"Last reported": "Último relato",
|
||||
"Crowding": "Lotação",
|
||||
"Class": "Classe",
|
||||
"Magnitude": "Magnitude",
|
||||
"Labels": "Rótulos",
|
||||
"3D aircraft": "Aeronaves 3D",
|
||||
"M{mag} earthquake": "Terremoto de magnitude {mag}",
|
||||
"Earthquake": "Terremoto",
|
||||
"{n} kt winds": "Ventos de {n} nós",
|
||||
"Wildfire": "Incêndio florestal",
|
||||
"{n} acres": "{n} acres",
|
||||
"{n}% contained": "{n}% contido",
|
||||
"prescribed burn": "queima prescrita",
|
||||
"{count} satellite fire hits": {
|
||||
"one": "{count} detecção de fogo por satélite",
|
||||
"many": "{count} de detecções de fogo por satélite",
|
||||
"other": "{count} detecções de fogo por satélite"
|
||||
},
|
||||
"last day": "último dia",
|
||||
"Conditions unknown": "Condições desconhecidas",
|
||||
"Partly cloudy": "Parcialmente nublado",
|
||||
"Overcast": "Encoberto",
|
||||
"Fog": "Nevoeiro",
|
||||
"Drizzle": "Garoa",
|
||||
"Rain": "Chuva",
|
||||
"Snow": "Neve",
|
||||
"Rain showers": "Pancadas de chuva",
|
||||
"Snow showers": "Pancadas de neve",
|
||||
"Thunderstorm": "Trovoada",
|
||||
"Mixed conditions": "Condições variáveis",
|
||||
"Search {name} and nearby": "Pesquisar em {name} e arredores",
|
||||
"Search what is in view": "Pesquisar o que está à vista",
|
||||
"Close Context search": "Fechar a pesquisa no Contexto",
|
||||
"Search in Context": "Pesquisar no Contexto",
|
||||
"Close search": "Fechar pesquisa",
|
||||
"Shrink Context back to a panel": "Reduzir o Contexto a um painel",
|
||||
"Expand Context to a full-height column": "Expandir o Contexto para uma coluna de altura total",
|
||||
"Context tabs": "Abas do Contexto",
|
||||
"Inspector": "Inspetor",
|
||||
"Properties": "Propriedades",
|
||||
"Level": "Nível",
|
||||
"Last {n} min": "Últimos {n} min",
|
||||
"Just now": "Agora mesmo",
|
||||
"Since selected": "Desde a seleção",
|
||||
"Altitude": "Altitude",
|
||||
"Heading": "Rumo",
|
||||
"Field of view": "Campo de visão",
|
||||
"Camera frame": "Imagem da câmera",
|
||||
"Acquiring frame…": "Obtendo imagem…",
|
||||
"Show a bigger view": "Ver maior",
|
||||
"Camera view": "Vista da câmera",
|
||||
"More info": "Mais informações",
|
||||
"{n} s ago": "há {n} s",
|
||||
"{n} min ago": "há {n} min",
|
||||
"{n} h ago": "há {n} h",
|
||||
"{n} d ago": "há {n} d",
|
||||
"Out of feed · last reading": "Fora do feed · última leitura",
|
||||
"Live · {age}": "Ao vivo · {age}",
|
||||
"{n} m": "{n} m",
|
||||
"{n} km": "{n} km",
|
||||
"updated {age}": "atualizado {age}",
|
||||
"Selected on the map": "Selecionado no mapa",
|
||||
"Close card": "Fechar cartão",
|
||||
"{n}% flown": "{n}% percorrido",
|
||||
"to go": "restantes",
|
||||
"The scheduled route for this flight number does not match where the plane is; it may be another leg of the same flight.": "A rota programada deste número de voo não corresponde à posição do avião; pode ser outro trecho do mesmo voo.",
|
||||
"Scheduled · unverified: does not match where the plane is": "Programado · não verificado: não corresponde à posição do avião",
|
||||
"Nothing in this item’s details matches “{text}”.": "Nada nos detalhes deste item corresponde a “{text}”.",
|
||||
"Matching details": "Detalhes correspondentes",
|
||||
"Enter orbital view": "Entrar na vista orbital",
|
||||
"Enter Cockpit": "Entrar na cabine",
|
||||
"Fly to": "Voar até",
|
||||
"Following": "Seguindo",
|
||||
"Follow": "Seguir",
|
||||
"Ask GEV about {name}": "Perguntar ao GEV sobre {name}",
|
||||
"Flights within {radius}": "Voos em até {radius}",
|
||||
"No flights within {radius} from the layers that are on.": "Nenhum voo em até {radius} nas camadas ativas.",
|
||||
"Vessels within {radius}": "Embarcações em até {radius}",
|
||||
"No vessels within {radius} from the layers that are on.": "Nenhuma embarcação em até {radius} nas camadas ativas.",
|
||||
"Cloud": "Nebulosidade",
|
||||
"Visibility": "Visibilidade",
|
||||
"Conditions here": "Condições aqui",
|
||||
"feels {n}°": "sensação {n}°",
|
||||
"Reading conditions here…": "Lendo as condições aqui…",
|
||||
"No weather reading here.": "Sem dados do tempo aqui.",
|
||||
"Local solar time": "Hora solar local",
|
||||
"Nearby radius": "Raio próximo",
|
||||
"How far out the nearby lists look": "Até onde as listas próximas alcançam",
|
||||
"Hazards within {radius}": "Riscos em até {radius}",
|
||||
"Turns the layer on": "Ativa a camada",
|
||||
"No earthquakes, tropical storms or wildfires reported within {radius}.": "Nenhum terremoto, tempestade tropical ou incêndio florestal relatado em até {radius}.",
|
||||
"Broadcast alerts within {radius}": "Alertas transmitidos em até {radius}",
|
||||
"Also within {radius}": "Também em até {radius}",
|
||||
"Local news": "Notícias locais",
|
||||
"Sundial · {time} solar · sun {deg}° {dir}": "Relógio de sol · {time} solar · sol a {deg}° {dir}",
|
||||
"Sundial · {time} solar · sun below the horizon": "Relógio de sol · {time} solar · sol abaixo do horizonte",
|
||||
"{count} things": {
|
||||
"one": "{count} item",
|
||||
"many": "{count} de itens",
|
||||
"other": "{count} itens"
|
||||
},
|
||||
"{count} layers": {
|
||||
"one": "{count} camada",
|
||||
"many": "{count} de camadas",
|
||||
"other": "{count} camadas"
|
||||
},
|
||||
"{things} in view from {layers}": "{things} à vista de {layers}",
|
||||
"{n} km up": "a {n} km de altura",
|
||||
"{n} m up": "a {n} m de altura",
|
||||
"This view": "Esta vista",
|
||||
"Day": "Dia",
|
||||
"Twilight": "Crepúsculo",
|
||||
"Night": "Noite",
|
||||
"Daylight": "Luz do dia",
|
||||
"sun {n}°": "sol {n}°",
|
||||
"Of {n} read, {total} loaded": "De {n} lidos, {total} carregados",
|
||||
"Of all {n}": "De todos os {n}",
|
||||
"Of {n} in view": "De {n} à vista",
|
||||
"Error": "Erro",
|
||||
"Stale": "Desatualizado",
|
||||
"In view": "À vista",
|
||||
"Globe view": "Vista do globo",
|
||||
"Nothing selected": "Nada selecionado",
|
||||
"Worldwide now": "No mundo agora",
|
||||
"Turn on {name}": "Ativar {name}",
|
||||
"{n} loaded": "{n} carregados",
|
||||
"{n} in view": "{n} à vista",
|
||||
"Turn off {name}": "Desativar {name}",
|
||||
"Camera height": "Altura da câmera",
|
||||
"Nothing in view matches “{text}”.": "Nada à vista corresponde a “{text}”.",
|
||||
"Nothing from the layers that are on is in view here. Zoom out to see more.": "Nada das camadas ativas está à vista aqui. Afaste o zoom para ver mais.",
|
||||
"No loaded layer has anything in view. Turn some on in Data Layers.": "Nenhuma camada carregada tem algo à vista. Ative algumas em Camadas de dados.",
|
||||
"Places in view": "Lugares à vista",
|
||||
"Show here": "Mostrar aqui",
|
||||
"Ask GEV what's here": "Perguntar ao GEV o que há aqui",
|
||||
"aircraft": "aeronave",
|
||||
"vessel": "embarcação",
|
||||
"launch": "lançamento",
|
||||
"fire": "incêndio",
|
||||
"Fire detection": "Detecção de fogo",
|
||||
"fire perimeter": "perímetro de incêndio",
|
||||
"earthquake": "terremoto",
|
||||
"storm": "tempestade",
|
||||
"air quality station": "estação de qualidade do ar",
|
||||
"installation": "instalação",
|
||||
"dam": "barragem",
|
||||
"data centre": "data center",
|
||||
"place": "local",
|
||||
"vehicle": "veículo",
|
||||
"bike station": "estação de bicicletas",
|
||||
"plate reader": "leitor de placas",
|
||||
"camera": "câmera",
|
||||
"airspace": "espaço aéreo",
|
||||
"sighting": "avistamento",
|
||||
"Callsign": "Indicativo",
|
||||
"Registration": "Matrícula",
|
||||
"Aircraft class": "Classe da aeronave",
|
||||
"Course": "Rumo",
|
||||
"Vertical rate": "Razão vertical",
|
||||
"Squawk": "Squawk",
|
||||
"Emergency": "Emergência",
|
||||
"Last contact": "Último contato",
|
||||
"Ship type": "Tipo de embarcação",
|
||||
"Destination": "Destino",
|
||||
"Depth": "Profundidade",
|
||||
"Time": "Hora",
|
||||
"Place": "Local",
|
||||
"Fire power": "Potência do fogo",
|
||||
"Satellite": "Satélite",
|
||||
"Sensor": "Sensor",
|
||||
"Detected": "Detectado",
|
||||
"Contained": "Contido",
|
||||
"Discovered": "Descoberto",
|
||||
"Basin": "Bacia",
|
||||
"Index": "Índice",
|
||||
"Health risk": "Risco à saúde",
|
||||
"Bikes": "Bicicletas",
|
||||
"Docks": "Vagas",
|
||||
"Floor": "Limite inferior",
|
||||
"Ceiling": "Limite superior",
|
||||
"Active": "Ativo",
|
||||
"NORAD ID": "ID NORAD",
|
||||
"MMSI": "MMSI",
|
||||
"ICAO24": "ICAO24",
|
||||
"Capacity": "Capacidade",
|
||||
"Output": "Produção",
|
||||
"River": "Rio",
|
||||
"City": "Cidade",
|
||||
"State": "Estado",
|
||||
"Street": "Rua",
|
||||
"Opened": "Inaugurado",
|
||||
"Height": "Altura",
|
||||
"IT load": "Carga de TI",
|
||||
"Waterway": "Hidrovia",
|
||||
"Military": "Militar",
|
||||
"Land use": "Uso do solo",
|
||||
"Telecom": "Telecomunicações",
|
||||
"feature": "elemento",
|
||||
"Empty": "Vazio",
|
||||
"Many seats free": "Muitos lugares livres",
|
||||
"Few seats free": "Poucos lugares livres",
|
||||
"Standing room only": "Só em pé",
|
||||
"Crowded": "Lotado",
|
||||
"Not taking passengers": "Não aceita passageiros",
|
||||
"Major hurricane": "Furacão de grande intensidade",
|
||||
"Typhoon": "Tufão",
|
||||
"Super typhoon": "Supertufão",
|
||||
"Tropical cyclone": "Ciclone tropical",
|
||||
"Prescribed burn": "Queima prescrita",
|
||||
"Atlantic": "Atlântico",
|
||||
"Eastern Pacific": "Pacífico Oriental",
|
||||
"Central Pacific": "Pacífico Central",
|
||||
"Western Pacific": "Pacífico Ocidental",
|
||||
"Indian Ocean": "Oceano Índico",
|
||||
"Southern Hemisphere": "Hemisfério Sul",
|
||||
"Cable tram": "Bonde a cabo",
|
||||
"Aerial lift": "Teleférico",
|
||||
"Fishing": "Pesca",
|
||||
"Tug": "Rebocador",
|
||||
"Sailing": "Veleiro",
|
||||
"Pleasure craft": "Embarcação de recreio",
|
||||
"Pilot vessel": "Embarcação de praticagem",
|
||||
"Search and rescue": "Busca e salvamento",
|
||||
"Law enforcement": "Fiscalização",
|
||||
"High-speed craft": "Embarcação de alta velocidade",
|
||||
"Passenger": "Passageiros",
|
||||
"Cargo": "Carga",
|
||||
"Tanker": "Petroleiro",
|
||||
"Yes": "Sim",
|
||||
"{n} ft": "{n} ft",
|
||||
"{n} km/s": "{n} km/s",
|
||||
"{n} km/h": "{n} km/h",
|
||||
"{n} kt": "{n} kt",
|
||||
"{n} ft/min": "{n} ft/min",
|
||||
"{n}°": "{n}°",
|
||||
"M {n}": "M {n}",
|
||||
"{n} MW": "{n} MW",
|
||||
"{n}%": "{n}%",
|
||||
"{n} hPa": "{n} hPa",
|
||||
"Hijack (squawk 7500)": "Sequestro (squawk 7500)",
|
||||
"Radio failure (squawk 7600)": "Falha de rádio (squawk 7600)",
|
||||
"Emergency (squawk 7700)": "Emergência (squawk 7700)",
|
||||
"Emergency: {kind}": "Emergência: {kind}",
|
||||
"Emergency declared": "Emergência declarada",
|
||||
"Tsunami warning issued": "Alerta de tsunami emitido",
|
||||
"VFR, no flight plan": "VFR, sem plano de voo",
|
||||
"VFR conspicuity": "Código VFR de visibilidade",
|
||||
"IFR, no code yet": "IFR, ainda sem código",
|
||||
"Hijack": "Sequestro",
|
||||
"Climbing {n} ft/min": "Subindo a {n} ft/min",
|
||||
"Descending {n} ft/min": "Descendo a {n} ft/min",
|
||||
"Cruising, level": "Cruzeiro, nivelado",
|
||||
"Airliners": "Aviões comerciais",
|
||||
"Widebodies": "Aviões de fuselagem larga",
|
||||
"Business jets": "Jatos executivos",
|
||||
"Helicopters": "Helicópteros",
|
||||
"Turboprops": "Turboélices",
|
||||
"Fast jets": "Jatos rápidos",
|
||||
"Four-engine jets": "Quadrimotores",
|
||||
"M6 and above": "M6 ou mais",
|
||||
"M5 to 6": "M5 a 6",
|
||||
"M4 to 5": "M4 a 5",
|
||||
"Below M4": "Abaixo de M4",
|
||||
"{kind} {name}": "{kind} {name}",
|
||||
"place|Country": "País",
|
||||
"altitude|Level": "Nivelado",
|
||||
"{h} h {m} min": "{h} h {m} min",
|
||||
"{n} min": "{n} min",
|
||||
"{speed} {direction}": "{speed} de {direction}",
|
||||
"{n} mm": "{n} mm"
|
||||
}
|
||||
+290
-1
@@ -3983,5 +3983,294 @@
|
||||
"A visualization of the 26 August 2026 Bhote Koshi outburst flood, not an official hazard model. The historical (2021) and post-event views are Vantor WorldView imagery; the river’s path is GeoPera’s reconstruction. Witness clips link to their original posts, and their capture times are unverified.": "Визуализация прорывного паводка на Bhote Koshi 26 августа 2026 года, а не официальная модель опасности. Архивные виды (2021) и виды после события — снимки Vantor WorldView; путь реки — реконструкция GeoPera. Ролики очевидцев ведут на исходные публикации, время их съёмки не проверено.",
|
||||
"That story is not available here": "Эта история здесь недоступна",
|
||||
"DRAFT": "ЧЕРНОВИК",
|
||||
"A draft, not saved as a story yet. Use SAVE TO STORIES in AUTHORING to save it.": "Черновик, ещё не сохранённый как история. Нажмите «СОХРАНИТЬ В STORIES» в разделе РЕДАКТОР, чтобы сохранить его."
|
||||
"A draft, not saved as a story yet. Use SAVE TO STORIES in AUTHORING to save it.": "Черновик, ещё не сохранённый как история. Нажмите «СОХРАНИТЬ В STORIES» в разделе РЕДАКТОР, чтобы сохранить его.",
|
||||
"Heading to next stop": "Едет к следующей остановке",
|
||||
"Arriving at a stop": "Подъезжает к остановке",
|
||||
"Stopped at a stop": "Стоит на остановке",
|
||||
"Wikipedia": "Википедия",
|
||||
"Wikidata": "Викиданные",
|
||||
"Website": "Сайт",
|
||||
"Phase": "Фаза",
|
||||
"Flight level": "Эшелон",
|
||||
"Mach": "Мах",
|
||||
"Squawk {code}": "Сквок {code}",
|
||||
"Signal": "Сигнал",
|
||||
"Civilian, in the air": "Гражданские, в воздухе",
|
||||
"Military, in the air": "Военные, в воздухе",
|
||||
"On the ground": "На земле",
|
||||
"Motion": "Движение",
|
||||
"Operator": "Оператор",
|
||||
"Last reported": "Последний отчёт",
|
||||
"Crowding": "Заполненность",
|
||||
"Class": "Класс",
|
||||
"Magnitude": "Магнитуда",
|
||||
"Labels": "Подписи",
|
||||
"3D aircraft": "Самолёты в 3D",
|
||||
"M{mag} earthquake": "Землетрясение M{mag}",
|
||||
"Earthquake": "Землетрясение",
|
||||
"{n} kt winds": "Ветер {n} уз.",
|
||||
"Wildfire": "Лесной пожар",
|
||||
"{n} acres": "{n} акров",
|
||||
"{n}% contained": "Локализован на {n}%",
|
||||
"prescribed burn": "контролируемый пал",
|
||||
"{count} satellite fire hits": {
|
||||
"one": "{count} спутниковое обнаружение пожара",
|
||||
"few": "{count} спутниковых обнаружения пожара",
|
||||
"many": "{count} спутниковых обнаружений пожара",
|
||||
"other": "{count} спутникового обнаружения пожара"
|
||||
},
|
||||
"last day": "за сутки",
|
||||
"Conditions unknown": "Погода неизвестна",
|
||||
"Partly cloudy": "Переменная облачность",
|
||||
"Overcast": "Пасмурно",
|
||||
"Fog": "Туман",
|
||||
"Drizzle": "Морось",
|
||||
"Rain": "Дождь",
|
||||
"Snow": "Снег",
|
||||
"Rain showers": "Ливни",
|
||||
"Snow showers": "Снегопад",
|
||||
"Thunderstorm": "Гроза",
|
||||
"Mixed conditions": "Переменная погода",
|
||||
"Search {name} and nearby": "Поиск: {name} и рядом",
|
||||
"Search what is in view": "Поиск по видимому",
|
||||
"Close Context search": "Закрыть поиск в контексте",
|
||||
"Search in Context": "Поиск в контексте",
|
||||
"Close search": "Закрыть поиск",
|
||||
"Shrink Context back to a panel": "Свернуть контекст в панель",
|
||||
"Expand Context to a full-height column": "Развернуть контекст во всю высоту",
|
||||
"Context tabs": "Вкладки контекста",
|
||||
"Inspector": "Инспектор",
|
||||
"Properties": "Свойства",
|
||||
"Level": "Уровень",
|
||||
"Last {n} min": "За {n} мин",
|
||||
"Just now": "Только что",
|
||||
"Since selected": "С момента выбора",
|
||||
"Altitude": "Высота",
|
||||
"Heading": "Курс",
|
||||
"Field of view": "Поле зрения",
|
||||
"Camera frame": "Кадр камеры",
|
||||
"Acquiring frame…": "Получение кадра…",
|
||||
"Show a bigger view": "Показать крупнее",
|
||||
"Camera view": "Вид с камеры",
|
||||
"More info": "Подробнее",
|
||||
"{n} s ago": "{n} с назад",
|
||||
"{n} min ago": "{n} мин назад",
|
||||
"{n} h ago": "{n} ч назад",
|
||||
"{n} d ago": "{n} дн. назад",
|
||||
"Out of feed · last reading": "Нет в потоке · последние данные",
|
||||
"Live · {age}": "Сейчас · {age}",
|
||||
"{n} m": "{n} м",
|
||||
"{n} km": "{n} км",
|
||||
"updated {age}": "обновлено {age}",
|
||||
"Selected on the map": "Выбрано на карте",
|
||||
"Close card": "Закрыть карточку",
|
||||
"{n}% flown": "Пройдено {n}%",
|
||||
"to go": "осталось",
|
||||
"The scheduled route for this flight number does not match where the plane is; it may be another leg of the same flight.": "Плановый маршрут этого рейса не совпадает с положением самолёта; возможно, это другой участок того же рейса.",
|
||||
"Scheduled · unverified: does not match where the plane is": "По расписанию · не подтверждено: не совпадает с положением самолёта",
|
||||
"Nothing in this item’s details matches “{text}”.": "В сведениях об этом объекте нет «{text}».",
|
||||
"Matching details": "Совпадающие сведения",
|
||||
"Enter orbital view": "Войти в орбитальный вид",
|
||||
"Enter Cockpit": "Войти в кабину",
|
||||
"Fly to": "Перелететь",
|
||||
"Following": "Слежение",
|
||||
"Follow": "Следить",
|
||||
"Ask GEV about {name}": "Спросить GEV о {name}",
|
||||
"Flights within {radius}": "Рейсы в радиусе {radius}",
|
||||
"No flights within {radius} from the layers that are on.": "Во включённых слоях нет рейсов в радиусе {radius}.",
|
||||
"Vessels within {radius}": "Суда в радиусе {radius}",
|
||||
"No vessels within {radius} from the layers that are on.": "Во включённых слоях нет судов в радиусе {radius}.",
|
||||
"Cloud": "Облачность",
|
||||
"Visibility": "Видимость",
|
||||
"Conditions here": "Обстановка здесь",
|
||||
"feels {n}°": "ощущается как {n}°",
|
||||
"Reading conditions here…": "Получение обстановки…",
|
||||
"No weather reading here.": "Здесь нет данных о погоде.",
|
||||
"Local solar time": "Местное солнечное время",
|
||||
"Nearby radius": "Радиус поблизости",
|
||||
"How far out the nearby lists look": "Насколько далеко смотрят списки поблизости",
|
||||
"Hazards within {radius}": "Опасности в радиусе {radius}",
|
||||
"Turns the layer on": "Включает слой",
|
||||
"No earthquakes, tropical storms or wildfires reported within {radius}.": "В радиусе {radius} нет сообщений о землетрясениях, тропических штормах или лесных пожарах.",
|
||||
"Broadcast alerts within {radius}": "Оповещения в радиусе {radius}",
|
||||
"Also within {radius}": "Также в радиусе {radius}",
|
||||
"Local news": "Местные новости",
|
||||
"Sundial · {time} solar · sun {deg}° {dir}": "Солнечные часы · {time} по солнцу · солнце {deg}° {dir}",
|
||||
"Sundial · {time} solar · sun below the horizon": "Солнечные часы · {time} по солнцу · солнце за горизонтом",
|
||||
"{count} things": {
|
||||
"one": "{count} объект",
|
||||
"few": "{count} объекта",
|
||||
"many": "{count} объектов",
|
||||
"other": "{count} объекта"
|
||||
},
|
||||
"{count} layers": {
|
||||
"one": "{count} слоя",
|
||||
"few": "{count} слоёв",
|
||||
"many": "{count} слоёв",
|
||||
"other": "{count} слоя"
|
||||
},
|
||||
"{things} in view from {layers}": "В поле зрения {things} из {layers}",
|
||||
"{n} km up": "на высоте {n} км",
|
||||
"{n} m up": "на высоте {n} м",
|
||||
"This view": "Этот вид",
|
||||
"Day": "День",
|
||||
"Twilight": "Сумерки",
|
||||
"Night": "Ночь",
|
||||
"Daylight": "Освещённость",
|
||||
"sun {n}°": "солнце {n}°",
|
||||
"Of {n} read, {total} loaded": "Из {n} прочитанных, загружено {total}",
|
||||
"Of all {n}": "Из всех {n}",
|
||||
"Of {n} in view": "Из {n} в поле зрения",
|
||||
"Error": "Ошибка",
|
||||
"Stale": "Устарело",
|
||||
"In view": "В поле зрения",
|
||||
"Globe view": "Вид глобуса",
|
||||
"Nothing selected": "Ничего не выбрано",
|
||||
"Worldwide now": "Сейчас в мире",
|
||||
"Turn on {name}": "Включить {name}",
|
||||
"{n} loaded": "загружено {n}",
|
||||
"{n} in view": "{n} в поле зрения",
|
||||
"Turn off {name}": "Выключить {name}",
|
||||
"Camera height": "Высота камеры",
|
||||
"Nothing in view matches “{text}”.": "В поле зрения нет «{text}».",
|
||||
"Nothing from the layers that are on is in view here. Zoom out to see more.": "Из включённых слоёв здесь ничего не видно. Отдалите карту, чтобы увидеть больше.",
|
||||
"No loaded layer has anything in view. Turn some on in Data Layers.": "Ни в одном загруженном слое ничего не видно. Включите слои в разделе «Слои данных».",
|
||||
"Places in view": "Места в поле зрения",
|
||||
"Show here": "Показать здесь",
|
||||
"Ask GEV what's here": "Спросить GEV, что здесь",
|
||||
"aircraft": "воздушное судно",
|
||||
"vessel": "судно",
|
||||
"launch": "запуск",
|
||||
"fire": "пожар",
|
||||
"Fire detection": "Обнаружение пожара",
|
||||
"fire perimeter": "контур пожара",
|
||||
"earthquake": "землетрясение",
|
||||
"storm": "шторм",
|
||||
"air quality station": "станция качества воздуха",
|
||||
"installation": "объект",
|
||||
"dam": "плотина",
|
||||
"data centre": "центр обработки данных",
|
||||
"place": "место",
|
||||
"vehicle": "транспорт",
|
||||
"bike station": "велостанция",
|
||||
"plate reader": "считыватель номеров",
|
||||
"camera": "камера",
|
||||
"airspace": "воздушное пространство",
|
||||
"sighting": "наблюдение",
|
||||
"Callsign": "Позывной",
|
||||
"Registration": "Регистрация",
|
||||
"Aircraft class": "Класс ВС",
|
||||
"Course": "Курс",
|
||||
"Vertical rate": "Вертикальная скорость",
|
||||
"Squawk": "Сквок",
|
||||
"Emergency": "Чрезвычайная ситуация",
|
||||
"Last contact": "Последний контакт",
|
||||
"Ship type": "Тип судна",
|
||||
"Destination": "Пункт назначения",
|
||||
"Depth": "Глубина",
|
||||
"Time": "Время",
|
||||
"Place": "Место",
|
||||
"Fire power": "Мощность пожара",
|
||||
"Satellite": "Спутник",
|
||||
"Sensor": "Датчик",
|
||||
"Detected": "Обнаружено",
|
||||
"Contained": "Локализован",
|
||||
"Discovered": "Обнаружен",
|
||||
"Basin": "Бассейн",
|
||||
"Index": "Индекс",
|
||||
"Health risk": "Риск для здоровья",
|
||||
"Bikes": "Велосипеды",
|
||||
"Docks": "Места",
|
||||
"Floor": "Нижняя граница",
|
||||
"Ceiling": "Верхняя граница",
|
||||
"Active": "Действует",
|
||||
"NORAD ID": "NORAD ID",
|
||||
"MMSI": "MMSI",
|
||||
"ICAO24": "ICAO24",
|
||||
"Capacity": "Мощность",
|
||||
"Output": "Выработка",
|
||||
"River": "Река",
|
||||
"City": "Город",
|
||||
"State": "Штат",
|
||||
"Street": "Улица",
|
||||
"Opened": "Открыт",
|
||||
"Height": "Высота",
|
||||
"IT load": "ИТ-нагрузка",
|
||||
"Waterway": "Водный путь",
|
||||
"Military": "Военное",
|
||||
"Land use": "Землепользование",
|
||||
"Telecom": "Связь",
|
||||
"feature": "объект",
|
||||
"Empty": "Пусто",
|
||||
"Many seats free": "Много свободных мест",
|
||||
"Few seats free": "Мало свободных мест",
|
||||
"Standing room only": "Только стоячие места",
|
||||
"Crowded": "Переполнено",
|
||||
"Not taking passengers": "Посадки нет",
|
||||
"Major hurricane": "Сильный ураган",
|
||||
"Typhoon": "Тайфун",
|
||||
"Super typhoon": "Супертайфун",
|
||||
"Tropical cyclone": "Тропический циклон",
|
||||
"Prescribed burn": "Контролируемый пал",
|
||||
"Atlantic": "Атлантика",
|
||||
"Eastern Pacific": "Восточная часть Тихого океана",
|
||||
"Central Pacific": "Центральная часть Тихого океана",
|
||||
"Western Pacific": "Западная часть Тихого океана",
|
||||
"Indian Ocean": "Индийский океан",
|
||||
"Southern Hemisphere": "Южное полушарие",
|
||||
"Cable tram": "Канатный трамвай",
|
||||
"Aerial lift": "Канатная дорога",
|
||||
"Fishing": "Рыболовное",
|
||||
"Tug": "Буксир",
|
||||
"Sailing": "Парусное",
|
||||
"Pleasure craft": "Прогулочное",
|
||||
"Pilot vessel": "Лоцманское",
|
||||
"Search and rescue": "Поисково-спасательное",
|
||||
"Law enforcement": "Правоохранительное",
|
||||
"High-speed craft": "Скоростное",
|
||||
"Passenger": "Пассажирское",
|
||||
"Cargo": "Грузовое",
|
||||
"Tanker": "Танкер",
|
||||
"Yes": "Да",
|
||||
"{n} ft": "{n} фт",
|
||||
"{n} km/s": "{n} км/с",
|
||||
"{n} km/h": "{n} км/ч",
|
||||
"{n} kt": "{n} уз",
|
||||
"{n} ft/min": "{n} фт/мин",
|
||||
"{n}°": "{n}°",
|
||||
"M {n}": "M {n}",
|
||||
"{n} MW": "{n} МВт",
|
||||
"{n}%": "{n}%",
|
||||
"{n} hPa": "{n} гПа",
|
||||
"Hijack (squawk 7500)": "Захват (сквок 7500)",
|
||||
"Radio failure (squawk 7600)": "Отказ радиосвязи (сквок 7600)",
|
||||
"Emergency (squawk 7700)": "Бедствие (сквок 7700)",
|
||||
"Emergency: {kind}": "Чрезвычайная ситуация: {kind}",
|
||||
"Emergency declared": "Объявлена чрезвычайная ситуация",
|
||||
"Tsunami warning issued": "Объявлена угроза цунами",
|
||||
"VFR, no flight plan": "ПВП, без плана полёта",
|
||||
"VFR conspicuity": "Общий код ПВП",
|
||||
"IFR, no code yet": "ППП, код ещё не назначен",
|
||||
"Hijack": "Захват",
|
||||
"Climbing {n} ft/min": "Набор высоты {n} фт/мин",
|
||||
"Descending {n} ft/min": "Снижение {n} фт/мин",
|
||||
"Cruising, level": "Крейсерский полёт",
|
||||
"Airliners": "Авиалайнеры",
|
||||
"Widebodies": "Широкофюзеляжные",
|
||||
"Business jets": "Бизнес-джеты",
|
||||
"Helicopters": "Вертолёты",
|
||||
"Turboprops": "Турбовинтовые",
|
||||
"Fast jets": "Скоростные реактивные",
|
||||
"Four-engine jets": "Четырёхмоторные",
|
||||
"M6 and above": "M6 и выше",
|
||||
"M5 to 6": "M5–6",
|
||||
"M4 to 5": "M4–5",
|
||||
"Below M4": "Ниже M4",
|
||||
"{kind} {name}": "{kind} {name}",
|
||||
"place|Country": "Страна",
|
||||
"altitude|Level": "Без изменений",
|
||||
"{h} h {m} min": "{h} ч {m} мин",
|
||||
"{n} min": "{n} мин",
|
||||
"{speed} {direction}": "{speed}, {direction}",
|
||||
"{n} mm": "{n} мм"
|
||||
}
|
||||
+285
-2
@@ -3645,7 +3645,7 @@
|
||||
"Under 1 min": "Kortare än 1 min",
|
||||
"1 min or more": "1 min eller mer",
|
||||
"Shots": "Tagningar",
|
||||
"Layers on": "Aktiva lager",
|
||||
"Layers on": "Lager som är på",
|
||||
"Stories": "Berättelser",
|
||||
"NEW": "NYTT",
|
||||
"GEV Stories": "GEV Berättelser",
|
||||
@@ -3803,5 +3803,288 @@
|
||||
"A visualization of the 26 August 2026 Bhote Koshi outburst flood, not an official hazard model. The historical (2021) and post-event views are Vantor WorldView imagery; the river’s path is GeoPera’s reconstruction. Witness clips link to their original posts, and their capture times are unverified.": "En visualisering av dammbrottsfloden i Bhote Koshi den 26 augusti 2026, inte en officiell riskmodell. De historiska vyerna (2021) och vyerna efter händelsen är Vantor WorldView-bilder; flodens väg är GeoPeras rekonstruktion. Ögonvittnesklippen länkar till sina ursprungliga inlägg, och deras inspelningstider är inte verifierade.",
|
||||
"That story is not available here": "Den berättelsen är inte tillgänglig här",
|
||||
"DRAFT": "UTKAST",
|
||||
"A draft, not saved as a story yet. Use SAVE TO STORIES in AUTHORING to save it.": "Ett utkast som inte är sparat som berättelse än. Använd SPARA I STORIES under REDIGERING för att spara det."
|
||||
"A draft, not saved as a story yet. Use SAVE TO STORIES in AUTHORING to save it.": "Ett utkast som inte är sparat som berättelse än. Använd SPARA I STORIES under REDIGERING för att spara det.",
|
||||
"Heading to next stop": "På väg till nästa hållplats",
|
||||
"Arriving at a stop": "Ankommer till en hållplats",
|
||||
"Stopped at a stop": "Står vid en hållplats",
|
||||
"Wikipedia": "Wikipedia",
|
||||
"Wikidata": "Wikidata",
|
||||
"Website": "Webbplats",
|
||||
"Phase": "Fas",
|
||||
"Flight level": "Flygnivå",
|
||||
"Mach": "Mach",
|
||||
"Squawk {code}": "Squawk {code}",
|
||||
"Signal": "Signal",
|
||||
"Civilian, in the air": "Civila, i luften",
|
||||
"Military, in the air": "Militära, i luften",
|
||||
"On the ground": "På marken",
|
||||
"Motion": "Rörelse",
|
||||
"Operator": "Operatör",
|
||||
"Last reported": "Senast rapporterat",
|
||||
"Crowding": "Trängsel",
|
||||
"Class": "Klass",
|
||||
"Magnitude": "Magnitud",
|
||||
"Labels": "Etiketter",
|
||||
"3D aircraft": "3D-flygplan",
|
||||
"M{mag} earthquake": "Jordbävning M{mag}",
|
||||
"Earthquake": "Jordbävning",
|
||||
"{n} kt winds": "Vind {n} knop",
|
||||
"Wildfire": "Skogsbrand",
|
||||
"{n} acres": "{n} acres",
|
||||
"{n}% contained": "{n} % under kontroll",
|
||||
"prescribed burn": "naturvårdsbränning",
|
||||
"{count} satellite fire hits": {
|
||||
"one": "{count} brandträff från satellit",
|
||||
"other": "{count} brandträffar från satellit"
|
||||
},
|
||||
"last day": "senaste dygnet",
|
||||
"Conditions unknown": "Okänt väder",
|
||||
"Partly cloudy": "Halvklart",
|
||||
"Overcast": "Mulet",
|
||||
"Fog": "Dimma",
|
||||
"Drizzle": "Duggregn",
|
||||
"Rain": "Regn",
|
||||
"Snow": "Snö",
|
||||
"Rain showers": "Regnskurar",
|
||||
"Snow showers": "Snöbyar",
|
||||
"Thunderstorm": "Åska",
|
||||
"Mixed conditions": "Växlande väder",
|
||||
"Search {name} and nearby": "Sök i {name} och i närheten",
|
||||
"Search what is in view": "Sök bland det som syns",
|
||||
"Close Context search": "Stäng sökningen i Kontext",
|
||||
"Search in Context": "Sök i Kontext",
|
||||
"Close search": "Stäng sökningen",
|
||||
"Shrink Context back to a panel": "Krymp Kontext till en panel",
|
||||
"Expand Context to a full-height column": "Visa Kontext som en kolumn i full höjd",
|
||||
"Context tabs": "Flikar i Kontext",
|
||||
"Inspector": "Inspektör",
|
||||
"Properties": "Egenskaper",
|
||||
"Level": "Nivå",
|
||||
"Last {n} min": "Senaste {n} min",
|
||||
"Just now": "Nyss",
|
||||
"Since selected": "Sedan valet",
|
||||
"Altitude": "Höjd",
|
||||
"Heading": "Kurs",
|
||||
"Field of view": "Synfält",
|
||||
"Camera frame": "Kamerabild",
|
||||
"Acquiring frame…": "Hämtar bild…",
|
||||
"Show a bigger view": "Visa större",
|
||||
"Camera view": "Kameravy",
|
||||
"More info": "Mer info",
|
||||
"{n} s ago": "för {n} s sedan",
|
||||
"{n} min ago": "för {n} min sedan",
|
||||
"{n} h ago": "för {n} h sedan",
|
||||
"{n} d ago": "för {n} d sedan",
|
||||
"Out of feed · last reading": "Utanför flödet · senaste avläsning",
|
||||
"Live · {age}": "Live · {age}",
|
||||
"{n} m": "{n} m",
|
||||
"{n} km": "{n} km",
|
||||
"updated {age}": "uppdaterad {age}",
|
||||
"Selected on the map": "Valt på kartan",
|
||||
"Close card": "Stäng kortet",
|
||||
"{n}% flown": "{n} % flugen",
|
||||
"to go": "kvar",
|
||||
"The scheduled route for this flight number does not match where the plane is; it may be another leg of the same flight.": "Den planerade rutten för det här flightnumret stämmer inte med var planet är; det kan vara en annan etapp av samma flight.",
|
||||
"Scheduled · unverified: does not match where the plane is": "Planerad · ej bekräftad: stämmer inte med var planet är",
|
||||
"Nothing in this item’s details matches “{text}”.": "Inget i objektets detaljer matchar ”{text}”.",
|
||||
"Matching details": "Matchande detaljer",
|
||||
"Enter orbital view": "Öppna omloppsvyn",
|
||||
"Enter Cockpit": "Öppna cockpit",
|
||||
"Fly to": "Flyg dit",
|
||||
"Following": "Följer",
|
||||
"Follow": "Följ",
|
||||
"Ask GEV about {name}": "Fråga GEV om {name}",
|
||||
"Flights within {radius}": "Flyg inom {radius}",
|
||||
"No flights within {radius} from the layers that are on.": "Inga flyg inom {radius} från de lager som är på.",
|
||||
"Vessels within {radius}": "Fartyg inom {radius}",
|
||||
"No vessels within {radius} from the layers that are on.": "Inga fartyg inom {radius} från de lager som är på.",
|
||||
"Cloud": "Moln",
|
||||
"Visibility": "Sikt",
|
||||
"Conditions here": "Förhållanden här",
|
||||
"feels {n}°": "känns som {n}°",
|
||||
"Reading conditions here…": "Hämtar förhållanden här…",
|
||||
"No weather reading here.": "Ingen väderdata här.",
|
||||
"Local solar time": "Lokal soltid",
|
||||
"Nearby radius": "Radie i närheten",
|
||||
"How far out the nearby lists look": "Hur långt listorna i närheten når",
|
||||
"Hazards within {radius}": "Faror inom {radius}",
|
||||
"Turns the layer on": "Slår på lagret",
|
||||
"No earthquakes, tropical storms or wildfires reported within {radius}.": "Inga jordbävningar, tropiska stormar eller skogsbränder rapporterade inom {radius}.",
|
||||
"Broadcast alerts within {radius}": "Utsända varningar inom {radius}",
|
||||
"Also within {radius}": "Även inom {radius}",
|
||||
"Local news": "Lokala nyheter",
|
||||
"Sundial · {time} solar · sun {deg}° {dir}": "Solur · {time} soltid · sol {deg}° {dir}",
|
||||
"Sundial · {time} solar · sun below the horizon": "Solur · {time} soltid · solen under horisonten",
|
||||
"{count} things": {
|
||||
"one": "{count} sak",
|
||||
"other": "{count} saker"
|
||||
},
|
||||
"{count} layers": {
|
||||
"one": "{count} lager",
|
||||
"other": "{count} lager"
|
||||
},
|
||||
"{things} in view from {layers}": "{things} i vyn från {layers}",
|
||||
"{n} km up": "{n} km upp",
|
||||
"{n} m up": "{n} m upp",
|
||||
"This view": "Den här vyn",
|
||||
"Day": "Dag",
|
||||
"Twilight": "Skymning",
|
||||
"Night": "Natt",
|
||||
"Daylight": "Dagsljus",
|
||||
"sun {n}°": "sol {n}°",
|
||||
"Of {n} read, {total} loaded": "Av {n} lästa, {total} inlästa",
|
||||
"Of all {n}": "Av alla {n}",
|
||||
"Of {n} in view": "Av {n} i vyn",
|
||||
"Error": "Fel",
|
||||
"Stale": "Inaktuell",
|
||||
"In view": "I vyn",
|
||||
"Globe view": "Jordglobsvy",
|
||||
"Nothing selected": "Inget valt",
|
||||
"Worldwide now": "I världen nu",
|
||||
"Turn on {name}": "Slå på {name}",
|
||||
"{n} loaded": "{n} inlästa",
|
||||
"{n} in view": "{n} i vyn",
|
||||
"Turn off {name}": "Stäng av {name}",
|
||||
"Camera height": "Kamerahöjd",
|
||||
"Nothing in view matches “{text}”.": "Inget i vyn matchar ”{text}”.",
|
||||
"Nothing from the layers that are on is in view here. Zoom out to see more.": "Inget från lagren som är på syns här. Zooma ut för att se mer.",
|
||||
"No loaded layer has anything in view. Turn some on in Data Layers.": "Inget inläst lager har något i vyn. Slå på några under Datalager.",
|
||||
"Places in view": "Platser i vyn",
|
||||
"Show here": "Visa här",
|
||||
"Ask GEV what's here": "Fråga GEV vad som finns här",
|
||||
"aircraft": "flygplan",
|
||||
"vessel": "fartyg",
|
||||
"launch": "uppskjutning",
|
||||
"fire": "brand",
|
||||
"Fire detection": "Branddetektering",
|
||||
"fire perimeter": "brandområde",
|
||||
"earthquake": "jordbävning",
|
||||
"storm": "storm",
|
||||
"air quality station": "luftkvalitetsstation",
|
||||
"installation": "anläggning",
|
||||
"dam": "damm",
|
||||
"data centre": "datacenter",
|
||||
"place": "plats",
|
||||
"vehicle": "fordon",
|
||||
"bike station": "cykelstation",
|
||||
"plate reader": "skyltläsare",
|
||||
"camera": "kamera",
|
||||
"airspace": "luftrum",
|
||||
"sighting": "observation",
|
||||
"Callsign": "Anropssignal",
|
||||
"Registration": "Registrering",
|
||||
"Aircraft class": "Flygplansklass",
|
||||
"Course": "Kurs",
|
||||
"Vertical rate": "Vertikal hastighet",
|
||||
"Squawk": "Squawk",
|
||||
"Emergency": "Nödläge",
|
||||
"Last contact": "Senaste kontakt",
|
||||
"Ship type": "Fartygstyp",
|
||||
"Destination": "Destination",
|
||||
"Depth": "Djup",
|
||||
"Time": "Tid",
|
||||
"Place": "Plats",
|
||||
"Fire power": "Brandeffekt",
|
||||
"Satellite": "Satellit",
|
||||
"Sensor": "Sensor",
|
||||
"Detected": "Upptäckt",
|
||||
"Contained": "Under kontroll",
|
||||
"Discovered": "Upptäckt",
|
||||
"Basin": "Bassäng",
|
||||
"Index": "Index",
|
||||
"Health risk": "Hälsorisk",
|
||||
"Bikes": "Cyklar",
|
||||
"Docks": "Platser",
|
||||
"Floor": "Undre gräns",
|
||||
"Ceiling": "Övre gräns",
|
||||
"Active": "Aktiv",
|
||||
"NORAD ID": "NORAD-ID",
|
||||
"MMSI": "MMSI",
|
||||
"ICAO24": "ICAO24",
|
||||
"Capacity": "Kapacitet",
|
||||
"Output": "Effekt",
|
||||
"River": "Flod",
|
||||
"City": "Stad",
|
||||
"State": "Delstat",
|
||||
"Street": "Gata",
|
||||
"Opened": "Öppnad",
|
||||
"Height": "Höjd",
|
||||
"IT load": "IT-last",
|
||||
"Waterway": "Vattenväg",
|
||||
"Military": "Militär",
|
||||
"Land use": "Markanvändning",
|
||||
"Telecom": "Telekom",
|
||||
"feature": "objekt",
|
||||
"Empty": "Tom",
|
||||
"Many seats free": "Många lediga platser",
|
||||
"Few seats free": "Få lediga platser",
|
||||
"Standing room only": "Endast ståplatser",
|
||||
"Crowded": "Trångt",
|
||||
"Not taking passengers": "Tar inte emot resenärer",
|
||||
"Major hurricane": "Kraftig orkan",
|
||||
"Typhoon": "Tyfon",
|
||||
"Super typhoon": "Supertyfon",
|
||||
"Tropical cyclone": "Tropisk cyklon",
|
||||
"Prescribed burn": "Naturvårdsbränning",
|
||||
"Atlantic": "Atlanten",
|
||||
"Eastern Pacific": "Östra Stilla havet",
|
||||
"Central Pacific": "Centrala Stilla havet",
|
||||
"Western Pacific": "Västra Stilla havet",
|
||||
"Indian Ocean": "Indiska oceanen",
|
||||
"Southern Hemisphere": "Södra halvklotet",
|
||||
"Cable tram": "Kabelspårvagn",
|
||||
"Aerial lift": "Linbana",
|
||||
"Fishing": "Fiske",
|
||||
"Tug": "Bogserbåt",
|
||||
"Sailing": "Segelfartyg",
|
||||
"Pleasure craft": "Fritidsbåt",
|
||||
"Pilot vessel": "Lotsbåt",
|
||||
"Search and rescue": "Sjöräddning",
|
||||
"Law enforcement": "Myndighetsfartyg",
|
||||
"High-speed craft": "Snabbgående fartyg",
|
||||
"Passenger": "Passagerarfartyg",
|
||||
"Cargo": "Lastfartyg",
|
||||
"Tanker": "Tankfartyg",
|
||||
"Yes": "Ja",
|
||||
"{n} ft": "{n} ft",
|
||||
"{n} km/s": "{n} km/s",
|
||||
"{n} km/h": "{n} km/h",
|
||||
"{n} kt": "{n} kn",
|
||||
"{n} ft/min": "{n} ft/min",
|
||||
"{n}°": "{n}°",
|
||||
"M {n}": "M {n}",
|
||||
"{n} MW": "{n} MW",
|
||||
"{n}%": "{n} %",
|
||||
"{n} hPa": "{n} hPa",
|
||||
"Hijack (squawk 7500)": "Kapning (squawk 7500)",
|
||||
"Radio failure (squawk 7600)": "Radiofel (squawk 7600)",
|
||||
"Emergency (squawk 7700)": "Nödläge (squawk 7700)",
|
||||
"Emergency: {kind}": "Nödläge: {kind}",
|
||||
"Emergency declared": "Nödläge utlyst",
|
||||
"Tsunami warning issued": "Tsunamivarning utfärdad",
|
||||
"VFR, no flight plan": "VFR, ingen färdplan",
|
||||
"VFR conspicuity": "VFR-standardkod",
|
||||
"IFR, no code yet": "IFR, ingen kod än",
|
||||
"Hijack": "Kapning",
|
||||
"Climbing {n} ft/min": "Stiger {n} ft/min",
|
||||
"Descending {n} ft/min": "Sjunker {n} ft/min",
|
||||
"Cruising, level": "Marschflyg, plant",
|
||||
"Airliners": "Trafikflygplan",
|
||||
"Widebodies": "Widebody-plan",
|
||||
"Business jets": "Affärsjet",
|
||||
"Helicopters": "Helikoptrar",
|
||||
"Turboprops": "Turbopropplan",
|
||||
"Fast jets": "Stridsflygplan",
|
||||
"Four-engine jets": "Fyrmotoriga jetplan",
|
||||
"M6 and above": "M6 och över",
|
||||
"M5 to 6": "M5 till 6",
|
||||
"M4 to 5": "M4 till 5",
|
||||
"Below M4": "Under M4",
|
||||
"{kind} {name}": "{kind} {name}",
|
||||
"place|Country": "Land",
|
||||
"altitude|Level": "Oförändrad",
|
||||
"{h} h {m} min": "{h} h {m} min",
|
||||
"{n} min": "{n} min",
|
||||
"{speed} {direction}": "{speed} från {direction}",
|
||||
"{n} mm": "{n} mm"
|
||||
}
|
||||
+290
-1
@@ -3983,5 +3983,294 @@
|
||||
"A visualization of the 26 August 2026 Bhote Koshi outburst flood, not an official hazard model. The historical (2021) and post-event views are Vantor WorldView imagery; the river’s path is GeoPera’s reconstruction. Witness clips link to their original posts, and their capture times are unverified.": "Візуалізація прориву паводка на Bhote Koshi 26 серпня 2026 року, а не офіційна модель небезпеки. Архівні види (2021) і види після події — знімки Vantor WorldView; шлях річки — реконструкція GeoPera. Відео очевидців ведуть на початкові публікації, час їх зйомки не перевірено.",
|
||||
"That story is not available here": "Ця історія тут недоступна",
|
||||
"DRAFT": "ЧЕРНЕТКА",
|
||||
"A draft, not saved as a story yet. Use SAVE TO STORIES in AUTHORING to save it.": "Чернетка, ще не збережена як історія. Натисніть «ЗБЕРЕГТИ В STORIES» у розділі РЕДАКТОР, щоб зберегти її."
|
||||
"A draft, not saved as a story yet. Use SAVE TO STORIES in AUTHORING to save it.": "Чернетка, ще не збережена як історія. Натисніть «ЗБЕРЕГТИ В STORIES» у розділі РЕДАКТОР, щоб зберегти її.",
|
||||
"Heading to next stop": "Їде до наступної зупинки",
|
||||
"Arriving at a stop": "Під’їжджає до зупинки",
|
||||
"Stopped at a stop": "Стоїть на зупинці",
|
||||
"Wikipedia": "Вікіпедія",
|
||||
"Wikidata": "Вікідані",
|
||||
"Website": "Вебсайт",
|
||||
"Phase": "Фаза",
|
||||
"Flight level": "Ешелон",
|
||||
"Mach": "Мах",
|
||||
"Squawk {code}": "Сквок {code}",
|
||||
"Signal": "Сигнал",
|
||||
"Civilian, in the air": "Цивільні, у повітрі",
|
||||
"Military, in the air": "Військові, у повітрі",
|
||||
"On the ground": "На землі",
|
||||
"Motion": "Рух",
|
||||
"Operator": "Оператор",
|
||||
"Last reported": "Останнє повідомлення",
|
||||
"Crowding": "Заповненість",
|
||||
"Class": "Клас",
|
||||
"Magnitude": "Магнітуда",
|
||||
"Labels": "Підписи",
|
||||
"3D aircraft": "Літаки в 3D",
|
||||
"M{mag} earthquake": "Землетрус M{mag}",
|
||||
"Earthquake": "Землетрус",
|
||||
"{n} kt winds": "Вітер {n} вуз.",
|
||||
"Wildfire": "Лісова пожежа",
|
||||
"{n} acres": "{n} акрів",
|
||||
"{n}% contained": "Локалізовано на {n}%",
|
||||
"prescribed burn": "контрольоване випалювання",
|
||||
"{count} satellite fire hits": {
|
||||
"one": "{count} супутникове виявлення пожежі",
|
||||
"few": "{count} супутникові виявлення пожежі",
|
||||
"many": "{count} супутникових виявлень пожежі",
|
||||
"other": "{count} супутникового виявлення пожежі"
|
||||
},
|
||||
"last day": "за добу",
|
||||
"Conditions unknown": "Погода невідома",
|
||||
"Partly cloudy": "Мінлива хмарність",
|
||||
"Overcast": "Похмуро",
|
||||
"Fog": "Туман",
|
||||
"Drizzle": "Мряка",
|
||||
"Rain": "Дощ",
|
||||
"Snow": "Сніг",
|
||||
"Rain showers": "Зливи",
|
||||
"Snow showers": "Снігопад",
|
||||
"Thunderstorm": "Гроза",
|
||||
"Mixed conditions": "Мінлива погода",
|
||||
"Search {name} and nearby": "Пошук: {name} і поруч",
|
||||
"Search what is in view": "Пошук у видимому",
|
||||
"Close Context search": "Закрити пошук у контексті",
|
||||
"Search in Context": "Пошук у контексті",
|
||||
"Close search": "Закрити пошук",
|
||||
"Shrink Context back to a panel": "Згорнути контекст у панель",
|
||||
"Expand Context to a full-height column": "Розгорнути контекст на всю висоту",
|
||||
"Context tabs": "Вкладки контексту",
|
||||
"Inspector": "Інспектор",
|
||||
"Properties": "Властивості",
|
||||
"Level": "Рівень",
|
||||
"Last {n} min": "За {n} хв",
|
||||
"Just now": "Щойно",
|
||||
"Since selected": "Від вибору",
|
||||
"Altitude": "Висота",
|
||||
"Heading": "Курс",
|
||||
"Field of view": "Поле зору",
|
||||
"Camera frame": "Кадр камери",
|
||||
"Acquiring frame…": "Отримання кадру…",
|
||||
"Show a bigger view": "Показати більше",
|
||||
"Camera view": "Вигляд із камери",
|
||||
"More info": "Докладніше",
|
||||
"{n} s ago": "{n} с тому",
|
||||
"{n} min ago": "{n} хв тому",
|
||||
"{n} h ago": "{n} год тому",
|
||||
"{n} d ago": "{n} дн. тому",
|
||||
"Out of feed · last reading": "Немає в потоці · останні дані",
|
||||
"Live · {age}": "Зараз · {age}",
|
||||
"{n} m": "{n} м",
|
||||
"{n} km": "{n} км",
|
||||
"updated {age}": "оновлено {age}",
|
||||
"Selected on the map": "Вибрано на мапі",
|
||||
"Close card": "Закрити картку",
|
||||
"{n}% flown": "Пройдено {n}%",
|
||||
"to go": "залишилось",
|
||||
"The scheduled route for this flight number does not match where the plane is; it may be another leg of the same flight.": "Плановий маршрут цього рейсу не збігається з положенням літака; можливо, це інша ділянка того самого рейсу.",
|
||||
"Scheduled · unverified: does not match where the plane is": "За розкладом · не підтверджено: не збігається з положенням літака",
|
||||
"Nothing in this item’s details matches “{text}”.": "У відомостях про цей об’єкт немає «{text}».",
|
||||
"Matching details": "Збіги у відомостях",
|
||||
"Enter orbital view": "Увійти в орбітальний вигляд",
|
||||
"Enter Cockpit": "Увійти в кабіну",
|
||||
"Fly to": "Перелетіти",
|
||||
"Following": "Стеження",
|
||||
"Follow": "Стежити",
|
||||
"Ask GEV about {name}": "Запитати GEV про {name}",
|
||||
"Flights within {radius}": "Рейси в радіусі {radius}",
|
||||
"No flights within {radius} from the layers that are on.": "В увімкнених шарах немає рейсів у радіусі {radius}.",
|
||||
"Vessels within {radius}": "Судна в радіусі {radius}",
|
||||
"No vessels within {radius} from the layers that are on.": "В увімкнених шарах немає суден у радіусі {radius}.",
|
||||
"Cloud": "Хмарність",
|
||||
"Visibility": "Видимість",
|
||||
"Conditions here": "Обстановка тут",
|
||||
"feels {n}°": "відчувається як {n}°",
|
||||
"Reading conditions here…": "Отримання обстановки…",
|
||||
"No weather reading here.": "Тут немає даних про погоду.",
|
||||
"Local solar time": "Місцевий сонячний час",
|
||||
"Nearby radius": "Радіус поблизу",
|
||||
"How far out the nearby lists look": "Наскільки далеко сягають списки поблизу",
|
||||
"Hazards within {radius}": "Небезпеки в радіусі {radius}",
|
||||
"Turns the layer on": "Вмикає шар",
|
||||
"No earthquakes, tropical storms or wildfires reported within {radius}.": "У радіусі {radius} немає повідомлень про землетруси, тропічні шторми чи лісові пожежі.",
|
||||
"Broadcast alerts within {radius}": "Сповіщення в радіусі {radius}",
|
||||
"Also within {radius}": "Також у радіусі {radius}",
|
||||
"Local news": "Місцеві новини",
|
||||
"Sundial · {time} solar · sun {deg}° {dir}": "Сонячний годинник · {time} за сонцем · сонце {deg}° {dir}",
|
||||
"Sundial · {time} solar · sun below the horizon": "Сонячний годинник · {time} за сонцем · сонце за обрієм",
|
||||
"{count} things": {
|
||||
"one": "{count} об’єкт",
|
||||
"few": "{count} об’єкти",
|
||||
"many": "{count} об’єктів",
|
||||
"other": "{count} об’єкта"
|
||||
},
|
||||
"{count} layers": {
|
||||
"one": "{count} шару",
|
||||
"few": "{count} шарів",
|
||||
"many": "{count} шарів",
|
||||
"other": "{count} шару"
|
||||
},
|
||||
"{things} in view from {layers}": "У полі зору {things} з {layers}",
|
||||
"{n} km up": "на висоті {n} км",
|
||||
"{n} m up": "на висоті {n} м",
|
||||
"This view": "Цей вигляд",
|
||||
"Day": "День",
|
||||
"Twilight": "Сутінки",
|
||||
"Night": "Ніч",
|
||||
"Daylight": "Освітленість",
|
||||
"sun {n}°": "сонце {n}°",
|
||||
"Of {n} read, {total} loaded": "З {n} прочитаних завантажено {total}",
|
||||
"Of all {n}": "З усіх {n}",
|
||||
"Of {n} in view": "З {n} у полі зору",
|
||||
"Error": "Помилка",
|
||||
"Stale": "Застаріло",
|
||||
"In view": "У полі зору",
|
||||
"Globe view": "Вигляд глобуса",
|
||||
"Nothing selected": "Нічого не вибрано",
|
||||
"Worldwide now": "Зараз у світі",
|
||||
"Turn on {name}": "Увімкнути {name}",
|
||||
"{n} loaded": "завантажено {n}",
|
||||
"{n} in view": "{n} у полі зору",
|
||||
"Turn off {name}": "Вимкнути {name}",
|
||||
"Camera height": "Висота камери",
|
||||
"Nothing in view matches “{text}”.": "У полі зору немає «{text}».",
|
||||
"Nothing from the layers that are on is in view here. Zoom out to see more.": "З увімкнених шарів тут нічого не видно. Віддаліть мапу, щоб побачити більше.",
|
||||
"No loaded layer has anything in view. Turn some on in Data Layers.": "У жодному завантаженому шарі нічого не видно. Увімкніть шари в розділі «Шари даних».",
|
||||
"Places in view": "Місця в полі зору",
|
||||
"Show here": "Показати тут",
|
||||
"Ask GEV what's here": "Запитати GEV, що тут",
|
||||
"aircraft": "повітряне судно",
|
||||
"vessel": "судно",
|
||||
"launch": "запуск",
|
||||
"fire": "пожежа",
|
||||
"Fire detection": "Виявлення пожежі",
|
||||
"fire perimeter": "контур пожежі",
|
||||
"earthquake": "землетрус",
|
||||
"storm": "шторм",
|
||||
"air quality station": "станція якості повітря",
|
||||
"installation": "об’єкт",
|
||||
"dam": "гребля",
|
||||
"data centre": "центр обробки даних",
|
||||
"place": "місце",
|
||||
"vehicle": "транспорт",
|
||||
"bike station": "велостанція",
|
||||
"plate reader": "зчитувач номерів",
|
||||
"camera": "камера",
|
||||
"airspace": "повітряний простір",
|
||||
"sighting": "спостереження",
|
||||
"Callsign": "Позивний",
|
||||
"Registration": "Реєстрація",
|
||||
"Aircraft class": "Клас ПС",
|
||||
"Course": "Курс",
|
||||
"Vertical rate": "Вертикальна швидкість",
|
||||
"Squawk": "Сквок",
|
||||
"Emergency": "Надзвичайна ситуація",
|
||||
"Last contact": "Останній контакт",
|
||||
"Ship type": "Тип судна",
|
||||
"Destination": "Пункт призначення",
|
||||
"Depth": "Глибина",
|
||||
"Time": "Час",
|
||||
"Place": "Місце",
|
||||
"Fire power": "Потужність пожежі",
|
||||
"Satellite": "Супутник",
|
||||
"Sensor": "Датчик",
|
||||
"Detected": "Виявлено",
|
||||
"Contained": "Локалізовано",
|
||||
"Discovered": "Виявлено",
|
||||
"Basin": "Басейн",
|
||||
"Index": "Індекс",
|
||||
"Health risk": "Ризик для здоров’я",
|
||||
"Bikes": "Велосипеди",
|
||||
"Docks": "Місця",
|
||||
"Floor": "Нижня межа",
|
||||
"Ceiling": "Верхня межа",
|
||||
"Active": "Діє",
|
||||
"NORAD ID": "NORAD ID",
|
||||
"MMSI": "MMSI",
|
||||
"ICAO24": "ICAO24",
|
||||
"Capacity": "Потужність",
|
||||
"Output": "Вироблення",
|
||||
"River": "Річка",
|
||||
"City": "Місто",
|
||||
"State": "Штат",
|
||||
"Street": "Вулиця",
|
||||
"Opened": "Відкрито",
|
||||
"Height": "Висота",
|
||||
"IT load": "ІТ-навантаження",
|
||||
"Waterway": "Водний шлях",
|
||||
"Military": "Військове",
|
||||
"Land use": "Землекористування",
|
||||
"Telecom": "Зв’язок",
|
||||
"feature": "об’єкт",
|
||||
"Empty": "Порожньо",
|
||||
"Many seats free": "Багато вільних місць",
|
||||
"Few seats free": "Мало вільних місць",
|
||||
"Standing room only": "Лише стоячі місця",
|
||||
"Crowded": "Переповнено",
|
||||
"Not taking passengers": "Посадки немає",
|
||||
"Major hurricane": "Сильний ураган",
|
||||
"Typhoon": "Тайфун",
|
||||
"Super typhoon": "Супертайфун",
|
||||
"Tropical cyclone": "Тропічний циклон",
|
||||
"Prescribed burn": "Контрольоване випалювання",
|
||||
"Atlantic": "Атлантика",
|
||||
"Eastern Pacific": "Східна частина Тихого океану",
|
||||
"Central Pacific": "Центральна частина Тихого океану",
|
||||
"Western Pacific": "Західна частина Тихого океану",
|
||||
"Indian Ocean": "Індійський океан",
|
||||
"Southern Hemisphere": "Південна півкуля",
|
||||
"Cable tram": "Канатний трамвай",
|
||||
"Aerial lift": "Канатна дорога",
|
||||
"Fishing": "Рибальське",
|
||||
"Tug": "Буксир",
|
||||
"Sailing": "Вітрильне",
|
||||
"Pleasure craft": "Прогулянкове",
|
||||
"Pilot vessel": "Лоцманське",
|
||||
"Search and rescue": "Пошуково-рятувальне",
|
||||
"Law enforcement": "Правоохоронне",
|
||||
"High-speed craft": "Швидкісне",
|
||||
"Passenger": "Пасажирське",
|
||||
"Cargo": "Вантажне",
|
||||
"Tanker": "Танкер",
|
||||
"Yes": "Так",
|
||||
"{n} ft": "{n} фт",
|
||||
"{n} km/s": "{n} км/с",
|
||||
"{n} km/h": "{n} км/год",
|
||||
"{n} kt": "{n} вуз",
|
||||
"{n} ft/min": "{n} фт/хв",
|
||||
"{n}°": "{n}°",
|
||||
"M {n}": "M {n}",
|
||||
"{n} MW": "{n} МВт",
|
||||
"{n}%": "{n}%",
|
||||
"{n} hPa": "{n} гПа",
|
||||
"Hijack (squawk 7500)": "Захоплення (сквок 7500)",
|
||||
"Radio failure (squawk 7600)": "Відмова радіозв’язку (сквок 7600)",
|
||||
"Emergency (squawk 7700)": "Лихо (сквок 7700)",
|
||||
"Emergency: {kind}": "Надзвичайна ситуація: {kind}",
|
||||
"Emergency declared": "Оголошено надзвичайну ситуацію",
|
||||
"Tsunami warning issued": "Оголошено загрозу цунамі",
|
||||
"VFR, no flight plan": "ПВП, без плану польоту",
|
||||
"VFR conspicuity": "Загальний код ПВП",
|
||||
"IFR, no code yet": "ППП, код ще не призначено",
|
||||
"Hijack": "Захоплення",
|
||||
"Climbing {n} ft/min": "Набір висоти {n} фт/хв",
|
||||
"Descending {n} ft/min": "Зниження {n} фт/хв",
|
||||
"Cruising, level": "Крейсерський політ",
|
||||
"Airliners": "Авіалайнери",
|
||||
"Widebodies": "Широкофюзеляжні",
|
||||
"Business jets": "Бізнес-джети",
|
||||
"Helicopters": "Гелікоптери",
|
||||
"Turboprops": "Турбогвинтові",
|
||||
"Fast jets": "Швидкісні реактивні",
|
||||
"Four-engine jets": "Чотиримоторні",
|
||||
"M6 and above": "M6 і вище",
|
||||
"M5 to 6": "M5–6",
|
||||
"M4 to 5": "M4–5",
|
||||
"Below M4": "Нижче M4",
|
||||
"{kind} {name}": "{kind} {name}",
|
||||
"place|Country": "Країна",
|
||||
"altitude|Level": "Без змін",
|
||||
"{h} h {m} min": "{h} год {m} хв",
|
||||
"{n} min": "{n} хв",
|
||||
"{speed} {direction}": "{speed}, {direction}",
|
||||
"{n} mm": "{n} мм"
|
||||
}
|
||||
+282
-2
@@ -3558,7 +3558,7 @@
|
||||
"Under 1 min": "不到 1 分钟",
|
||||
"1 min or more": "1 分钟及以上",
|
||||
"Shots": "镜头",
|
||||
"Layers on": "已开图层",
|
||||
"Layers on": "已开启的图层",
|
||||
"Stories": "故事",
|
||||
"NEW": "新",
|
||||
"GEV Stories": "GEV 故事",
|
||||
@@ -3713,5 +3713,285 @@
|
||||
"A visualization of the 26 August 2026 Bhote Koshi outburst flood, not an official hazard model. The historical (2021) and post-event views are Vantor WorldView imagery; the river’s path is GeoPera’s reconstruction. Witness clips link to their original posts, and their capture times are unverified.": "这是 2026 年 8 月 26 日 Bhote Koshi 溃决洪水的可视化,并非官方灾害模型。历史(2021 年)与事件后视图为 Vantor WorldView 影像;河流路径为 GeoPera 的重建结果。目击者视频链接到其原始帖子,拍摄时间未经核实。",
|
||||
"That story is not available here": "该故事在此处不可用",
|
||||
"DRAFT": "草稿",
|
||||
"A draft, not saved as a story yet. Use SAVE TO STORIES in AUTHORING to save it.": "尚未保存为故事的草稿。在“创作”中使用“保存到 STORIES”即可保存。"
|
||||
"A draft, not saved as a story yet. Use SAVE TO STORIES in AUTHORING to save it.": "尚未保存为故事的草稿。在“创作”中使用“保存到 STORIES”即可保存。",
|
||||
"Heading to next stop": "前往下一站",
|
||||
"Arriving at a stop": "即将到站",
|
||||
"Stopped at a stop": "停靠站点",
|
||||
"Wikipedia": "维基百科",
|
||||
"Wikidata": "维基数据",
|
||||
"Website": "网站",
|
||||
"Phase": "阶段",
|
||||
"Flight level": "飞行高度层",
|
||||
"Mach": "马赫",
|
||||
"Squawk {code}": "应答机编码 {code}",
|
||||
"Signal": "信号",
|
||||
"Civilian, in the air": "民用,空中",
|
||||
"Military, in the air": "军用,空中",
|
||||
"On the ground": "地面",
|
||||
"Motion": "运动",
|
||||
"Operator": "运营商",
|
||||
"Last reported": "最近报告",
|
||||
"Crowding": "拥挤程度",
|
||||
"Class": "类别",
|
||||
"Magnitude": "震级",
|
||||
"Labels": "标签",
|
||||
"3D aircraft": "3D 飞机",
|
||||
"M{mag} earthquake": "{mag} 级地震",
|
||||
"Earthquake": "地震",
|
||||
"{n} kt winds": "风速 {n} 节",
|
||||
"Wildfire": "野火",
|
||||
"{n} acres": "{n} 英亩",
|
||||
"{n}% contained": "已控制 {n}%",
|
||||
"prescribed burn": "计划烧除",
|
||||
"{count} satellite fire hits": {
|
||||
"other": "{count} 个卫星火点"
|
||||
},
|
||||
"last day": "过去一天",
|
||||
"Conditions unknown": "天气未知",
|
||||
"Partly cloudy": "局部多云",
|
||||
"Overcast": "阴",
|
||||
"Fog": "雾",
|
||||
"Drizzle": "毛毛雨",
|
||||
"Rain": "雨",
|
||||
"Snow": "雪",
|
||||
"Rain showers": "阵雨",
|
||||
"Snow showers": "阵雪",
|
||||
"Thunderstorm": "雷暴",
|
||||
"Mixed conditions": "天气多变",
|
||||
"Search {name} and nearby": "搜索 {name} 及附近",
|
||||
"Search what is in view": "搜索视野内内容",
|
||||
"Close Context search": "关闭态势搜索",
|
||||
"Search in Context": "在态势中搜索",
|
||||
"Close search": "关闭搜索",
|
||||
"Shrink Context back to a panel": "将态势缩回面板",
|
||||
"Expand Context to a full-height column": "将态势展开为全高栏",
|
||||
"Context tabs": "态势标签页",
|
||||
"Inspector": "检查器",
|
||||
"Properties": "属性",
|
||||
"Level": "等级",
|
||||
"Last {n} min": "最近 {n} 分钟",
|
||||
"Just now": "刚刚",
|
||||
"Since selected": "自选中起",
|
||||
"Altitude": "高度",
|
||||
"Heading": "航向",
|
||||
"Field of view": "视场",
|
||||
"Camera frame": "摄像头画面",
|
||||
"Acquiring frame…": "正在获取画面…",
|
||||
"Show a bigger view": "放大查看",
|
||||
"Camera view": "摄像头视图",
|
||||
"More info": "更多信息",
|
||||
"{n} s ago": "{n} 秒前",
|
||||
"{n} min ago": "{n} 分钟前",
|
||||
"{n} h ago": "{n} 小时前",
|
||||
"{n} d ago": "{n} 天前",
|
||||
"Out of feed · last reading": "已离开数据源 · 最后读数",
|
||||
"Live · {age}": "实时 · {age}",
|
||||
"{n} m": "{n} m",
|
||||
"{n} km": "{n} km",
|
||||
"updated {age}": "更新于 {age}",
|
||||
"Selected on the map": "地图上的选中项",
|
||||
"Close card": "关闭卡片",
|
||||
"{n}% flown": "已飞 {n}%",
|
||||
"to go": "剩余",
|
||||
"The scheduled route for this flight number does not match where the plane is; it may be another leg of the same flight.": "该航班号的计划航线与飞机位置不符,可能是同一航班的另一航段。",
|
||||
"Scheduled · unverified: does not match where the plane is": "计划 · 未核实:与飞机位置不符",
|
||||
"Nothing in this item’s details matches “{text}”.": "此项详情中没有与“{text}”匹配的内容。",
|
||||
"Matching details": "匹配的详情",
|
||||
"Enter orbital view": "进入轨道视图",
|
||||
"Enter Cockpit": "进入座舱",
|
||||
"Fly to": "飞往",
|
||||
"Following": "跟随中",
|
||||
"Follow": "跟随",
|
||||
"Ask GEV about {name}": "向 GEV 询问 {name}",
|
||||
"Flights within {radius}": "{radius} 内的航班",
|
||||
"No flights within {radius} from the layers that are on.": "已开启的图层中 {radius} 内没有航班。",
|
||||
"Vessels within {radius}": "{radius} 内的船舶",
|
||||
"No vessels within {radius} from the layers that are on.": "已开启的图层中 {radius} 内没有船舶。",
|
||||
"Cloud": "云量",
|
||||
"Visibility": "能见度",
|
||||
"Conditions here": "此处状况",
|
||||
"feels {n}°": "体感 {n}°",
|
||||
"Reading conditions here…": "正在读取此处状况…",
|
||||
"No weather reading here.": "此处没有天气数据。",
|
||||
"Local solar time": "当地太阳时",
|
||||
"Nearby radius": "附近半径",
|
||||
"How far out the nearby lists look": "附近列表的范围",
|
||||
"Hazards within {radius}": "{radius} 内的灾害",
|
||||
"Turns the layer on": "开启该图层",
|
||||
"No earthquakes, tropical storms or wildfires reported within {radius}.": "{radius} 内未报告地震、热带风暴或野火。",
|
||||
"Broadcast alerts within {radius}": "{radius} 内的广播警报",
|
||||
"Also within {radius}": "{radius} 内的其他项",
|
||||
"Local news": "本地新闻",
|
||||
"Sundial · {time} solar · sun {deg}° {dir}": "日晷 · 太阳时 {time} · 太阳 {deg}° {dir}",
|
||||
"Sundial · {time} solar · sun below the horizon": "日晷 · 太阳时 {time} · 太阳在地平线下",
|
||||
"{count} things": {
|
||||
"other": "{count} 项"
|
||||
},
|
||||
"{count} layers": {
|
||||
"other": "{count} 个图层"
|
||||
},
|
||||
"{things} in view from {layers}": "视野内有来自 {layers} 的 {things}",
|
||||
"{n} km up": "高 {n} km",
|
||||
"{n} m up": "高 {n} m",
|
||||
"This view": "当前视图",
|
||||
"Day": "白天",
|
||||
"Twilight": "晨昏",
|
||||
"Night": "夜间",
|
||||
"Daylight": "日照",
|
||||
"sun {n}°": "太阳 {n}°",
|
||||
"Of {n} read, {total} loaded": "读取 {n} 个,已加载 {total} 个",
|
||||
"Of all {n}": "全部 {n} 个中",
|
||||
"Of {n} in view": "视野内 {n} 个中",
|
||||
"Error": "错误",
|
||||
"Stale": "已过时",
|
||||
"In view": "视野内",
|
||||
"Globe view": "地球视图",
|
||||
"Nothing selected": "未选中任何内容",
|
||||
"Worldwide now": "全球当前",
|
||||
"Turn on {name}": "开启 {name}",
|
||||
"{n} loaded": "已加载 {n}",
|
||||
"{n} in view": "视野内 {n}",
|
||||
"Turn off {name}": "关闭 {name}",
|
||||
"Camera height": "相机高度",
|
||||
"Nothing in view matches “{text}”.": "视野内没有与“{text}”匹配的内容。",
|
||||
"Nothing from the layers that are on is in view here. Zoom out to see more.": "已开启的图层在此处视野内没有内容。缩小以查看更多。",
|
||||
"No loaded layer has anything in view. Turn some on in Data Layers.": "已加载的图层在视野内都没有内容。请在数据图层中开启一些。",
|
||||
"Places in view": "视野内的地点",
|
||||
"Show here": "在此显示",
|
||||
"Ask GEV what's here": "问问 GEV 这里有什么",
|
||||
"aircraft": "飞机",
|
||||
"vessel": "船舶",
|
||||
"launch": "发射",
|
||||
"fire": "火点",
|
||||
"Fire detection": "火点探测",
|
||||
"fire perimeter": "火场范围",
|
||||
"earthquake": "地震",
|
||||
"storm": "风暴",
|
||||
"air quality station": "空气质量站",
|
||||
"installation": "设施",
|
||||
"dam": "水坝",
|
||||
"data centre": "数据中心",
|
||||
"place": "地点",
|
||||
"vehicle": "车辆",
|
||||
"bike station": "单车站",
|
||||
"plate reader": "车牌识别器",
|
||||
"camera": "摄像头",
|
||||
"airspace": "空域",
|
||||
"sighting": "目击",
|
||||
"Callsign": "呼号",
|
||||
"Registration": "注册号",
|
||||
"Aircraft class": "机型类别",
|
||||
"Course": "航线",
|
||||
"Vertical rate": "垂直速率",
|
||||
"Squawk": "应答机编码",
|
||||
"Emergency": "紧急情况",
|
||||
"Last contact": "最后联系",
|
||||
"Ship type": "船舶类型",
|
||||
"Destination": "目的地",
|
||||
"Depth": "深度",
|
||||
"Time": "时间",
|
||||
"Place": "地点",
|
||||
"Fire power": "火点功率",
|
||||
"Satellite": "卫星",
|
||||
"Sensor": "传感器",
|
||||
"Detected": "探测时间",
|
||||
"Contained": "已控制",
|
||||
"Discovered": "发现时间",
|
||||
"Basin": "海域",
|
||||
"Index": "指数",
|
||||
"Health risk": "健康风险",
|
||||
"Bikes": "单车",
|
||||
"Docks": "车桩",
|
||||
"Floor": "下限",
|
||||
"Ceiling": "上限",
|
||||
"Active": "生效时间",
|
||||
"NORAD ID": "NORAD 编号",
|
||||
"MMSI": "MMSI",
|
||||
"ICAO24": "ICAO24",
|
||||
"Capacity": "容量",
|
||||
"Output": "输出",
|
||||
"River": "河流",
|
||||
"City": "城市",
|
||||
"State": "州",
|
||||
"Street": "街道",
|
||||
"Opened": "启用",
|
||||
"Height": "高度",
|
||||
"IT load": "IT 负载",
|
||||
"Waterway": "水道",
|
||||
"Military": "军用",
|
||||
"Land use": "土地用途",
|
||||
"Telecom": "电信",
|
||||
"feature": "要素",
|
||||
"Empty": "空车",
|
||||
"Many seats free": "空座较多",
|
||||
"Few seats free": "空座较少",
|
||||
"Standing room only": "仅剩站位",
|
||||
"Crowded": "拥挤",
|
||||
"Not taking passengers": "不载客",
|
||||
"Major hurricane": "强飓风",
|
||||
"Typhoon": "台风",
|
||||
"Super typhoon": "超强台风",
|
||||
"Tropical cyclone": "热带气旋",
|
||||
"Prescribed burn": "计划烧除",
|
||||
"Atlantic": "大西洋",
|
||||
"Eastern Pacific": "东太平洋",
|
||||
"Central Pacific": "中太平洋",
|
||||
"Western Pacific": "西太平洋",
|
||||
"Indian Ocean": "印度洋",
|
||||
"Southern Hemisphere": "南半球",
|
||||
"Cable tram": "缆索电车",
|
||||
"Aerial lift": "空中缆车",
|
||||
"Fishing": "渔船",
|
||||
"Tug": "拖船",
|
||||
"Sailing": "帆船",
|
||||
"Pleasure craft": "游艇",
|
||||
"Pilot vessel": "引航船",
|
||||
"Search and rescue": "搜救船",
|
||||
"Law enforcement": "执法船",
|
||||
"High-speed craft": "高速船",
|
||||
"Passenger": "客船",
|
||||
"Cargo": "货船",
|
||||
"Tanker": "油轮",
|
||||
"Yes": "是",
|
||||
"{n} ft": "{n} ft",
|
||||
"{n} km/s": "{n} km/s",
|
||||
"{n} km/h": "{n} km/h",
|
||||
"{n} kt": "{n} kn",
|
||||
"{n} ft/min": "{n} ft/min",
|
||||
"{n}°": "{n}°",
|
||||
"M {n}": "M {n}",
|
||||
"{n} MW": "{n} MW",
|
||||
"{n}%": "{n}%",
|
||||
"{n} hPa": "{n} hPa",
|
||||
"Hijack (squawk 7500)": "劫机(应答机编码 7500)",
|
||||
"Radio failure (squawk 7600)": "无线电故障(应答机编码 7600)",
|
||||
"Emergency (squawk 7700)": "紧急情况(应答机编码 7700)",
|
||||
"Emergency: {kind}": "紧急情况:{kind}",
|
||||
"Emergency declared": "已宣布紧急情况",
|
||||
"Tsunami warning issued": "已发布海啸警报",
|
||||
"VFR, no flight plan": "VFR,无飞行计划",
|
||||
"VFR conspicuity": "VFR 识别码",
|
||||
"IFR, no code yet": "IFR,尚未分配编码",
|
||||
"Hijack": "劫机",
|
||||
"Climbing {n} ft/min": "爬升 {n} ft/min",
|
||||
"Descending {n} ft/min": "下降 {n} ft/min",
|
||||
"Cruising, level": "巡航,平飞",
|
||||
"Airliners": "客机",
|
||||
"Widebodies": "宽体机",
|
||||
"Business jets": "公务机",
|
||||
"Helicopters": "直升机",
|
||||
"Turboprops": "涡桨飞机",
|
||||
"Fast jets": "高速喷气机",
|
||||
"Four-engine jets": "四发喷气机",
|
||||
"M6 and above": "M6 及以上",
|
||||
"M5 to 6": "M5 至 6",
|
||||
"M4 to 5": "M4 至 5",
|
||||
"Below M4": "M4 以下",
|
||||
"{kind} {name}": "{kind}{name}",
|
||||
"place|Country": "国家",
|
||||
"altitude|Level": "平飞",
|
||||
"{h} h {m} min": "{h} 小时 {m} 分钟",
|
||||
"{n} min": "{n} 分钟",
|
||||
"{speed} {direction}": "{direction}风 {speed}",
|
||||
"{n} mm": "{n} 毫米"
|
||||
}
|
||||
@@ -3558,7 +3558,7 @@
|
||||
"Under 1 min": "不到 1 分鐘",
|
||||
"1 min or more": "1 分鐘及以上",
|
||||
"Shots": "鏡頭",
|
||||
"Layers on": "已開圖層",
|
||||
"Layers on": "已開啟的圖層",
|
||||
"Stories": "故事",
|
||||
"NEW": "新",
|
||||
"GEV Stories": "GEV 故事",
|
||||
@@ -3583,7 +3583,7 @@
|
||||
"Filters": "篩選",
|
||||
"Search stories": "搜索故事",
|
||||
"Search stories, places, creators": "搜索故事、地點、創作者",
|
||||
"Clear search": "清除搜索",
|
||||
"Clear search": "清除搜尋",
|
||||
"Topics": "主題",
|
||||
"Filter stories": "篩選故事",
|
||||
"Show {count} stories": {
|
||||
@@ -3713,5 +3713,285 @@
|
||||
"A visualization of the 26 August 2026 Bhote Koshi outburst flood, not an official hazard model. The historical (2021) and post-event views are Vantor WorldView imagery; the river’s path is GeoPera’s reconstruction. Witness clips link to their original posts, and their capture times are unverified.": "這是 2026 年 8 月 26 日 Bhote Koshi 潰決洪水的視覺化,並非官方災害模型。歷史(2021 年)與事件後畫面為 Vantor WorldView 影像;河流路徑為 GeoPera 的重建結果。目擊者影片連結到其原始貼文,拍攝時間未經核實。",
|
||||
"That story is not available here": "該故事在此處無法使用",
|
||||
"DRAFT": "草稿",
|
||||
"A draft, not saved as a story yet. Use SAVE TO STORIES in AUTHORING to save it.": "尚未儲存為故事的草稿。在「創作」中使用「儲存到 STORIES」即可儲存。"
|
||||
"A draft, not saved as a story yet. Use SAVE TO STORIES in AUTHORING to save it.": "尚未儲存為故事的草稿。在「創作」中使用「儲存到 STORIES」即可儲存。",
|
||||
"Heading to next stop": "前往下一站",
|
||||
"Arriving at a stop": "即將到站",
|
||||
"Stopped at a stop": "停靠站點",
|
||||
"Wikipedia": "維基百科",
|
||||
"Wikidata": "維基數據",
|
||||
"Website": "網站",
|
||||
"Phase": "階段",
|
||||
"Flight level": "飛行高度層",
|
||||
"Mach": "馬赫",
|
||||
"Squawk {code}": "應答機編碼 {code}",
|
||||
"Signal": "訊號",
|
||||
"Civilian, in the air": "民用,空中",
|
||||
"Military, in the air": "軍用,空中",
|
||||
"On the ground": "地面",
|
||||
"Motion": "運動",
|
||||
"Operator": "營運商",
|
||||
"Last reported": "最近報告",
|
||||
"Crowding": "擁擠程度",
|
||||
"Class": "類別",
|
||||
"Magnitude": "震級",
|
||||
"Labels": "標籤",
|
||||
"3D aircraft": "3D 飛機",
|
||||
"M{mag} earthquake": "{mag} 級地震",
|
||||
"Earthquake": "地震",
|
||||
"{n} kt winds": "風速 {n} 節",
|
||||
"Wildfire": "野火",
|
||||
"{n} acres": "{n} 英畝",
|
||||
"{n}% contained": "已控制 {n}%",
|
||||
"prescribed burn": "計畫燒除",
|
||||
"{count} satellite fire hits": {
|
||||
"other": "{count} 個衛星火點"
|
||||
},
|
||||
"last day": "過去一天",
|
||||
"Conditions unknown": "天氣未知",
|
||||
"Partly cloudy": "局部多雲",
|
||||
"Overcast": "陰",
|
||||
"Fog": "霧",
|
||||
"Drizzle": "毛毛雨",
|
||||
"Rain": "雨",
|
||||
"Snow": "雪",
|
||||
"Rain showers": "陣雨",
|
||||
"Snow showers": "陣雪",
|
||||
"Thunderstorm": "雷暴",
|
||||
"Mixed conditions": "天氣多變",
|
||||
"Search {name} and nearby": "搜尋 {name} 及附近",
|
||||
"Search what is in view": "搜尋視野內內容",
|
||||
"Close Context search": "關閉態勢搜尋",
|
||||
"Search in Context": "在態勢中搜尋",
|
||||
"Close search": "關閉搜尋",
|
||||
"Shrink Context back to a panel": "將態勢縮回面板",
|
||||
"Expand Context to a full-height column": "將態勢展開為全高欄",
|
||||
"Context tabs": "態勢分頁",
|
||||
"Inspector": "檢查器",
|
||||
"Properties": "屬性",
|
||||
"Level": "等級",
|
||||
"Last {n} min": "最近 {n} 分鐘",
|
||||
"Just now": "剛剛",
|
||||
"Since selected": "自選取起",
|
||||
"Altitude": "高度",
|
||||
"Heading": "航向",
|
||||
"Field of view": "視野",
|
||||
"Camera frame": "攝影機畫面",
|
||||
"Acquiring frame…": "正在取得畫面…",
|
||||
"Show a bigger view": "放大檢視",
|
||||
"Camera view": "攝影機視圖",
|
||||
"More info": "更多資訊",
|
||||
"{n} s ago": "{n} 秒前",
|
||||
"{n} min ago": "{n} 分鐘前",
|
||||
"{n} h ago": "{n} 小時前",
|
||||
"{n} d ago": "{n} 天前",
|
||||
"Out of feed · last reading": "已離開資料源 · 最後讀數",
|
||||
"Live · {age}": "實時 · {age}",
|
||||
"{n} m": "{n} m",
|
||||
"{n} km": "{n} km",
|
||||
"updated {age}": "更新於 {age}",
|
||||
"Selected on the map": "地圖上的選取項",
|
||||
"Close card": "關閉卡片",
|
||||
"{n}% flown": "已飛 {n}%",
|
||||
"to go": "剩餘",
|
||||
"The scheduled route for this flight number does not match where the plane is; it may be another leg of the same flight.": "該航班號的計畫航線與飛機位置不符,可能是同一航班的另一航段。",
|
||||
"Scheduled · unverified: does not match where the plane is": "計畫 · 未核實:與飛機位置不符",
|
||||
"Nothing in this item’s details matches “{text}”.": "此項詳情中沒有與「{text}」相符的內容。",
|
||||
"Matching details": "相符的詳情",
|
||||
"Enter orbital view": "進入軌道視圖",
|
||||
"Enter Cockpit": "進入座艙",
|
||||
"Fly to": "飛往",
|
||||
"Following": "跟隨中",
|
||||
"Follow": "跟隨",
|
||||
"Ask GEV about {name}": "向 GEV 詢問 {name}",
|
||||
"Flights within {radius}": "{radius} 內的航班",
|
||||
"No flights within {radius} from the layers that are on.": "已開啟的圖層中 {radius} 內沒有航班。",
|
||||
"Vessels within {radius}": "{radius} 內的船舶",
|
||||
"No vessels within {radius} from the layers that are on.": "已開啟的圖層中 {radius} 內沒有船舶。",
|
||||
"Cloud": "雲量",
|
||||
"Visibility": "能見度",
|
||||
"Conditions here": "此處狀況",
|
||||
"feels {n}°": "體感 {n}°",
|
||||
"Reading conditions here…": "正在讀取此處狀況…",
|
||||
"No weather reading here.": "此處沒有天氣資料。",
|
||||
"Local solar time": "當地太陽時",
|
||||
"Nearby radius": "附近半徑",
|
||||
"How far out the nearby lists look": "附近清單的範圍",
|
||||
"Hazards within {radius}": "{radius} 內的災害",
|
||||
"Turns the layer on": "開啟該圖層",
|
||||
"No earthquakes, tropical storms or wildfires reported within {radius}.": "{radius} 內未報告地震、熱帶風暴或野火。",
|
||||
"Broadcast alerts within {radius}": "{radius} 內的廣播警報",
|
||||
"Also within {radius}": "{radius} 內的其他項",
|
||||
"Local news": "本地新聞",
|
||||
"Sundial · {time} solar · sun {deg}° {dir}": "日晷 · 太陽時 {time} · 太陽 {deg}° {dir}",
|
||||
"Sundial · {time} solar · sun below the horizon": "日晷 · 太陽時 {time} · 太陽在地平線下",
|
||||
"{count} things": {
|
||||
"other": "{count} 項"
|
||||
},
|
||||
"{count} layers": {
|
||||
"other": "{count} 個圖層"
|
||||
},
|
||||
"{things} in view from {layers}": "視野內有來自 {layers} 的 {things}",
|
||||
"{n} km up": "高 {n} km",
|
||||
"{n} m up": "高 {n} m",
|
||||
"This view": "目前視圖",
|
||||
"Day": "白天",
|
||||
"Twilight": "晨昏",
|
||||
"Night": "夜間",
|
||||
"Daylight": "日照",
|
||||
"sun {n}°": "太陽 {n}°",
|
||||
"Of {n} read, {total} loaded": "讀取 {n} 個,已載入 {total} 個",
|
||||
"Of all {n}": "全部 {n} 個中",
|
||||
"Of {n} in view": "視野內 {n} 個中",
|
||||
"Error": "錯誤",
|
||||
"Stale": "已過時",
|
||||
"In view": "視野內",
|
||||
"Globe view": "地球視圖",
|
||||
"Nothing selected": "未選取任何內容",
|
||||
"Worldwide now": "全球目前",
|
||||
"Turn on {name}": "開啟 {name}",
|
||||
"{n} loaded": "已載入 {n}",
|
||||
"{n} in view": "視野內 {n}",
|
||||
"Turn off {name}": "關閉 {name}",
|
||||
"Camera height": "相機高度",
|
||||
"Nothing in view matches “{text}”.": "視野內沒有與「{text}」相符的內容。",
|
||||
"Nothing from the layers that are on is in view here. Zoom out to see more.": "已開啟的圖層在此處視野內沒有內容。縮小以檢視更多。",
|
||||
"No loaded layer has anything in view. Turn some on in Data Layers.": "已載入的圖層在視野內都沒有內容。請在數據圖層中開啟一些。",
|
||||
"Places in view": "視野內的地點",
|
||||
"Show here": "在此顯示",
|
||||
"Ask GEV what's here": "問問 GEV 這裡有什麼",
|
||||
"aircraft": "飛機",
|
||||
"vessel": "船舶",
|
||||
"launch": "發射",
|
||||
"fire": "火點",
|
||||
"Fire detection": "火點偵測",
|
||||
"fire perimeter": "火場範圍",
|
||||
"earthquake": "地震",
|
||||
"storm": "風暴",
|
||||
"air quality station": "空氣品質站",
|
||||
"installation": "設施",
|
||||
"dam": "水壩",
|
||||
"data centre": "資料中心",
|
||||
"place": "地點",
|
||||
"vehicle": "車輛",
|
||||
"bike station": "單車站",
|
||||
"plate reader": "車牌辨識器",
|
||||
"camera": "攝影機",
|
||||
"airspace": "空域",
|
||||
"sighting": "目擊",
|
||||
"Callsign": "呼號",
|
||||
"Registration": "註冊號",
|
||||
"Aircraft class": "機型類別",
|
||||
"Course": "航線",
|
||||
"Vertical rate": "垂直速率",
|
||||
"Squawk": "應答機編碼",
|
||||
"Emergency": "緊急情況",
|
||||
"Last contact": "最後聯繫",
|
||||
"Ship type": "船舶類型",
|
||||
"Destination": "目的地",
|
||||
"Depth": "深度",
|
||||
"Time": "時間",
|
||||
"Place": "地點",
|
||||
"Fire power": "火點功率",
|
||||
"Satellite": "衛星",
|
||||
"Sensor": "感測器",
|
||||
"Detected": "偵測時間",
|
||||
"Contained": "已控制",
|
||||
"Discovered": "發現時間",
|
||||
"Basin": "海域",
|
||||
"Index": "指數",
|
||||
"Health risk": "健康風險",
|
||||
"Bikes": "單車",
|
||||
"Docks": "車樁",
|
||||
"Floor": "下限",
|
||||
"Ceiling": "上限",
|
||||
"Active": "生效時間",
|
||||
"NORAD ID": "NORAD 編號",
|
||||
"MMSI": "MMSI",
|
||||
"ICAO24": "ICAO24",
|
||||
"Capacity": "容量",
|
||||
"Output": "輸出",
|
||||
"River": "河流",
|
||||
"City": "城市",
|
||||
"State": "州",
|
||||
"Street": "街道",
|
||||
"Opened": "啟用",
|
||||
"Height": "高度",
|
||||
"IT load": "IT 負載",
|
||||
"Waterway": "水道",
|
||||
"Military": "軍用",
|
||||
"Land use": "土地用途",
|
||||
"Telecom": "電信",
|
||||
"feature": "要素",
|
||||
"Empty": "空車",
|
||||
"Many seats free": "空座較多",
|
||||
"Few seats free": "空座較少",
|
||||
"Standing room only": "僅剩站位",
|
||||
"Crowded": "擁擠",
|
||||
"Not taking passengers": "不載客",
|
||||
"Major hurricane": "強颶風",
|
||||
"Typhoon": "颱風",
|
||||
"Super typhoon": "超強颱風",
|
||||
"Tropical cyclone": "熱帶氣旋",
|
||||
"Prescribed burn": "計畫燒除",
|
||||
"Atlantic": "大西洋",
|
||||
"Eastern Pacific": "東太平洋",
|
||||
"Central Pacific": "中太平洋",
|
||||
"Western Pacific": "西太平洋",
|
||||
"Indian Ocean": "印度洋",
|
||||
"Southern Hemisphere": "南半球",
|
||||
"Cable tram": "纜索電車",
|
||||
"Aerial lift": "空中纜車",
|
||||
"Fishing": "漁船",
|
||||
"Tug": "拖船",
|
||||
"Sailing": "帆船",
|
||||
"Pleasure craft": "遊艇",
|
||||
"Pilot vessel": "引航船",
|
||||
"Search and rescue": "搜救船",
|
||||
"Law enforcement": "執法船",
|
||||
"High-speed craft": "高速船",
|
||||
"Passenger": "客船",
|
||||
"Cargo": "貨船",
|
||||
"Tanker": "油輪",
|
||||
"Yes": "是",
|
||||
"{n} ft": "{n} ft",
|
||||
"{n} km/s": "{n} km/s",
|
||||
"{n} km/h": "{n} km/h",
|
||||
"{n} kt": "{n} kn",
|
||||
"{n} ft/min": "{n} ft/min",
|
||||
"{n}°": "{n}°",
|
||||
"M {n}": "M {n}",
|
||||
"{n} MW": "{n} MW",
|
||||
"{n}%": "{n}%",
|
||||
"{n} hPa": "{n} hPa",
|
||||
"Hijack (squawk 7500)": "劫機(應答機編碼 7500)",
|
||||
"Radio failure (squawk 7600)": "無線電故障(應答機編碼 7600)",
|
||||
"Emergency (squawk 7700)": "緊急情況(應答機編碼 7700)",
|
||||
"Emergency: {kind}": "緊急情況:{kind}",
|
||||
"Emergency declared": "已宣布緊急情況",
|
||||
"Tsunami warning issued": "已發布海嘯警報",
|
||||
"VFR, no flight plan": "VFR,無飛行計畫",
|
||||
"VFR conspicuity": "VFR 識別碼",
|
||||
"IFR, no code yet": "IFR,尚未分配編碼",
|
||||
"Hijack": "劫機",
|
||||
"Climbing {n} ft/min": "爬升 {n} ft/min",
|
||||
"Descending {n} ft/min": "下降 {n} ft/min",
|
||||
"Cruising, level": "巡航,平飛",
|
||||
"Airliners": "客機",
|
||||
"Widebodies": "廣體機",
|
||||
"Business jets": "公務機",
|
||||
"Helicopters": "直升機",
|
||||
"Turboprops": "渦槳飛機",
|
||||
"Fast jets": "高速噴射機",
|
||||
"Four-engine jets": "四發噴射機",
|
||||
"M6 and above": "M6 及以上",
|
||||
"M5 to 6": "M5 至 6",
|
||||
"M4 to 5": "M4 至 5",
|
||||
"Below M4": "M4 以下",
|
||||
"{kind} {name}": "{kind}{name}",
|
||||
"place|Country": "國家",
|
||||
"altitude|Level": "平飛",
|
||||
"{h} h {m} min": "{h} 小時 {m} 分鐘",
|
||||
"{n} min": "{n} 分鐘",
|
||||
"{speed} {direction}": "{direction}風 {speed}",
|
||||
"{n} mm": "{n} 毫米"
|
||||
}
|
||||
+247
-13
@@ -47,7 +47,15 @@
|
||||
"▲ {frp} MW",
|
||||
"ICAO: {id}",
|
||||
"MMSI: {id}",
|
||||
"NORAD: {id}"
|
||||
"NORAD: {id}",
|
||||
"MMSI",
|
||||
"ICAO24",
|
||||
"{n}°",
|
||||
"M {n}",
|
||||
"{n}%",
|
||||
"{n} hPa",
|
||||
"{kind} {name}",
|
||||
"{speed} {direction}"
|
||||
],
|
||||
"de": [
|
||||
"1090 MHz",
|
||||
@@ -257,7 +265,34 @@
|
||||
"Wind (km/h)",
|
||||
"Story",
|
||||
"STORY",
|
||||
"Japan"
|
||||
"Japan",
|
||||
"Wikipedia",
|
||||
"Wikidata",
|
||||
"Website",
|
||||
"Mach",
|
||||
"Squawk {code}",
|
||||
"Signal",
|
||||
"Magnitude",
|
||||
"Live · {age}",
|
||||
"{n} m",
|
||||
"{n} km",
|
||||
"Squawk",
|
||||
"Sensor",
|
||||
"Index",
|
||||
"MMSI",
|
||||
"ICAO24",
|
||||
"Tanker",
|
||||
"{n} ft",
|
||||
"{n} km/s",
|
||||
"{n} km/h",
|
||||
"{n} ft/min",
|
||||
"{n}°",
|
||||
"M {n}",
|
||||
"{n} MW",
|
||||
"{n} hPa",
|
||||
"Turboprops",
|
||||
"{kind} {name}",
|
||||
"{n} mm"
|
||||
],
|
||||
"es": [
|
||||
"1 min/s",
|
||||
@@ -425,7 +460,31 @@
|
||||
"VIRTUAL",
|
||||
"Sensor",
|
||||
"{count} acres",
|
||||
"California"
|
||||
"California",
|
||||
"Wikipedia",
|
||||
"Wikidata",
|
||||
"Mach",
|
||||
"Squawk {code}",
|
||||
"{n} acres",
|
||||
"Inspector",
|
||||
"{n} m",
|
||||
"{n} km",
|
||||
"Error",
|
||||
"Squawk",
|
||||
"MMSI",
|
||||
"ICAO24",
|
||||
"{n} ft",
|
||||
"{n} km/s",
|
||||
"{n} km/h",
|
||||
"{n} ft/min",
|
||||
"{n}°",
|
||||
"M {n}",
|
||||
"{n} MW",
|
||||
"{n} hPa",
|
||||
"{kind} {name}",
|
||||
"{h} h {m} min",
|
||||
"{n} min",
|
||||
"{n} mm"
|
||||
],
|
||||
"fr": [
|
||||
"1 min/s",
|
||||
@@ -653,7 +712,35 @@
|
||||
"Maritime",
|
||||
"Europe",
|
||||
"Globe",
|
||||
"Sources"
|
||||
"Sources",
|
||||
"Wikidata",
|
||||
"Mach",
|
||||
"Squawk {code}",
|
||||
"Signal",
|
||||
"Magnitude",
|
||||
"{n} acres",
|
||||
"Altitude",
|
||||
"{n} m",
|
||||
"{n} km",
|
||||
"installation",
|
||||
"Squawk",
|
||||
"Destination",
|
||||
"Satellite",
|
||||
"MMSI",
|
||||
"ICAO24",
|
||||
"Cargo",
|
||||
"{n} ft",
|
||||
"{n} km/s",
|
||||
"{n} km/h",
|
||||
"{n} ft/min",
|
||||
"{n}°",
|
||||
"M {n}",
|
||||
"{n} MW",
|
||||
"{n} hPa",
|
||||
"{kind} {name}",
|
||||
"{h} h {m} min",
|
||||
"{n} min",
|
||||
"{n} mm"
|
||||
],
|
||||
"it": [
|
||||
"1 min/s",
|
||||
@@ -862,7 +949,30 @@
|
||||
"{count} datasets",
|
||||
"ZOOM",
|
||||
"followers",
|
||||
"California"
|
||||
"California",
|
||||
"Wikipedia",
|
||||
"Wikidata",
|
||||
"Mach",
|
||||
"Squawk {code}",
|
||||
"{n} m",
|
||||
"{n} km",
|
||||
"Squawk",
|
||||
"Satellite",
|
||||
"MMSI",
|
||||
"ICAO24",
|
||||
"{n} ft",
|
||||
"{n} km/s",
|
||||
"{n} km/h",
|
||||
"{n} ft/min",
|
||||
"{n}°",
|
||||
"M {n}",
|
||||
"{n} MW",
|
||||
"{n}%",
|
||||
"{n} hPa",
|
||||
"{kind} {name}",
|
||||
"{h} h {m} min",
|
||||
"{n} min",
|
||||
"{n} mm"
|
||||
],
|
||||
"ja": [
|
||||
"1090 MHz",
|
||||
@@ -928,7 +1038,23 @@
|
||||
"▲ {frp} MW",
|
||||
"ICAO: {id}",
|
||||
"MMSI: {id}",
|
||||
"NORAD: {id}"
|
||||
"NORAD: {id}",
|
||||
"{n} m",
|
||||
"{n} km",
|
||||
"NORAD ID",
|
||||
"MMSI",
|
||||
"ICAO24",
|
||||
"{n} ft",
|
||||
"{n} km/s",
|
||||
"{n} km/h",
|
||||
"{n} kt",
|
||||
"{n} ft/min",
|
||||
"{n}°",
|
||||
"M {n}",
|
||||
"{n} MW",
|
||||
"{n}%",
|
||||
"{n} hPa",
|
||||
"{n} mm"
|
||||
],
|
||||
"pt": [
|
||||
"1 min/s",
|
||||
@@ -1095,7 +1221,32 @@
|
||||
"Regional",
|
||||
"VIRTUAL",
|
||||
"Sensor",
|
||||
"{count} acres"
|
||||
"{count} acres",
|
||||
"Wikidata",
|
||||
"Mach",
|
||||
"Squawk {code}",
|
||||
"Magnitude",
|
||||
"{n} acres",
|
||||
"Altitude",
|
||||
"{n} m",
|
||||
"{n} km",
|
||||
"Squawk",
|
||||
"MMSI",
|
||||
"ICAO24",
|
||||
"{n} ft",
|
||||
"{n} km/s",
|
||||
"{n} km/h",
|
||||
"{n} kt",
|
||||
"{n} ft/min",
|
||||
"{n}°",
|
||||
"M {n}",
|
||||
"{n} MW",
|
||||
"{n}%",
|
||||
"{n} hPa",
|
||||
"{kind} {name}",
|
||||
"{h} h {m} min",
|
||||
"{n} min",
|
||||
"{n} mm"
|
||||
],
|
||||
"ru": [
|
||||
"1900–1945",
|
||||
@@ -1132,7 +1283,14 @@
|
||||
"ICAO: {id}",
|
||||
"MMSI: {id}",
|
||||
"NORAD: {id}",
|
||||
"{datasets} · {tiles} · {packs}"
|
||||
"{datasets} · {tiles} · {packs}",
|
||||
"NORAD ID",
|
||||
"MMSI",
|
||||
"ICAO24",
|
||||
"{n}°",
|
||||
"M {n}",
|
||||
"{n}%",
|
||||
"{kind} {name}"
|
||||
],
|
||||
"sv": [
|
||||
"STATION",
|
||||
@@ -1295,7 +1453,35 @@
|
||||
"MMSI: {id}",
|
||||
"Status",
|
||||
"Region",
|
||||
"Japan"
|
||||
"Japan",
|
||||
"Wikipedia",
|
||||
"Wikidata",
|
||||
"Mach",
|
||||
"Squawk {code}",
|
||||
"Signal",
|
||||
"{n} acres",
|
||||
"Live · {age}",
|
||||
"{n} m",
|
||||
"{n} km",
|
||||
"storm",
|
||||
"Squawk",
|
||||
"Destination",
|
||||
"Sensor",
|
||||
"Index",
|
||||
"MMSI",
|
||||
"ICAO24",
|
||||
"{n} ft",
|
||||
"{n} km/s",
|
||||
"{n} km/h",
|
||||
"{n} ft/min",
|
||||
"{n}°",
|
||||
"M {n}",
|
||||
"{n} MW",
|
||||
"{n} hPa",
|
||||
"{kind} {name}",
|
||||
"{h} h {m} min",
|
||||
"{n} min",
|
||||
"{n} mm"
|
||||
],
|
||||
"uk": [
|
||||
"1900–1945",
|
||||
@@ -1326,7 +1512,14 @@
|
||||
"{division}, {country}",
|
||||
"ICAO: {id}",
|
||||
"MMSI: {id}",
|
||||
"NORAD: {id}"
|
||||
"NORAD: {id}",
|
||||
"NORAD ID",
|
||||
"MMSI",
|
||||
"ICAO24",
|
||||
"{n}°",
|
||||
"M {n}",
|
||||
"{n}%",
|
||||
"{kind} {name}"
|
||||
],
|
||||
"zh-CN": [
|
||||
"1090 MHz",
|
||||
@@ -1397,7 +1590,20 @@
|
||||
"CC BY 4.0",
|
||||
"acartia.io ↗",
|
||||
"iNaturalist ↗",
|
||||
"iNaturalist"
|
||||
"iNaturalist",
|
||||
"{n} m",
|
||||
"{n} km",
|
||||
"MMSI",
|
||||
"ICAO24",
|
||||
"{n} ft",
|
||||
"{n} km/s",
|
||||
"{n} km/h",
|
||||
"{n} ft/min",
|
||||
"{n}°",
|
||||
"M {n}",
|
||||
"{n} MW",
|
||||
"{n}%",
|
||||
"{n} hPa"
|
||||
],
|
||||
"zh-Hant": [
|
||||
"1090 MHz",
|
||||
@@ -1468,7 +1674,20 @@
|
||||
"CC BY 4.0",
|
||||
"acartia.io ↗",
|
||||
"iNaturalist ↗",
|
||||
"iNaturalist"
|
||||
"iNaturalist",
|
||||
"{n} m",
|
||||
"{n} km",
|
||||
"MMSI",
|
||||
"ICAO24",
|
||||
"{n} ft",
|
||||
"{n} km/s",
|
||||
"{n} km/h",
|
||||
"{n} ft/min",
|
||||
"{n}°",
|
||||
"M {n}",
|
||||
"{n} MW",
|
||||
"{n}%",
|
||||
"{n} hPa"
|
||||
],
|
||||
"he": [
|
||||
"{speed} kn",
|
||||
@@ -1568,6 +1787,21 @@
|
||||
"Ironbow",
|
||||
"ICAO: {id}",
|
||||
"MMSI: {id}",
|
||||
"NORAD: {id}"
|
||||
"NORAD: {id}",
|
||||
"{n} m",
|
||||
"{n} km",
|
||||
"MMSI",
|
||||
"ICAO24",
|
||||
"{n} ft",
|
||||
"{n} km/s",
|
||||
"{n} km/h",
|
||||
"{n} kt",
|
||||
"{n} ft/min",
|
||||
"{n}°",
|
||||
"M {n}",
|
||||
"{n} MW",
|
||||
"{n}%",
|
||||
"{n} hPa",
|
||||
"{kind} {name}"
|
||||
]
|
||||
}
|
||||
@@ -222,9 +222,14 @@ export function createPanel({ state: layerState, parts }) {
|
||||
ensurePanel();
|
||||
layerState.panelRenders += 1;
|
||||
const { subject, cohorts } = layerState.results;
|
||||
const windowLabel = t('{distance} FLIGHT / VESSEL WINDOW', {
|
||||
distance: presentAwarenessDistance(AWARENESS_RADIUS_M),
|
||||
});
|
||||
publish({
|
||||
kind: 'results',
|
||||
subject: `${subject.label} · ${t('{distance} FLIGHT / VESSEL WINDOW', { distance: presentAwarenessDistance(AWARENESS_RADIUS_M) })}`,
|
||||
subject: `${subject.label} · ${windowLabel}`,
|
||||
subjectIdentity: { layerId: subject.layerId, id: subject.id },
|
||||
subjectLabel: subject.label,
|
||||
subjectNames: presentNames(subject.memberNames),
|
||||
photo: presentPhoto(subject),
|
||||
navigation: presentNavigation(),
|
||||
|
||||
@@ -246,6 +246,19 @@ export function createQueries({
|
||||
* routeDestination: string|null}}
|
||||
*/
|
||||
|
||||
/** An airport at one end of a route, when it has a position. */
|
||||
function routeEnd(airport) {
|
||||
const lat = Number(airport?.lat ?? airport?.latitude);
|
||||
const lon = Number(airport?.lon ?? airport?.longitude);
|
||||
if (!Number.isFinite(lat) || !Number.isFinite(lon)) return null;
|
||||
return {
|
||||
code: String(airport?.code ?? '').trim() || null,
|
||||
name: String(airport?.name ?? airport?.municipality ?? '').trim() || null,
|
||||
lat,
|
||||
lon,
|
||||
};
|
||||
}
|
||||
|
||||
function mapAnalystRecord(
|
||||
icao24,
|
||||
info,
|
||||
@@ -293,6 +306,19 @@ export function createQueries({
|
||||
lastContactAtMs: num(info?.lastContactEpochMs),
|
||||
routeOrigin: routeOk ? text(info?.route?.origin?.code) : null,
|
||||
routeDestination: routeOk ? text(info?.route?.destination?.code) : null,
|
||||
// The airports themselves, for the context card's route globe.
|
||||
routeFrom: routeOk ? routeEnd(info?.route?.origin) : null,
|
||||
routeTo: routeOk ? routeEnd(info?.route?.destination) : null,
|
||||
// The scheduled route when it does not fit where the plane is (often
|
||||
// another leg of the same flight number): the card shows it marked
|
||||
// unverified, everything else still treats the flight as routeless.
|
||||
routeScheduled:
|
||||
!routeOk && info?.route?.origin?.code && info?.route?.destination?.code
|
||||
? {
|
||||
from: text(info.route.origin.code),
|
||||
to: text(info.route.destination.code),
|
||||
}
|
||||
: null,
|
||||
};
|
||||
}
|
||||
const methods = {
|
||||
@@ -748,6 +774,18 @@ export function createQueries({
|
||||
return result;
|
||||
},
|
||||
|
||||
/**
|
||||
* Ask for an aircraft's scheduled route (origin and destination airports),
|
||||
* as tracking does; it lands on the record when the lookup answers.
|
||||
* @param {string} icao24
|
||||
*/
|
||||
requestRoute(icao24) {
|
||||
if (icao24)
|
||||
parts.enrichment._requestRouteEnrichment(
|
||||
String(icao24).trim().toLowerCase(),
|
||||
);
|
||||
},
|
||||
|
||||
/**
|
||||
* Start camera-tracking an aircraft by ICAO24 address.
|
||||
* @param {string} icao24 - ICAO 24-bit transponder address.
|
||||
|
||||
@@ -5,12 +5,23 @@ import {
|
||||
transitDetectionClass,
|
||||
transitDetectionId,
|
||||
transitDetectionMetric,
|
||||
vehicleReportTimeMs,
|
||||
} from './policy.js';
|
||||
import {
|
||||
TRANSIT_ENABLED_FEEDS,
|
||||
getRegisteredTransitFeed,
|
||||
transitRouteLabel,
|
||||
} from '../../data/transitFeeds.js';
|
||||
import { transitModeTier } from '../../data/transitPresetStyle.js';
|
||||
import { displayMotion } from './movement.js';
|
||||
|
||||
/** The display's motion word as a record field for the Context card. */
|
||||
const MOTION_FIELD = Object.freeze({
|
||||
'EN ROUTE': 'moving',
|
||||
STOPPED: 'stopped',
|
||||
WAITING: 'waiting',
|
||||
'NO FIX': 'no-fix',
|
||||
});
|
||||
|
||||
/** Regions, not feeds: one region can carry several feeds (Rio has two). */
|
||||
const TRANSIT_REGION_COUNT = new Set(
|
||||
@@ -211,10 +222,14 @@ export function createQueries({ state, parts }) {
|
||||
* query engine. On demand only (once per spoken query); [] while the
|
||||
* layer is off.
|
||||
* @param {number} [maxCount=Infinity] Most records to return.
|
||||
* @returns {Array<Object>} {id, label, routeId, mode, lat, lon, speedMps, courseDeg, status, occupancy}.
|
||||
* @returns {Array<Object>} {id, label, routeId, mode, lat, lon, speedMps, courseDeg, status, occupancy},
|
||||
* plus `key` (the layer's own vehicle key, which a map click carries),
|
||||
* `route`, `operator`, `place`, `observedMs` and `motion` (what the
|
||||
* display shows: moving, stopped, waiting or no-fix) for the Context card.
|
||||
*/
|
||||
getAnalystRecords(maxCount = Infinity) {
|
||||
if (!state._enabled) return [];
|
||||
const now = Date.now();
|
||||
const num = (v) => (Number.isFinite(v) ? v : null);
|
||||
const result = [];
|
||||
for (const entry of state._vehicles.values()) {
|
||||
@@ -222,6 +237,8 @@ export function createQueries({ state, parts }) {
|
||||
const record = entry.record || {};
|
||||
if (!Number.isFinite(record.lat) || !Number.isFinite(record.lon))
|
||||
continue;
|
||||
const feed = feedForEntry(state, entry);
|
||||
const reportedMs = vehicleReportTimeMs(record, entry.fetchedAt);
|
||||
result.push({
|
||||
id: record.label || record.id || entry.key,
|
||||
label: record.label || null,
|
||||
@@ -233,6 +250,15 @@ export function createQueries({ state, parts }) {
|
||||
courseDeg: num(entry.courseDeg ?? record.bearing),
|
||||
status: record.status || null,
|
||||
occupancy: record.occupancy || null,
|
||||
key: entry.key,
|
||||
route:
|
||||
record.routeId && feed
|
||||
? transitRouteLabel(feed, record.routeId)
|
||||
: record.routeId || null,
|
||||
operator: feed?.name || null,
|
||||
place: feed?.region || null,
|
||||
observedMs: Number.isFinite(reportedMs) ? reportedMs : null,
|
||||
motion: MOTION_FIELD[displayMotion(entry, now).word] || null,
|
||||
});
|
||||
}
|
||||
return result;
|
||||
|
||||
@@ -71,6 +71,8 @@ import { useHudStore } from './stores/hud.js';
|
||||
import { useDisplayStore } from './stores/display.js';
|
||||
import { useLocaleStore } from './stores/locale.js';
|
||||
import { useLocationStore } from './stores/location.js';
|
||||
import { useOmnibarStore } from './stores/omnibar.js';
|
||||
import { installEntityContext } from './entityContextBridge.js';
|
||||
import { installRailEdgeScroll } from './railEdgeScroll.js';
|
||||
import { useCockpitStore } from './stores/cockpit.js';
|
||||
import { useGlobeActionsStore } from './stores/globeActions.js';
|
||||
@@ -171,6 +173,12 @@ export class StyleManager extends ShellFacade {
|
||||
});
|
||||
// Vue views share this runtime and its stores; dispose unmounts them.
|
||||
this._ui = createUiRuntime({ pinia: applicationPinia() });
|
||||
// The omnibar and Context list and toggle data layers through the shell.
|
||||
useOmnibarStore(applicationPinia()).connect({
|
||||
layers: () => this._dataManager?.getAll?.() || [],
|
||||
setLayer: (id, enabled) =>
|
||||
this._dataManager?.setEnabled(id, enabled, { origin: 'user' }),
|
||||
});
|
||||
// Scrolling at a screen edge steps through that side's rail panels.
|
||||
this._removeRailEdgeScroll = installRailEdgeScroll();
|
||||
this._feedback = new ShellFeedback({
|
||||
@@ -184,6 +192,15 @@ export class StyleManager extends ShellFacade {
|
||||
this._updateGlobalLoadingFeedback(),
|
||||
);
|
||||
this.viewer = viewer;
|
||||
// A click on anything a layer can identify opens its card in Context.
|
||||
this._removeEntityContext = installEntityContext({
|
||||
viewer,
|
||||
getDataManager: () => this._dataManager,
|
||||
pinia: applicationPinia(),
|
||||
pickWorld: services.pickWorldFromScreen,
|
||||
regionalBrief: services.fetchRegionalBrief,
|
||||
overlayHit: services.hitTestWorldOverlay,
|
||||
});
|
||||
this.mapStackController = mapStackController;
|
||||
this.placeSearch = placeSearch;
|
||||
|
||||
@@ -1879,7 +1896,9 @@ export class StyleManager extends ShellFacade {
|
||||
const { destroyTrackedReadout, destroyWorldOverlay, destroyDetection } =
|
||||
this.services;
|
||||
if (this._disposed) return;
|
||||
useOmnibarStore(applicationPinia()).connect(null);
|
||||
this._removeRailEdgeScroll?.();
|
||||
this._removeEntityContext?.();
|
||||
this._shareRestoration.destroy();
|
||||
this._feedback.clearLoadingStatus();
|
||||
this._disposed = true;
|
||||
|
||||
@@ -809,10 +809,11 @@ export function exit({ restoreTracking = true } = {}) {
|
||||
this.services.satellitesLayer?.refocusTrackedById?.(satelliteSubject);
|
||||
}
|
||||
this.syncEntry();
|
||||
// Back to whichever entry was used: the Contacts button or the readout's.
|
||||
// Return to the card or readout control that opened Cockpit.
|
||||
const readoutEntry = document.getElementById('cockpit-entry-readout');
|
||||
const restoreTarget =
|
||||
this.entryFocusOrigin === this.entry ||
|
||||
this.entryFocusOrigin?.hasAttribute('data-entity-cockpit-entry') ||
|
||||
(readoutEntry && this.entryFocusOrigin === readoutEntry)
|
||||
? this.entryFocusOrigin
|
||||
: this.entry || this.entryFocusOrigin;
|
||||
|
||||
@@ -29,6 +29,7 @@ import {
|
||||
import {
|
||||
activateWorldOverlayAction,
|
||||
destroyWorldOverlay,
|
||||
hitTestWorldOverlay,
|
||||
initWorldOverlay,
|
||||
subscribeWorldOverlayActions,
|
||||
} from '../overlays/worldOverlay.js';
|
||||
@@ -73,6 +74,7 @@ export class StyleManager extends ApplicationShell {
|
||||
super(viewer, {
|
||||
...options,
|
||||
services: {
|
||||
hitTestWorldOverlay,
|
||||
CITY_POIS,
|
||||
GLOBE_VIEW,
|
||||
flyToGlobeView,
|
||||
|
||||
@@ -249,6 +249,21 @@ export function _handleContextLayerChange(change) {
|
||||
);
|
||||
}
|
||||
}
|
||||
if (
|
||||
change.type === 'visibility' &&
|
||||
change.enabled &&
|
||||
change.origin === 'user' &&
|
||||
!this.cockpitView?.active &&
|
||||
(change.layerId === 'radio' || change.layerId === 'rocket-launches')
|
||||
) {
|
||||
// Context's panel shows its main tab for them (ContextView listens).
|
||||
globalThis.dispatchEvent?.(new Event('gev:context-show-view'));
|
||||
this.actions.setPanelCollapsed('global-context-panel', false, {
|
||||
explicit: true,
|
||||
});
|
||||
if (change.layerId === 'radio')
|
||||
this.actions.setPanelCollapsed('radio-panel', false, { explicit: true });
|
||||
}
|
||||
// Turning off the layer the view rides ends it; every other layer may be
|
||||
// turned on or off freely during a session.
|
||||
const riddenLayerId = this.cockpitView?.active
|
||||
|
||||
@@ -0,0 +1,95 @@
|
||||
import { computed, ref } from 'vue';
|
||||
import { msg } from '../i18n/index.js';
|
||||
|
||||
// Context's layer tabs: when a layer that has its own settings is on, those
|
||||
// settings move out of the panel they normally live in (Visual) into a tab
|
||||
// in the Context panel, so they sit beside what they affect.
|
||||
// Each tab's content is teleported into `#context-tab-<id>`; when the layer
|
||||
// goes off the content returns to its usual panel.
|
||||
const AIRCRAFT = ['flights', 'military', 'local-adsb'];
|
||||
|
||||
// Layers that draw labels and cards through the world overlay, which the
|
||||
// Dense settings (density, allocation, fade, outside) govern.
|
||||
export const LABEL_LAYERS = new Set([
|
||||
'satellites',
|
||||
'ais-live-vessels',
|
||||
'rocket-launches',
|
||||
'cctv',
|
||||
'transit',
|
||||
'bikeshare',
|
||||
'radio',
|
||||
'local-adsb',
|
||||
'earthquakes',
|
||||
'local-firms',
|
||||
'fire-perimeters',
|
||||
'weather-cyclones',
|
||||
'air-quality',
|
||||
'alpr-cameras',
|
||||
'drone-airspace',
|
||||
'military-installations',
|
||||
'telegeography-submarine-cables',
|
||||
'osm-places',
|
||||
's2-ghostmaps',
|
||||
'directions',
|
||||
]);
|
||||
|
||||
// Which of the layers that are on each tab acts on.
|
||||
export const TAB_AFFECTS = {
|
||||
labels: (on) => [...on].filter((id) => LABEL_LAYERS.has(id)),
|
||||
aircraft: (on) => [...on].filter((id) => AIRCRAFT.includes(id)),
|
||||
};
|
||||
|
||||
export const LAYER_TABS = [
|
||||
// Labels and cards the world overlay draws for the label layers.
|
||||
{
|
||||
id: 'labels',
|
||||
label: msg('Labels'),
|
||||
icon: 'label',
|
||||
when: (on) => TAB_AFFECTS.labels(on).length > 0,
|
||||
},
|
||||
{
|
||||
id: 'aircraft',
|
||||
label: msg('3D aircraft'),
|
||||
icon: 'flight',
|
||||
when: (on) => TAB_AFFECTS.aircraft(on).length > 0,
|
||||
},
|
||||
];
|
||||
|
||||
/** Ids of the layers that are on; Context refreshes it. */
|
||||
export const enabledLayerIds = ref(new Set());
|
||||
|
||||
export function setEnabledLayers(ids) {
|
||||
const next = new Set(ids);
|
||||
const prev = enabledLayerIds.value;
|
||||
if (next.size === prev.size && [...next].every((id) => prev.has(id))) return;
|
||||
enabledLayerIds.value = next;
|
||||
}
|
||||
|
||||
/** Whether Context is mounted and can host tab content. */
|
||||
export const contextReady = ref(false);
|
||||
|
||||
/** The tabs available now. */
|
||||
export const availableTabs = computed(() =>
|
||||
contextReady.value
|
||||
? LAYER_TABS.filter((tab) => tab.when(enabledLayerIds.value))
|
||||
: [],
|
||||
);
|
||||
|
||||
export const hasTab = (id) => availableTabs.value.some((tab) => tab.id === id);
|
||||
|
||||
/** The tab Context shows: 'view' (the card) or a layer tab's id. */
|
||||
export const activeTab = ref('view');
|
||||
|
||||
// Each tab's content lands in an element made here, before any panel mounts,
|
||||
// so a panel that mounts ahead of Context still has a real target; Context
|
||||
// places these elements in its tab panes when it mounts.
|
||||
const targets = new Map();
|
||||
export function tabTarget(id) {
|
||||
if (!targets.has(id) && globalThis.document) {
|
||||
const el = document.createElement('div');
|
||||
el.className = 'context-tab-body';
|
||||
el.dataset.tab = id;
|
||||
targets.set(id, el);
|
||||
}
|
||||
return targets.get(id) ?? 'body';
|
||||
}
|
||||
@@ -0,0 +1,45 @@
|
||||
import { ref } from 'vue';
|
||||
|
||||
// How far out Context looks for what is "nearby": one distance for every
|
||||
// nearby block (flights, vessels, hazards, alerts, other loaded items). The
|
||||
// control in the Context panel steps through a few distances; the choice is
|
||||
// kept for the next visit.
|
||||
const KEY = 'gev.contextRadiusKm';
|
||||
|
||||
/** The distances the control steps through, in km. */
|
||||
export const CONTEXT_RADIUS_STEPS = Object.freeze([
|
||||
25, 50, 100, 250, 500, 1000, 2500,
|
||||
]);
|
||||
export const DEFAULT_CONTEXT_RADIUS_KM = 250;
|
||||
|
||||
/** The step closest to a distance; the default for anything unusable. */
|
||||
export function nearestRadiusStep(km) {
|
||||
const value = Number(km);
|
||||
if (!Number.isFinite(value) || value <= 0) return DEFAULT_CONTEXT_RADIUS_KM;
|
||||
return CONTEXT_RADIUS_STEPS.reduce((best, step) =>
|
||||
Math.abs(step - value) < Math.abs(best - value) ? step : best,
|
||||
);
|
||||
}
|
||||
|
||||
function read() {
|
||||
try {
|
||||
const saved = globalThis.localStorage?.getItem(KEY);
|
||||
return saved === null || saved === undefined
|
||||
? DEFAULT_CONTEXT_RADIUS_KM
|
||||
: nearestRadiusStep(saved);
|
||||
} catch {
|
||||
return DEFAULT_CONTEXT_RADIUS_KM;
|
||||
}
|
||||
}
|
||||
|
||||
/** The radius every nearby block uses, in km. */
|
||||
export const contextRadiusKm = ref(read());
|
||||
|
||||
export function setContextRadiusKm(km) {
|
||||
contextRadiusKm.value = nearestRadiusStep(km);
|
||||
try {
|
||||
globalThis.localStorage?.setItem(KEY, String(contextRadiusKm.value));
|
||||
} catch {
|
||||
// Without storage the choice lasts for this visit.
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,31 @@
|
||||
import { computed, ref } from 'vue';
|
||||
|
||||
// The Context panel's own search: one field in its header that narrows what
|
||||
// the panel is showing (the selected item's details, and every list of what
|
||||
// is nearby or in view) to what holds the typed text.
|
||||
|
||||
/** Whether the search field is showing. */
|
||||
export const contextSearchOpen = ref(false);
|
||||
/** The text as typed. */
|
||||
export const contextSearchText = ref('');
|
||||
/** The text to match against: trimmed, lower case, '' when not searching. */
|
||||
export const contextNeedle = computed(() =>
|
||||
contextSearchOpen.value ? contextSearchText.value.trim().toLowerCase() : '',
|
||||
);
|
||||
|
||||
/** Whether any of the given strings holds the searched text (true when not searching). */
|
||||
export function matchesContextSearch(...parts) {
|
||||
const needle = contextNeedle.value;
|
||||
if (!needle) return true;
|
||||
return parts.some(
|
||||
(part) =>
|
||||
part !== null &&
|
||||
part !== undefined &&
|
||||
String(part).toLowerCase().includes(needle),
|
||||
);
|
||||
}
|
||||
|
||||
export function closeContextSearch() {
|
||||
contextSearchOpen.value = false;
|
||||
contextSearchText.value = '';
|
||||
}
|
||||
@@ -0,0 +1,360 @@
|
||||
import { resolvePickedContext } from '../data/pickedContext.js';
|
||||
import { followedOf, onFollowChanged } from '../data/followed.js';
|
||||
import { fromDegreesInto } from '../geo/ellipsoid.js';
|
||||
import { inputFor } from '../input/dispatcher.js';
|
||||
import {
|
||||
isTrackingClickGesture,
|
||||
isTrackingSelectionGesture,
|
||||
} from '../data/trackingClickGesture.js';
|
||||
import { findCamera } from '../render/rendererOf.js';
|
||||
import { useCockpitStore } from './stores/cockpit.js';
|
||||
import { useEntityCardStore } from './stores/entityCard.js';
|
||||
import { useOmnibarStore } from './stores/omnibar.js';
|
||||
import { usePanelChromeStore } from './stores/panelChrome.js';
|
||||
import { useVoiceStore } from './stores/voice.js';
|
||||
|
||||
/** Camera distance (m) that frames an item of each kind. */
|
||||
const FRAME_RANGE = Object.freeze({
|
||||
aircraft: 30_000,
|
||||
vessel: 9_000,
|
||||
satellite: 2_500_000,
|
||||
earthquake: 120_000,
|
||||
storm: 1_500_000,
|
||||
fire: 20_000,
|
||||
'fire perimeter': 40_000,
|
||||
});
|
||||
const DEFAULT_RANGE = 8_000;
|
||||
/**
|
||||
* Items the camera can follow: their layers follow through the camera port
|
||||
* with a key naming the item (src/data/followed.js). A vessel is flown to.
|
||||
*/
|
||||
const FOLLOWABLE = new Set(['flights', 'military', 'satellites']);
|
||||
|
||||
/**
|
||||
* Connects the Context panel's entity card to the globe: a click on anything a
|
||||
* layer can identify opens its card, and the card's actions fly to it, follow
|
||||
* it or ask GEV about it. Layers keep their own click behaviour; this listens
|
||||
* alongside them.
|
||||
* @param {object} options
|
||||
* @param {object} options.viewer Cesium viewer.
|
||||
* @param {() => object} options.getDataManager Layer lifecycle.
|
||||
* @param {object} options.pinia
|
||||
* @param {(viewer: object, x: number, y: number) => ({lat: number, lon: number}|null)} [options.pickWorld]
|
||||
* The ground under a normalized screen point; the view's centre falls back
|
||||
* to the point under the camera without it.
|
||||
* @param {(lat: number, lon: number) => Promise<object>} [options.regionalBrief]
|
||||
* The app's regional brief service, for the weather and news Context shows.
|
||||
* @param {(x: number, y: number) => object|null} [options.overlayHit]
|
||||
* The overlay card under a screen point, if any (a vessel's, a fire's).
|
||||
* @returns {() => void} disconnects
|
||||
*/
|
||||
export function installEntityContext({
|
||||
viewer,
|
||||
getDataManager,
|
||||
pinia,
|
||||
pickWorld,
|
||||
regionalBrief,
|
||||
overlayHit,
|
||||
}) {
|
||||
const store = useEntityCardStore(pinia);
|
||||
const omnibar = useOmnibarStore(pinia);
|
||||
const voice = useVoiceStore(pinia);
|
||||
const cockpitStore = useCockpitStore(pinia);
|
||||
const chrome = usePanelChromeStore(pinia);
|
||||
/** Whether Context is open; a closed panel reads nothing. */
|
||||
const isOpen = () =>
|
||||
chrome.panels['global-context-panel']?.collapsed === false;
|
||||
const doc = globalThis.document;
|
||||
let disposed = false;
|
||||
// The renderer's camera; looked up on use, as a renderer can be bound
|
||||
// after Context is installed.
|
||||
const camera = () => findCamera(viewer);
|
||||
/** Whether the camera follows this card's item (the follow's key). */
|
||||
const followsCard = (card, followed = followedOf(viewer)) => {
|
||||
const key = followed?.key;
|
||||
if (!key || !card) return false;
|
||||
return key === card.key || key === `${card.layerId}:${card.identity?.id}`;
|
||||
};
|
||||
const inCockpit = () =>
|
||||
Boolean(doc?.body?.classList.contains('cockpit-mode'));
|
||||
|
||||
function openPanel() {
|
||||
const button = doc?.querySelector(
|
||||
'.ui-rail--right .ui-rail__item[data-rail-item="global-context-panel"]',
|
||||
);
|
||||
if (button && button.getAttribute('aria-pressed') !== 'true')
|
||||
button.click();
|
||||
}
|
||||
|
||||
function flyTo(card) {
|
||||
const port = camera();
|
||||
if (!port || !Number.isFinite(card?.lat) || !Number.isFinite(card?.lon))
|
||||
return;
|
||||
const height = Number.isFinite(card.altitudeM) ? card.altitudeM : 0;
|
||||
const range = FRAME_RANGE[card.kind] ?? DEFAULT_RANGE;
|
||||
port.flyToBounds(
|
||||
{
|
||||
center: fromDegreesInto(card.lon, card.lat, Math.max(0, height), {
|
||||
x: 0,
|
||||
y: 0,
|
||||
z: 0,
|
||||
}),
|
||||
radius: 1,
|
||||
},
|
||||
{
|
||||
offset: {
|
||||
heading: port.pose().heading,
|
||||
pitch: ((card.kind === 'satellite' ? -90 : -45) * Math.PI) / 180,
|
||||
range,
|
||||
},
|
||||
durationS: 2,
|
||||
},
|
||||
);
|
||||
}
|
||||
|
||||
function follow(card) {
|
||||
const run = omnibar.runner;
|
||||
if (!run || !FOLLOWABLE.has(card.layerId)) return flyTo(card);
|
||||
Promise.resolve(
|
||||
run('track_entity', {
|
||||
query: card.identity.id || card.title,
|
||||
layerId: card.layerId,
|
||||
}),
|
||||
).catch(() => {});
|
||||
}
|
||||
|
||||
// Closing the card lets go of the camera, when the camera follows the
|
||||
// card's own item and nothing else took it over since.
|
||||
function letGo(card) {
|
||||
if (!followsCard(card)) return;
|
||||
// Only the card's own layer lets go, as the person's own action; other
|
||||
// layers' selections stay as they are.
|
||||
const layer = getDataManager()?.layers?.get?.(card.layerId);
|
||||
try {
|
||||
layer?.module?.stopTracking?.({ origin: 'user' });
|
||||
} catch {
|
||||
// A layer going away meanwhile has nothing left to let go of.
|
||||
}
|
||||
}
|
||||
|
||||
// Aircraft can be flown from, and a satellite ridden in the orbital view:
|
||||
// track the craft, then enter Cockpit on it. Only layers the tracking
|
||||
// action can follow are offered (local ADS-B cannot be tracked).
|
||||
const COCKPIT_LAYERS = new Set(['flights', 'military', 'satellites']);
|
||||
async function cockpit(card) {
|
||||
try {
|
||||
await enterCockpit(card);
|
||||
} catch {
|
||||
// The craft left the feed or tracking failed; the card stays as it is.
|
||||
}
|
||||
}
|
||||
async function enterCockpit(card) {
|
||||
const run = omnibar.runner;
|
||||
if (!run || !COCKPIT_LAYERS.has(card.layerId)) return;
|
||||
await run('track_entity', {
|
||||
query: card.identity.id || card.title,
|
||||
layerId: card.layerId,
|
||||
});
|
||||
if (disposed) return;
|
||||
if (card.layerId !== 'satellites') {
|
||||
await run('control_cockpit', { action: 'enter' });
|
||||
return;
|
||||
}
|
||||
// A satellite is ridden through the app's own Cockpit entry, which offers
|
||||
// the orbital view once the satellite is tracked. Wait for it to say so;
|
||||
// if it never does (a class that cannot be ridden), nothing is entered.
|
||||
for (let tries = 0; tries < 40; tries++) {
|
||||
// Another pick or a closed card in the meantime calls the ride off.
|
||||
if (disposed || store.card?.key !== card.key) return;
|
||||
const presence = cockpitStore.presence;
|
||||
if (presence?.entryAvailable && presence.entryKind === 'satellite') {
|
||||
doc?.getElementById('cockpit-entry')?.click();
|
||||
return;
|
||||
}
|
||||
await new Promise((resolve) => setTimeout(resolve, 100));
|
||||
}
|
||||
}
|
||||
|
||||
function askText(prompt) {
|
||||
voice.controls?.emit('chat-restore');
|
||||
voice.controls?.emit('chat-prompt', prompt);
|
||||
voice.controls?.emit('chat-submit');
|
||||
}
|
||||
|
||||
function ask(card) {
|
||||
const where =
|
||||
Number.isFinite(card.lat) && Number.isFinite(card.lon)
|
||||
? ` at ${card.lat.toFixed(3)}, ${card.lon.toFixed(3)}`
|
||||
: '';
|
||||
const prompt = `Tell me about the ${card.kind} ${card.title} (${card.layerName})${where}, and what is around it.`;
|
||||
voice.controls?.emit('chat-restore');
|
||||
voice.controls?.emit('chat-prompt', prompt);
|
||||
voice.controls?.emit('chat-submit');
|
||||
}
|
||||
|
||||
store.connect({
|
||||
dataManager: getDataManager,
|
||||
openPanel,
|
||||
flyTo,
|
||||
follow,
|
||||
letGo,
|
||||
isOpen,
|
||||
regionalBrief,
|
||||
ask,
|
||||
askText,
|
||||
cockpit,
|
||||
canCockpit: (card) =>
|
||||
Boolean(omnibar.runner) && COCKPIT_LAYERS.has(card?.layerId),
|
||||
canFollow: (card) => FOLLOWABLE.has(card?.layerId),
|
||||
// Where the camera is, so a search prefers what is close by.
|
||||
here: () => {
|
||||
const pose = camera()?.pose();
|
||||
return pose && Number.isFinite(pose.lat) && Number.isFinite(pose.lon)
|
||||
? { lat: pose.lat, lon: pose.lon }
|
||||
: null;
|
||||
},
|
||||
});
|
||||
|
||||
// What the camera shows, for the Context panel to describe when nothing is
|
||||
// picked: the ground under the middle of the screen, the view's bounds and
|
||||
// the height. Read when the camera settles, not every frame.
|
||||
const readView = () => {
|
||||
const port = camera();
|
||||
if (!port || !isOpen()) return;
|
||||
const pose = port.pose();
|
||||
if (![pose.lat, pose.lon, pose.height].every(Number.isFinite)) return;
|
||||
const middle = pickWorld?.(viewer, 0.5, 0.5);
|
||||
const center = middle
|
||||
? { lat: middle.lat, lon: middle.lon }
|
||||
: { lat: pose.lat, lon: pose.lon };
|
||||
const rect = port.viewRectangle() ?? {
|
||||
west: -180,
|
||||
south: -90,
|
||||
east: 180,
|
||||
north: 90,
|
||||
};
|
||||
store.setView({ center, rect, heightM: pose.height });
|
||||
};
|
||||
// Read when the camera settles. A camera that keeps moving (following an
|
||||
// aircraft, a long fly-to) never settles, and a jump (a share link, a
|
||||
// restored view) raises no moveEnd, so also read it on large changes: at
|
||||
// most once a second, and once more after the last change, so the view it
|
||||
// stops at is the one described.
|
||||
let lastRead = 0;
|
||||
let trailing = null;
|
||||
const onChanged = () => {
|
||||
clearTimeout(trailing);
|
||||
const now = performance.now();
|
||||
if (now - lastRead >= 1000) {
|
||||
lastRead = now;
|
||||
readView();
|
||||
return;
|
||||
}
|
||||
trailing = setTimeout(
|
||||
() => {
|
||||
lastRead = performance.now();
|
||||
readView();
|
||||
},
|
||||
1000 - (now - lastRead),
|
||||
);
|
||||
};
|
||||
let cameraOff = [];
|
||||
const listen = () => {
|
||||
const port = camera();
|
||||
if (!port || cameraOff.length) return;
|
||||
cameraOff = [port.on('moveEnd', readView), port.on('changed', onChanged)];
|
||||
};
|
||||
listen();
|
||||
const firstRead = setTimeout(() => {
|
||||
listen();
|
||||
readView();
|
||||
}, 0);
|
||||
// Opening the panel describes the view as it is now.
|
||||
let wasOpen = isOpen();
|
||||
const offChrome = chrome.$subscribe(() => {
|
||||
const open = isOpen();
|
||||
if (open && !wasOpen) readView();
|
||||
wasOpen = open;
|
||||
});
|
||||
|
||||
/** Layers whose own map click already follows what was clicked. */
|
||||
const CLICK_FOLLOWS = new Set(['flights', 'military', 'satellites']);
|
||||
|
||||
// Keep the card's "following" in step with the camera: it says Following
|
||||
// while the camera follows the card's own item (the follow's key names
|
||||
// it) and not otherwise, whoever started or ended the follow. A layer
|
||||
// switching what it follows lets go for a moment and takes hold again in
|
||||
// the same turn, so this is checked once that settles.
|
||||
let followCheck = 0;
|
||||
const offFollow = onFollowChanged(viewer, () => {
|
||||
clearTimeout(followCheck);
|
||||
const card = store.card;
|
||||
// Taking hold of the card's item shows at once; letting go waits a
|
||||
// moment, in case the layer is only switching follows.
|
||||
if (followsCard(card)) {
|
||||
store.following = card.key;
|
||||
return;
|
||||
}
|
||||
followCheck = setTimeout(() => {
|
||||
const now = store.card;
|
||||
store.following = followsCard(now) ? now.key : null;
|
||||
}, 250);
|
||||
});
|
||||
|
||||
// A click on anything a layer can identify opens its card. The input
|
||||
// dispatcher hands every subscriber the same click, picked once before
|
||||
// any layer acts on it, and only while no tool holds the pointer.
|
||||
const offClick = inputFor(viewer).onClick((event) => {
|
||||
// Cockpit has its own picks, and Context is hidden while it runs. A
|
||||
// camera drag never selects, even if it ends over something.
|
||||
if (inCockpit() || !isTrackingSelectionGesture(event.gesture)) return;
|
||||
const identity = resolvePickedContext(event.hit, {
|
||||
dataManager: getDataManager(),
|
||||
});
|
||||
if (identity) {
|
||||
// These layers start following on their own click; following again
|
||||
// from here would fight them (the flights layer reads a second track
|
||||
// of the same plane as a click on empty map and lets go).
|
||||
store.select(identity, { follow: !CLICK_FOLLOWS.has(identity.layerId) });
|
||||
return;
|
||||
}
|
||||
// A click on open ground, sea or sky lets go of what was selected. A
|
||||
// click on something else Context cannot describe (a label, a trail)
|
||||
// leaves the card as it is.
|
||||
// Only a clean click lets go, as the layers' own clicks do; a card
|
||||
// painted on the overlay (a vessel's, a fire's) is not open map.
|
||||
if (
|
||||
event.surface &&
|
||||
isTrackingClickGesture(event.gesture) &&
|
||||
!overlayHit?.(event.screenPosition?.x, event.screenPosition?.y)
|
||||
)
|
||||
store.clear();
|
||||
});
|
||||
|
||||
// Layers that select through the context store (GeoJSON sites, fires,
|
||||
// installations) announce it; their selection opens the card too.
|
||||
const onSelected = ({ detail: record }) => {
|
||||
if (!record?.layerId || inCockpit()) return;
|
||||
store.select({
|
||||
layerId: record.layerId,
|
||||
id: record.id,
|
||||
label: record.label || record.properties?.name,
|
||||
lat: record.latitude,
|
||||
lon: record.longitude,
|
||||
});
|
||||
};
|
||||
globalThis.addEventListener?.('gev:entity-selected', onSelected);
|
||||
|
||||
return () => {
|
||||
disposed = true;
|
||||
clearTimeout(firstRead);
|
||||
offClick();
|
||||
for (const off of cameraOff) off?.();
|
||||
clearTimeout(trailing);
|
||||
offFollow();
|
||||
offChrome();
|
||||
clearTimeout(followCheck);
|
||||
globalThis.removeEventListener?.('gev:entity-selected', onSelected);
|
||||
store.connect(null);
|
||||
};
|
||||
}
|
||||
@@ -0,0 +1,248 @@
|
||||
import { codeWord, distanceKm } from '../data/entityContext.js';
|
||||
import { formatNumber, msg, t, tn } from '../i18n/index.js';
|
||||
import { createUsgsEarthquakeSource } from '../layers/earthquakes/source.js';
|
||||
import { createCycloneSource } from '../layers/cyclones/source.js';
|
||||
import { createWfigsPerimeterSource } from '../layers/perimeters/source.js';
|
||||
import { createFirmsSource } from '../layers/firms/source.js';
|
||||
|
||||
// What is going on around one spot on the map: the weather there now and the
|
||||
// local headlines (the app's regional brief, the same one Cockpit shows), and
|
||||
// the natural hazards near it from the feeds the hazard layers read
|
||||
// (earthquakes, tropical storms, wildfire perimeters, satellite fire hits).
|
||||
// The feeds are global snapshots, so each is fetched once and kept for a few
|
||||
// minutes whichever spot asks; the brief is kept per spot.
|
||||
|
||||
const BRIEF_TTL_MS = 10 * 60_000;
|
||||
const FEED_TTL_MS = 5 * 60_000;
|
||||
|
||||
const briefs = new Map();
|
||||
/**
|
||||
* The regional brief for a spot: `{weather, articles, place, newsSource}`,
|
||||
* read with `load`, the app's regional service. A failed read is not kept,
|
||||
* so the next ask tries again.
|
||||
* @param {number} lat
|
||||
* @param {number} lon
|
||||
* @param {(lat: number, lon: number) => Promise<object>} load
|
||||
* @param {{force?: boolean}} [options] `force` reads again whatever is kept.
|
||||
*/
|
||||
export function regionalBrief(lat, lon, load, { force = false } = {}) {
|
||||
const key = `${lat.toFixed(2)},${lon.toFixed(2)}`;
|
||||
const kept = briefs.get(key);
|
||||
if (!force && kept && Date.now() - kept.at < BRIEF_TTL_MS)
|
||||
return kept.promise;
|
||||
const forget = () => {
|
||||
if (briefs.get(key)?.promise === promise) briefs.delete(key);
|
||||
return null;
|
||||
};
|
||||
const promise = Promise.resolve()
|
||||
.then(() => load(lat, lon))
|
||||
.then((brief) => brief ?? forget(), forget);
|
||||
briefs.set(key, { at: Date.now(), promise });
|
||||
if (briefs.size > 40) briefs.delete(briefs.keys().next().value);
|
||||
return promise;
|
||||
}
|
||||
|
||||
const feeds = new Map();
|
||||
function snapshot(name, load, force) {
|
||||
const kept = feeds.get(name);
|
||||
if (!force && kept && Date.now() - kept.at < FEED_TTL_MS) return kept.promise;
|
||||
const promise = load().catch(() => null);
|
||||
feeds.set(name, { at: Date.now(), promise });
|
||||
return promise;
|
||||
}
|
||||
const quakes = (force) =>
|
||||
snapshot('quakes', () => createUsgsEarthquakeSource().getSnapshot(), force);
|
||||
const storms = (force) =>
|
||||
snapshot('storms', () => createCycloneSource().getSnapshot(), force);
|
||||
const perimeters = (force) =>
|
||||
snapshot(
|
||||
'perimeters',
|
||||
() => createWfigsPerimeterSource().getSnapshot(),
|
||||
force,
|
||||
);
|
||||
const fires = (force) =>
|
||||
snapshot('fires', () => createFirmsSource().getSnapshot(), force);
|
||||
|
||||
// English compass points, which the UI shows through t().
|
||||
const COMPASS = [
|
||||
msg('N'),
|
||||
msg('NE'),
|
||||
msg('E'),
|
||||
msg('SE'),
|
||||
msg('S'),
|
||||
msg('SW'),
|
||||
msg('W'),
|
||||
msg('NW'),
|
||||
];
|
||||
/** The compass point from one spot to another, like "NE". */
|
||||
export function compassPoint(from, to) {
|
||||
const rad = Math.PI / 180;
|
||||
const y = Math.sin((to.lon - from.lon) * rad) * Math.cos(to.lat * rad);
|
||||
const x =
|
||||
Math.cos(from.lat * rad) * Math.sin(to.lat * rad) -
|
||||
Math.sin(from.lat * rad) *
|
||||
Math.cos(to.lat * rad) *
|
||||
Math.cos((to.lon - from.lon) * rad);
|
||||
const deg = (Math.atan2(y, x) / rad + 360) % 360;
|
||||
return compassName(deg);
|
||||
}
|
||||
|
||||
/** The compass point for a bearing in degrees. */
|
||||
export function compassName(deg) {
|
||||
return COMPASS[Math.round((((deg % 360) + 360) % 360) / 45) % 8];
|
||||
}
|
||||
|
||||
// The middle of a perimeter's first ring, close enough for "how far".
|
||||
function perimeterMiddle(row) {
|
||||
const ring = row?.polygons?.[0]?.[0];
|
||||
if (!Array.isArray(ring) || !ring.length) return null;
|
||||
let lat = 0;
|
||||
let lon = 0;
|
||||
for (const [x, y] of ring) {
|
||||
lon += x;
|
||||
lat += y;
|
||||
}
|
||||
return { lat: lat / ring.length, lon: lon / ring.length };
|
||||
}
|
||||
|
||||
/** A storm as "Hurricane Melissa": its class in words when the code has them. */
|
||||
function stormTitle(storm) {
|
||||
const word = codeWord('classification', storm.classification);
|
||||
if (!word)
|
||||
return [storm.classification, storm.name].filter(Boolean).join(' ');
|
||||
return storm.name
|
||||
? t('{kind} {name}', { kind: t(word), name: storm.name })
|
||||
: t(word);
|
||||
}
|
||||
|
||||
/**
|
||||
* Hazards within a radius of a spot, nearest first within each kind:
|
||||
* `[{kind, icon, title, detail, distanceKm, at}]`. Every kind uses the same
|
||||
* radius, the one Context's radius control sets. Satellite fire hits need a
|
||||
* FIRMS key the browser cannot see, so they are read only with `fires`: while
|
||||
* the FIRMS layer is on, which has found the key works.
|
||||
*/
|
||||
export async function hazardsNear(
|
||||
lat,
|
||||
lon,
|
||||
radiusKm = 250,
|
||||
{ fires: withFires = false, force = false } = {},
|
||||
) {
|
||||
const here = { lat, lon };
|
||||
const [quakeRows, stormSnap, perimeterRows, fireSnap] = await Promise.all([
|
||||
quakes(force),
|
||||
storms(force),
|
||||
perimeters(force),
|
||||
withFires ? fires(force) : null,
|
||||
]);
|
||||
const found = [];
|
||||
const add = (row) => {
|
||||
row.distanceKm = distanceKm(here, row.at);
|
||||
row.direction = compassPoint(here, row.at);
|
||||
found.push(row);
|
||||
};
|
||||
|
||||
for (const quake of Array.isArray(quakeRows) ? quakeRows : []) {
|
||||
const at = { lat: quake.lat, lon: quake.lon };
|
||||
if (!(distanceKm(here, at) <= radiusKm)) continue;
|
||||
add({
|
||||
kind: 'quake',
|
||||
icon: 'earthquake',
|
||||
title: Number.isFinite(Number.parseFloat(quake.mag))
|
||||
? t('M{mag} earthquake', { mag: Number(quake.mag).toFixed(1) })
|
||||
: t('Earthquake'),
|
||||
detail: quake.place || '',
|
||||
time: quake.time,
|
||||
at,
|
||||
});
|
||||
}
|
||||
for (const storm of stormSnap?.storms || []) {
|
||||
const at = {
|
||||
lat: storm.position?.latitude,
|
||||
lon: storm.position?.longitude,
|
||||
};
|
||||
if (!(distanceKm(here, at) <= radiusKm)) continue;
|
||||
add({
|
||||
kind: 'storm',
|
||||
icon: 'cyclone',
|
||||
title: stormTitle(storm),
|
||||
detail: storm.windKt ? t('{n} kt winds', { n: storm.windKt }) : '',
|
||||
time: Date.parse(storm.positionAt) || null,
|
||||
at,
|
||||
});
|
||||
}
|
||||
for (const fire of Array.isArray(perimeterRows) ? perimeterRows : []) {
|
||||
const at = perimeterMiddle(fire);
|
||||
if (!at || !(distanceKm(here, at) <= radiusKm)) continue;
|
||||
const acres = Number(fire.acres);
|
||||
add({
|
||||
kind: 'wildfire',
|
||||
icon: 'local_fire_department',
|
||||
title: fire.name || t('Wildfire'),
|
||||
detail: [
|
||||
Number.isFinite(acres)
|
||||
? t('{n} acres', { n: formatNumber(Math.round(acres)) })
|
||||
: '',
|
||||
Number.isFinite(fire.containedPct)
|
||||
? t('{n}% contained', { n: fire.containedPct })
|
||||
: '',
|
||||
fire.category === 'RX' ? t('prescribed burn') : '',
|
||||
]
|
||||
.filter(Boolean)
|
||||
.join(' · '),
|
||||
time: fire.updatedTime || fire.discoveredTime || null,
|
||||
at,
|
||||
});
|
||||
}
|
||||
// Satellite fire hits are many small points: count the close ones.
|
||||
const hits = (Array.isArray(fireSnap?.fires) ? fireSnap.fires : [])
|
||||
.map((fire) => ({
|
||||
lat: Number(fire.lat ?? fire.latitude),
|
||||
lon: Number(fire.lon ?? fire.longitude),
|
||||
}))
|
||||
.filter((at) => distanceKm(here, at) <= radiusKm);
|
||||
if (hits.length) {
|
||||
const nearest = hits.reduce((a, b) =>
|
||||
distanceKm(here, a) <= distanceKm(here, b) ? a : b,
|
||||
);
|
||||
add({
|
||||
kind: 'hotspots',
|
||||
icon: 'local_fire_department',
|
||||
title: tn(
|
||||
hits.length,
|
||||
'{count} satellite fire hit',
|
||||
'{count} satellite fire hits',
|
||||
),
|
||||
detail: t('last day'),
|
||||
time: null,
|
||||
at: nearest,
|
||||
});
|
||||
}
|
||||
const order = { storm: 0, wildfire: 1, hotspots: 2, quake: 3 };
|
||||
return found.sort(
|
||||
(a, b) => order[a.kind] - order[b.kind] || a.distanceKm - b.distanceKm,
|
||||
);
|
||||
}
|
||||
|
||||
/** Title-case copy for a WMO weather code, and the icon that goes with it. */
|
||||
export function weatherLook(code) {
|
||||
const value = Number(code);
|
||||
if (!Number.isFinite(value))
|
||||
return { label: msg('Conditions unknown'), icon: 'partly_cloudy_day' };
|
||||
if (value === 0) return { label: msg('Clear'), icon: 'sunny' };
|
||||
if (value <= 2)
|
||||
return { label: msg('Partly cloudy'), icon: 'partly_cloudy_day' };
|
||||
if (value === 3) return { label: msg('Overcast'), icon: 'cloud' };
|
||||
if (value === 45 || value === 48) return { label: msg('Fog'), icon: 'foggy' };
|
||||
if (value >= 51 && value <= 57)
|
||||
return { label: msg('Drizzle'), icon: 'rainy' };
|
||||
if (value >= 61 && value <= 67) return { label: msg('Rain'), icon: 'rainy' };
|
||||
if (value >= 71 && value <= 77)
|
||||
return { label: msg('Snow'), icon: 'weather_snowy' };
|
||||
if (value >= 80 && value <= 82)
|
||||
return { label: msg('Rain showers'), icon: 'rainy' };
|
||||
if (value >= 85 && value <= 86)
|
||||
return { label: msg('Snow showers'), icon: 'weather_snowy' };
|
||||
if (value >= 95) return { label: msg('Thunderstorm'), icon: 'thunderstorm' };
|
||||
return { label: msg('Mixed conditions'), icon: 'partly_cloudy_day' };
|
||||
}
|
||||
@@ -0,0 +1,345 @@
|
||||
import { defineStore } from 'pinia';
|
||||
import { markRaw, ref, shallowRef } from 'vue';
|
||||
import { sourceLabel } from '../layerNames.js';
|
||||
import {
|
||||
alertsNear,
|
||||
describeEntity,
|
||||
layerBreakdown,
|
||||
nearbyByKind,
|
||||
layerMatches,
|
||||
searchEntities,
|
||||
viewSummary,
|
||||
} from '../../data/entityContext.js';
|
||||
import { formatDate, formatNumber, t } from '../../i18n/index.js';
|
||||
|
||||
const FACT_DATE = Object.freeze({
|
||||
day: 'numeric',
|
||||
month: 'short',
|
||||
year: 'numeric',
|
||||
timeZone: 'UTC',
|
||||
});
|
||||
|
||||
/**
|
||||
* Words from entityContext (a fact's, an insight's or a warning's `words`) in
|
||||
* the active language, or `fallback` (its English as given) when it has none.
|
||||
* @param {?{text?: string, values?: object, context?: string, fixed?: number, date?: number}} words
|
||||
* @param {string} [fallback]
|
||||
* @returns {string}
|
||||
*/
|
||||
export function sayWords(words, fallback = '') {
|
||||
if (!words) return fallback;
|
||||
if (words.date !== undefined) return formatDate(words.date, FACT_DATE);
|
||||
const digits =
|
||||
words.fixed === undefined
|
||||
? { maximumFractionDigits: 2 }
|
||||
: {
|
||||
minimumFractionDigits: words.fixed,
|
||||
maximumFractionDigits: words.fixed,
|
||||
};
|
||||
const values = {};
|
||||
for (const [name, value] of Object.entries(words.values || {}))
|
||||
values[name] =
|
||||
typeof value === 'number'
|
||||
? formatNumber(value, digits)
|
||||
: value && typeof value === 'object'
|
||||
? sayWords(value)
|
||||
: value;
|
||||
if (words.context) values.context = words.context;
|
||||
return t(words.text, values);
|
||||
}
|
||||
|
||||
/** A fact's or insight's value in the active language. */
|
||||
export const factValue = (fact) => sayWords(fact?.words, fact?.value ?? '');
|
||||
|
||||
/**
|
||||
* A fact's label in the active language. Labels whose plain English means
|
||||
* something else elsewhere in the catalog take a context here.
|
||||
*/
|
||||
export function factLabel(fact) {
|
||||
if (fact?.label === 'Country') return t('Country', { context: 'place' });
|
||||
return t(fact?.label || '', fact?.labelValues);
|
||||
}
|
||||
|
||||
/**
|
||||
* A figure split for a tile, so its number can lead: `{number, unit}` in the
|
||||
* active language. A value that does not start with its number shows whole.
|
||||
*/
|
||||
export function factFigure(fact) {
|
||||
const words = fact?.words;
|
||||
if (words?.text?.startsWith('{n}') && typeof words.values?.n === 'number')
|
||||
return {
|
||||
number: sayWords({ ...words, text: '{n}' }),
|
||||
unit: sayWords({ ...words, values: { ...words.values, n: '' } }).trim(),
|
||||
};
|
||||
return { number: factValue(fact), unit: '' };
|
||||
}
|
||||
|
||||
/** How often an open card re-reads its item, so moving things stay current. */
|
||||
const REFRESH_MS = 2000;
|
||||
|
||||
/**
|
||||
* The thing the Context panel is about: whatever was last clicked on the
|
||||
* globe, chosen in the omnibar, or picked from the card's nearby list.
|
||||
*
|
||||
* The shell connects `{dataManager(), flyTo(card), follow(card), openPanel()}`;
|
||||
* until then nothing can be selected.
|
||||
*/
|
||||
export const useEntityCardStore = defineStore('gev-entity-card', () => {
|
||||
const shell = shallowRef(null);
|
||||
/** The card model from `describeEntity`, or null. */
|
||||
const card = shallowRef(null);
|
||||
/** True once a moving item has dropped out of its feed. */
|
||||
const lost = ref(false);
|
||||
/** Bumped on each refresh, so ages shown on the card tick. */
|
||||
const tick = ref(0);
|
||||
/**
|
||||
* What the camera shows, for the panel to describe when nothing is picked:
|
||||
* `{center: {lat, lon}, rect: {west, south, east, north}, heightM}`.
|
||||
*/
|
||||
const view = shallowRef(null);
|
||||
let timer = null;
|
||||
|
||||
function connect(next) {
|
||||
shell.value = next ? markRaw(next) : null;
|
||||
if (!next) clear();
|
||||
}
|
||||
|
||||
const dataManager = () => shell.value?.dataManager?.() || null;
|
||||
|
||||
function read(identity) {
|
||||
const next = describeEntity(dataManager(), identity);
|
||||
if (!next) return false;
|
||||
card.value = markRaw(next);
|
||||
lost.value = false;
|
||||
tick.value++;
|
||||
return true;
|
||||
}
|
||||
|
||||
/**
|
||||
* Where a card's data comes from, for its footer: the item's own source,
|
||||
* else its layer's live feed (the name the layer list shows).
|
||||
*/
|
||||
function sourceOf(current) {
|
||||
if (!current) return '';
|
||||
if (current.source) return current.source;
|
||||
const dm = shell.value?.dataManager?.();
|
||||
const layer = dm?.getAll?.().find((row) => row.id === current.layerId);
|
||||
const stats = layer?.stats || {};
|
||||
const raw =
|
||||
stats.sourceVerbatim === true && stats.source
|
||||
? stats.source
|
||||
: sourceLabel(stats.source || layer?.source);
|
||||
return raw || '';
|
||||
}
|
||||
const canCockpit = () => Boolean(shell.value?.canCockpit?.(card.value));
|
||||
function cockpit() {
|
||||
if (card.value) shell.value?.cockpit?.(card.value);
|
||||
}
|
||||
|
||||
function setView(next) {
|
||||
view.value = next ? markRaw(next) : null;
|
||||
}
|
||||
/** Ask a flight's layer for its route, so the card can draw it. */
|
||||
function requestRoute(identity) {
|
||||
if (!identity?.id || !['flights'].includes(identity.layerId)) return;
|
||||
const layer = shell.value?.dataManager?.()?.layers?.get?.(identity.layerId);
|
||||
try {
|
||||
layer?.module?.requestRoute?.(identity.id);
|
||||
} catch {
|
||||
// No route then; the card shows without one.
|
||||
}
|
||||
}
|
||||
|
||||
/** A layer's items in an area that pass a test (see layerMatches). */
|
||||
function matchesIn(layerId, area) {
|
||||
const dm = shell.value?.dataManager?.();
|
||||
if (!dm || !dm.isEnabled?.(layerId)) return null;
|
||||
return layerMatches(dm, layerId, area);
|
||||
}
|
||||
|
||||
/** What the loaded layers have in the current view, by layer. */
|
||||
function inView(options) {
|
||||
const dm = shell.value?.dataManager?.();
|
||||
if (!dm || !view.value) return [];
|
||||
return viewSummary(dm, view.value.rect, view.value.center, options);
|
||||
}
|
||||
/** Ask GEV about the view, with what is in it. */
|
||||
function askAboutView(summary) {
|
||||
const where = view.value;
|
||||
if (!where) return;
|
||||
const counts = summary
|
||||
.map((group) => `${group.count} ${group.layerName}`)
|
||||
.join(', ');
|
||||
shell.value?.askText?.(
|
||||
`What am I looking at? The view is centred on ${where.center.lat.toFixed(4)}, ${where.center.lon.toFixed(4)} from about ${Math.round(where.heightM)} m up${counts ? `, showing ${counts}` : ''}. What is here and what stands out?`,
|
||||
);
|
||||
}
|
||||
|
||||
/** What is loaded around a ground point, as the card's nearby lists. */
|
||||
/** The layers that are on, as the data manager lists them. */
|
||||
function liveLayers() {
|
||||
const dm = shell.value?.dataManager?.();
|
||||
try {
|
||||
return (dm?.getAll?.() || []).filter((row) => row.enabled);
|
||||
} catch {
|
||||
return [];
|
||||
}
|
||||
}
|
||||
|
||||
/** What a layer's items are made of (see layerBreakdown). */
|
||||
function breakdown(layerId, options) {
|
||||
return layerBreakdown(shell.value?.dataManager?.(), layerId, options);
|
||||
}
|
||||
|
||||
/** Loaded records near a point that broadcast a warning. */
|
||||
function alertsAt(lat, lon, options) {
|
||||
return alertsNear(shell.value?.dataManager?.(), { lat, lon }, options);
|
||||
}
|
||||
|
||||
/**
|
||||
* What the loaded layers have within a radius of a point, grouped the way
|
||||
* every card lists it: `{flights, vessels, other}` (see nearbyByKind).
|
||||
*/
|
||||
function nearbyGroups(lat, lon, options) {
|
||||
return nearbyByKind(shell.value?.dataManager?.(), { lat, lon }, options);
|
||||
}
|
||||
|
||||
/** Whether a card's layer is known to the layer manager and switched off. */
|
||||
function layerOff(layerId) {
|
||||
const dm = dataManager();
|
||||
const id = layerId;
|
||||
if (!dm?.isEnabled || !dm.layers?.has?.(id)) return false;
|
||||
return dm.isEnabled(id) === false;
|
||||
}
|
||||
|
||||
function refresh() {
|
||||
const current = card.value;
|
||||
if (!current) return;
|
||||
// A card does not outlive its layer: turning the layer off (or clearing
|
||||
// all layers) closes it and lets go of the camera.
|
||||
if (layerOff(current.layerId)) return clear();
|
||||
// A closed panel shows nothing, so it reads nothing until it opens.
|
||||
if (shell.value?.isOpen && !shell.value.isOpen()) return;
|
||||
const next = describeEntity(dataManager(), current.identity);
|
||||
// Keep showing the last reading when the item drops out of its feed.
|
||||
if (!next || next.key !== current.key || next.basis !== 'record') {
|
||||
lost.value = current.basis === 'record';
|
||||
tick.value++;
|
||||
return;
|
||||
}
|
||||
card.value = markRaw(next);
|
||||
lost.value = false;
|
||||
tick.value++;
|
||||
}
|
||||
|
||||
/**
|
||||
* Show an item on the card.
|
||||
* @param {object} identity `{layerId, id, label, lat, lon, record?}`
|
||||
* @param {object} [options]
|
||||
* @param {boolean} [options.fly] Also fly the camera to it.
|
||||
* @returns {boolean} Whether a card could be made.
|
||||
*/
|
||||
/** Things that move are followed as soon as they are picked. */
|
||||
const AUTO_FOLLOW = new Set(['flights', 'military', 'satellites']);
|
||||
/**
|
||||
* The key of the item the camera follows, if any. The shell sets it from
|
||||
* the camera's own follow, so it is never claimed before the camera does.
|
||||
*/
|
||||
const following = ref(null);
|
||||
/** The item a follow was last asked for, so it is asked once per item. */
|
||||
let asked = null;
|
||||
|
||||
/**
|
||||
* @param {object} identity
|
||||
* @param {{fly?: boolean, follow?: boolean}} [options] `follow: false`
|
||||
* keeps the camera where it is even for an aircraft.
|
||||
*/
|
||||
function select(identity, { fly = false, follow: autoFollow = true } = {}) {
|
||||
if (!read(identity)) return false;
|
||||
clearInterval(timer);
|
||||
timer = setInterval(refresh, REFRESH_MS);
|
||||
shell.value?.openPanel?.();
|
||||
const current = card.value;
|
||||
const followNow =
|
||||
autoFollow &&
|
||||
AUTO_FOLLOW.has(current?.layerId) &&
|
||||
shell.value?.canFollow?.(current);
|
||||
if (followNow) {
|
||||
// Tracking can announce the craft again; following what is already
|
||||
// followed would loop, so it only starts once per item.
|
||||
if (following.value !== current.key && asked !== current.key) {
|
||||
asked = current.key;
|
||||
shell.value?.follow?.(current);
|
||||
}
|
||||
} else {
|
||||
asked = null;
|
||||
if (fly) shell.value?.flyTo?.(current);
|
||||
}
|
||||
requestRoute(current?.identity);
|
||||
return true;
|
||||
}
|
||||
|
||||
function clear() {
|
||||
if (following.value) shell.value?.letGo?.(card.value);
|
||||
following.value = null;
|
||||
asked = null;
|
||||
clearInterval(timer);
|
||||
timer = null;
|
||||
card.value = null;
|
||||
lost.value = false;
|
||||
}
|
||||
|
||||
const flyTo = () => card.value && shell.value?.flyTo?.(card.value);
|
||||
const follow = () => {
|
||||
if (!card.value) return;
|
||||
asked = card.value.key;
|
||||
shell.value?.follow?.(card.value);
|
||||
};
|
||||
const isFollowing = () =>
|
||||
Boolean(card.value && following.value === card.value.key);
|
||||
const ask = () => card.value && shell.value?.ask?.(card.value);
|
||||
/** The regional brief (weather, local news) for a spot, from the shell. */
|
||||
const readBrief = (lat, lon) =>
|
||||
shell.value?.regionalBrief
|
||||
? shell.value.regionalBrief(lat, lon)
|
||||
: Promise.resolve(null);
|
||||
const canFollow = () => Boolean(shell.value?.canFollow?.(card.value));
|
||||
/** Loaded items whose name or id matches typed text, for the omnibar. */
|
||||
const search = (query, options) =>
|
||||
shell.value
|
||||
? searchEntities(dataManager(), query, {
|
||||
near: shell.value.here?.() || null,
|
||||
...options,
|
||||
})
|
||||
: [];
|
||||
|
||||
return {
|
||||
card,
|
||||
lost,
|
||||
tick,
|
||||
connect,
|
||||
select,
|
||||
clear,
|
||||
refresh,
|
||||
flyTo,
|
||||
follow,
|
||||
ask,
|
||||
readBrief,
|
||||
canFollow,
|
||||
isFollowing,
|
||||
following,
|
||||
search,
|
||||
nearbyGroups,
|
||||
alertsAt,
|
||||
liveLayers,
|
||||
breakdown,
|
||||
view,
|
||||
setView,
|
||||
matchesIn,
|
||||
sourceOf,
|
||||
canCockpit,
|
||||
cockpit,
|
||||
inView,
|
||||
askAboutView,
|
||||
};
|
||||
});
|
||||
@@ -0,0 +1,33 @@
|
||||
import { defineStore } from 'pinia';
|
||||
import { markRaw, shallowRef } from 'vue';
|
||||
|
||||
/**
|
||||
* The top-bar omnibar's link to the shell. The shell connects the actions
|
||||
* the omnibar offers: `layers()` lists the data layers as `{id, name,
|
||||
* enabled}`, and `setLayer(id, enabled)` turns one on or off as a user click
|
||||
* would. Place search runs through the location controls and Ask GEV through
|
||||
* the voice controls, so neither is repeated here.
|
||||
*/
|
||||
export const useOmnibarStore = defineStore('gev-omnibar', () => {
|
||||
/** `{layers(), setLayer(id, enabled)}`, or null while disconnected. */
|
||||
const controls = shallowRef(null);
|
||||
|
||||
/** @param {?object} next The shell's omnibar actions, or null. */
|
||||
function connect(next) {
|
||||
controls.value = next && markRaw(next);
|
||||
}
|
||||
|
||||
/**
|
||||
* The voice action runner, `(name, args) → Promise<result>`: the same
|
||||
* actions voice and chat call, run directly without a model. Null while no
|
||||
* voice runtime is up.
|
||||
*/
|
||||
const runner = shallowRef(null);
|
||||
|
||||
/** @param {?Function} next The runner, or null to disconnect. */
|
||||
function connectRunner(next) {
|
||||
runner.value = next ? markRaw(next) : null;
|
||||
}
|
||||
|
||||
return { controls, connect, runner, connectRunner };
|
||||
});
|
||||
@@ -0,0 +1,243 @@
|
||||
/* ── Context expanded ───────────────────────────────────────────────────
|
||||
Expanded, Context becomes a full-height column over the right edge of the
|
||||
screen. The globe and HUD stay where they are, under it. */
|
||||
:root {
|
||||
--context-dock-width: clamp(360px, 30vw, 460px);
|
||||
}
|
||||
|
||||
/* The column: edge to edge, top to bottom, no rail beside it. */
|
||||
body.context-docked #right-context-rail {
|
||||
z-index: 170;
|
||||
top: 0 !important;
|
||||
right: 0 !important;
|
||||
bottom: 0 !important;
|
||||
width: var(--context-dock-width) !important;
|
||||
max-height: none !important;
|
||||
height: 100vh !important;
|
||||
}
|
||||
|
||||
/* The map credits stay readable beside the column: their row ends short of
|
||||
it. creditAttribution.test.mjs pins this. */
|
||||
body.context-docked:not(.ui-clean-view):not(.recording-mode) #cesium-credits,
|
||||
body.context-docked:not(.ui-clean-view):not(.recording-mode) #gev-credits,
|
||||
body.context-docked:not(.ui-clean-view):not(.recording-mode):has(
|
||||
#intel-hud[data-variant='minimal'].active
|
||||
)
|
||||
#cesium-credits,
|
||||
body.context-docked:not(.ui-clean-view):not(.recording-mode):has(
|
||||
#intel-hud[data-variant='minimal'].active
|
||||
)
|
||||
#gev-credits {
|
||||
max-width: calc(100vw - 3rem - var(--context-dock-width));
|
||||
}
|
||||
|
||||
body.context-docked #right-context-rail > .gev-panel-rail {
|
||||
display: none;
|
||||
}
|
||||
|
||||
body.context-docked
|
||||
#right-context-rail
|
||||
> :not(#global-context-panel):not(.gev-panel-rail) {
|
||||
display: none !important;
|
||||
}
|
||||
|
||||
body.context-docked #right-context-rail > #global-context-panel {
|
||||
flex: 1 1 auto !important;
|
||||
width: 100% !important;
|
||||
height: 100% !important;
|
||||
max-height: none !important;
|
||||
}
|
||||
|
||||
body.context-docked #global-context-panel .global-context-panel-inner {
|
||||
height: 100%;
|
||||
padding: 22px 24px 16px;
|
||||
background: rgba(10, 11, 16, 0.94);
|
||||
border: 0;
|
||||
border-left: 1px solid rgba(255, 255, 255, 0.08);
|
||||
border-radius: 0;
|
||||
box-shadow: -18px 0 40px rgba(0, 0, 0, 0.35);
|
||||
}
|
||||
|
||||
body.context-docked #global-context-panel .panel-glow {
|
||||
display: none;
|
||||
}
|
||||
|
||||
/* The expand button sits beside the collapse button in the header. */
|
||||
.context-dock-btn {
|
||||
display: grid;
|
||||
flex: none;
|
||||
place-items: center;
|
||||
width: 28px;
|
||||
height: 28px;
|
||||
margin-inline-end: 6px;
|
||||
padding: 0;
|
||||
color: var(--text-secondary);
|
||||
background: transparent;
|
||||
border: 1px solid var(--glass-border);
|
||||
border-radius: var(--btn-radius);
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.context-dock-btn .material-symbols-outlined {
|
||||
font-size: 16px;
|
||||
}
|
||||
|
||||
.context-dock-btn:hover,
|
||||
.context-dock-btn:focus-visible,
|
||||
.context-dock-btn[aria-pressed='true'] {
|
||||
color: var(--accent);
|
||||
border-color: var(--accent-dim);
|
||||
background: var(--accent-dim);
|
||||
}
|
||||
|
||||
/* Phones keep their sheets; the dock is a desktop layout. */
|
||||
body.mobile-shell .context-dock-btn {
|
||||
display: none;
|
||||
}
|
||||
|
||||
/* Context's own search field, under the header: narrows what the panel shows.
|
||||
Sized and framed like the tab bar beneath it. */
|
||||
.context-search {
|
||||
position: sticky;
|
||||
top: 0;
|
||||
z-index: 2;
|
||||
display: flex;
|
||||
flex: none;
|
||||
box-sizing: border-box;
|
||||
align-items: center;
|
||||
gap: 8px;
|
||||
min-height: 34px;
|
||||
margin: 0 0 0.5rem;
|
||||
padding: 0 6px 0 10px;
|
||||
color: rgba(199, 214, 222, 0.65);
|
||||
background: rgba(16, 22, 28, 0.94);
|
||||
border: 1px solid rgba(54, 220, 255, 0.35);
|
||||
border-radius: 10px;
|
||||
backdrop-filter: blur(8px);
|
||||
}
|
||||
|
||||
.context-search:focus-within {
|
||||
color: #7af0ff;
|
||||
border-color: rgba(54, 220, 255, 0.7);
|
||||
box-shadow: 0 0 0 3px rgba(54, 220, 255, 0.1);
|
||||
}
|
||||
|
||||
.context-search .material-symbols-outlined {
|
||||
font-size: 17px;
|
||||
}
|
||||
|
||||
.context-search__input::placeholder {
|
||||
color: rgba(199, 214, 222, 0.45);
|
||||
}
|
||||
|
||||
.context-search__input {
|
||||
flex: 1;
|
||||
min-width: 0;
|
||||
height: 100%;
|
||||
padding: 0;
|
||||
color: var(--text-primary, #e8eaed);
|
||||
font: inherit;
|
||||
font-size: 0.74rem;
|
||||
line-height: 32px;
|
||||
background: transparent;
|
||||
border: 0;
|
||||
outline: 0;
|
||||
}
|
||||
|
||||
.context-search__input::-webkit-search-cancel-button {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.context-search__clear {
|
||||
display: grid;
|
||||
flex: none;
|
||||
place-items: center;
|
||||
width: 24px;
|
||||
height: 24px;
|
||||
padding: 0;
|
||||
color: rgba(199, 214, 222, 0.65);
|
||||
background: transparent;
|
||||
border: 0;
|
||||
border-radius: 50%;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.context-search__clear:hover,
|
||||
.context-search__clear:focus-visible {
|
||||
color: var(--accent);
|
||||
}
|
||||
|
||||
.entity-card__no-match {
|
||||
margin: 0 0 0.7rem;
|
||||
color: rgba(199, 214, 222, 0.6);
|
||||
font-size: 0.66rem;
|
||||
}
|
||||
|
||||
.context-search__input:focus,
|
||||
.context-search__input:focus-visible {
|
||||
outline: 0;
|
||||
box-shadow: none;
|
||||
}
|
||||
|
||||
/* While a search is typed, what cannot match steps aside so the matches lead:
|
||||
the weather, the view's own figures, the route and altitude graph, and the
|
||||
layer switches. The radius stays: it sets how far the search looks. */
|
||||
.context-searching
|
||||
:is(
|
||||
.spot-conditions__weather,
|
||||
.spot-conditions__loading,
|
||||
.spot-conditions__source,
|
||||
.view-context__facts,
|
||||
.view-context__live,
|
||||
.view-context__total,
|
||||
.view-context__actions,
|
||||
.view-context__towns:has(.view-context__chip--layer),
|
||||
.altitude-graph,
|
||||
.entity-card__route,
|
||||
.entity-card__route-stats,
|
||||
.entity-card__route-places,
|
||||
.entity-card__route-note,
|
||||
.entity-card__links
|
||||
) {
|
||||
display: none;
|
||||
}
|
||||
|
||||
/* With the minimal HUD the credits sit at the bottom right, where the
|
||||
column is: they move out to its left. */
|
||||
body.context-docked:not(.ui-clean-view):not(.recording-mode):has(
|
||||
#intel-hud[data-variant='minimal'].active
|
||||
)
|
||||
:is(#cesium-credits, #gev-credits) {
|
||||
right: calc(36px + var(--context-dock-width));
|
||||
}
|
||||
|
||||
/* Right to left, the rail sits on the left edge (rtl.css), and so does the
|
||||
expanded column; the credits start past it. */
|
||||
html[dir='rtl']
|
||||
body.context-docked:not(.ui-clean-view):not(.recording-mode)
|
||||
:is(#cesium-credits, #gev-credits) {
|
||||
left: calc(36px + var(--context-dock-width));
|
||||
}
|
||||
|
||||
html[dir='rtl']
|
||||
body.context-docked:not(.ui-clean-view):not(.recording-mode):has(
|
||||
#intel-hud[data-variant='minimal'].active
|
||||
)
|
||||
:is(#cesium-credits, #gev-credits) {
|
||||
right: 36px;
|
||||
left: auto;
|
||||
}
|
||||
|
||||
html[dir='rtl'] body.context-docked #right-context-rail {
|
||||
right: auto !important;
|
||||
left: 0 !important;
|
||||
}
|
||||
|
||||
html[dir='rtl']
|
||||
body.context-docked
|
||||
#global-context-panel
|
||||
.global-context-panel-inner {
|
||||
border-left: 0;
|
||||
border-right: 1px solid rgba(255, 255, 255, 0.08);
|
||||
box-shadow: 18px 0 40px rgba(0, 0, 0, 0.35);
|
||||
}
|
||||
@@ -0,0 +1,125 @@
|
||||
/* ── Context layer tabs ─────────────────────────────────────────────────
|
||||
Settings for the layers that are on, as tabs beside the card. */
|
||||
.context-tabs {
|
||||
display: flex;
|
||||
flex: none;
|
||||
min-height: 34px;
|
||||
box-sizing: border-box;
|
||||
gap: 4px;
|
||||
margin: 0 0 0.7rem;
|
||||
padding: 3px;
|
||||
overflow-x: auto;
|
||||
background: rgba(255, 255, 255, 0.03);
|
||||
border: 1px solid rgba(255, 255, 255, 0.07);
|
||||
border-radius: 10px;
|
||||
scrollbar-width: none;
|
||||
}
|
||||
|
||||
.context-tabs::-webkit-scrollbar {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.context-tabs__tab {
|
||||
display: inline-flex;
|
||||
flex: none;
|
||||
min-height: 26px;
|
||||
align-items: center;
|
||||
gap: 0.3rem;
|
||||
max-width: 9.5rem;
|
||||
padding: 0.3rem 0.55rem;
|
||||
color: rgba(199, 214, 222, 0.65);
|
||||
font-family: var(--font-mono);
|
||||
font-size: 0.56rem;
|
||||
letter-spacing: 0.08rem;
|
||||
text-transform: uppercase;
|
||||
background: none;
|
||||
border: 1px solid transparent;
|
||||
border-radius: 7px;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.context-tabs__tab .material-symbols-outlined {
|
||||
font-size: 14px;
|
||||
}
|
||||
|
||||
.context-tabs__label {
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.context-tabs__tab:hover {
|
||||
color: #fff;
|
||||
background: rgba(255, 255, 255, 0.05);
|
||||
}
|
||||
|
||||
.context-tabs__tab.active {
|
||||
color: #7af0ff;
|
||||
background: rgba(54, 220, 255, 0.12);
|
||||
border-color: rgba(54, 220, 255, 0.35);
|
||||
}
|
||||
|
||||
.context-tab-pane[hidden] {
|
||||
display: none !important;
|
||||
}
|
||||
|
||||
/* Controls moved in from Visual show their rows openly here. */
|
||||
.context-tab-pane .pp-toggle-group {
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
/* Two even tabs: Inspector and Properties. */
|
||||
.context-tabs__tab {
|
||||
flex: 1 1 0;
|
||||
justify-content: center;
|
||||
max-width: none;
|
||||
}
|
||||
|
||||
.context-props[hidden] {
|
||||
display: none !important;
|
||||
}
|
||||
|
||||
.context-props__section + .context-props__section {
|
||||
margin-top: 0.9rem;
|
||||
}
|
||||
|
||||
.context-props__heading {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 0.4rem;
|
||||
margin: 0 0 0.45rem;
|
||||
color: rgba(199, 214, 222, 0.55);
|
||||
font-family: var(--font-mono);
|
||||
font-size: 0.56rem;
|
||||
font-weight: 500;
|
||||
letter-spacing: 0.14rem;
|
||||
text-transform: uppercase;
|
||||
}
|
||||
|
||||
.context-props__heading .material-symbols-outlined {
|
||||
font-size: 14px;
|
||||
}
|
||||
|
||||
.context-props__layers {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
gap: 0.25rem 0.75rem;
|
||||
margin: -0.15rem 0 0.5rem;
|
||||
padding: 0;
|
||||
list-style: none;
|
||||
}
|
||||
|
||||
.context-props__layers li {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: 0.35rem;
|
||||
color: rgba(214, 228, 236, 0.8);
|
||||
font-size: 0.66rem;
|
||||
}
|
||||
|
||||
.context-props__layers i {
|
||||
width: 7px;
|
||||
height: 7px;
|
||||
border-radius: 50%;
|
||||
box-shadow: 0 0 6px currentColor;
|
||||
}
|
||||
File diff suppressed because it is too large.
Load diff
@@ -0,0 +1,332 @@
|
||||
/* ── Conditions around a spot (entity card, In view) ────────────────────── */
|
||||
.spot-conditions {
|
||||
display: grid;
|
||||
gap: 0.6rem;
|
||||
margin: 0.5rem 0 0.75rem;
|
||||
}
|
||||
|
||||
.spot-conditions__weather {
|
||||
display: grid;
|
||||
grid-template-columns: auto 1fr;
|
||||
align-items: center;
|
||||
gap: 0.3rem 0.65rem;
|
||||
padding: 0.6rem 0.7rem;
|
||||
background: linear-gradient(135deg, rgba(54, 220, 255, 0.09), rgba(255, 255, 255, 0.025));
|
||||
border: 1px solid rgba(54, 220, 255, 0.16);
|
||||
border-radius: 10px;
|
||||
}
|
||||
|
||||
.spot-conditions__weather-icon {
|
||||
color: #36dcff;
|
||||
font-size: 2rem;
|
||||
}
|
||||
|
||||
.spot-conditions__weather-now {
|
||||
display: grid;
|
||||
gap: 0.1rem;
|
||||
}
|
||||
|
||||
.spot-conditions__weather-now strong {
|
||||
color: rgba(240, 247, 250, 0.98);
|
||||
font-family: var(--font-mono);
|
||||
font-size: 1.35rem;
|
||||
font-weight: 600;
|
||||
line-height: 1;
|
||||
}
|
||||
|
||||
.spot-conditions__weather-now span {
|
||||
color: rgba(199, 214, 222, 0.72);
|
||||
font-size: 0.68rem;
|
||||
}
|
||||
|
||||
.spot-conditions__weather-facts {
|
||||
display: grid;
|
||||
grid-column: 1 / -1;
|
||||
grid-template-columns: repeat(4, minmax(0, 1fr));
|
||||
gap: 0.3rem;
|
||||
margin: 0.25rem 0 0;
|
||||
}
|
||||
|
||||
.spot-conditions__weather-facts div {
|
||||
display: grid;
|
||||
gap: 0.1rem;
|
||||
min-width: 0;
|
||||
}
|
||||
|
||||
.spot-conditions__weather-facts dt {
|
||||
color: rgba(199, 214, 222, 0.5);
|
||||
font-size: 0.52rem;
|
||||
letter-spacing: 0.06rem;
|
||||
text-transform: uppercase;
|
||||
}
|
||||
|
||||
.spot-conditions__weather-facts dd {
|
||||
overflow: hidden;
|
||||
margin: 0;
|
||||
color: rgba(236, 244, 248, 0.92);
|
||||
font-family: var(--font-mono);
|
||||
font-size: 0.66rem;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.spot-conditions__loading,
|
||||
.spot-conditions__none {
|
||||
margin: 0;
|
||||
color: rgba(199, 214, 222, 0.55);
|
||||
font-size: 0.66rem;
|
||||
}
|
||||
|
||||
.spot-conditions__block h4 {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 0.4rem;
|
||||
margin: 0 0 0.25rem;
|
||||
color: rgba(199, 214, 222, 0.6);
|
||||
font-size: 0.58rem;
|
||||
font-weight: 500;
|
||||
letter-spacing: 0.06rem;
|
||||
text-transform: uppercase;
|
||||
}
|
||||
|
||||
.spot-conditions__block h4 .material-symbols-outlined {
|
||||
font-size: 0.95rem;
|
||||
}
|
||||
|
||||
.spot-conditions__count {
|
||||
margin-inline-start: auto;
|
||||
color: rgba(199, 214, 222, 0.6);
|
||||
font-family: var(--font-mono);
|
||||
}
|
||||
|
||||
.spot-conditions__count--hot {
|
||||
color: #ffb547;
|
||||
}
|
||||
|
||||
.spot-conditions__query {
|
||||
overflow: hidden;
|
||||
margin-inline-start: auto;
|
||||
max-width: 50%;
|
||||
color: rgba(199, 214, 222, 0.45);
|
||||
text-overflow: ellipsis;
|
||||
text-transform: none;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.spot-conditions__block ul {
|
||||
display: grid;
|
||||
gap: 0.2rem;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
list-style: none;
|
||||
}
|
||||
|
||||
.spot-conditions__block button,
|
||||
.spot-conditions__block a {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 0.5rem;
|
||||
width: 100%;
|
||||
padding: 0.4rem 0.5rem;
|
||||
color: inherit;
|
||||
text-align: start;
|
||||
text-decoration: none;
|
||||
background: rgba(255, 255, 255, 0.035);
|
||||
border: 1px solid rgba(255, 255, 255, 0.06);
|
||||
border-left: 2px solid var(--hazard-tone, rgba(54, 220, 255, 0.5));
|
||||
border-radius: 7px;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.spot-conditions__block button:hover,
|
||||
.spot-conditions__block a:hover,
|
||||
.spot-conditions__block button:focus-visible,
|
||||
.spot-conditions__block a:focus-visible {
|
||||
background: rgba(54, 220, 255, 0.08);
|
||||
border-color: rgba(54, 220, 255, 0.25);
|
||||
border-left-color: var(--hazard-tone, #36dcff);
|
||||
}
|
||||
|
||||
.spot-conditions__block button > .material-symbols-outlined {
|
||||
color: var(--hazard-tone, #36dcff);
|
||||
font-size: 1.05rem;
|
||||
}
|
||||
|
||||
.spot-conditions__hazard--quake { --hazard-tone: #ffd166; }
|
||||
.spot-conditions__hazard--storm { --hazard-tone: #c792ff; }
|
||||
.spot-conditions__hazard--wildfire,
|
||||
.spot-conditions__hazard--hotspots { --hazard-tone: #ff7a45; }
|
||||
.spot-conditions__hazard--alert { --hazard-tone: #ff5c6c; }
|
||||
|
||||
.spot-conditions__row-main {
|
||||
display: grid;
|
||||
flex: 1 1 auto;
|
||||
gap: 0.08rem;
|
||||
min-width: 0;
|
||||
}
|
||||
|
||||
.spot-conditions__row-title {
|
||||
overflow: hidden;
|
||||
color: rgba(236, 244, 248, 0.94);
|
||||
font-size: 0.7rem;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.spot-conditions__row-title--wrap {
|
||||
display: -webkit-box;
|
||||
white-space: normal;
|
||||
-webkit-box-orient: vertical;
|
||||
-webkit-line-clamp: 2;
|
||||
}
|
||||
|
||||
.spot-conditions__row-detail {
|
||||
overflow: hidden;
|
||||
color: rgba(199, 214, 222, 0.55);
|
||||
font-size: 0.6rem;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.spot-conditions__row-layer {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: 5px;
|
||||
margin-top: 2px;
|
||||
color: rgba(199, 214, 222, 0.5);
|
||||
font-family: var(--font-mono);
|
||||
font-size: 0.55rem;
|
||||
letter-spacing: 0.04em;
|
||||
text-transform: uppercase;
|
||||
}
|
||||
|
||||
.spot-conditions__row-dot {
|
||||
width: 6px;
|
||||
height: 6px;
|
||||
border: 1px solid rgba(199, 214, 222, 0.55);
|
||||
border-radius: 50%;
|
||||
}
|
||||
|
||||
.spot-conditions__row-layer.is-on {
|
||||
color: rgba(0, 212, 255, 0.85);
|
||||
}
|
||||
|
||||
.spot-conditions__row-layer.is-on .spot-conditions__row-dot {
|
||||
background: #00d4ff;
|
||||
border-color: #00d4ff;
|
||||
box-shadow: 0 0 5px rgba(0, 212, 255, 0.7);
|
||||
}
|
||||
|
||||
.spot-conditions__row-meta {
|
||||
flex: none;
|
||||
color: rgba(199, 214, 222, 0.7);
|
||||
font-family: var(--font-mono);
|
||||
font-size: 0.6rem;
|
||||
}
|
||||
|
||||
.spot-conditions__source {
|
||||
margin: 0;
|
||||
color: rgba(199, 214, 222, 0.4);
|
||||
font-size: 0.55rem;
|
||||
}
|
||||
|
||||
/* The hazard tone as an L along the left edge and the bottom-left corner,
|
||||
in place of a solid left edge. */
|
||||
.spot-conditions__block button,
|
||||
.spot-conditions__block a {
|
||||
position: relative;
|
||||
border-radius: 0;
|
||||
border-left-width: 1px;
|
||||
border-left-color: rgba(255, 255, 255, 0.06);
|
||||
}
|
||||
|
||||
.spot-conditions__block button::before,
|
||||
.spot-conditions__block a::before {
|
||||
content: '';
|
||||
position: absolute;
|
||||
inset: -1px auto -1px -1px;
|
||||
width: 9px;
|
||||
border-radius: 0;
|
||||
pointer-events: none;
|
||||
--tone: var(--hazard-tone, rgba(54, 220, 255, 0.6));
|
||||
background:
|
||||
linear-gradient(var(--tone), var(--tone)) left bottom / 9px 1.5px no-repeat,
|
||||
linear-gradient(var(--tone), var(--tone)) left bottom / 1.5px 100% no-repeat;
|
||||
}
|
||||
|
||||
.spot-conditions__block button:hover,
|
||||
.spot-conditions__block a:hover,
|
||||
.spot-conditions__block button:focus-visible,
|
||||
.spot-conditions__block a:focus-visible {
|
||||
border-left-color: rgba(54, 220, 255, 0.25);
|
||||
}
|
||||
|
||||
/* A grey rule under each list: hazards, alerts, news. */
|
||||
.spot-conditions__block {
|
||||
padding-bottom: 0.65rem;
|
||||
border-bottom: 1px solid rgba(255, 255, 255, 0.08);
|
||||
}
|
||||
|
||||
/* Local time beside the weather on a selected item's card. */
|
||||
.spot-conditions__weather--timed {
|
||||
grid-template-columns: auto 1fr auto;
|
||||
}
|
||||
|
||||
.spot-conditions__weather-wait {
|
||||
grid-column: 1 / 3;
|
||||
}
|
||||
|
||||
.spot-conditions__time {
|
||||
display: grid;
|
||||
gap: 0.1rem;
|
||||
justify-items: end;
|
||||
grid-column: 3;
|
||||
}
|
||||
|
||||
.spot-conditions__time strong {
|
||||
color: rgba(240, 247, 250, 0.98);
|
||||
font-family: var(--font-mono);
|
||||
font-size: 1.05rem;
|
||||
font-weight: 600;
|
||||
line-height: 1;
|
||||
}
|
||||
|
||||
.spot-conditions__time span {
|
||||
color: rgba(199, 214, 222, 0.6);
|
||||
font-size: 0.56rem;
|
||||
letter-spacing: 0.05rem;
|
||||
text-transform: uppercase;
|
||||
}
|
||||
|
||||
/* The one distance every nearby block looks out to. */
|
||||
.spot-conditions__radius {
|
||||
display: grid;
|
||||
grid-template-columns: auto 1fr auto;
|
||||
align-items: center;
|
||||
gap: 0.6rem;
|
||||
padding: 0.4rem 0.6rem;
|
||||
background: rgba(255, 255, 255, 0.03);
|
||||
border: 1px solid rgba(255, 255, 255, 0.07);
|
||||
border-radius: 8px;
|
||||
}
|
||||
|
||||
.spot-conditions__radius-label {
|
||||
color: rgba(199, 214, 222, 0.6);
|
||||
font-size: 0.58rem;
|
||||
font-weight: 500;
|
||||
letter-spacing: 0.06rem;
|
||||
text-transform: uppercase;
|
||||
}
|
||||
|
||||
.spot-conditions__radius-slider {
|
||||
width: 100%;
|
||||
min-width: 0;
|
||||
}
|
||||
|
||||
.spot-conditions__radius-value {
|
||||
min-width: 4.2rem;
|
||||
color: #36dcff;
|
||||
font-family: var(--font-mono);
|
||||
font-size: 0.7rem;
|
||||
text-align: end;
|
||||
}
|
||||
@@ -0,0 +1,110 @@
|
||||
/* ── Sundial (Context, nothing selected) ──────────────────────────────── */
|
||||
.sun-dial {
|
||||
margin: 0.5rem 0 0.6rem;
|
||||
padding: 0.35rem 0.3rem 0.45rem;
|
||||
background:
|
||||
radial-gradient(90% 70% at 50% 45%, rgba(54, 220, 255, 0.06), transparent 70%),
|
||||
rgba(255, 255, 255, 0.025);
|
||||
border: 1px solid rgba(255, 255, 255, 0.07);
|
||||
border-radius: 8px;
|
||||
}
|
||||
|
||||
.sun-dial svg {
|
||||
display: block;
|
||||
width: 100%;
|
||||
height: auto;
|
||||
}
|
||||
|
||||
.sun-dial__hours line {
|
||||
stroke: rgba(54, 220, 255, 0.38);
|
||||
stroke-width: 0.5;
|
||||
}
|
||||
|
||||
.sun-dial__hours line.major {
|
||||
stroke: rgba(122, 240, 255, 0.7);
|
||||
stroke-width: 0.8;
|
||||
}
|
||||
|
||||
.sun-dial__ticks line {
|
||||
stroke: rgba(54, 220, 255, 0.3);
|
||||
stroke-width: 0.4;
|
||||
}
|
||||
|
||||
.sun-dial__ticks line.major {
|
||||
stroke: rgba(122, 240, 255, 0.65);
|
||||
stroke-width: 0.7;
|
||||
}
|
||||
|
||||
.sun-dial__hours text,
|
||||
.sun-dial__pole {
|
||||
fill: rgba(196, 244, 255, 0.85);
|
||||
font-family: var(--font-mono);
|
||||
font-size: 7px;
|
||||
font-weight: 500;
|
||||
letter-spacing: 0.04em;
|
||||
text-anchor: middle;
|
||||
}
|
||||
|
||||
.sun-dial__pole {
|
||||
fill: #ff6b5e;
|
||||
font-size: 8px;
|
||||
font-weight: 700;
|
||||
}
|
||||
|
||||
.sun-dial figcaption {
|
||||
margin-top: 0.2rem;
|
||||
color: rgba(199, 214, 222, 0.62);
|
||||
font-family: var(--font-mono);
|
||||
font-size: 0.58rem;
|
||||
letter-spacing: 0.05rem;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
/* Night: the plate under starlight. */
|
||||
.sun-dial--night svg {
|
||||
filter: saturate(0.4) brightness(0.6);
|
||||
}
|
||||
|
||||
/* Small compass beside the dial, in the same cyan instrument style. */
|
||||
.sun-dial__compass-ring {
|
||||
fill: rgba(5, 14, 20, 0.85);
|
||||
stroke: rgba(54, 220, 255, 0.5);
|
||||
stroke-width: 0.8;
|
||||
}
|
||||
|
||||
.sun-dial__compass-inner {
|
||||
fill: none;
|
||||
stroke: rgba(54, 220, 255, 0.18);
|
||||
stroke-width: 0.5;
|
||||
stroke-dasharray: 1.5 2;
|
||||
}
|
||||
|
||||
.sun-dial__compass-tick {
|
||||
stroke: rgba(122, 240, 255, 0.7);
|
||||
stroke-width: 0.8;
|
||||
}
|
||||
|
||||
.sun-dial__compass-north {
|
||||
fill: #ff6b5e;
|
||||
}
|
||||
|
||||
.sun-dial__compass-south {
|
||||
fill: rgba(196, 244, 255, 0.55);
|
||||
}
|
||||
|
||||
.sun-dial__compass-sun {
|
||||
fill: #ffd166;
|
||||
filter: drop-shadow(0 0 2px rgba(255, 209, 102, 0.9));
|
||||
}
|
||||
|
||||
.sun-dial__compass-label {
|
||||
fill: rgba(196, 244, 255, 0.75);
|
||||
font-family: var(--font-mono);
|
||||
font-size: 6.5px;
|
||||
text-anchor: middle;
|
||||
}
|
||||
|
||||
.sun-dial__compass-label.north {
|
||||
fill: #ff6b5e;
|
||||
font-weight: 700;
|
||||
}
|
||||
@@ -1,5 +1,5 @@
|
||||
<script setup>
|
||||
import { computed } from 'vue';
|
||||
import { computed, nextTick, onBeforeUnmount, onMounted, ref, watch } from 'vue';
|
||||
import { storeToRefs } from 'pinia';
|
||||
import { t } from '../../i18n/index.js';
|
||||
import RailPanel from '../rail/RailPanel.vue';
|
||||
@@ -7,18 +7,25 @@ import { vClassToggle } from '../rail/classToggle.js';
|
||||
import { useCockpitStore } from '../stores/cockpit.js';
|
||||
import { useBhoteKoshiPanelStore } from '../stores/bhoteKoshiPanel.js';
|
||||
import { useContextStore } from '../stores/context.js';
|
||||
import { usePanelChromeStore } from '../stores/panelChrome.js';
|
||||
import { useEntityCardStore } from '../stores/entityCard.js';
|
||||
import { useSceneStore } from '../stores/scenes.js';
|
||||
import AwarenessPanel from './panels/AwarenessPanel.vue';
|
||||
import BhoteKoshiPanel from './panels/BhoteKoshiPanel.vue';
|
||||
import EntityCard from './panels/EntityCard.vue';
|
||||
import ViewContext from './panels/ViewContext.vue';
|
||||
import MissionDetail from './panels/MissionDetail.vue';
|
||||
import MissionRoster from './panels/MissionRoster.vue';
|
||||
import RadioPanel from './panels/RadioPanel.vue';
|
||||
import UiButton from '../kit/UiButton.vue';
|
||||
import { cockpitEntryFace } from '../cockpitPresentation.js';
|
||||
import { LAYER_TABS, TAB_AFFECTS, activeTab, availableTabs, contextReady, enabledLayerIds, setEnabledLayers, tabTarget } from '../contextLayerTabs.js';
|
||||
import { shownLayerName } from '../layerNames.js';
|
||||
import { closeContextSearch, contextSearchOpen, contextSearchText } from '../contextSearch.js';
|
||||
|
||||
// ContextControls presents the mode switch and the nearby sites search and
|
||||
// publishes them; until it does, the panel shows its initial markup.
|
||||
const { view: ctx } = storeToRefs(useContextStore());
|
||||
const { view: ctx, awareness } = storeToRefs(useContextStore());
|
||||
const { presence: cockpit } = storeToRefs(useCockpitStore());
|
||||
// The entry names the subject it would ride (cockpitEntryFace).
|
||||
const entry = computed(() =>
|
||||
@@ -29,6 +36,133 @@ const { panel: bhotePanel } = storeToRefs(useBhoteKoshiPanelStore());
|
||||
// The Scene runtime chip SceneControls presents while a scene plays.
|
||||
const { panel: scenePanel } = storeToRefs(useSceneStore());
|
||||
const sceneRuntime = computed(() => scenePanel.value?.runtime ?? '');
|
||||
// Context is one card for whatever was picked; until something is, it says how.
|
||||
const entityCards = useEntityCardStore();
|
||||
const { card: entityCard } = storeToRefs(entityCards);
|
||||
const contactsSubject = computed(() =>
|
||||
ctx.value?.flightsActive ? awareness.value?.subjectIdentity : null,
|
||||
);
|
||||
const contactsMatchCard = computed(() => {
|
||||
const card = entityCard.value;
|
||||
const subject = contactsSubject.value;
|
||||
return Boolean(
|
||||
card?.kind === 'aircraft' &&
|
||||
subject?.layerId === card.layerId &&
|
||||
String(subject.id) === String(card.identity.id),
|
||||
);
|
||||
});
|
||||
watch(
|
||||
[() => contactsSubject.value?.layerId, () => contactsSubject.value?.id],
|
||||
([layerId, id]) => {
|
||||
if (!['flights', 'military'].includes(layerId) || !id || contactsMatchCard.value) return;
|
||||
// Contacts has already picked whom to follow. Only update the Inspector.
|
||||
entityCards.select({ layerId, id, label: awareness.value?.subjectLabel }, { follow: false });
|
||||
},
|
||||
);
|
||||
|
||||
// Layer tabs: settings for the layers that are on, beside the card.
|
||||
let layerTimer = null;
|
||||
const readLayers = () => {
|
||||
const rows = entityCards.liveLayers();
|
||||
layerNames.value = Object.fromEntries(rows.map((row) => [row.id, shownLayerName(row.name, row.id)]));
|
||||
setEnabledLayers(rows.map((row) => row.id));
|
||||
};
|
||||
const paneRefs = {};
|
||||
const setPane = (id) => (el) => {
|
||||
if (el) {
|
||||
paneRefs[id] = el;
|
||||
const target = tabTarget(id);
|
||||
if (target instanceof HTMLElement && target.parentElement !== el) el.appendChild(target);
|
||||
}
|
||||
};
|
||||
// Turning Radio or Launches on asks for the main tab, where they show.
|
||||
const showView = () => (activeTab.value = 'view');
|
||||
onMounted(() => {
|
||||
globalThis.addEventListener?.('gev:context-show-view', showView);
|
||||
contextReady.value = true;
|
||||
readLayers();
|
||||
layerTimer = setInterval(readLayers, 1500);
|
||||
});
|
||||
onBeforeUnmount(() => {
|
||||
globalThis.removeEventListener?.('gev:context-show-view', showView);
|
||||
clearInterval(layerTimer);
|
||||
contextReady.value = false;
|
||||
// A later mount starts as the button says: not expanded, no tab classes.
|
||||
setDocked(false);
|
||||
for (const tab of LAYER_TABS) globalThis.document?.body.classList.remove(`ctx-tab-${tab.id}`);
|
||||
});
|
||||
watch(availableTabs, (tabs) => {
|
||||
for (const tab of LAYER_TABS)
|
||||
globalThis.document?.body.classList.toggle(`ctx-tab-${tab.id}`, tabs.some((x) => x.id === tab.id));
|
||||
if (activeTab.value === 'props' && !tabs.length) activeTab.value = 'view';
|
||||
});
|
||||
// Picking something shows its card.
|
||||
watch(entityCard, (next, prev) => {
|
||||
if (next && next?.key !== prev?.key) activeTab.value = 'view';
|
||||
});
|
||||
// The two tabs swap with the arrow keys, and focus follows (tabs pattern).
|
||||
function switchTab() {
|
||||
activeTab.value = activeTab.value === 'view' ? 'props' : 'view';
|
||||
void nextTick(() => globalThis.document?.getElementById(`context-tab-btn-${activeTab.value}`)?.focus());
|
||||
}
|
||||
const isShown = (id) => availableTabs.value.some((tab) => tab.id === id);
|
||||
// The names of the layers a section's settings act on.
|
||||
const layerNames = ref({});
|
||||
// Each layer gets a steady colour of its own for its dot.
|
||||
const DOT_COLORS = ['#36dcff', '#4be3a0', '#ffb547', '#c792ff', '#ff7a45', '#ff6b9a', '#9ad7ff', '#e6e36b'];
|
||||
const dotColor = (layer) => {
|
||||
let h = 0;
|
||||
for (const ch of layer) h = (h * 31 + ch.charCodeAt(0)) >>> 0;
|
||||
return DOT_COLORS[h % DOT_COLORS.length];
|
||||
};
|
||||
const affects = (id) => {
|
||||
void enabledLayerIds.value;
|
||||
const ids = TAB_AFFECTS[id]?.(enabledLayerIds.value) ?? [];
|
||||
return ids.map((layer) => ({ id: layer, name: layerNames.value[layer] || layer, color: dotColor(layer) }));
|
||||
};
|
||||
|
||||
// Search in the header: a field that narrows what Context is showing, the
|
||||
// selected item's details and every list of what is nearby or in view.
|
||||
const searchInput = ref(null);
|
||||
function toggleSearch() {
|
||||
if (contextSearchOpen.value) return closeContextSearch();
|
||||
contextSearchOpen.value = true;
|
||||
activeTab.value = 'view';
|
||||
void nextTick(() => searchInput.value?.focus());
|
||||
}
|
||||
const searchHint = computed(() =>
|
||||
entityCard.value ? t('Search {name} and nearby', { name: entityCard.value.title }) : t('Search what is in view'),
|
||||
);
|
||||
|
||||
// Expanded, Context becomes a full-height column over the right edge of the
|
||||
// screen, with the globe left as it is underneath. It shrinks back when the
|
||||
// panel closes.
|
||||
const docked = ref(false);
|
||||
const { panels: chromePanels } = storeToRefs(usePanelChromeStore());
|
||||
// The phone layout and Cockpit have no room for the column: either one
|
||||
// arriving lets it go.
|
||||
let bodyWatch = null;
|
||||
function setDocked(next) {
|
||||
docked.value = next;
|
||||
const body = globalThis.document?.body;
|
||||
body?.classList.toggle('context-docked', next);
|
||||
bodyWatch?.disconnect();
|
||||
bodyWatch = null;
|
||||
if (next && body && globalThis.MutationObserver) {
|
||||
bodyWatch = new MutationObserver(() => {
|
||||
if (body.classList.contains('mobile-shell') || body.classList.contains('cockpit-mode')) setDocked(false);
|
||||
});
|
||||
bodyWatch.observe(body, { attributes: true, attributeFilter: ['class'] });
|
||||
}
|
||||
}
|
||||
// Only an open panel reads what is picked and in view; closed, it does no work.
|
||||
const contextOpen = computed(() => chromePanels.value['global-context-panel']?.collapsed === false);
|
||||
watch(
|
||||
() => chromePanels.value['global-context-panel']?.collapsed,
|
||||
(collapsed) => {
|
||||
if (collapsed && docked.value) setDocked(false);
|
||||
},
|
||||
);
|
||||
</script>
|
||||
|
||||
<template>
|
||||
@@ -46,8 +180,42 @@ const sceneRuntime = computed(() => scenePanel.value?.runtime ?? '');
|
||||
<template #badge><span id="recent-imagery-panel-count" :aria-label="t('Imagery days in the box')"></span></template>
|
||||
<div id="recent-imagery-panel-body" class="ui-scroll" data-rail-scroller></div>
|
||||
</RailPanel>
|
||||
<RailPanel id="global-context-panel" start-collapsed v-class-toggle="{ ...(ctx && { 'context-enabled': ctx.enabled }) }" :data-context-mode="ctx?.mode" :title="t('CONTEXT')" sideways scroll rail-scroller>
|
||||
<RailPanel id="global-context-panel" start-collapsed v-class-toggle="{ ...(ctx && { 'context-enabled': ctx.enabled }) }" :data-context-mode="ctx?.mode" :data-context-tab="activeTab" :title="t('CONTEXT')" sideways scroll rail-scroller>
|
||||
<template #actions>
|
||||
<button type="button" class="context-dock-btn" :aria-pressed="String(contextSearchOpen)" :aria-label="contextSearchOpen ? t('Close Context search') : t('Search in Context')" :title="contextSearchOpen ? t('Close search') : t('Search in Context')" @click="toggleSearch">
|
||||
<span class="material-symbols-outlined" aria-hidden="true">search</span>
|
||||
</button>
|
||||
<button type="button" class="context-dock-btn" :aria-pressed="String(docked)" :aria-label="docked ? t('Shrink Context back to a panel') : t('Expand Context to a full-height column')" :title="docked ? t('Shrink') : t('Expand')" @click="setDocked(!docked)">
|
||||
<span class="material-symbols-outlined" aria-hidden="true">{{ docked ? 'close_fullscreen' : 'open_in_full' }}</span>
|
||||
</button>
|
||||
</template>
|
||||
<div class="cyber-panel-body ui-scroll" data-rail-scroller>
|
||||
<div v-if="contextSearchOpen" class="context-search" role="search">
|
||||
<span class="material-symbols-outlined" aria-hidden="true">search</span>
|
||||
<input ref="searchInput" v-model="contextSearchText" type="search" class="context-search__input" :placeholder="searchHint" :aria-label="searchHint" autocomplete="off" spellcheck="false" @keydown.esc.stop="closeContextSearch" />
|
||||
<button v-if="contextSearchText" type="button" class="context-search__clear" :aria-label="t('Clear search')" :title="t('Clear search')" @click="contextSearchText = ''; searchInput?.focus()">
|
||||
<span class="material-symbols-outlined" aria-hidden="true">close</span>
|
||||
</button>
|
||||
</div>
|
||||
<div v-if="availableTabs.length" class="context-tabs" role="tablist" :aria-label="t('Context tabs')">
|
||||
<button id="context-tab-btn-view" type="button" role="tab" class="context-tabs__tab" :class="{ active: activeTab === 'view' }" :aria-selected="String(activeTab === 'view')" aria-controls="context-tab-view" :tabindex="activeTab === 'view' ? 0 : -1" @click="activeTab = 'view'" @keydown.left.prevent="switchTab" @keydown.right.prevent="switchTab">
|
||||
<span class="material-symbols-outlined" aria-hidden="true">visibility</span><span class="context-tabs__label">{{ t('Inspector') }}</span>
|
||||
</button>
|
||||
<button id="context-tab-btn-props" type="button" role="tab" class="context-tabs__tab" :class="{ active: activeTab === 'props' }" :aria-selected="String(activeTab === 'props')" aria-controls="context-tab-props" :tabindex="activeTab === 'props' ? 0 : -1" @click="activeTab = 'props'" @keydown.left.prevent="switchTab" @keydown.right.prevent="switchTab">
|
||||
<span class="material-symbols-outlined" aria-hidden="true">tune</span><span class="context-tabs__label">{{ t('Properties') }}</span>
|
||||
</button>
|
||||
</div>
|
||||
<!-- Properties: settings of the layers that are on, one section each. -->
|
||||
<div id="context-tab-props" class="context-props" :hidden="activeTab !== 'props'" role="tabpanel" aria-labelledby="context-tab-btn-props">
|
||||
<section v-for="tab in LAYER_TABS" v-show="isShown(tab.id)" :key="tab.id" class="context-props__section">
|
||||
<h4 class="context-props__heading"><span class="material-symbols-outlined" aria-hidden="true">{{ tab.icon }}</span>{{ t(tab.label) }}</h4>
|
||||
<ul v-if="affects(tab.id).length" class="context-props__layers">
|
||||
<li v-for="layer in affects(tab.id)" :key="layer.id"><i :style="{ background: layer.color }" aria-hidden="true"></i>{{ layer.name }}</li>
|
||||
</ul>
|
||||
<div :id="`context-tab-${tab.id}`" :ref="setPane(tab.id)" class="context-tab-pane"></div>
|
||||
</section>
|
||||
</div>
|
||||
<RadioPanel />
|
||||
<div class="global-context-modes" role="tablist" :aria-label="t('Context mode')">
|
||||
<button id="global-context-flights-btn" class="context-mode-button" v-class-toggle="{ active: ctx?.flightsActive }" type="button" role="tab" tabindex="0" :aria-selected="String(ctx?.flightsActive ?? false)" :aria-disabled="ctx && String(ctx.busy)" :aria-busy="ctx && String(ctx.busy)" aria-controls="context-flights-view" :aria-label="t('CONTACTS')" :title="t('Cycles the nearest contacts of whatever type you select — planes, vessels, installations. Satellites track independently.')">
|
||||
<span class="material-symbols-outlined" aria-hidden="true">radar</span>
|
||||
@@ -71,7 +239,7 @@ const sceneRuntime = computed(() => scenePanel.value?.runtime ?? '');
|
||||
<button id="installations-search-btn" class="panel-layer-toggle" type="button" :aria-disabled="ctx && String(ctx.installationsBusy)" :aria-busy="ctx && String(ctx.installationsBusy)">{{ t('SEARCH NEARBY SITES') }}</button>
|
||||
<UiButton id="tr3b-toggle" class="tr3b-toggle" :pressed="!!cockpit?.tr3b?.converted" :hidden="!cockpit?.tr3b" :aria-label="t('Reclassify tracked contact as TR-3B')" :title="cockpit?.tr3b?.converted ? t('Restore real aircraft') : t('Reclassify as TR-3B')">🛸</UiButton>
|
||||
</div>
|
||||
<AwarenessPanel />
|
||||
<AwarenessPanel v-if="!contactsMatchCard" />
|
||||
</section>
|
||||
<section id="context-missions-view" class="context-mode-view" role="tabpanel" aria-labelledby="global-context-missions-btn" :hidden="!ctx?.missionsActive">
|
||||
<div id="space-mission-panel-host">
|
||||
@@ -79,7 +247,12 @@ const sceneRuntime = computed(() => scenePanel.value?.runtime ?? '');
|
||||
<MissionDetail />
|
||||
</div>
|
||||
</section>
|
||||
<RadioPanel />
|
||||
<div v-if="contextOpen" v-show="activeTab === 'view'" id="context-tab-view" role="tabpanel" aria-labelledby="context-tab-btn-view" :class="{ 'context-searching': contextSearchOpen && contextSearchText.trim() }">
|
||||
<EntityCard :with-contacts="contactsMatchCard">
|
||||
<AwarenessPanel v-if="contactsMatchCard" compact />
|
||||
</EntityCard>
|
||||
<ViewContext v-if="!entityCard" />
|
||||
</div>
|
||||
</div>
|
||||
</RailPanel>
|
||||
<BhoteKoshiPanel />
|
||||
|
||||
@@ -0,0 +1,120 @@
|
||||
<script setup>
|
||||
import { computed, ref, watch } from 'vue';
|
||||
import { formatNumber, t } from '../../../i18n/index.js';
|
||||
|
||||
// A height as a filled graph (an aircraft's altitude, the camera's height):
|
||||
// each reading since it opened, left to right. The scale fits the readings (never less than about
|
||||
// 2,000 ft tall), so a climb or descent shows as a slope, and the fill
|
||||
// fades from the line down to the baseline.
|
||||
const props = defineProps({
|
||||
/** The current altitude in metres, or null when unknown. */
|
||||
altitudeM: { type: Number, default: null },
|
||||
/** Bumped on each card refresh; a reading is taken on every bump. */
|
||||
tick: { type: Number, default: 0 },
|
||||
/** The caption; 'Altitude' when not given. */
|
||||
label: { type: String, default: '' },
|
||||
/** 'feet' for aircraft; 'metric' reads in metres and kilometres. */
|
||||
unit: { type: String, default: 'feet' },
|
||||
/** Only the caption, the current figure and the line: no scale or change. */
|
||||
compact: { type: Boolean, default: false },
|
||||
});
|
||||
|
||||
const MAX_READINGS = 450;
|
||||
const MIN_RANGE_M = 600;
|
||||
const WIDTH = 100;
|
||||
const HEIGHT = 36;
|
||||
|
||||
const readings = ref([]);
|
||||
watch(
|
||||
() => props.tick,
|
||||
() => {
|
||||
if (!Number.isFinite(props.altitudeM)) return;
|
||||
const next = [...readings.value, { at: Date.now(), m: Math.max(0, props.altitudeM) }];
|
||||
readings.value = next.length > MAX_READINGS ? next.slice(-MAX_READINGS) : next;
|
||||
},
|
||||
{ immediate: true },
|
||||
);
|
||||
|
||||
const feet = (m) => Math.round((m * 3.28084) / 100) * 100;
|
||||
const number = (value) => formatNumber(value, { maximumFractionDigits: 1 });
|
||||
const metric = (m) =>
|
||||
m >= 100_000
|
||||
? t('{n} km', { n: number(Math.round(m / 1000)) })
|
||||
: m >= 1000
|
||||
? t('{n} km', { n: formatNumber(m / 1000, { minimumFractionDigits: 1, maximumFractionDigits: 1 }) })
|
||||
: t('{n} m', { n: number(Math.round(m)) });
|
||||
const shown = (m) => (props.unit === 'metric' ? metric(m) : t('{n} ft', { n: number(feet(m)) }));
|
||||
|
||||
const graph = computed(() => {
|
||||
const list = readings.value;
|
||||
if (!list.length) return null;
|
||||
const last = list[list.length - 1];
|
||||
const first = list[0];
|
||||
const span = Math.max(1, last.at - first.at);
|
||||
// The camera ranges from metres to the whole globe, so its heights are
|
||||
// drawn on a log scale: each zoom step is a similar rise or fall.
|
||||
const log = props.unit === 'metric';
|
||||
const scaled = (m) => (log ? Math.log10(Math.max(1, m)) : m);
|
||||
const heights = list.map((item) => scaled(item.m));
|
||||
const high = Math.max(...heights);
|
||||
const low = Math.min(...heights);
|
||||
// The least the scale spans: about 2,000 ft for aircraft, half a decade
|
||||
// for the camera.
|
||||
const least = log ? 0.5 : MIN_RANGE_M;
|
||||
const pad = Math.max((least - (high - low)) / 2, (high - low) * 0.15);
|
||||
const bottom = Math.max(0, low - pad);
|
||||
const top = Math.max(high + pad, bottom + least);
|
||||
const x = (at) => WIDTH - ((last.at - at) / span) * WIDTH;
|
||||
const y = (m) => HEIGHT - ((scaled(m) - bottom) / (top - bottom)) * (HEIGHT - 2) - 1;
|
||||
// The readings span the full width; a single reading (a card that has
|
||||
// just opened) draws as a level line instead of a dot.
|
||||
const points = list.length > 1 ? list.map((item) => [x(item.at), y(item.m)]) : [[0, y(first.m)], [WIDTH, y(first.m)]];
|
||||
const line = points.map(([px, py], index) => `${index ? 'L' : 'M'}${px.toFixed(2)} ${py.toFixed(2)}`).join(' ');
|
||||
const moved = last.m - first.m;
|
||||
const change = props.unit === 'metric' ? (Math.abs(moved) >= Math.max(1, last.m * 0.005) ? moved : 0) : feet(last.m) - feet(first.m);
|
||||
const changeText = props.unit === 'metric' ? metric(Math.abs(moved)) : t('{n} ft', { n: number(Math.abs(change)) });
|
||||
const minutes = Math.floor((last.at - first.at) / 60_000);
|
||||
return {
|
||||
line,
|
||||
area: `${line} L${WIDTH} ${HEIGHT} L0 ${HEIGHT} Z`,
|
||||
headY: y(last.m),
|
||||
now: shown(last.m),
|
||||
top: shown(log ? 10 ** top : top),
|
||||
bottom: shown(log ? 10 ** bottom : bottom),
|
||||
trend: change > 0 ? 'up' : change < 0 ? 'down' : 'level',
|
||||
change: change ? `${change > 0 ? '+' : '−'}${changeText}` : t('Level', { context: 'altitude' }),
|
||||
since: minutes >= 1 ? t('Last {n} min', { n: minutes }) : props.unit === 'metric' ? t('Just now') : t('Since selected'),
|
||||
};
|
||||
});
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<figure v-if="graph" class="altitude-graph" :class="{ 'altitude-graph--compact': compact }" :data-trend="graph.trend">
|
||||
<figcaption class="altitude-graph__head">
|
||||
<span class="altitude-graph__label">{{ label || t('Altitude') }}</span>
|
||||
<strong class="altitude-graph__now">{{ graph.now }}</strong>
|
||||
</figcaption>
|
||||
<div class="altitude-graph__plot">
|
||||
<svg :viewBox="`0 0 ${WIDTH} ${HEIGHT}`" preserveAspectRatio="none" role="img" :aria-label="`${label || t('Altitude')} ${graph.now}, ${graph.change}`">
|
||||
<defs>
|
||||
<linearGradient id="altitude-graph-fill" gradientUnits="userSpaceOnUse" x1="0" :y1="0" x2="0" :y2="HEIGHT">
|
||||
<stop offset="0" class="altitude-graph__stop altitude-graph__stop--high" />
|
||||
<stop offset="0.5" class="altitude-graph__stop altitude-graph__stop--mid" />
|
||||
<stop offset="1" class="altitude-graph__stop altitude-graph__stop--low" />
|
||||
</linearGradient>
|
||||
</defs>
|
||||
<path class="altitude-graph__area" :d="graph.area" fill="url(#altitude-graph-fill)" />
|
||||
<path class="altitude-graph__line" :d="graph.line" />
|
||||
</svg>
|
||||
<span class="altitude-graph__head-dot" :style="{ top: `${(graph.headY / HEIGHT) * 100}%` }" aria-hidden="true"></span>
|
||||
<template v-if="!compact">
|
||||
<span class="altitude-graph__scale" aria-hidden="true">{{ graph.top }}</span>
|
||||
<span class="altitude-graph__scale altitude-graph__scale--low" aria-hidden="true">{{ graph.bottom }}</span>
|
||||
</template>
|
||||
</div>
|
||||
<p v-if="!compact" class="altitude-graph__foot">
|
||||
<span>{{ graph.since }}</span>
|
||||
<span class="altitude-graph__change">{{ graph.change }}</span>
|
||||
</p>
|
||||
</figure>
|
||||
</template>
|
||||
@@ -8,6 +8,7 @@ import AwarenessNames from './AwarenessNames.vue';
|
||||
// The Contacts panel inside Context. The Contacts layer publishes its view
|
||||
// (standby, results or empty); until it does, the panel shows its initial
|
||||
// markup. Buttons call the layer's navigation as the person's own.
|
||||
const props = defineProps({ compact: Boolean });
|
||||
const { awareness: view, awarenessLayer: layer } = storeToRefs(useContextStore());
|
||||
const user = { origin: 'user' };
|
||||
const root = ref(null);
|
||||
@@ -58,8 +59,8 @@ onUpdated(() => {
|
||||
<span>{{ view.text }}</span>
|
||||
</div>
|
||||
<template v-else-if="view.kind === 'results'">
|
||||
<div class="military-awareness-subject">{{ view.subject }}</div>
|
||||
<a v-if="view.photo && view.photo.src !== failedPhoto" class="military-awareness-photo" :href="view.photo.link" target="_blank" rel="noopener">
|
||||
<div v-if="!props.compact" class="military-awareness-subject">{{ view.subject }}</div>
|
||||
<a v-if="!props.compact && view.photo && view.photo.src !== failedPhoto" class="military-awareness-photo" :href="view.photo.link" target="_blank" rel="noopener">
|
||||
<img :src="view.photo.src" :width="view.photo.width ?? undefined" :height="view.photo.height ?? undefined" alt="" @error="fail" />
|
||||
<small v-if="view.photo.credit">{{ view.photo.credit }}</small>
|
||||
</a>
|
||||
|
||||
@@ -0,0 +1,102 @@
|
||||
<script setup>
|
||||
import { computed, onBeforeUnmount, ref, watch } from 'vue';
|
||||
import { storeToRefs } from 'pinia';
|
||||
import { t } from '../../../i18n/index.js';
|
||||
import { useCctvStore } from '../../stores/cctv.js';
|
||||
import { usePanelChromeStore } from '../../stores/panelChrome.js';
|
||||
|
||||
// A selected camera's card: a thumbnail of its latest frame, a few facts,
|
||||
// and a button that opens the full CCTV panel. The frame and facts come from
|
||||
// the CCTV panel's own store, which follows the camera picked on the map.
|
||||
const props = defineProps({
|
||||
/** The camera's id (the card identity's id). */
|
||||
cameraId: { type: String, default: '' },
|
||||
});
|
||||
|
||||
const { view, frame, sourceBadge } = storeToRefs(useCctvStore());
|
||||
const chrome = usePanelChromeStore();
|
||||
const { panels } = storeToRefs(chrome);
|
||||
|
||||
const same = computed(() => !props.cameraId || frame.value?.cameraId === props.cameraId);
|
||||
const src = computed(() => (same.value ? frame.value?.src || frame.value?.currentSrc || '' : ''));
|
||||
const params = computed(() => {
|
||||
try {
|
||||
return new URL(src.value, location.origin).searchParams;
|
||||
} catch {
|
||||
return new URLSearchParams();
|
||||
}
|
||||
});
|
||||
const name = computed(() => params.value.get('label') || '');
|
||||
// The panel's meta line, e.g. "US-290 · HDG 248° · FOV 44° · RANGE 145m · … · TxDOT · …".
|
||||
const facts = computed(() => {
|
||||
// The panel's line belongs to the camera it shows, which may be another.
|
||||
if (!same.value) return [];
|
||||
const parts = String(view.value?.meta || '')
|
||||
.split(' · ')
|
||||
.map((p) => p.trim())
|
||||
.filter(Boolean);
|
||||
const pick = (re) => parts.find((p) => re.test(p))?.replace(/^(HDG|FOV|RANGE)\s*/, '') || '';
|
||||
return [
|
||||
{ label: t('Heading'), value: pick(/^HDG/) },
|
||||
{ label: t('Field of view'), value: pick(/^FOV/) },
|
||||
{ label: t('Range'), value: pick(/^RANGE/) },
|
||||
{ label: t('Operator'), value: parts.find((p) => /DOT|Transportation|Works|City|County/i.test(p)) || '' },
|
||||
].filter((f) => f.value);
|
||||
});
|
||||
|
||||
// The bigger view: a popup over the map with the same frame, closed by its
|
||||
// ×, Esc or a click outside.
|
||||
const big = ref(false);
|
||||
const onKey = (e) => {
|
||||
if (e.key === 'Escape') big.value = false;
|
||||
};
|
||||
watch(big, (open) => {
|
||||
if (open) document.addEventListener('keydown', onKey);
|
||||
else document.removeEventListener('keydown', onKey);
|
||||
});
|
||||
onBeforeUnmount(() => document.removeEventListener('keydown', onKey));
|
||||
|
||||
function openPanel() {
|
||||
if (panels.value['cctv-panel']?.collapsed !== false) chrome.act('toggle', 'cctv-panel');
|
||||
}
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<section class="cctv-preview">
|
||||
<div class="cctv-preview__frame" :class="{ 'is-empty': !src }">
|
||||
<img v-if="src" :src="src" :alt="name || t('Camera frame')" />
|
||||
<span v-else>{{ t('Acquiring frame…') }}</span>
|
||||
<span v-if="sourceBadge?.label" class="cctv-preview__badge">{{ sourceBadge.label }}</span>
|
||||
<button v-if="src" type="button" class="cctv-preview__expand" :aria-label="t('Show a bigger view')" :title="t('Show a bigger view')" @click="big = true">
|
||||
<span class="material-symbols-outlined" aria-hidden="true">open_in_full</span>
|
||||
</button>
|
||||
</div>
|
||||
<Teleport to="body">
|
||||
<div v-if="big" class="cctv-popup" role="dialog" :aria-label="name || t('Camera view')" @click.self="big = false">
|
||||
<figure class="cctv-popup__card">
|
||||
<header class="cctv-popup__head">
|
||||
<span class="material-symbols-outlined" aria-hidden="true">videocam</span>
|
||||
<strong>{{ name || t('Camera view') }}</strong>
|
||||
<span v-if="sourceBadge?.label" class="cctv-popup__badge">{{ sourceBadge.label }}</span>
|
||||
<button type="button" class="cctv-popup__close" :aria-label="t('Close')" @click="big = false">
|
||||
<span class="material-symbols-outlined" aria-hidden="true">close</span>
|
||||
</button>
|
||||
</header>
|
||||
<img :src="src" :alt="name || t('Camera frame')" />
|
||||
<figcaption v-if="facts.length">
|
||||
<span v-for="fact in facts" :key="fact.label">{{ fact.label }} <b>{{ fact.value }}</b></span>
|
||||
</figcaption>
|
||||
</figure>
|
||||
</div>
|
||||
</Teleport>
|
||||
<dl v-if="facts.length" class="cctv-preview__facts">
|
||||
<div v-for="fact in facts" :key="fact.label">
|
||||
<dt>{{ fact.label }}</dt>
|
||||
<dd>{{ fact.value }}</dd>
|
||||
</div>
|
||||
</dl>
|
||||
<button type="button" class="entity-card__action cctv-preview__more" @click="openPanel">
|
||||
<span class="material-symbols-outlined" aria-hidden="true">videocam</span>{{ t('More info') }}
|
||||
</button>
|
||||
</section>
|
||||
</template>
|
||||
@@ -6,6 +6,7 @@ import { vPanelState } from '../../rail/panelState.js';
|
||||
import { vClassToggle } from '../../rail/classToggle.js';
|
||||
import PanelCollapseButton from '../../rail/PanelCollapseButton.vue';
|
||||
import UiPanelEdge from '../../kit/UiPanelEdge.vue';
|
||||
import { availableTabs, tabTarget } from '../../contextLayerTabs.js';
|
||||
import UiSegmented from '../../kit/UiSegmented.vue';
|
||||
import UiSlider from '../../kit/UiSlider.js';
|
||||
import { useDisplayStore } from '../../stores/display.js';
|
||||
@@ -20,6 +21,11 @@ import VisualPresets from './VisualPresets.vue';
|
||||
// Draw and Import live in UTILITIES (LayerPanelsView).
|
||||
const display = useDisplayStore();
|
||||
const { view, models3d, parameters, cockpitPortal, groups, sky } = storeToRefs(display);
|
||||
// Cockpit takes these controls first; otherwise, while a layer they act on is
|
||||
// on, they move into that layer's tab in Context.
|
||||
const inContext = (id) => availableTabs.value.some((tab) => tab.id === id);
|
||||
const detectionTarget = computed(() => cockpitPortal.value?.detection ?? (inContext('labels') ? tabTarget('labels') : null));
|
||||
const modelsTarget = computed(() => cockpitPortal.value?.models3d ?? (inContext('aircraft') ? tabTarget('aircraft') : null));
|
||||
// A control's change goes to its owner (DisplayBindings).
|
||||
const act = (name, ...args) => display.act(name, ...args);
|
||||
const pct = (value) => `${value}%`;
|
||||
@@ -122,7 +128,7 @@ const allocationOptions = computed(() => [
|
||||
</div>
|
||||
</div>
|
||||
</Teleport>
|
||||
<Teleport :to="cockpitPortal?.detection ?? 'body'" :disabled="!cockpitPortal?.detection">
|
||||
<Teleport :to="detectionTarget ?? 'body'" :disabled="!detectionTarget">
|
||||
<div class="pp-toggle-group">
|
||||
<UiButton class="pp-toggle-btn" :class="{ active: detectButton?.active, panoptic: detectButton?.panoptic }" :pressed="detectButton?.pressed ?? false" id="detection-toggle" @click="act('cycleDetection')" :title="t('Detection Overlay (D)')" :aria-label="detectButton?.ariaLabel ?? t('Detection overlay')">
|
||||
<span class="pp-icon">▣</span>
|
||||
@@ -160,7 +166,7 @@ const allocationOptions = computed(() => [
|
||||
<div id="param-sliders"><StyleParameterRows v-if="parameters" :key="parameters.style" :rows="parameters.rows" :on-input="(name, value) => act('setStyleParameter', name, value)" /></div>
|
||||
</div>
|
||||
</Teleport>
|
||||
<Teleport :to="cockpitPortal?.models3d ?? 'body'" :disabled="!cockpitPortal?.models3d">
|
||||
<Teleport :to="modelsTarget ?? 'body'" :disabled="!modelsTarget">
|
||||
<div class="pp-toggle-group">
|
||||
<!-- 3D aircraft is DEFAULT-ON in Proximity (owner directive 2026-08-22), so the
|
||||
button ships lit and the mode row ships open — the same markup-carries-the-default
|
||||
|
||||
@@ -0,0 +1,337 @@
|
||||
<script setup>
|
||||
import { computed, nextTick, ref, watch } from 'vue';
|
||||
import { storeToRefs } from 'pinia';
|
||||
import { formatNumber, t } from '../../../i18n/index.js';
|
||||
import { factFigure, factLabel, factValue, sayWords, useEntityCardStore } from '../../stores/entityCard.js';
|
||||
import AltitudeGraph from './AltitudeGraph.vue';
|
||||
import { contextNeedle, contextSearchText, matchesContextSearch } from '../../contextSearch.js';
|
||||
import CctvPreview from './CctvPreview.vue';
|
||||
import { useCctvStore } from '../../stores/cctv.js';
|
||||
import SpotConditions from './SpotConditions.vue';
|
||||
import { shownLayerName } from '../../layerNames.js';
|
||||
import { countryName, nearestCity } from '../../../data/wikidataCities.js';
|
||||
|
||||
// The Context panel's card for one thing on the map: what it is, its facts,
|
||||
// links, actions, and what else is near it. It reads from the entity card
|
||||
// store, which the globe click, the omnibar and the nearby list all fill.
|
||||
const props = defineProps({
|
||||
/** Contacts follows this same aircraft, and its list sits inside the card. */
|
||||
withContacts: Boolean,
|
||||
});
|
||||
const store = useEntityCardStore();
|
||||
const { card, lost, tick } = storeToRefs(store);
|
||||
// Cameras carry only an id; the CCTV panel's store knows the picked one's name.
|
||||
const { frame: cctvFrame } = storeToRefs(useCctvStore());
|
||||
const shownTitle = computed(() => {
|
||||
const current = card.value;
|
||||
if (current?.titleWords) return sayWords(current.titleWords, current.title);
|
||||
if (current?.layerId !== 'cctv') return current?.title;
|
||||
const f = cctvFrame.value;
|
||||
if (!f || f.cameraId !== current.identity?.id) return current.title;
|
||||
try {
|
||||
return new URL(f.src || f.currentSrc, location.origin).searchParams.get('label') || current.title;
|
||||
} catch {
|
||||
return current.title;
|
||||
}
|
||||
});
|
||||
|
||||
function ago(ms) {
|
||||
const seconds = Math.round(ms / 1000);
|
||||
if (seconds < 60) return t('{n} s ago', { n: seconds });
|
||||
const minutes = Math.round(seconds / 60);
|
||||
if (minutes < 60) return t('{n} min ago', { n: minutes });
|
||||
const hours = Math.round(minutes / 60);
|
||||
if (hours < 48) return t('{n} h ago', { n: hours });
|
||||
return t('{n} d ago', { n: Math.round(hours / 24) });
|
||||
}
|
||||
|
||||
const status = computed(() => {
|
||||
void tick.value;
|
||||
const current = card.value;
|
||||
if (!current) return null;
|
||||
if (lost.value) return { tone: 'lost', text: t('Out of feed · last reading') };
|
||||
if (current.observedAgeMs !== null)
|
||||
return {
|
||||
tone: current.moving && current.observedAgeMs < 120_000 ? 'live' : 'aged',
|
||||
text: current.moving
|
||||
? t('Live · {age}', { age: ago(current.observedAgeMs) })
|
||||
: ago(current.observedAgeMs),
|
||||
};
|
||||
if (current.moving) return { tone: 'live', text: t('Live') };
|
||||
return null;
|
||||
});
|
||||
|
||||
const position = computed(() => {
|
||||
const current = card.value;
|
||||
if (!Number.isFinite(current?.lat) || !Number.isFinite(current?.lon)) return '';
|
||||
const lat = `${Math.abs(current.lat).toFixed(3)}°${current.lat >= 0 ? 'N' : 'S'}`;
|
||||
const lon = `${Math.abs(current.lon).toFixed(3)}°${current.lon >= 0 ? 'E' : 'W'}`;
|
||||
return `${lat} ${lon}`;
|
||||
});
|
||||
|
||||
const distance = (km) =>
|
||||
km < 1
|
||||
? t('{n} m', { n: formatNumber(Math.round(km * 1000)) })
|
||||
: t('{n} km', { n: formatNumber(km < 10 ? Number(km.toFixed(1)) : Math.round(km)) });
|
||||
|
||||
const source = computed(() => {
|
||||
void tick.value;
|
||||
return store.sourceOf(card.value);
|
||||
});
|
||||
const ageText = computed(() => {
|
||||
void tick.value;
|
||||
const age = card.value?.observedAgeMs;
|
||||
return Number.isFinite(age) ? t('updated {age}', { age: ago(age) }) : '';
|
||||
});
|
||||
|
||||
// The headline figures, as big tiles: the fields the item's kind leads with
|
||||
// (how high, how fast and which way for an aircraft; a quake's magnitude and
|
||||
// depth; a fire's power), in that order. The rest stay in the grid. An
|
||||
// aircraft's altitude is left out: its graph already leads with the figure.
|
||||
const altitudeGraphed = computed(() => card.value?.kind === 'aircraft' && Number.isFinite(card.value?.altitudeM));
|
||||
const tiles = computed(() => {
|
||||
const facts = card.value?.facts || [];
|
||||
return (card.value?.headline || [])
|
||||
.filter((field) => !(altitudeGraphed.value && field === 'altitudeM'))
|
||||
.map((field) => facts.find((fact) => fact.field === field))
|
||||
.filter(Boolean)
|
||||
.slice(0, 3);
|
||||
});
|
||||
const restFacts = computed(() => {
|
||||
const shown = new Set(tiles.value.map((fact) => fact.field));
|
||||
if (altitudeGraphed.value) shown.add('altitudeM');
|
||||
return (card.value?.facts || []).filter((fact) => !shown.has(fact.field));
|
||||
});
|
||||
|
||||
|
||||
// The line under the name: who runs it and what it is. The layer is already
|
||||
// named on the line above the title.
|
||||
const subtitle = computed(() => {
|
||||
const current = card.value;
|
||||
if (!current) return '';
|
||||
const cls = current.aircraftClass;
|
||||
const clsName = current.aircraftClassName ? t(current.aircraftClassName) : cls && cls[0].toUpperCase() + cls.slice(1);
|
||||
return [current.operator, clsName].filter(Boolean).join(' · ');
|
||||
});
|
||||
// The details grid leaves out what the header already says.
|
||||
// The Context search narrows them to the ones whose name or value holds its
|
||||
// text, and looks through every fact, the headline ones included.
|
||||
const gridFacts = computed(() =>
|
||||
contextNeedle.value
|
||||
? (card.value?.facts || []).filter((fact) => matchesContextSearch(factLabel(fact), factValue(fact), fact.value))
|
||||
: restFacts.value.filter((fact) => !(card.value?.operator && fact.field === 'operator') && !(card.value?.aircraftClass && fact.field === 'aircraftClass')),
|
||||
);
|
||||
|
||||
// How far along its route the flight is, when both airports are known: the
|
||||
// share flown (distance from the origin over that plus the distance still to
|
||||
// go), what is left, and the time to go at its current speed.
|
||||
const routeProgress = computed(() => {
|
||||
const current = card.value;
|
||||
const route = current?.route;
|
||||
if (!route?.verified || !route.fromAt || !route.toAt) return null;
|
||||
if (!Number.isFinite(current.lat) || !Number.isFinite(current.lon)) return null;
|
||||
const km = (a, b) => {
|
||||
const rad = Math.PI / 180;
|
||||
const h =
|
||||
Math.sin(((b.lat - a.lat) * rad) / 2) ** 2 +
|
||||
Math.cos(a.lat * rad) * Math.cos(b.lat * rad) * Math.sin(((b.lon - a.lon) * rad) / 2) ** 2;
|
||||
return 12742 * Math.asin(Math.sqrt(h));
|
||||
};
|
||||
const here = { lat: current.lat, lon: current.lon };
|
||||
const flown = km(route.fromAt, here);
|
||||
const left = km(here, route.toAt);
|
||||
const share = flown + left > 0 ? flown / (flown + left) : 0;
|
||||
const speedKmh = Number.isFinite(current.speedMps) ? current.speedMps * 3.6 : null;
|
||||
const hours = speedKmh && speedKmh > 80 ? left / speedKmh : null;
|
||||
const eta =
|
||||
hours === null
|
||||
? null
|
||||
: hours >= 1
|
||||
? t('{h} h {m} min', { h: Math.floor(hours), m: Math.round((hours % 1) * 60) })
|
||||
: t('{n} min', { n: Math.max(1, Math.round(hours * 60)) });
|
||||
return {
|
||||
share: Math.min(1, Math.max(0, share)),
|
||||
flown: distance(flown),
|
||||
left: distance(left),
|
||||
eta,
|
||||
};
|
||||
});
|
||||
|
||||
// Each airport's city and state (or country), from its position, for the line
|
||||
// under the progress bar.
|
||||
const routePlaces = ref({ from: '', to: '' });
|
||||
async function airportPlace(airport) {
|
||||
if (!airport) return '';
|
||||
try {
|
||||
const found = await nearestCity(airport.lat, airport.lon);
|
||||
const city = airport.name || found?.name || '';
|
||||
const region = countryName(found?.country);
|
||||
return [city, region].filter(Boolean).join(', ');
|
||||
} catch {
|
||||
return airport.name || '';
|
||||
}
|
||||
}
|
||||
watch(
|
||||
() => `${card.value?.route?.fromAt?.code}|${card.value?.route?.toAt?.code}`,
|
||||
async () => {
|
||||
const route = card.value?.route;
|
||||
routePlaces.value = { from: route?.fromAt?.name || '', to: route?.toAt?.name || '' };
|
||||
if (!route?.fromAt || !route?.toAt) return;
|
||||
const [from, to] = await Promise.all([airportPlace(route.fromAt), airportPlace(route.toAt)]);
|
||||
// Only for the same route still: another flight from the same airport
|
||||
// may have taken the card meanwhile.
|
||||
const now = card.value?.route;
|
||||
if (now?.fromAt?.code === route.fromAt.code && now?.toAt?.code === route.toAt.code) routePlaces.value = { from, to };
|
||||
},
|
||||
{ immediate: true },
|
||||
);
|
||||
|
||||
// The hero tile at the top of every card. A camera shows its latest frame.
|
||||
// Anything else gets a quiet placeholder with its icon and its headline
|
||||
// figures until it has imagery of its own.
|
||||
const heroKind = computed(() => (card.value?.layerId === 'cctv' ? 'camera' : 'none'));
|
||||
|
||||
// Things that move are read again only after they have gone a fair way, so
|
||||
// following a jet does not ask for the weather every few seconds.
|
||||
const settleKm = computed(() => (card.value?.moving ? 25 : 1));
|
||||
|
||||
const kindLabel = computed(() => (card.value ? t(card.value.kind) : ''));
|
||||
// What it is, then the layer it came from, unless the layer's name already
|
||||
// says what it is ("fire perimeter · Fire Perimeters").
|
||||
const kindLine = computed(() => {
|
||||
const current = card.value;
|
||||
if (!current) return '';
|
||||
const layer = current.layerName || '';
|
||||
const plain = (words) => words.toLowerCase().replace(/s\b/g, '');
|
||||
const shown = shownLayerName(layer, current.layerId);
|
||||
return plain(layer).includes(plain(current.kind)) ? shown : `${kindLabel.value} · ${shown}`;
|
||||
});
|
||||
|
||||
// A new item starts at the top of the panel, not wherever the last one was
|
||||
// scrolled to.
|
||||
watch(
|
||||
() => card.value?.key,
|
||||
async (key, previous) => {
|
||||
if (!key || key === previous) return;
|
||||
await nextTick();
|
||||
document
|
||||
.getElementById('entity-card')
|
||||
?.closest('[data-rail-scroller]')
|
||||
?.scrollTo({ top: 0, behavior: 'smooth' });
|
||||
},
|
||||
);
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<Transition name="entity-card">
|
||||
<section v-if="card" id="entity-card" class="entity-card" :aria-label="t('Selected on the map')" :data-layer="card.layerId">
|
||||
<div class="entity-hero" :data-hero="heroKind">
|
||||
<CctvPreview v-if="heroKind === 'camera'" :camera-id="card.identity?.id || ''" />
|
||||
<!-- No imagery for it yet: its icon, with its headline figures beside it. -->
|
||||
<div v-else class="entity-hero__placeholder" :class="{ 'entity-hero__placeholder--bare': props.withContacts || !tiles.length }">
|
||||
<span class="material-symbols-outlined entity-hero__glyph" aria-hidden="true">{{ card.icon }}</span>
|
||||
<div v-if="!props.withContacts && tiles.length" class="entity-hero__figures">
|
||||
<div v-for="fact in tiles" :key="fact.field" class="entity-hero__figure">
|
||||
<strong>{{ factFigure(fact).number }}<small v-if="factFigure(fact).unit">{{ factFigure(fact).unit }}</small></strong>
|
||||
<span>{{ factLabel(fact) }}</span>
|
||||
</div>
|
||||
</div>
|
||||
<span v-else class="entity-hero__kind">{{ kindLabel }}</span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<header class="entity-card__head">
|
||||
<span class="material-symbols-outlined entity-card__icon" aria-hidden="true">{{ card.icon }}</span>
|
||||
<div class="entity-card__name">
|
||||
<span class="entity-card__kind">{{ kindLine }}</span>
|
||||
<h3 class="entity-card__title">{{ shownTitle }}</h3>
|
||||
<span v-if="subtitle" class="entity-card__subtitle">{{ subtitle }}</span>
|
||||
</div>
|
||||
<button type="button" class="entity-card__close" :aria-label="t('Close card')" :title="t('Close card')" @click="store.clear()">
|
||||
<span class="material-symbols-outlined" aria-hidden="true">close</span>
|
||||
</button>
|
||||
</header>
|
||||
|
||||
<div class="entity-card__meta">
|
||||
<span v-if="status" class="entity-card__status" :class="`entity-card__status--${status.tone}`">{{ status.text }}</span>
|
||||
<span v-if="position" class="entity-card__where">{{ position }}</span>
|
||||
</div>
|
||||
|
||||
<div v-if="card.warnings?.length" class="entity-card__warning" role="alert">
|
||||
<span class="material-symbols-outlined" aria-hidden="true">warning</span>
|
||||
<span>{{ card.warnings.map((warning, index) => sayWords(card.warningWords?.[index], warning)).join(' · ') }}</span>
|
||||
</div>
|
||||
|
||||
<div v-if="card.route" class="entity-card__route" :class="{ 'entity-card__route--unverified': !card.route.verified, 'entity-card__route--progress': routeProgress }">
|
||||
<strong>{{ card.route.from }}</strong>
|
||||
<span class="entity-card__route-line" :style="routeProgress ? { '--route-share': `${(routeProgress.share * 100).toFixed(1)}%` } : null" aria-hidden="true">
|
||||
<span class="material-symbols-outlined">flight</span>
|
||||
</span>
|
||||
<strong>{{ card.route.to }}</strong>
|
||||
</div>
|
||||
<p v-if="routeProgress" class="entity-card__route-stats">
|
||||
<span>{{ t('{n}% flown', { n: Math.round(routeProgress.share * 100) }) }} · {{ routeProgress.flown }}</span>
|
||||
<span>{{ routeProgress.left }} {{ t('to go') }}<template v-if="routeProgress.eta"> · ~{{ routeProgress.eta }}</template></span>
|
||||
</p>
|
||||
<p v-if="card.route?.verified && (routePlaces.from || routePlaces.to)" class="entity-card__route-places">
|
||||
<span>{{ routePlaces.from }}</span>
|
||||
<span>{{ routePlaces.to }}</span>
|
||||
</p>
|
||||
<AltitudeGraph v-if="altitudeGraphed" v-show="!props.withContacts" :key="`altitude:${card.key}`" :altitude-m="lost ? null : card.altitudeM" :tick="tick" />
|
||||
<p
|
||||
v-if="card.route && !card.route.verified"
|
||||
class="entity-card__route-note"
|
||||
:title="t('The scheduled route for this flight number does not match where the plane is; it may be another leg of the same flight.')"
|
||||
>
|
||||
<span class="material-symbols-outlined" aria-hidden="true">warning</span>{{ t('Scheduled · unverified: does not match where the plane is') }}
|
||||
</p>
|
||||
|
||||
<div v-if="!props.withContacts && tiles.length && heroKind !== 'none' && !contextNeedle" class="entity-card__tiles" :style="{ gridTemplateColumns: `repeat(${tiles.length}, minmax(0, 1fr))` }">
|
||||
<div v-for="fact in tiles" :key="fact.field" class="entity-card__tile">
|
||||
<span>{{ factLabel(fact) }}</span>
|
||||
<strong>{{ factFigure(fact).number }}<small v-if="factFigure(fact).unit">{{ factFigure(fact).unit }}</small></strong>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<p v-if="contextNeedle && !gridFacts.length" class="entity-card__no-match">{{ t('Nothing in this item’s details matches “{text}”.', { text: contextSearchText.trim() }) }}</p>
|
||||
<section v-if="gridFacts.length" class="entity-card__section">
|
||||
<h4>{{ contextNeedle ? t('Matching details') : t('Details') }}</h4>
|
||||
<dl class="entity-card__facts">
|
||||
<div v-for="fact in gridFacts" :key="fact.field" class="entity-card__fact">
|
||||
<dt>{{ factLabel(fact) }}</dt>
|
||||
<dd>{{ factValue(fact) }}</dd>
|
||||
</div>
|
||||
</dl>
|
||||
</section>
|
||||
|
||||
<div v-if="card.links.length" class="entity-card__links">
|
||||
<a v-for="link in card.links" :key="link.kind" :href="link.href" target="_blank" rel="noopener noreferrer">{{ t(link.label) }} ↗</a>
|
||||
</div>
|
||||
|
||||
<div class="entity-card__actions">
|
||||
<!-- On an aircraft or a satellite, Cockpit leads: it is the action people come for. -->
|
||||
<button v-if="store.canCockpit()" type="button" class="entity-card__action entity-card__action--primary" data-entity-cockpit-entry @click="store.cockpit()">
|
||||
<span class="material-symbols-outlined" aria-hidden="true">{{ card.layerId === 'satellites' ? 'satellite_alt' : 'flight' }}</span>{{ card.layerId === 'satellites' ? t('Enter orbital view') : t('Enter Cockpit') }}
|
||||
</button>
|
||||
<div class="entity-card__action-row">
|
||||
<button type="button" class="entity-card__action" @click="store.flyTo()">
|
||||
<span class="material-symbols-outlined" aria-hidden="true">my_location</span>{{ t('Fly to') }}
|
||||
</button>
|
||||
<button v-if="store.canFollow()" type="button" class="entity-card__action" :class="{ 'entity-card__action--on': store.isFollowing() }" :aria-pressed="String(store.isFollowing())" @click="store.follow()">
|
||||
<span class="material-symbols-outlined" aria-hidden="true">navigation</span>{{ store.isFollowing() ? t('Following') : t('Follow') }}
|
||||
</button>
|
||||
</div>
|
||||
<button type="button" class="entity-card__action entity-card__action--ask" @click="store.ask()">
|
||||
<svg viewBox="0 0 24 24" width="15" height="15" fill="none" stroke="currentColor" stroke-width="1.8" aria-hidden="true"><path d="M4 5h16v11H9l-5 4z" /></svg>{{ t('Ask GEV about {name}', { name: shownTitle }) }}
|
||||
</button>
|
||||
</div>
|
||||
|
||||
<slot />
|
||||
<SpotConditions v-if="Number.isFinite(card.lat) && Number.isFinite(card.lon)" :key="card.key" entity :lat="card.lat" :lon="card.lon" :exclude-key="card.key" :settle-km="settleKm" :with-contacts="props.withContacts" />
|
||||
|
||||
<p v-if="source" class="entity-card__source">
|
||||
<span>{{ t('Source') }}</span> {{ source }}<template v-if="ageText"> · {{ ageText }}</template>
|
||||
</p>
|
||||
</section>
|
||||
</Transition>
|
||||
</template>
|
||||
@@ -0,0 +1,428 @@
|
||||
<script setup>
|
||||
import { computed, onBeforeUnmount, onMounted, ref, watch } from 'vue';
|
||||
import { formatNumber, onLocaleChange, t } from '../../../i18n/index.js';
|
||||
import { compassName, hazardsNear, regionalBrief, weatherLook } from '../../spotConditions.js';
|
||||
import { distanceKm } from '../../../data/entityContext.js';
|
||||
import { CONTEXT_RADIUS_STEPS, contextRadiusKm, setContextRadiusKm } from '../../contextRadius.js';
|
||||
import { contextNeedle, matchesContextSearch } from '../../contextSearch.js';
|
||||
import UiSlider from '../../kit/UiSlider.js';
|
||||
import { sayWords, useEntityCardStore } from '../../stores/entityCard.js';
|
||||
import { useOmnibarStore } from '../../stores/omnibar.js';
|
||||
import { shownLayerName } from '../../layerNames.js';
|
||||
|
||||
// Conditions around one spot. For the view when nothing is picked: the
|
||||
// weather there now, natural hazards near it (earthquakes, tropical storms,
|
||||
// wildfires), warnings broadcast by things the loaded layers have nearby, and
|
||||
// the local headlines. For a selected item (`entity`) it is the standard set
|
||||
// every card shows, in one order: weather and local time, then the flights,
|
||||
// vessels and hazards nearby, then alerts and whatever else is loaded there.
|
||||
// Every nearby block looks out to the same distance, set by the radius
|
||||
// control here. It reads again when the spot moves; the feeds behind it are
|
||||
// cached.
|
||||
const props = defineProps({
|
||||
lat: { type: Number, required: true },
|
||||
lon: { type: Number, required: true },
|
||||
/** Show the standard blocks for a selected item. */
|
||||
entity: { type: Boolean, default: false },
|
||||
withContacts: Boolean,
|
||||
/** The selected item's own key, left out of the nearby lists. */
|
||||
excludeKey: { type: String, default: '' },
|
||||
/** How far the spot moves before the weather and hazards are read again. */
|
||||
settleKm: { type: Number, default: 1 },
|
||||
});
|
||||
|
||||
const store = useEntityCardStore();
|
||||
const omnibar = useOmnibarStore();
|
||||
|
||||
const brief = ref(null);
|
||||
const hazards = ref([]);
|
||||
const loading = ref(true);
|
||||
/** Where the weather and hazards were last read for. */
|
||||
let readAt = null;
|
||||
let reading = 0;
|
||||
/** Hazard reads count apart, so moving the radius never drops a weather read. */
|
||||
let readingHazards = 0;
|
||||
let settle = null;
|
||||
|
||||
const radiusKm = contextRadiusKm;
|
||||
const radiusText = computed(() => t('{n} km', { n: formatNumber(radiusKm.value) }));
|
||||
const radiusIndex = computed(() => Math.max(0, CONTEXT_RADIUS_STEPS.indexOf(radiusKm.value)));
|
||||
const pickRadius = (index) => setContextRadiusKm(CONTEXT_RADIUS_STEPS[index]);
|
||||
|
||||
// Satellite fire hits come only while the FIRMS layer is on (spotConditions.js).
|
||||
const firesOn = () =>
|
||||
Boolean((omnibar.controls?.layers() || []).find((layer) => layer.id === HAZARD_LAYER.hotspots)?.enabled);
|
||||
|
||||
async function read(lat, lon, { force = false } = {}) {
|
||||
if (!force && readAt && distanceKm(readAt, { lat, lon }) <= props.settleKm) return;
|
||||
readAt = { lat, lon };
|
||||
const mine = ++reading;
|
||||
const mineHazards = ++readingHazards;
|
||||
// A forced re-read keeps what is shown until the new reading lands.
|
||||
if (!force) loading.value = true;
|
||||
const [nextBrief, nextHazards] = await Promise.all([
|
||||
regionalBrief(lat, lon, store.readBrief, { force }),
|
||||
hazardsNear(lat, lon, radiusKm.value, { fires: firesOn(), force }).catch(() => []),
|
||||
]);
|
||||
if (reading !== mine) return;
|
||||
if (nextBrief || !force) brief.value = nextBrief;
|
||||
// A radius change meanwhile has its own, newer hazard read.
|
||||
if (readingHazards === mineHazards) hazards.value = nextHazards;
|
||||
loading.value = false;
|
||||
}
|
||||
watch(
|
||||
() => `${props.lat},${props.lon}`,
|
||||
() => {
|
||||
clearTimeout(settle);
|
||||
settle = setTimeout(() => void read(props.lat, props.lon), 350);
|
||||
},
|
||||
{ immediate: true },
|
||||
);
|
||||
// A new radius only re-filters the hazard feeds, which are already cached.
|
||||
async function rereadHazards(km) {
|
||||
const at = readAt || { lat: props.lat, lon: props.lon };
|
||||
const mine = ++readingHazards;
|
||||
const next = await hazardsNear(at.lat, at.lon, km, { fires: firesOn() }).catch(() => []);
|
||||
if (readingHazards !== mine) return;
|
||||
hazards.value = next;
|
||||
}
|
||||
watch(radiusKm, (km) => void rereadHazards(km));
|
||||
// A spot that stays put (a parked selection, a still view) reads its weather,
|
||||
// news and hazards again once the kept copies are old.
|
||||
const REREAD_MS = 5 * 60_000;
|
||||
let rereadTimer = 0;
|
||||
onMounted(() => {
|
||||
rereadTimer = setInterval(() => void read(props.lat, props.lon, { force: true }), REREAD_MS);
|
||||
});
|
||||
onBeforeUnmount(() => clearInterval(rereadTimer));
|
||||
// Hazard rows are worded as they are read, so a new language reads them again.
|
||||
const stopLocale = onLocaleChange(() => void rereadHazards(radiusKm.value));
|
||||
|
||||
// Warnings from the loaded layers move with their records; read them often.
|
||||
const tick = ref(0);
|
||||
let timer = null;
|
||||
onMounted(() => {
|
||||
timer = setInterval(() => tick.value++, 4000);
|
||||
});
|
||||
onBeforeUnmount(() => {
|
||||
clearInterval(timer);
|
||||
clearTimeout(settle);
|
||||
stopLocale();
|
||||
});
|
||||
// The Context search narrows every list below to what holds its text.
|
||||
const searching = computed(() => Boolean(contextNeedle.value));
|
||||
const alerts = computed(() => {
|
||||
void tick.value;
|
||||
return store
|
||||
.alertsAt(props.lat, props.lon, { radiusKm: radiusKm.value, limit: searching.value ? 40 : 4 })
|
||||
.filter((alert) => matchesContextSearch(alert.title, sayWords(alert.words, alert.text), alert.text));
|
||||
});
|
||||
const shownHazards = computed(() =>
|
||||
hazards.value.filter((hazard) => matchesContextSearch(hazard.title, hazard.detail, hazardLayers.value[hazard.kind]?.name)).slice(0, searching.value ? 12 : 5),
|
||||
);
|
||||
|
||||
// The merged card gets these cohorts and their coverage from Awareness.
|
||||
const CONTACT_LAYERS = ['flights', 'military', 'ais-live-vessels', 'military-installations'];
|
||||
const groups = computed(() => {
|
||||
void tick.value;
|
||||
if (!props.entity) return null;
|
||||
return store.nearbyGroups(props.lat, props.lon, {
|
||||
radiusKm: radiusKm.value,
|
||||
limit: searching.value ? 12 : 4,
|
||||
excludeKey: props.excludeKey,
|
||||
excludeLayers: props.withContacts ? CONTACT_LAYERS : undefined,
|
||||
query: contextNeedle.value,
|
||||
});
|
||||
});
|
||||
const trafficBlocks = computed(() => {
|
||||
if (!groups.value) return [];
|
||||
if (props.withContacts)
|
||||
return groups.value.flights.count
|
||||
? [{ id: 'local-adsb', icon: 'flight', title: t('Local ADS-B'), ...groups.value.flights }]
|
||||
: [];
|
||||
return [
|
||||
{ id: 'flights', icon: 'flight', title: t('Flights within {radius}', { radius: radiusText.value }), none: t('No flights within {radius} from the layers that are on.', { radius: radiusText.value }), ...groups.value.flights },
|
||||
{ id: 'vessels', icon: 'directions_boat', title: t('Vessels within {radius}', { radius: radiusText.value }), none: t('No vessels within {radius} from the layers that are on.', { radius: radiusText.value }), ...groups.value.vessels },
|
||||
];
|
||||
});
|
||||
|
||||
// Local solar time at the spot, from its longitude: no time zone lookup.
|
||||
const localTime = computed(() => {
|
||||
void tick.value;
|
||||
const solar = new Date(Date.now() + (props.lon / 15) * 3_600_000);
|
||||
return `${String(solar.getUTCHours()).padStart(2, '0')}:${String(solar.getUTCMinutes()).padStart(2, '0')}`;
|
||||
});
|
||||
|
||||
const weather = computed(() => brief.value?.weather || null);
|
||||
const look = computed(() => weatherLook(weather.value?.weatherCode));
|
||||
const round = (n) => (Number.isFinite(n) ? Math.round(n) : null);
|
||||
const weatherFacts = computed(() => {
|
||||
const now = weather.value;
|
||||
if (!now) return [];
|
||||
const facts = [];
|
||||
if (Number.isFinite(now.windKph)) {
|
||||
const speed = t('{n} km/h', { n: formatNumber(round(now.windKph)) });
|
||||
facts.push({
|
||||
label: t('Wind'),
|
||||
value: Number.isFinite(now.windDirectionDeg) ? t('{speed} {direction}', { speed, direction: t(compassName(now.windDirectionDeg)) }) : speed,
|
||||
});
|
||||
}
|
||||
if (Number.isFinite(now.cloudCoverPct)) facts.push({ label: t('Cloud'), value: t('{n}%', { n: formatNumber(round(now.cloudCoverPct)) }) });
|
||||
if (Number.isFinite(now.visibilityM))
|
||||
facts.push({
|
||||
label: t('Visibility'),
|
||||
value: t('{n} km', {
|
||||
n: formatNumber(now.visibilityM >= 10_000 ? round(now.visibilityM / 1000) : Number((now.visibilityM / 1000).toFixed(1))),
|
||||
}),
|
||||
});
|
||||
if (Number.isFinite(now.precipitationMm))
|
||||
facts.push({
|
||||
label: t('Rain'),
|
||||
value: t('{n} mm', { n: formatNumber(now.precipitationMm, { minimumFractionDigits: 1, maximumFractionDigits: 1 }) }),
|
||||
});
|
||||
return facts;
|
||||
});
|
||||
|
||||
const articles = computed(() =>
|
||||
props.entity ? [] : (brief.value?.articles || []).filter((article) => matchesContextSearch(article.title, article.domain)).slice(0, 3),
|
||||
);
|
||||
|
||||
const distance = (km) =>
|
||||
t('{n} km', { n: km < 10 ? formatNumber(km, { minimumFractionDigits: 1, maximumFractionDigits: 1 }) : formatNumber(Math.round(km)) });
|
||||
function ago(ms) {
|
||||
if (!Number.isFinite(ms)) return '';
|
||||
const minutes = Math.max(0, Math.round((Date.now() - ms) / 60_000));
|
||||
if (minutes < 60) return t('{n} min ago', { n: minutes });
|
||||
const hours = Math.round(minutes / 60);
|
||||
if (hours < 48) return t('{n} h ago', { n: hours });
|
||||
return t('{n} d ago', { n: Math.round(hours / 24) });
|
||||
}
|
||||
const host = (article) => article.domain || '';
|
||||
|
||||
// The layer each kind of hazard comes from. Picking a hazard turns its layer
|
||||
// on (when it is off) so the marker and its label are there to select.
|
||||
const HAZARD_LAYER = {
|
||||
quake: 'earthquakes',
|
||||
storm: 'weather-cyclones',
|
||||
wildfire: 'fire-perimeters',
|
||||
hotspots: 'local-firms',
|
||||
};
|
||||
// Far enough out to see the markers (and pick one), not just the ground.
|
||||
const HAZARD_RANGE_M = { quake: 120000, storm: 1500000, wildfire: 40000, hotspots: 180000 };
|
||||
const layerTick = ref(0);
|
||||
const hazardLayers = computed(() => {
|
||||
void layerTick.value;
|
||||
void hazards.value;
|
||||
const rows = omnibar.controls?.layers() || [];
|
||||
return Object.fromEntries(
|
||||
Object.entries(HAZARD_LAYER).map(([kind, id]) => {
|
||||
const row = rows.find((layer) => layer.id === id);
|
||||
return [kind, row ? { id, name: shownLayerName(row.name, id), on: Boolean(row.enabled) } : null];
|
||||
}),
|
||||
);
|
||||
});
|
||||
// Turning FIRMS on or off adds or drops its fire hits at once.
|
||||
watch(
|
||||
() => Boolean(hazardLayers.value.hotspots?.on),
|
||||
() => void rereadHazards(radiusKm.value),
|
||||
);
|
||||
let layerTimer = 0;
|
||||
onMounted(() => {
|
||||
layerTimer = setInterval(() => layerTick.value++, 1500);
|
||||
});
|
||||
onBeforeUnmount(() => clearInterval(layerTimer));
|
||||
|
||||
function flyTo(hazard) {
|
||||
const layer = hazardLayers.value[hazard.kind];
|
||||
if (layer && !layer.on) {
|
||||
void omnibar.controls?.setLayer(layer.id, true);
|
||||
setTimeout(() => layerTick.value++, 800);
|
||||
}
|
||||
omnibar.runner?.('fly_to_location', {
|
||||
latitude: hazard.at.lat,
|
||||
longitude: hazard.at.lon,
|
||||
query: hazard.title,
|
||||
viewMode: 'overview',
|
||||
rangeM: HAZARD_RANGE_M[hazard.kind] ?? 100000,
|
||||
});
|
||||
}
|
||||
|
||||
const sources = computed(() => {
|
||||
const list = [];
|
||||
if (weather.value) list.push('Open-Meteo');
|
||||
if (hazards.value.some((h) => h.kind === 'quake')) list.push('USGS');
|
||||
if (hazards.value.some((h) => h.kind === 'storm')) list.push('NOAA NHC');
|
||||
if (hazards.value.some((h) => h.kind === 'wildfire')) list.push('NIFC WFIGS');
|
||||
if (hazards.value.some((h) => h.kind === 'hotspots')) list.push('NASA FIRMS');
|
||||
if (articles.value.length && brief.value?.newsSource) list.push(brief.value.newsSource);
|
||||
return list.join(' · ');
|
||||
});
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<section class="spot-conditions" :aria-label="t('Conditions here')" :aria-busy="String(loading)">
|
||||
<!-- A selected item leads with the weather and the time there. -->
|
||||
<template v-if="entity">
|
||||
<div v-if="weather || entity" class="spot-conditions__weather" :class="{ 'spot-conditions__weather--timed': entity }">
|
||||
<template v-if="weather">
|
||||
<span class="material-symbols-outlined spot-conditions__weather-icon" aria-hidden="true">{{ look.icon }}</span>
|
||||
<div class="spot-conditions__weather-now">
|
||||
<strong>{{ round(weather.temperatureC) }}°C</strong>
|
||||
<span>{{ t(look.label) }}<template v-if="Number.isFinite(weather.apparentTemperatureC)"> · {{ t('feels {n}°', { n: round(weather.apparentTemperatureC) }) }}</template></span>
|
||||
</div>
|
||||
</template>
|
||||
<p v-else class="spot-conditions__loading spot-conditions__weather-wait">{{ loading ? t('Reading conditions here…') : t('No weather reading here.') }}</p>
|
||||
<div v-if="entity" class="spot-conditions__time">
|
||||
<strong>{{ localTime }}</strong>
|
||||
<span>{{ t('Local solar time') }}</span>
|
||||
</div>
|
||||
<dl v-if="weather" class="spot-conditions__weather-facts">
|
||||
<div v-for="fact in weatherFacts" :key="fact.label">
|
||||
<dt>{{ fact.label }}</dt>
|
||||
<dd>{{ fact.value }}</dd>
|
||||
</div>
|
||||
</dl>
|
||||
</div>
|
||||
<p v-else-if="loading" class="spot-conditions__loading">{{ t('Reading conditions here…') }}</p>
|
||||
</template>
|
||||
|
||||
<!-- What the view's enabled layers have here. -->
|
||||
<slot name="after-weather" />
|
||||
|
||||
<!-- One distance for every nearby block below. -->
|
||||
<div class="spot-conditions__radius">
|
||||
<span class="spot-conditions__radius-label">{{ t('Nearby radius') }}</span>
|
||||
<UiSlider class="spot-conditions__radius-slider" min="0" :max="CONTEXT_RADIUS_STEPS.length - 1" step="1" :model-value="radiusIndex" :aria-label="t('Nearby radius')" :aria-valuetext="radiusText" :title="t('How far out the nearby lists look')" @update:model-value="pickRadius" />
|
||||
<output class="spot-conditions__radius-value">{{ radiusText }}</output>
|
||||
</div>
|
||||
|
||||
<div v-for="block in trafficBlocks" v-show="!searching || block.items.length" :key="block.id" class="spot-conditions__block">
|
||||
<h4>
|
||||
<span class="material-symbols-outlined" aria-hidden="true">{{ block.icon }}</span>
|
||||
<span>{{ block.title }}</span>
|
||||
<span class="spot-conditions__count">{{ block.count }}</span>
|
||||
</h4>
|
||||
<ul v-if="block.items.length">
|
||||
<li v-for="item in block.items" :key="item.key">
|
||||
<button type="button" @click="store.select(item.identity, { fly: true })">
|
||||
<span class="spot-conditions__row-main">
|
||||
<span class="spot-conditions__row-title">{{ item.title }}</span>
|
||||
</span>
|
||||
<span class="spot-conditions__row-meta">{{ distance(item.distanceKm) }}</span>
|
||||
</button>
|
||||
</li>
|
||||
</ul>
|
||||
<p v-else class="spot-conditions__none">{{ block.none }}</p>
|
||||
</div>
|
||||
|
||||
<div v-show="!searching || shownHazards.length" class="spot-conditions__block">
|
||||
<h4>
|
||||
<span class="material-symbols-outlined" aria-hidden="true">warning</span>
|
||||
<span>{{ t('Hazards within {radius}', { radius: radiusText }) }}</span>
|
||||
<span class="spot-conditions__count" :class="{ 'spot-conditions__count--hot': hazards.length }">{{ loading ? '…' : searching ? shownHazards.length : hazards.length }}</span>
|
||||
</h4>
|
||||
<ul v-if="shownHazards.length">
|
||||
<li v-for="hazard in shownHazards" :key="`${hazard.kind}-${hazard.title}-${hazard.distanceKm}`" :class="`spot-conditions__hazard--${hazard.kind}`">
|
||||
<button type="button" @click="flyTo(hazard)">
|
||||
<span class="material-symbols-outlined" aria-hidden="true">{{ hazard.icon }}</span>
|
||||
<span class="spot-conditions__row-main">
|
||||
<span class="spot-conditions__row-title">{{ hazard.title }}</span>
|
||||
<span v-if="hazard.detail || hazard.time" class="spot-conditions__row-detail">{{ [hazard.detail, ago(hazard.time)].filter(Boolean).join(' · ') }}</span>
|
||||
<span v-if="hazardLayers[hazard.kind]" class="spot-conditions__row-layer" :class="{ 'is-on': hazardLayers[hazard.kind].on }" :title="hazardLayers[hazard.kind].on ? t('Layer on') : t('Turns the layer on')">
|
||||
<span class="spot-conditions__row-dot" aria-hidden="true"></span>{{ hazardLayers[hazard.kind].name }}
|
||||
</span>
|
||||
</span>
|
||||
<span class="spot-conditions__row-meta">{{ distance(hazard.distanceKm) }} {{ t(hazard.direction) }}</span>
|
||||
</button>
|
||||
</li>
|
||||
</ul>
|
||||
<p v-else-if="!loading" class="spot-conditions__none">{{ t('No earthquakes, tropical storms or wildfires reported within {radius}.', { radius: radiusText }) }}</p>
|
||||
</div>
|
||||
|
||||
<div v-if="alerts.length" class="spot-conditions__block">
|
||||
<h4>
|
||||
<span class="material-symbols-outlined" aria-hidden="true">emergency_home</span>
|
||||
<span>{{ t('Broadcast alerts within {radius}', { radius: radiusText }) }}</span>
|
||||
<span class="spot-conditions__count spot-conditions__count--hot">{{ alerts.length }}</span>
|
||||
</h4>
|
||||
<ul>
|
||||
<li v-for="alert in alerts" :key="alert.key" class="spot-conditions__hazard--alert">
|
||||
<button type="button" @click="store.select(alert.identity, { fly: true })">
|
||||
<span class="material-symbols-outlined" aria-hidden="true">{{ alert.icon }}</span>
|
||||
<span class="spot-conditions__row-main">
|
||||
<span class="spot-conditions__row-title">{{ alert.title }}</span>
|
||||
<span class="spot-conditions__row-detail">{{ sayWords(alert.words, alert.text) }}</span>
|
||||
</span>
|
||||
<span class="spot-conditions__row-meta">{{ distance(alert.distanceKm) }}</span>
|
||||
</button>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
<div v-if="groups?.other.length" class="spot-conditions__block">
|
||||
<h4>
|
||||
<span class="material-symbols-outlined" aria-hidden="true">layers</span>
|
||||
<span>{{ t('Also within {radius}', { radius: radiusText }) }}</span>
|
||||
<span class="spot-conditions__count">{{ groups.other.length }}</span>
|
||||
</h4>
|
||||
<ul>
|
||||
<li v-for="item in groups.other" :key="item.key">
|
||||
<button type="button" @click="store.select(item.identity, { fly: true })">
|
||||
<span class="material-symbols-outlined" aria-hidden="true">{{ item.icon }}</span>
|
||||
<span class="spot-conditions__row-main">
|
||||
<span class="spot-conditions__row-title">{{ item.title }}</span>
|
||||
<span class="spot-conditions__row-detail">{{ shownLayerName(item.layerName, item.layerId) }}</span>
|
||||
</span>
|
||||
<span class="spot-conditions__row-meta">{{ distance(item.distanceKm) }}</span>
|
||||
</button>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
<!-- For the view, the time and weather there come last, above the news. -->
|
||||
<template v-if="!entity">
|
||||
<slot name="before-weather" />
|
||||
<div v-if="weather || entity" class="spot-conditions__weather" :class="{ 'spot-conditions__weather--timed': entity }">
|
||||
<template v-if="weather">
|
||||
<span class="material-symbols-outlined spot-conditions__weather-icon" aria-hidden="true">{{ look.icon }}</span>
|
||||
<div class="spot-conditions__weather-now">
|
||||
<strong>{{ round(weather.temperatureC) }}°C</strong>
|
||||
<span>{{ t(look.label) }}<template v-if="Number.isFinite(weather.apparentTemperatureC)"> · {{ t('feels {n}°', { n: round(weather.apparentTemperatureC) }) }}</template></span>
|
||||
</div>
|
||||
</template>
|
||||
<p v-else class="spot-conditions__loading spot-conditions__weather-wait">{{ loading ? t('Reading conditions here…') : t('No weather reading here.') }}</p>
|
||||
<div v-if="entity" class="spot-conditions__time">
|
||||
<strong>{{ localTime }}</strong>
|
||||
<span>{{ t('Local solar time') }}</span>
|
||||
</div>
|
||||
<dl v-if="weather" class="spot-conditions__weather-facts">
|
||||
<div v-for="fact in weatherFacts" :key="fact.label">
|
||||
<dt>{{ fact.label }}</dt>
|
||||
<dd>{{ fact.value }}</dd>
|
||||
</div>
|
||||
</dl>
|
||||
</div>
|
||||
<p v-else-if="loading" class="spot-conditions__loading">{{ t('Reading conditions here…') }}</p>
|
||||
</template>
|
||||
|
||||
<div v-if="articles.length" class="spot-conditions__block">
|
||||
<h4>
|
||||
<span class="material-symbols-outlined" aria-hidden="true">newspaper</span>
|
||||
<span>{{ t('Local news') }}</span>
|
||||
<span v-if="brief?.newsQuery" class="spot-conditions__query">{{ brief.newsQuery }}</span>
|
||||
</h4>
|
||||
<ul>
|
||||
<li v-for="article in articles" :key="article.url">
|
||||
<a :href="article.url" target="_blank" rel="noopener noreferrer">
|
||||
<span class="spot-conditions__row-main">
|
||||
<span class="spot-conditions__row-title spot-conditions__row-title--wrap">{{ article.title }}</span>
|
||||
<span class="spot-conditions__row-detail">{{ [host(article), ago(Date.parse(article.publishedAt))].filter(Boolean).join(' · ') }}</span>
|
||||
</span>
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
<p v-if="sources" class="spot-conditions__source">{{ sources }}</p>
|
||||
</section>
|
||||
</template>
|
||||
@@ -0,0 +1,364 @@
|
||||
<script setup>
|
||||
import { computed, onBeforeUnmount, onMounted, ref } from 'vue';
|
||||
import { t } from '../../../i18n/index.js';
|
||||
|
||||
// A garden sundial for the middle of the view, drawn in 2.5D: a bronze
|
||||
// plate seen from above at a slant, its hour lines laid out for the
|
||||
// latitude, a gnomon whose edge points at the celestial pole, and the
|
||||
// shadow that gnomon would really cast now, from the sun's true position
|
||||
// (low-precision formulas, good to a fraction of a degree). At night the
|
||||
// shadow goes and the plate dims.
|
||||
const props = defineProps({
|
||||
lat: { type: Number, required: true },
|
||||
lon: { type: Number, required: true },
|
||||
});
|
||||
|
||||
const now = ref(Date.now());
|
||||
let timer = null;
|
||||
onMounted(() => {
|
||||
timer = setInterval(() => (now.value = Date.now()), 20_000);
|
||||
});
|
||||
onBeforeUnmount(() => clearInterval(timer));
|
||||
|
||||
const RAD = Math.PI / 180;
|
||||
|
||||
/** The sun's declination and the local hour angle (radians) at a moment. */
|
||||
function sunNow(lon, when) {
|
||||
const d = (when - Date.UTC(2000, 0, 1, 12)) / 86_400_000;
|
||||
const g = (357.529 + 0.98560028 * d) * RAD;
|
||||
const q = 280.459 + 0.98564736 * d;
|
||||
const ecliptic = (q + 1.915 * Math.sin(g) + 0.02 * Math.sin(2 * g)) * RAD;
|
||||
const tilt = (23.439 - 0.00000036 * d) * RAD;
|
||||
const ra = Math.atan2(Math.cos(tilt) * Math.sin(ecliptic), Math.cos(ecliptic));
|
||||
const dec = Math.asin(Math.sin(tilt) * Math.sin(ecliptic));
|
||||
const sidereal = ((18.697374558 + 24.06570982441908 * d) % 24) * 15;
|
||||
let hour = (sidereal + lon) * RAD - ra;
|
||||
hour = Math.atan2(Math.sin(hour), Math.cos(hour));
|
||||
return { dec, hour };
|
||||
}
|
||||
|
||||
/** Unit vector toward the sun in east-north-up for an hour angle and declination. */
|
||||
function sunVector(phi, dec, hour) {
|
||||
return {
|
||||
e: -Math.cos(dec) * Math.sin(hour),
|
||||
n: Math.sin(dec) * Math.cos(phi) - Math.cos(dec) * Math.cos(hour) * Math.sin(phi),
|
||||
u: Math.sin(dec) * Math.sin(phi) + Math.cos(dec) * Math.cos(hour) * Math.cos(phi),
|
||||
};
|
||||
}
|
||||
|
||||
// Drawing: ground x east, y toward the pole the gnomon faces, z up; the
|
||||
// plate is seen from the south (or north) at a slant, so y shrinks and z
|
||||
// rises on screen.
|
||||
const W = 300;
|
||||
const H = 196;
|
||||
const CX = 150;
|
||||
const CY = 104;
|
||||
const R = 118;
|
||||
const SLANT = 0.5;
|
||||
const RISE = 0.62;
|
||||
const THICK = 9;
|
||||
// The plate is seen turned a little, from the side the shadow falls on, so
|
||||
// the gnomon shows a face and never hides its own shadow.
|
||||
const TURN = 34 * (Math.PI / 180);
|
||||
let turn = -TURN;
|
||||
const project = (x, y, z = 0) => {
|
||||
const rx = x * Math.cos(turn) - y * Math.sin(turn);
|
||||
const ry = x * Math.sin(turn) + y * Math.cos(turn);
|
||||
return { x: CX + rx, y: CY - ry * SLANT - z * RISE };
|
||||
};
|
||||
const pt = (p) => `${p.x.toFixed(1)},${p.y.toFixed(1)}`;
|
||||
|
||||
const dial = computed(() => {
|
||||
const phi = Math.max(-89, Math.min(89, props.lat)) * RAD;
|
||||
const south = props.lat < 0;
|
||||
// y on the plate points toward the gnomon's pole: north, or south below
|
||||
// the equator; east keeps its side by flipping x with it.
|
||||
const flip = south ? -1 : 1;
|
||||
const toPlate = (v) => ({ x: v.e * flip, y: v.n * flip, z: v.u });
|
||||
// The gnomon's edge points at the elevated pole.
|
||||
const pole = toPlate({ e: 0, n: Math.cos(phi) * flip, u: Math.abs(Math.sin(phi)) });
|
||||
// The style starts at the hour lines' centre, south of the plate's middle.
|
||||
const { dec, hour } = sunNow(props.lon, now.value);
|
||||
const sunEnu = sunVector(phi, dec, hour);
|
||||
const sun = toPlate(sunEnu);
|
||||
// Morning sun on the east throws the shadow west: look from the west.
|
||||
turn = sun.x > 0 ? TURN : -TURN;
|
||||
const origin = { x: 0, y: -R * 0.42 };
|
||||
const across = R * 0.62;
|
||||
const tip = { x: origin.x + pole.x * across, y: origin.y + pole.y * across, z: pole.z * across };
|
||||
const foot = { x: tip.x, y: tip.y, z: 0 };
|
||||
|
||||
// Hour lines, 6 to 18 local solar time: where the style's shadow falls
|
||||
// with the sun on the equator at that hour.
|
||||
const rimHit = (dx, dy) => {
|
||||
// From the origin along (dx, dy) to the numeral ring (radius 0.84 R).
|
||||
const ring = R * 0.84;
|
||||
const b = origin.x * dx + origin.y * dy;
|
||||
const c = origin.x ** 2 + origin.y ** 2 - ring ** 2;
|
||||
const s = -b + Math.sqrt(b * b - c);
|
||||
return { x: origin.x + dx * s, y: origin.y + dy * s };
|
||||
};
|
||||
const hours = [];
|
||||
for (let h = 6; h <= 18; h++) {
|
||||
const s = toPlate(sunVector(phi, 0, (h - 12) * 15 * RAD));
|
||||
let dx;
|
||||
let dy;
|
||||
if (s.z > 0.02) {
|
||||
const k = pole.z / s.z;
|
||||
dx = pole.x - k * s.x;
|
||||
dy = pole.y - k * s.y;
|
||||
} else {
|
||||
dx = -s.x;
|
||||
dy = -s.y;
|
||||
}
|
||||
const len = Math.hypot(dx, dy) || 1;
|
||||
dx /= len;
|
||||
dy /= len;
|
||||
const end = rimHit(dx, dy);
|
||||
const label = rimHit(dx, dy);
|
||||
const out = R * 0.08;
|
||||
hours.push({
|
||||
h,
|
||||
from: project(origin.x, origin.y),
|
||||
to: project(end.x, end.y),
|
||||
label: project(label.x + dx * out, label.y + dy * out),
|
||||
major: h % 3 === 0,
|
||||
});
|
||||
}
|
||||
|
||||
// The sun now, and the shadow of the gnomon's triangle on the plate.
|
||||
const elevation = Math.asin(Math.max(-1, Math.min(1, sunEnu.u))) / RAD;
|
||||
let shadow = null;
|
||||
if (sun.z > 0.03) {
|
||||
const k = tip.z / sun.z;
|
||||
let sx = tip.x - k * sun.x;
|
||||
let sy = tip.y - k * sun.y;
|
||||
// A low sun throws a long shadow; keep it on the plate.
|
||||
const reach = Math.hypot(sx - origin.x, sy - origin.y);
|
||||
const max = R * 1.05;
|
||||
if (reach > max) {
|
||||
sx = origin.x + ((sx - origin.x) * max) / reach;
|
||||
sy = origin.y + ((sy - origin.y) * max) / reach;
|
||||
}
|
||||
shadow = [project(origin.x, origin.y), project(foot.x, foot.y), project(sx, sy)].map(pt).join(' ');
|
||||
}
|
||||
// The sun lights the plate from its side: the bright spot of the bronze
|
||||
// sits toward the sun, nearer the middle the higher it stands.
|
||||
const azimuth = Math.atan2(sun.x, sun.y);
|
||||
const spread = 0.42 * Math.cos(Math.max(0, elevation) * RAD);
|
||||
const lit = project(Math.sin(azimuth) * R * spread, Math.cos(azimuth) * R * spread);
|
||||
const shine = {
|
||||
cx: `${(50 + ((lit.x - CX) / (2 * R)) * 100).toFixed(1)}%`,
|
||||
cy: `${(50 + ((lit.y - CY) / (2 * R * SLANT)) * 100).toFixed(1)}%`,
|
||||
};
|
||||
// The gnomon is a bronze plate a few units thick: its two faces at
|
||||
// x = ±w, drawn far face first, and the top edge between them. The face
|
||||
// turned toward the viewer is the +x one when the turn brings it round.
|
||||
const w = 2.4;
|
||||
const faceAt = (dx) =>
|
||||
[project(origin.x + dx, origin.y), project(foot.x + dx, foot.y), project(tip.x + dx, tip.y, tip.z)].map(pt).join(' ');
|
||||
const nearSide = Math.sin(turn) < 0 ? 1 : -1;
|
||||
const near = faceAt(nearSide * w);
|
||||
const far = faceAt(-nearSide * w);
|
||||
const top = [
|
||||
project(origin.x - w, origin.y),
|
||||
project(tip.x - w, tip.y, tip.z),
|
||||
project(tip.x + w, tip.y, tip.z),
|
||||
project(origin.x + w, origin.y),
|
||||
]
|
||||
.map(pt)
|
||||
.join(' ');
|
||||
const nearLit = sun.z > 0 && Math.sign(sun.x || 1) === nearSide;
|
||||
|
||||
const solar = new Date(now.value + (props.lon / 15) * 3_600_000);
|
||||
const clock = `${String(solar.getUTCHours()).padStart(2, '0')}:${String(solar.getUTCMinutes()).padStart(2, '0')}`;
|
||||
const compass = ['N', 'NE', 'E', 'SE', 'S', 'SW', 'W', 'NW'];
|
||||
const bearing = (Math.atan2(sunEnu.e, sunEnu.n) / RAD + 360) % 360;
|
||||
|
||||
// A small flat compass in the corner, turned to match the plate: each
|
||||
// cardinal's screen direction from the plate's projection (plate y points
|
||||
// to the gnomon's pole, x east, both flipped below the equator).
|
||||
const dir = (e, n) => {
|
||||
const a = project(0, 0);
|
||||
const b = project(e * flip * 40, n * flip * 40);
|
||||
const dx = b.x - a.x;
|
||||
const dy = b.y - a.y;
|
||||
const len = Math.hypot(dx, dy) || 1;
|
||||
return { x: dx / len, y: dy / len };
|
||||
};
|
||||
const cardinals = [
|
||||
{ k: 'N', ...dir(0, 1) },
|
||||
{ k: 'E', ...dir(1, 0) },
|
||||
{ k: 'S', ...dir(0, -1) },
|
||||
{ k: 'W', ...dir(-1, 0) },
|
||||
];
|
||||
const sunDir = elevation > 0 ? dir(sunEnu.e, sunEnu.n) : null;
|
||||
|
||||
return {
|
||||
cardinals,
|
||||
sunDir,
|
||||
hours,
|
||||
shadow,
|
||||
day: elevation > 0,
|
||||
elevation: Math.round(elevation),
|
||||
direction: t(compass[Math.round(bearing / 45) % 8]),
|
||||
shine,
|
||||
clock,
|
||||
gnomon: {
|
||||
near,
|
||||
far,
|
||||
top,
|
||||
nearLit,
|
||||
edge: [project(origin.x, origin.y), project(tip.x, tip.y, tip.z)],
|
||||
},
|
||||
poleLabel: project(0, R * 1.08),
|
||||
poleText: south ? 'S' : 'N',
|
||||
};
|
||||
});
|
||||
|
||||
const ROMAN = ['VI', 'VII', 'VIII', 'IX', 'X', 'XI', 'XII', 'I', 'II', 'III', 'IV', 'V', 'VI'];
|
||||
const plateTop = { cx: CX, cy: CY, rx: R, ry: R * SLANT };
|
||||
// A HUD tick ring round the plate's edge: every 5°, longer every 30°.
|
||||
const ticks = Array.from({ length: 72 }, (_, i) => {
|
||||
const a = (i * 5 * Math.PI) / 180;
|
||||
const major = i % 6 === 0;
|
||||
const r1 = R * 0.99;
|
||||
const r0 = R * (major ? 0.94 : 0.965);
|
||||
return {
|
||||
i,
|
||||
major,
|
||||
x1: CX + Math.cos(a) * r0,
|
||||
y1: CY + Math.sin(a) * r0 * SLANT,
|
||||
x2: CX + Math.cos(a) * r1,
|
||||
y2: CY + Math.sin(a) * r1 * SLANT,
|
||||
};
|
||||
});
|
||||
const caption = computed(() =>
|
||||
dial.value.day
|
||||
? t('Sundial · {time} solar · sun {deg}° {dir}', { time: dial.value.clock, deg: dial.value.elevation, dir: dial.value.direction })
|
||||
: t('Sundial · {time} solar · sun below the horizon', { time: dial.value.clock }),
|
||||
);
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<figure class="sun-dial" :class="{ 'sun-dial--night': !dial.day }">
|
||||
<svg :viewBox="`0 0 ${W} ${H}`" role="img" :aria-label="caption">
|
||||
<defs>
|
||||
<!-- Dark instrument glass, lit cyan toward the sun. -->
|
||||
<radialGradient id="sun-dial-plate" :cx="dial.shine.cx" :cy="dial.shine.cy" r="85%">
|
||||
<stop offset="0%" stop-color="#14394a" />
|
||||
<stop offset="40%" stop-color="#0b2230" />
|
||||
<stop offset="80%" stop-color="#06131b" />
|
||||
<stop offset="100%" stop-color="#040b10" />
|
||||
</radialGradient>
|
||||
<linearGradient id="sun-dial-rim" x1="0" x2="1">
|
||||
<stop offset="0%" stop-color="#03080c" />
|
||||
<stop offset="40%" stop-color="#0d2633" />
|
||||
<stop offset="60%" stop-color="#0a1d27" />
|
||||
<stop offset="100%" stop-color="#02060a" />
|
||||
</linearGradient>
|
||||
<radialGradient id="sun-dial-glow" :cx="dial.shine.cx" :cy="dial.shine.cy" r="55%">
|
||||
<stop offset="0%" stop-color="#36dcff" stop-opacity="0.22" />
|
||||
<stop offset="100%" stop-color="#36dcff" stop-opacity="0" />
|
||||
</radialGradient>
|
||||
<linearGradient id="sun-dial-gnomon-lit" x1="0" y1="1" x2="1" y2="0">
|
||||
<stop offset="0%" stop-color="#11607a" />
|
||||
<stop offset="100%" stop-color="#8af2ff" />
|
||||
</linearGradient>
|
||||
<linearGradient id="sun-dial-gnomon-dark" x1="0" y1="1" x2="1" y2="0">
|
||||
<stop offset="0%" stop-color="#06202b" />
|
||||
<stop offset="100%" stop-color="#145066" />
|
||||
</linearGradient>
|
||||
<filter id="sun-dial-shadow" x="-20%" y="-20%" width="140%" height="140%">
|
||||
<feGaussianBlur stdDeviation="0.7" />
|
||||
</filter>
|
||||
<filter id="sun-dial-soft" x="-20%" y="-20%" width="140%" height="140%">
|
||||
<feGaussianBlur stdDeviation="2" />
|
||||
</filter>
|
||||
<filter id="sun-dial-line-glow" x="-10%" y="-10%" width="120%" height="120%">
|
||||
<feGaussianBlur stdDeviation="0.8" result="b" />
|
||||
<feMerge><feMergeNode in="b" /><feMergeNode in="SourceGraphic" /></feMerge>
|
||||
</filter>
|
||||
</defs>
|
||||
|
||||
<!-- Ground glow under the plate, then the plate's edge and its top. -->
|
||||
<ellipse :cx="plateTop.cx" :cy="plateTop.cy + THICK + 6" :rx="plateTop.rx * 1.02" :ry="plateTop.ry" fill="#000" opacity="0.55" filter="url(#sun-dial-soft)" />
|
||||
<path
|
||||
:d="`M ${CX - R} ${CY} A ${R} ${R * SLANT} 0 0 0 ${CX + R} ${CY} L ${CX + R} ${CY + THICK} A ${R} ${R * SLANT} 0 0 1 ${CX - R} ${CY + THICK} Z`"
|
||||
fill="url(#sun-dial-rim)"
|
||||
stroke="rgba(54, 220, 255, 0.22)"
|
||||
stroke-width="0.6"
|
||||
/>
|
||||
<ellipse v-bind="plateTop" fill="url(#sun-dial-plate)" stroke="rgba(54, 220, 255, 0.55)" stroke-width="0.9" />
|
||||
<ellipse v-bind="plateTop" fill="url(#sun-dial-glow)" />
|
||||
<ellipse :cx="CX" :cy="CY" :rx="R * 0.88" :ry="R * 0.88 * SLANT" fill="none" stroke="rgba(54, 220, 255, 0.28)" stroke-width="0.5" />
|
||||
<ellipse :cx="CX" :cy="CY" :rx="R * 0.62" :ry="R * 0.62 * SLANT" fill="none" stroke="rgba(54, 220, 255, 0.14)" stroke-width="0.5" stroke-dasharray="2 3" />
|
||||
<g class="sun-dial__ticks">
|
||||
<line v-for="tick in ticks" :key="tick.i" :x1="tick.x1" :y1="tick.y1" :x2="tick.x2" :y2="tick.y2" :class="{ major: tick.major }" />
|
||||
</g>
|
||||
|
||||
<!-- Hour lines and numerals. -->
|
||||
<g class="sun-dial__hours">
|
||||
<line
|
||||
v-for="line in dial.hours"
|
||||
:key="`l${line.h}`"
|
||||
:x1="line.from.x"
|
||||
:y1="line.from.y"
|
||||
:x2="line.to.x"
|
||||
:y2="line.to.y"
|
||||
:class="{ major: line.major }"
|
||||
/>
|
||||
<text v-for="(line, i) in dial.hours" :key="`t${line.h}`" :x="line.label.x" :y="line.label.y + 2.6">{{ ROMAN[i] }}</text>
|
||||
</g>
|
||||
<text :x="dial.poleLabel.x" :y="dial.poleLabel.y + 3" class="sun-dial__pole">{{ t(dial.poleText) }}</text>
|
||||
|
||||
<!-- The shadow, then the gnomon standing over it. -->
|
||||
<polygon v-if="dial.shadow" :points="dial.shadow" fill="#000" opacity="0.6" filter="url(#sun-dial-shadow)" />
|
||||
<polygon :points="dial.gnomon.far" fill="#03141b" />
|
||||
<polygon :points="dial.gnomon.top" :fill="dial.day ? '#7af0ff' : '#1d5a6b'" stroke="#03141b" stroke-width="0.4" />
|
||||
<polygon :points="dial.gnomon.near" :fill="dial.gnomon.nearLit ? 'url(#sun-dial-gnomon-lit)' : 'url(#sun-dial-gnomon-dark)'" stroke="rgba(54, 220, 255, 0.5)" stroke-width="0.5" />
|
||||
<line
|
||||
:x1="dial.gnomon.edge[0].x"
|
||||
:y1="dial.gnomon.edge[0].y"
|
||||
:x2="dial.gnomon.edge[1].x"
|
||||
:y2="dial.gnomon.edge[1].y"
|
||||
:stroke="dial.day ? '#b8f8ff' : '#2f7d92'"
|
||||
stroke-width="1"
|
||||
stroke-linecap="round"
|
||||
filter="url(#sun-dial-line-glow)"
|
||||
/>
|
||||
|
||||
<!-- Small compass, turned like the plate. -->
|
||||
<g class="sun-dial__compass" :transform="`translate(${W - 30} 30)`">
|
||||
<circle r="15" class="sun-dial__compass-ring" />
|
||||
<circle r="11" class="sun-dial__compass-inner" />
|
||||
<line
|
||||
v-for="c in dial.cardinals"
|
||||
:key="`t${c.k}`"
|
||||
:x1="c.x * 12"
|
||||
:y1="c.y * 12"
|
||||
:x2="c.x * 15"
|
||||
:y2="c.y * 15"
|
||||
class="sun-dial__compass-tick"
|
||||
/>
|
||||
<path
|
||||
:d="`M ${dial.cardinals[0].x * 9.5} ${dial.cardinals[0].y * 9.5} L ${-dial.cardinals[0].y * 2.6} ${dial.cardinals[0].x * 2.6} L ${dial.cardinals[0].y * 2.6} ${-dial.cardinals[0].x * 2.6} Z`"
|
||||
class="sun-dial__compass-north"
|
||||
/>
|
||||
<path
|
||||
:d="`M ${dial.cardinals[2].x * 9.5} ${dial.cardinals[2].y * 9.5} L ${-dial.cardinals[2].y * 2.6} ${dial.cardinals[2].x * 2.6} L ${dial.cardinals[2].y * 2.6} ${-dial.cardinals[2].x * 2.6} Z`"
|
||||
class="sun-dial__compass-south"
|
||||
/>
|
||||
<circle v-if="dial.sunDir" :cx="dial.sunDir.x * 15" :cy="dial.sunDir.y * 15" r="2.4" class="sun-dial__compass-sun" />
|
||||
<text
|
||||
v-for="c in dial.cardinals"
|
||||
:key="c.k"
|
||||
:x="c.x * 20"
|
||||
:y="c.y * 20 + 2.3"
|
||||
:class="['sun-dial__compass-label', { north: c.k === 'N' }]"
|
||||
>{{ t(c.k) }}</text>
|
||||
</g>
|
||||
</svg>
|
||||
<figcaption>{{ caption }}</figcaption>
|
||||
</figure>
|
||||
</template>
|
||||
@@ -0,0 +1,412 @@
|
||||
<script setup>
|
||||
import { computed, onBeforeUnmount, onMounted, ref, watch } from 'vue';
|
||||
import { storeToRefs } from 'pinia';
|
||||
import { contextNeedle, contextSearchText, matchesContextSearch } from '../../contextSearch.js';
|
||||
import { formatNumber, t, tn } from '../../../i18n/index.js';
|
||||
import { citiesAround, countryName, nearestCity } from '../../../data/wikidataCities.js';
|
||||
import { useEntityCardStore } from '../../stores/entityCard.js';
|
||||
import { useOmnibarStore } from '../../stores/omnibar.js';
|
||||
import { shownLayerName } from '../../layerNames.js';
|
||||
import { entityKind } from '../../../data/entityContext.js';
|
||||
import SpotConditions from './SpotConditions.vue';
|
||||
import SunDial from './SunDial.vue';
|
||||
import AltitudeGraph from './AltitudeGraph.vue';
|
||||
|
||||
// What the Context panel shows while nothing is picked: where the camera is
|
||||
// looking (place, region, local solar time, daylight, how wide the view is),
|
||||
// the towns in it, what the loaded layers have in view closest to the middle
|
||||
// first, and switches for the most used layers that are off. Any row opens
|
||||
// that item's card. It reads again when the camera settles, and every few
|
||||
// seconds so moving things stay current.
|
||||
const store = useEntityCardStore();
|
||||
|
||||
// What a moving item is doing, as the layer's own display shows it (transit
|
||||
// vehicles report it): an icon on its row, its words on hover.
|
||||
const MOTION_STATES = {
|
||||
moving: { icon: 'play_arrow', label: () => t('Moving') },
|
||||
stopped: { icon: 'pause', label: () => t('Stopped', { context: 'vehicle motion' }) },
|
||||
waiting: { icon: 'schedule', label: () => t('Waiting for update') },
|
||||
'no-fix': { icon: 'location_off', label: () => t('No recent fix') },
|
||||
};
|
||||
const motionOf = (item) => MOTION_STATES[item.identity?.record?.motion] || null;
|
||||
const { view } = storeToRefs(store);
|
||||
const tick = ref(0);
|
||||
let timer = null;
|
||||
onMounted(() => {
|
||||
timer = setInterval(() => tick.value++, 4000);
|
||||
});
|
||||
onBeforeUnmount(() => clearInterval(timer));
|
||||
|
||||
const groups = computed(() => {
|
||||
void tick.value;
|
||||
void view.value;
|
||||
return store.inView({ perLayer: contextNeedle.value ? 12 : 3, query: contextNeedle.value });
|
||||
});
|
||||
const shownTowns = computed(() => towns.value.filter((town) => matchesContextSearch(town.name)));
|
||||
const total = computed(() => groups.value.reduce((sum, group) => sum + group.count, 0));
|
||||
const totalLine = computed(() => {
|
||||
const things = tn(total.value, '{count} thing', '{count} things');
|
||||
const layers = tn(groups.value.length, '{count} layer', '{count} layers');
|
||||
return t('{things} in view from {layers}', { things, layers });
|
||||
});
|
||||
|
||||
// The city at (or nearest to) the middle of the view, from the bundled cities
|
||||
// pack: no place service is asked.
|
||||
const place = ref(null);
|
||||
let placeFor = '';
|
||||
watch(
|
||||
view,
|
||||
async (current) => {
|
||||
if (!current) return;
|
||||
const key = `${current.center.lat.toFixed(2)},${current.center.lon.toFixed(2)}`;
|
||||
if (key === placeFor) return;
|
||||
placeFor = key;
|
||||
try {
|
||||
const city = await nearestCity(current.center.lat, current.center.lon);
|
||||
if (placeFor === key) place.value = city ? { name: city.name, state: null, country: countryName(city.country) } : null;
|
||||
} catch {
|
||||
if (placeFor === key) place.value = null;
|
||||
}
|
||||
},
|
||||
{ immediate: true },
|
||||
);
|
||||
|
||||
const where = computed(() => {
|
||||
const at = view.value?.center;
|
||||
if (!at) return '';
|
||||
return `${Math.abs(at.lat).toFixed(3)}°${at.lat >= 0 ? 'N' : 'S'} ${Math.abs(at.lon).toFixed(3)}°${at.lon >= 0 ? 'E' : 'W'}`;
|
||||
});
|
||||
const height = computed(() => {
|
||||
const m = view.value?.heightM ?? 0;
|
||||
return m >= 10_000
|
||||
? t('{n} km up', { n: formatNumber(Math.round(m / 1000)) })
|
||||
: t('{n} m up', { n: formatNumber(Math.round(m)) });
|
||||
});
|
||||
const placeName = computed(() => {
|
||||
const found = place.value;
|
||||
if (!found) return t('This view');
|
||||
return [found.name, found.state || found.country].filter(Boolean).join(', ');
|
||||
});
|
||||
// The sun at the middle of the view, from the usual low-precision formula
|
||||
// (good to a fraction of a degree): its elevation, and the local solar time.
|
||||
function sunElevation(lat, lon, when) {
|
||||
const rad = Math.PI / 180;
|
||||
const d = (when - Date.UTC(2000, 0, 1, 12)) / 86_400_000;
|
||||
const g = (357.529 + 0.98560028 * d) * rad;
|
||||
const q = 280.459 + 0.98564736 * d;
|
||||
const ecliptic = (q + 1.915 * Math.sin(g) + 0.02 * Math.sin(2 * g)) * rad;
|
||||
const tilt = (23.439 - 0.00000036 * d) * rad;
|
||||
const ra = Math.atan2(Math.cos(tilt) * Math.sin(ecliptic), Math.cos(ecliptic));
|
||||
const dec = Math.asin(Math.sin(tilt) * Math.sin(ecliptic));
|
||||
const sidereal = ((18.697374558 + 24.06570982441908 * d) % 24) * 15;
|
||||
const hourAngle = (sidereal + lon) * rad - ra;
|
||||
return (
|
||||
Math.asin(Math.sin(lat * rad) * Math.sin(dec) + Math.cos(lat * rad) * Math.cos(dec) * Math.cos(hourAngle)) / rad
|
||||
);
|
||||
}
|
||||
|
||||
// The sundial shows only with the whole globe in view, not zoomed in. It
|
||||
// goes by the camera's height: a tilted view near the ground sees the
|
||||
// horizon, so the view's extent reads as the whole globe there too.
|
||||
const GLOBE_HEIGHT_M = 5_000_000;
|
||||
const globeView = computed(() => {
|
||||
const current = view.value;
|
||||
return Boolean(current?.center) && (current.heightM ?? 0) >= GLOBE_HEIGHT_M;
|
||||
});
|
||||
|
||||
// Local time and daylight at the middle of the view. With the whole globe in
|
||||
// view they say little, so they are left out there. The camera's height has
|
||||
// its own graph.
|
||||
const facts = computed(() => {
|
||||
void tick.value;
|
||||
const current = view.value;
|
||||
if (!current || globeView.value) return [];
|
||||
const { lat, lon } = current.center;
|
||||
const now = Date.now();
|
||||
const solar = new Date(now + (lon / 15) * 3_600_000);
|
||||
const time = `${String(solar.getUTCHours()).padStart(2, '0')}:${String(solar.getUTCMinutes()).padStart(2, '0')}`;
|
||||
const sun = sunElevation(lat, lon, now);
|
||||
const light = sun > 6 ? t('Day') : sun > -6 ? t('Twilight') : t('Night');
|
||||
return [
|
||||
{ label: t('Local solar time'), value: time },
|
||||
{ label: t('Daylight'), value: `${light} · ${t('sun {n}°', { n: Math.round(sun) })}` },
|
||||
];
|
||||
});
|
||||
// A reading of the camera's height each time the view settles, and on the
|
||||
// timer, for its graph.
|
||||
const cameraTick = ref(0);
|
||||
watch([view, tick], () => cameraTick.value++);
|
||||
|
||||
// Towns in the view, nearest the middle first.
|
||||
const towns = ref([]);
|
||||
let townsFor = '';
|
||||
watch(
|
||||
view,
|
||||
async (current) => {
|
||||
if (!current || current.heightM > 400_000) {
|
||||
// Forget the last place too, so coming back down reads it again.
|
||||
townsFor = '';
|
||||
towns.value = [];
|
||||
return;
|
||||
}
|
||||
const key = `${current.center.lat.toFixed(2)},${current.center.lon.toFixed(2)},${Math.round(current.heightM / 1000)}`;
|
||||
if (key === townsFor) return;
|
||||
townsFor = key;
|
||||
try {
|
||||
// The most populous places in view; only larger cities from high up.
|
||||
const found = await citiesAround({
|
||||
latitude: current.center.lat,
|
||||
longitude: current.center.lon,
|
||||
radiusKm: Math.round(Math.min(150, Math.max(15, current.heightM / 1500))),
|
||||
minPopulation: current.heightM > 60_000 ? 50_000 : 0,
|
||||
limit: 8,
|
||||
});
|
||||
if (townsFor === key) towns.value = found.filter((town) => town.name !== place.value?.name).slice(0, 5);
|
||||
} catch {
|
||||
if (townsFor === key) towns.value = [];
|
||||
}
|
||||
},
|
||||
{ immediate: true },
|
||||
);
|
||||
const goToTown = (town) =>
|
||||
omnibar.runner
|
||||
? omnibar.runner('fly_to_location', { latitude: town.latitude, longitude: town.longitude, query: town.name })
|
||||
: null;
|
||||
|
||||
// What each layer that is on is made of (aircraft: civilian, military and on
|
||||
// the ground, then by type; vessels by type; and so on): of everything it has
|
||||
// at globe view, of what is in view once zoomed in. Each split is a bar whose
|
||||
// segments are its parts.
|
||||
const SPLIT_COLORS = ['#36dcff', '#ffb547', '#8f9aa3', '#c792ff', '#4be3a0'];
|
||||
function breakdownOf(layerId, loaded) {
|
||||
const found = store.breakdown(layerId, globeView.value ? {} : { rect: view.value?.rect });
|
||||
if (!found) return null;
|
||||
const basis = globeView.value
|
||||
? loaded !== null && loaded > found.total
|
||||
? t('Of {n} read, {total} loaded', { n: formatNumber(found.total), total: formatNumber(loaded) })
|
||||
: t('Of all {n}', { n: formatNumber(found.total) })
|
||||
: t('Of {n} in view', { n: formatNumber(found.total) });
|
||||
return {
|
||||
basis,
|
||||
splits: found.splits.map((split) => ({
|
||||
title: t(split.title),
|
||||
parts: split.parts.map((part, index) => ({
|
||||
label: t(part.label),
|
||||
count: formatNumber(part.count),
|
||||
share: `${((part.count / found.total) * 100).toFixed(1)}%`,
|
||||
color: SPLIT_COLORS[index % SPLIT_COLORS.length],
|
||||
})),
|
||||
})),
|
||||
};
|
||||
}
|
||||
|
||||
// The layers that are on: their state, how many items each holds and how
|
||||
// many of those are in view, so the card reflects what Data Layers has on.
|
||||
const liveLayers = computed(() => {
|
||||
void tick.value;
|
||||
const inViewCount = Object.fromEntries(groups.value.map((g) => [g.layerId, g.count]));
|
||||
const now = Date.now();
|
||||
return store.liveLayers().map((row) => {
|
||||
const stats = row.stats || {};
|
||||
const state = stats.error
|
||||
? { tone: 'error', text: t('Error') }
|
||||
: stats.loading && !stats.count
|
||||
? { tone: 'loading', text: t('Loading') }
|
||||
: stats.stale
|
||||
? { tone: 'stale', text: t('Stale') }
|
||||
: { tone: 'live', text: t('Live') };
|
||||
const age = Number.isFinite(stats.lastUpdate) ? Math.max(0, Math.round((now - stats.lastUpdate) / 1000)) : null;
|
||||
const updated =
|
||||
age === null ? '' : age < 60 ? t('{n} s ago', { n: age }) : age < 3600 ? t('{n} min ago', { n: Math.round(age / 60) }) : t('{n} h ago', { n: Math.round(age / 3600) });
|
||||
return {
|
||||
id: row.id,
|
||||
icon: row.icon || '',
|
||||
name: shownLayerName(row.name, row.id),
|
||||
state,
|
||||
total: Number.isFinite(stats.count) ? stats.count : null,
|
||||
inView: inViewCount[row.id] ?? 0,
|
||||
updated,
|
||||
breakdown: breakdownOf(row.id, Number.isFinite(stats.count) ? stats.count : null),
|
||||
};
|
||||
});
|
||||
});
|
||||
// With the whole globe in view, what a point has nearby says little; the
|
||||
// panel shows worldwide counts instead, one tile per layer: how many each
|
||||
// layer that is on has loaded, and the most used layers that are off as
|
||||
// tiles that turn them on. A count is kept while its layer reloads, so the
|
||||
// tiles hold steady, and it does not change as the camera moves.
|
||||
const lastCounts = new Map();
|
||||
const TILE_ICONS = { cctv: 'videocam', traffic: 'traffic', fires: 'local_fire_department' };
|
||||
const tileIcon = (id) => TILE_ICONS[id] || entityKind(id).icon;
|
||||
const worldTiles = computed(() => {
|
||||
void tick.value;
|
||||
const on = liveLayers.value
|
||||
.map((layer) => {
|
||||
if (layer.total !== null) lastCounts.set(layer.id, layer.total);
|
||||
return { id: layer.id, name: layer.name, icon: tileIcon(layer.id), on: true, count: lastCounts.get(layer.id) ?? null };
|
||||
})
|
||||
.sort((a, b) => (b.count ?? -1) - (a.count ?? -1));
|
||||
const off = offLayers.value.map((layer) => ({ id: layer.id, name: layer.name, icon: tileIcon(layer.id), on: false, count: null }));
|
||||
return [...on, ...off].slice(0, 8);
|
||||
});
|
||||
|
||||
function turnOff(layer) {
|
||||
void omnibar.controls?.setLayer(layer.id, false);
|
||||
setTimeout(() => tick.value++, 800);
|
||||
}
|
||||
|
||||
// The most used layers that are off, as switches.
|
||||
const omnibar = useOmnibarStore();
|
||||
const POPULAR = ['flights', 'ais-live-vessels', 'satellites', 'earthquakes', 'cctv', 'fires', 'traffic', 'weather-cyclones'];
|
||||
const offLayers = computed(() => {
|
||||
void tick.value;
|
||||
return (omnibar.controls?.layers() || [])
|
||||
.filter((layer) => POPULAR.includes(layer.id) && !layer.enabled)
|
||||
.sort((a, b) => POPULAR.indexOf(a.id) - POPULAR.indexOf(b.id))
|
||||
.slice(0, 4)
|
||||
.map((layer) => ({ id: layer.id, name: shownLayerName(layer.name, layer.id) }));
|
||||
});
|
||||
function turnOn(layer) {
|
||||
void omnibar.controls?.setLayer(layer.id, true);
|
||||
setTimeout(() => tick.value++, 1500);
|
||||
}
|
||||
|
||||
const distance = (km) =>
|
||||
km < 1
|
||||
? t('{n} m', { n: formatNumber(Math.round(km * 1000)) })
|
||||
: t('{n} km', { n: formatNumber(km < 10 ? Number(km.toFixed(1)) : Math.round(km)) });
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<section class="view-context" :aria-label="t('In view')">
|
||||
<!-- With the whole globe in view there is no place to name. -->
|
||||
<h3 v-if="globeView" class="view-context__title">{{ t('Globe view') }}</h3>
|
||||
<template v-else>
|
||||
<header class="view-context__head">
|
||||
<span class="material-symbols-outlined view-context__icon" aria-hidden="true">visibility</span>
|
||||
<div class="view-context__kind">
|
||||
<span>{{ t('In view') }}</span>
|
||||
<span class="view-context__sub">{{ t('Nothing selected') }}</span>
|
||||
</div>
|
||||
</header>
|
||||
<h3 class="view-context__title">{{ placeName }}</h3>
|
||||
<p v-if="place && place.country && place.country !== place.name" class="view-context__region">{{ [place.state !== place.name ? place.state : null, place.country].filter(Boolean).join(' · ') }}</p>
|
||||
<p v-if="where" class="view-context__where">{{ where }}</p>
|
||||
</template>
|
||||
|
||||
<div v-if="globeView && worldTiles.length" class="view-context__world">
|
||||
<h4>{{ t('Worldwide now') }}</h4>
|
||||
<div class="view-context__world-grid">
|
||||
<component :is="tile.on ? 'div' : 'button'" v-for="tile in worldTiles" :key="tile.id" :type="tile.on ? undefined : 'button'" class="view-context__world-tile" :class="{ 'is-off': !tile.on }" :title="tile.on ? undefined : t('Turn on {name}', { name: tile.name })" @click="tile.on ? undefined : turnOn(tile)">
|
||||
<span class="material-symbols-outlined" aria-hidden="true">{{ tile.icon }}</span>
|
||||
<strong>{{ tile.on ? (tile.count === null ? '…' : formatNumber(tile.count)) : t('Off') }}</strong>
|
||||
<span>{{ tile.name }}</span>
|
||||
</component>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- The sun dial fills the globe view only while no layer is on; once one is, its counts lead. -->
|
||||
<SunDial v-if="globeView && !liveLayers.length" :lat="view.center.lat" :lon="view.center.lon" />
|
||||
|
||||
<!-- The layers that are on, and what each is made of, lead. -->
|
||||
<div v-if="liveLayers.length" class="view-context__live">
|
||||
<h4>{{ t('Layers on') }} <span class="view-context__count">{{ liveLayers.length }}</span></h4>
|
||||
<ul>
|
||||
<li v-for="layer in liveLayers" :key="layer.id" class="view-context__live-item">
|
||||
<div class="view-context__live-row">
|
||||
<span class="view-context__live-icon" aria-hidden="true">{{ layer.icon }}</span>
|
||||
<span class="view-context__live-main">
|
||||
<span class="view-context__live-name">{{ layer.name }}</span>
|
||||
<span class="view-context__live-meta">
|
||||
<template v-if="layer.total !== null">{{ t('{n} loaded', { n: formatNumber(layer.total) }) }} · </template>{{ t('{n} in view', { n: layer.inView }) }}<template v-if="layer.updated"> · {{ layer.updated }}</template>
|
||||
</span>
|
||||
</span>
|
||||
<span class="view-context__live-state" :class="`view-context__live-state--${layer.state.tone}`">{{ layer.state.text }}</span>
|
||||
<button type="button" class="view-context__live-off" :aria-label="t('Turn off {name}', { name: layer.name })" :title="t('Turn off {name}', { name: layer.name })" @click="turnOff(layer)">
|
||||
<span class="material-symbols-outlined" aria-hidden="true">close</span>
|
||||
</button>
|
||||
</div>
|
||||
<div v-if="layer.breakdown" class="view-context__split">
|
||||
<p class="view-context__split-basis">{{ layer.breakdown.basis }}</p>
|
||||
<div v-for="split in layer.breakdown.splits" :key="split.title" class="view-context__split-set">
|
||||
<div class="view-context__split-bar" role="img" :aria-label="split.parts.map((part) => `${part.label} ${part.count}`).join(', ')">
|
||||
<i v-for="part in split.parts" :key="part.label" :style="{ width: part.share, background: `linear-gradient(to right, ${part.color}, ${part.color}99)` }"></i>
|
||||
</div>
|
||||
<ul class="view-context__split-legend">
|
||||
<li v-for="part in split.parts" :key="part.label"><i :style="{ background: part.color }" aria-hidden="true"></i><span>{{ part.label }}</span><strong>{{ part.count }}</strong></li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
<AltitudeGraph v-if="Number.isFinite(view?.heightM)" class="view-context__camera" :altitude-m="view.heightM" :tick="cameraTick" :label="t('Camera height')" unit="metric" compact />
|
||||
|
||||
<SpotConditions v-if="view?.center && !globeView" :lat="view.center.lat" :lon="view.center.lon">
|
||||
<template #before-weather>
|
||||
<div v-if="facts.length" class="view-context__facts">
|
||||
<div v-for="fact in facts" :key="fact.label" class="view-context__fact">
|
||||
<span>{{ fact.label }}</span>
|
||||
<strong>{{ fact.value }}</strong>
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
<template #after-weather>
|
||||
<div v-if="groups.length" class="view-context__groups">
|
||||
<p class="view-context__total">{{ totalLine }}</p>
|
||||
<div v-for="group in groups" :key="group.layerId" class="view-context__group">
|
||||
<h4>
|
||||
<span class="material-symbols-outlined" aria-hidden="true">{{ group.icon }}</span>
|
||||
<span>{{ shownLayerName(group.layerName, group.layerId) }}</span>
|
||||
<span class="view-context__count">{{ group.count }}</span>
|
||||
</h4>
|
||||
<ul>
|
||||
<li v-for="item in group.items" :key="item.key">
|
||||
<button type="button" @click="store.select(item.identity, { fly: true })">
|
||||
<span
|
||||
v-if="motionOf(item)"
|
||||
class="material-symbols-outlined view-context__row-motion"
|
||||
:data-motion="item.identity.record.motion"
|
||||
:title="motionOf(item).label()"
|
||||
role="img"
|
||||
:aria-label="motionOf(item).label()"
|
||||
>{{ motionOf(item).icon }}</span>
|
||||
<span class="view-context__row-title">{{ item.title }}</span>
|
||||
<span class="view-context__row-meta">{{ distance(item.distanceKm) }}</span>
|
||||
</button>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
<p v-else-if="contextNeedle" class="view-context__empty">{{ t('Nothing in view matches “{text}”.', { text: contextSearchText.trim() }) }}</p>
|
||||
<p v-else-if="liveLayers.length" class="view-context__empty">{{ t('Nothing from the layers that are on is in view here. Zoom out to see more.') }}</p>
|
||||
<p v-else class="view-context__empty">{{ t('No loaded layer has anything in view. Turn some on in Data Layers.') }}</p>
|
||||
</template>
|
||||
</SpotConditions>
|
||||
|
||||
<div v-if="shownTowns.length" class="view-context__towns">
|
||||
<h4>{{ t('Places in view') }}</h4>
|
||||
<div class="view-context__chips">
|
||||
<button v-for="town in shownTowns" :key="town.name" type="button" @click="goToTown(town)">{{ town.name }}</button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
<div v-if="offLayers.length && !globeView" class="view-context__towns">
|
||||
<h4>{{ t('Show here') }}</h4>
|
||||
<div class="view-context__chips">
|
||||
<button v-for="layer in offLayers" :key="layer.id" type="button" class="view-context__chip--layer" @click="turnOn(layer)">
|
||||
<span class="material-symbols-outlined" aria-hidden="true">add</span>{{ layer.name }}
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="view-context__actions">
|
||||
<button type="button" class="entity-card__action entity-card__action--ask" @click="store.askAboutView(groups)">
|
||||
<svg viewBox="0 0 24 24" width="15" height="15" fill="none" stroke="currentColor" stroke-width="1.8" aria-hidden="true"><path d="M4 5h16v11H9l-5 4z" /></svg>{{ t("Ask GEV what's here") }}
|
||||
</button>
|
||||
</div>
|
||||
</section>
|
||||
</template>
|
||||
@@ -1,4 +1,6 @@
|
||||
import { nextTick } from 'vue';
|
||||
import { useOmnibarStore } from '../ui/stores/omnibar.js';
|
||||
import { applicationPinia } from '../ui/vueRuntime.js';
|
||||
import { bindAssistantPanelLayout, bindLayoutDock } from './panelLayout.js';
|
||||
import { bindChatControl } from './chatControl.js';
|
||||
import { bindVoiceMiniPreview } from './voiceMiniPreview.js';
|
||||
@@ -334,5 +336,16 @@ export function createVoiceCommands({
|
||||
if (session.disposed) cleanup();
|
||||
else adapter.bindControls?.();
|
||||
window.__gevVoiceCommands = controls;
|
||||
// The omnibar runs the same actions directly, without a model.
|
||||
// A session already gone leaves the omnibar without a runner.
|
||||
if (!session.disposed) {
|
||||
const omnibar = useOmnibarStore(applicationPinia());
|
||||
omnibar.connectRunner((name, args) => runner(name, args));
|
||||
session.signal.addEventListener(
|
||||
'abort',
|
||||
() => omnibar.connectRunner(null),
|
||||
{ once: true },
|
||||
);
|
||||
}
|
||||
return controls;
|
||||
}
|
||||
@@ -48,10 +48,15 @@
|
||||
@import './src/ui/styles/rail-edge.css';
|
||||
@import './src/ui/styles/rail-split.css';
|
||||
@import './src/ui/styles/left-tools.css';
|
||||
@import './src/ui/styles/entity-card.css';
|
||||
@import './src/ui/styles/context-dock.css';
|
||||
@import './src/ui/styles/spot-conditions.css';
|
||||
@import './src/ui/styles/sun-dial.css';
|
||||
@import './src/ui/styles/panel-edge.css';
|
||||
@import './src/ui/styles/visual-panel.css';
|
||||
@import './src/ui/styles/layer-section-index.css';
|
||||
@import './src/ui/styles/layer-finder.css';
|
||||
@import './src/ui/styles/context-tabs.css';
|
||||
@import './src/ui/styles/cockpit-panels.css';
|
||||
@import './src/ui/styles/ai-chat.css';
|
||||
@import './src/ui/styles/scope-off-shadows.css';
|
||||
|
||||
Reference in new issue
Block a user