poe-svelte-ui-lib 2.3.1 → 2.3.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/ExpandIcon.svelte +19 -0
- package/dist/ExpandIcon.svelte.d.ts +7 -0
- package/dist/SectionHead.svelte +21 -0
- package/dist/SectionHead.svelte.d.ts +9 -0
- package/dist/WidgetDeviceInfo/WidgetDeviceInfo.svelte +4 -4
- package/dist/WidgetFileSystem/WidgetFileSystem.svelte +1 -1
- package/dist/WidgetMap/WidgetMap.svelte +1 -1
- package/dist/WidgetMap/mission/MapAgro.svelte +37 -46
- package/dist/WidgetMap/mission/MapRoute.svelte +18 -35
- package/dist/WidgetMap/mission/MissionSim.svelte +9 -4
- package/dist/WidgetMap/mission/MissionSim.svelte.d.ts +1 -0
- package/dist/WidgetPFD/WidgetPFD.svelte +3 -3
- package/dist/WidgetRGBStrip/WidgetRGBStrip.svelte +8 -21
- package/dist/WidgetStackInfo/WidgetStackInfo.svelte +2 -2
- package/dist/WidgetWiFi/WidgetWiFi.svelte +6 -6
- package/dist/index.d.ts +2 -0
- package/dist/index.js +2 -0
- package/dist/locales/translations.d.ts +15 -0
- package/dist/locales/translations.js +3 -0
- package/package.json +1 -1
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
<!-- $lib/ExpandIcon.svelte - значок раскрытия области: круглая кнопка со стрелкой вниз (можно раскрыть) или вверх (свернуть); рамка подсвечивается при наведении на предка с классом group -->
|
|
2
|
+
<script lang="ts">
|
|
3
|
+
import { twMerge } from "tailwind-merge"
|
|
4
|
+
import ArrowIcon from "./libIcons/ArrowIcon.svelte"
|
|
5
|
+
|
|
6
|
+
let { open = false, class: className = "" }: { open?: boolean; class?: string } = $props()
|
|
7
|
+
</script>
|
|
8
|
+
|
|
9
|
+
<span
|
|
10
|
+
class={twMerge(
|
|
11
|
+
"flex size-7 shrink-0 items-center justify-center rounded-full border border-(--border-color) text-(--accent-text) transition-colors duration-150 group-hover:border-(--accent-text)",
|
|
12
|
+
className,
|
|
13
|
+
)}
|
|
14
|
+
aria-hidden="true"
|
|
15
|
+
>
|
|
16
|
+
<span class="flex size-3.5 transition-transform duration-150 [&_svg]:h-full [&_svg]:w-full" style="transform: rotate({open ? -90 : 90}deg)">
|
|
17
|
+
<ArrowIcon />
|
|
18
|
+
</span>
|
|
19
|
+
</span>
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
<!-- $lib/SectionHead.svelte - заголовок сворачиваемого раздела внутри виджета: название, под ним сводка, справа значок раскрытия; вся строка кликабельна и подсвечивается при наведении. onToggle - если открытость считает родитель -->
|
|
2
|
+
<script lang="ts">
|
|
3
|
+
import ExpandIcon from "./ExpandIcon.svelte"
|
|
4
|
+
|
|
5
|
+
let { title, summary = "", open = $bindable(false), onToggle }: { title: string; summary?: string; open?: boolean; onToggle?: () => void } = $props()
|
|
6
|
+
</script>
|
|
7
|
+
|
|
8
|
+
<button
|
|
9
|
+
type="button"
|
|
10
|
+
class="group -m-1.5 flex w-[calc(100%+0.75rem)] cursor-pointer items-center gap-3 rounded-lg border-none bg-transparent p-1.5 text-left transition-colors duration-150 hover:bg-(--container-color)"
|
|
11
|
+
aria-expanded={open}
|
|
12
|
+
onclick={() => (onToggle ? onToggle() : (open = !open))}
|
|
13
|
+
>
|
|
14
|
+
<span class="flex min-w-0 flex-1 flex-col gap-0.5">
|
|
15
|
+
<span class="text-[13px] font-semibold text-(--font-color)">{title}</span>
|
|
16
|
+
{#if summary}
|
|
17
|
+
<span class="text-[12px] text-(--muted-color) tabular-nums {open ? '' : 'line-clamp-2'}">{summary}</span>
|
|
18
|
+
{/if}
|
|
19
|
+
</span>
|
|
20
|
+
<ExpandIcon {open} />
|
|
21
|
+
</button>
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
type $$ComponentProps = {
|
|
2
|
+
title: string;
|
|
3
|
+
summary?: string;
|
|
4
|
+
open?: boolean;
|
|
5
|
+
onToggle?: () => void;
|
|
6
|
+
};
|
|
7
|
+
declare const SectionHead: import("svelte").Component<$$ComponentProps, {}, "open">;
|
|
8
|
+
type SectionHead = ReturnType<typeof SectionHead>;
|
|
9
|
+
export default SectionHead;
|
|
@@ -91,7 +91,7 @@
|
|
|
91
91
|
</script>
|
|
92
92
|
|
|
93
93
|
<div
|
|
94
|
-
class={twMerge("relative flex w-full flex-col gap-4 rounded-2xl border border-(--hairline-color) bg-(--container-color) p-4", wrapperClass)}
|
|
94
|
+
class={twMerge("@container relative flex w-full flex-col gap-4 rounded-2xl border border-(--hairline-color) bg-(--container-color) p-4", wrapperClass)}
|
|
95
95
|
style={rootStyle}
|
|
96
96
|
>
|
|
97
97
|
<!-- Заголовок -->
|
|
@@ -119,7 +119,7 @@
|
|
|
119
119
|
<div use:hint={{ text: $T("widget.info.hint.sn"), enabled: $hints }}>
|
|
120
120
|
<UI.Input label={{ name: $T("widget.info.sn") }} value={info.DevSN} readonly help={{ copyButton: true }} />
|
|
121
121
|
</div>
|
|
122
|
-
<div class="grid grid-cols-1 gap-2
|
|
122
|
+
<div class="grid grid-cols-1 gap-2 @md:grid-cols-3">
|
|
123
123
|
<div use:hint={{ text: $T("widget.info.hint.id"), enabled: $hints }}>
|
|
124
124
|
<UI.Input label={{ name: $T("widget.info.id") }} value={info.DevID} readonly />
|
|
125
125
|
</div>
|
|
@@ -130,7 +130,7 @@
|
|
|
130
130
|
<UI.Input label={{ name: $T("widget.info.runs") }} value={info.RunCnt} readonly />
|
|
131
131
|
</div>
|
|
132
132
|
</div>
|
|
133
|
-
<div class="grid grid-cols-1 gap-2 sm:grid-cols-2">
|
|
133
|
+
<div class="grid grid-cols-1 gap-2 @sm:grid-cols-2">
|
|
134
134
|
<div use:hint={{ text: $T("widget.info.hint.sta_ip"), enabled: $hints }}>
|
|
135
135
|
<UI.Input label={{ name: $T("widget.info.sta_ip") }} value={info.StaIP} readonly />
|
|
136
136
|
</div>
|
|
@@ -142,7 +142,7 @@
|
|
|
142
142
|
|
|
143
143
|
<!-- Редактируемые настройки -->
|
|
144
144
|
<div class="flex flex-col gap-3 rounded-[10px] border border-(--hairline-color) bg-(--back-color) p-3">
|
|
145
|
-
<div class="grid grid-cols-1 gap-2 sm:grid-cols-2">
|
|
145
|
+
<div class="grid grid-cols-1 gap-2 @sm:grid-cols-2">
|
|
146
146
|
<div use:hint={{ text: $T("widget.info.hint.name"), enabled: $hints }}>
|
|
147
147
|
<UI.Input
|
|
148
148
|
label={{ name: $T("widget.info.name") }}
|
|
@@ -135,7 +135,7 @@
|
|
|
135
135
|
</script>
|
|
136
136
|
|
|
137
137
|
<div
|
|
138
|
-
class={twMerge("relative flex w-full flex-col gap-4 rounded-2xl border border-(--hairline-color) bg-(--container-color) p-4", wrapperClass)}
|
|
138
|
+
class={twMerge("@container relative flex w-full flex-col gap-4 rounded-2xl border border-(--hairline-color) bg-(--container-color) p-4", wrapperClass)}
|
|
139
139
|
style={rootStyle}
|
|
140
140
|
>
|
|
141
141
|
<!-- Заголовок -->
|
|
@@ -440,7 +440,7 @@
|
|
|
440
440
|
{:else}
|
|
441
441
|
<div
|
|
442
442
|
bind:this={rootEl}
|
|
443
|
-
class={twMerge("relative flex w-full flex-col gap-4 rounded-2xl border border-(--hairline-color) bg-(--container-color) p-4", wrapperClass)}
|
|
443
|
+
class={twMerge("@container relative flex w-full flex-col gap-4 rounded-2xl border border-(--hairline-color) bg-(--container-color) p-4", wrapperClass)}
|
|
444
444
|
style={rootStyle}
|
|
445
445
|
>
|
|
446
446
|
<WidgetHeader icon={MapIcon} label={label?.name || $T("widget.map.title")} bind:collapsed {hints}>
|
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
import { accentStyle, type AccentColor } from "../../accent"
|
|
10
10
|
import { themeState } from "../mapTheme.svelte"
|
|
11
11
|
import MissionActions from "./MissionActions.svelte"
|
|
12
|
+
import SectionHead from "../../SectionHead.svelte"
|
|
12
13
|
import Button from "../../Button/Button.svelte"
|
|
13
14
|
import Input from "../../Input/Input.svelte"
|
|
14
15
|
import Modal from "../../Modal.svelte"
|
|
@@ -24,7 +25,6 @@
|
|
|
24
25
|
import InfoIcon from "../../libIcons/InfoIcon.svelte"
|
|
25
26
|
import { missionProgress } from "./progress"
|
|
26
27
|
import MissionIcon from "./MissionIcon.svelte"
|
|
27
|
-
import ArrowIcon from "../../libIcons/ArrowIcon.svelte"
|
|
28
28
|
import { planFields, bestFieldAngle, searchFieldAngle, toMission, fieldArea, fieldsArea, type LngLat, type SprayControl } from "./coverage"
|
|
29
29
|
import { DEFAULT_MISSION_PLAN, type IMissionPlan } from "./plan"
|
|
30
30
|
|
|
@@ -384,44 +384,34 @@
|
|
|
384
384
|
/* Два сворачиваемых блока: «Маршрут и внесение» и «Итог» (контуры и расчёт) */
|
|
385
385
|
type Section = "settings" | "summary"
|
|
386
386
|
let open = $state<Record<Section, boolean>>({ settings: false, summary: false })
|
|
387
|
+
/* Узкая карта: короткие подписи кнопок редакторов, компактная панель имитации */
|
|
388
|
+
let mapWidth = $state(0)
|
|
389
|
+
let compactMap = $derived(mapWidth > 0 && mapWidth < 480)
|
|
387
390
|
const card = "flex flex-col gap-3 rounded-[10px] border border-(--hairline-color) bg-(--back-color) p-3"
|
|
388
391
|
/* Метка у кнопки повторяет цвет объекта на карте */
|
|
389
392
|
let tools = $derived([
|
|
390
393
|
{
|
|
391
394
|
mode: "field" as Mode,
|
|
392
395
|
label: "widget.mission.editField",
|
|
396
|
+
short: "widget.mission.editFieldShort",
|
|
393
397
|
dot: "rounded-sm border-(--green-mark) bg-(--green-mark)/30",
|
|
394
398
|
disabled: false,
|
|
395
399
|
},
|
|
396
|
-
{
|
|
400
|
+
{
|
|
401
|
+
mode: "hole" as Mode,
|
|
402
|
+
label: "widget.mission.editHoles",
|
|
403
|
+
short: "widget.mission.editHolesShort",
|
|
404
|
+
dot: "rounded-sm border-(--red-mark) bg-(--red-mark)/40",
|
|
405
|
+
disabled: !hasField,
|
|
406
|
+
},
|
|
397
407
|
])
|
|
398
408
|
</script>
|
|
399
409
|
|
|
400
410
|
<svelte:window onkeydown={onKey} />
|
|
401
411
|
|
|
402
|
-
{#snippet head(key: Section, title: string, summary: string)}
|
|
403
|
-
<button
|
|
404
|
-
type="button"
|
|
405
|
-
class="flex w-full cursor-pointer items-center justify-between gap-2 border-none bg-transparent p-0 text-left"
|
|
406
|
-
aria-expanded={open[key]}
|
|
407
|
-
onclick={() => (open[key] = !open[key])}
|
|
408
|
-
>
|
|
409
|
-
<span class="text-[12px] font-semibold text-(--muted-color)">
|
|
410
|
-
{title}
|
|
411
|
-
<span class="font-normal text-(--faint-color) tabular-nums">· {summary}</span>
|
|
412
|
-
</span>
|
|
413
|
-
<span
|
|
414
|
-
class="flex size-3.5 shrink-0 text-(--faint-color) transition-transform duration-150 [&_svg]:h-full [&_svg]:w-full"
|
|
415
|
-
style="transform: rotate({open[key] ? 90 : 0}deg)"
|
|
416
|
-
>
|
|
417
|
-
<ArrowIcon />
|
|
418
|
-
</span>
|
|
419
|
-
</button>
|
|
420
|
-
{/snippet}
|
|
421
|
-
|
|
422
412
|
<div
|
|
423
413
|
bind:this={rootEl}
|
|
424
|
-
class={twMerge("relative flex w-full flex-col gap-4 rounded-2xl border border-(--hairline-color) bg-(--container-color) p-4", wrapperClass)}
|
|
414
|
+
class={twMerge("@container relative flex w-full flex-col gap-4 rounded-2xl border border-(--hairline-color) bg-(--container-color) p-4", wrapperClass)}
|
|
425
415
|
style={rootStyle}
|
|
426
416
|
>
|
|
427
417
|
<WidgetHeader icon={MissionIcon} label={label?.name || $T("widget.mission.title")} bind:collapsed {hints}>
|
|
@@ -457,7 +447,7 @@
|
|
|
457
447
|
|
|
458
448
|
{#if !collapsed}
|
|
459
449
|
<div transition:slide={{ duration: 150 }} class="flex flex-col gap-4">
|
|
460
|
-
<div style="height: {height}px">
|
|
450
|
+
<div style="height: {height}px" bind:clientWidth={mapWidth}>
|
|
461
451
|
<MapLibre
|
|
462
452
|
bind:map={mapInstance}
|
|
463
453
|
class="h-full w-full overflow-hidden rounded-[14px] border border-(--hairline-color)"
|
|
@@ -480,7 +470,7 @@
|
|
|
480
470
|
use:hint={{ text: $T(`widget.mission.hint.${tool.mode}`), enabled: $hints }}
|
|
481
471
|
>
|
|
482
472
|
<span class="size-3 shrink-0 border-2 {tool.dot}"></span>
|
|
483
|
-
{$T(tool.label)}
|
|
473
|
+
{$T(compactMap ? tool.short : tool.label)}
|
|
484
474
|
</button>
|
|
485
475
|
{/each}
|
|
486
476
|
{#if draft.length}
|
|
@@ -531,7 +521,7 @@
|
|
|
531
521
|
</div>
|
|
532
522
|
{/if}
|
|
533
523
|
{#if simulate}
|
|
534
|
-
<MissionSim clock={sim} showSpray icon="quad" colors={theme.colors} />
|
|
524
|
+
<MissionSim clock={sim} showSpray icon="quad" colors={theme.colors} compact={compactMap} />
|
|
535
525
|
{/if}
|
|
536
526
|
</MapLibre>
|
|
537
527
|
</div>
|
|
@@ -539,26 +529,27 @@
|
|
|
539
529
|
<!-- Маршрут и внесение, итог: свёрнуты по умолчанию, в заголовке краткая сводка -->
|
|
540
530
|
<div class="flex flex-col gap-3">
|
|
541
531
|
<div class={card}>
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
$T("widget.mission.settings")
|
|
545
|
-
[
|
|
532
|
+
<SectionHead
|
|
533
|
+
bind:open={open.settings}
|
|
534
|
+
title={$T("widget.mission.settings")}
|
|
535
|
+
summary={[
|
|
546
536
|
`${$T(fieldList.length > 1 ? "widget.mission.s.angles" : "widget.mission.s.angle")} ${fieldList.map((f) => `${fmt(f.angle, 0)}°`).join(" / ") || "-"}`,
|
|
547
537
|
`${$T("widget.mission.s.swath")} ${plan.spacing} ${$T("widget.mission.m")}`,
|
|
548
538
|
`${$T("widget.mission.s.alt")} ${plan.alt} ${$T("widget.mission.m")}`,
|
|
549
539
|
`${$T("widget.mission.s.speed")} ${plan.speed} ${$T("widget.mission.ms")}`,
|
|
550
540
|
`${$T("widget.mission.s.rate")} ${plan.rate} ${$T("widget.mission.lha")}`,
|
|
551
541
|
`${$T("widget.mission.s.tank")} ${plan.tank} ${$T("widget.mission.l")}`,
|
|
552
|
-
].join(" · ")
|
|
553
|
-
|
|
542
|
+
].join(" · ")}
|
|
543
|
+
/>
|
|
554
544
|
{#if open.settings}
|
|
555
545
|
<!-- Слева маршрут, справа внесение; на узком экране друг под другом -->
|
|
556
|
-
<div class="grid grid-cols-1 divide-y divide-(--hairline-color)
|
|
557
|
-
<div class="flex flex-col gap-3 pb-3
|
|
546
|
+
<div class="grid grid-cols-1 divide-y divide-(--hairline-color) @xl:grid-cols-2 @xl:divide-x @xl:divide-y-0" transition:slide={{ duration: 150 }}>
|
|
547
|
+
<div class="flex flex-col gap-3 pb-3 @xl:pr-4 @xl:pb-0">
|
|
558
548
|
<span class="text-[11px] font-semibold tracking-wide text-(--faint-color) uppercase">{$T("widget.mission.passes")}</span>
|
|
559
|
-
|
|
549
|
+
<!-- На узком месте ползунок во всю ширину, кнопки авторасчёта строкой ниже -->
|
|
550
|
+
<div class="flex flex-wrap items-end gap-2">
|
|
560
551
|
<Slider
|
|
561
|
-
wrapperClass="flex-1"
|
|
552
|
+
wrapperClass="flex-1 basis-full @md:basis-0"
|
|
562
553
|
label={{ name: `${$T(fieldList.length > 1 ? "widget.mission.angleAll" : "widget.mission.angle")}: ${fmt(allAngle, 1)}°` }}
|
|
563
554
|
value={allAngle}
|
|
564
555
|
number={{ minNum: 0, maxNum: 179, step: 1 }}
|
|
@@ -593,7 +584,7 @@
|
|
|
593
584
|
{$T("widget.mission.returnHome")}
|
|
594
585
|
</label>
|
|
595
586
|
</div>
|
|
596
|
-
<div class="flex flex-col gap-3 pt-3
|
|
587
|
+
<div class="flex flex-col gap-3 pt-3 @xl:pt-0 @xl:pl-4">
|
|
597
588
|
<span class="text-[11px] font-semibold tracking-wide text-(--faint-color) uppercase">{$T("widget.mission.spraying")}</span>
|
|
598
589
|
<div class="grid grid-cols-2 gap-2">
|
|
599
590
|
<Input type="number" label={{ name: $T("widget.mission.rate") }} {...numField("rate", 0, 500, 0.5)} />
|
|
@@ -626,10 +617,10 @@
|
|
|
626
617
|
</div>
|
|
627
618
|
|
|
628
619
|
<div class={card}>
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
$T("widget.mission.summary")
|
|
632
|
-
[
|
|
620
|
+
<SectionHead
|
|
621
|
+
bind:open={open.summary}
|
|
622
|
+
title={$T("widget.mission.summary")}
|
|
623
|
+
summary={[
|
|
633
624
|
hasField ? `${$T("widget.mission.s.fields")}: ${fields.length}` : $T("widget.mission.noField"),
|
|
634
625
|
`${$T("widget.mission.s.holes")}: ${plan.holes.length}`,
|
|
635
626
|
...(stats
|
|
@@ -640,12 +631,12 @@
|
|
|
640
631
|
`${$T("widget.mission.s.liquid")} ${fmt(stats.liquid, 0)} ${$T("widget.mission.l")}`,
|
|
641
632
|
]
|
|
642
633
|
: []),
|
|
643
|
-
].join(" · ")
|
|
644
|
-
|
|
634
|
+
].join(" · ")}
|
|
635
|
+
/>
|
|
645
636
|
{#if open.summary}
|
|
646
637
|
<!-- Слева контуры, справа расчёт; на узком экране друг под другом -->
|
|
647
|
-
<div class="grid grid-cols-1 divide-y divide-(--hairline-color)
|
|
648
|
-
<div class="flex flex-col gap-3 pb-3
|
|
638
|
+
<div class="grid grid-cols-1 divide-y divide-(--hairline-color) @xl:grid-cols-2 @xl:divide-x @xl:divide-y-0" transition:slide={{ duration: 150 }}>
|
|
639
|
+
<div class="flex flex-col gap-3 pb-3 @xl:pr-4 @xl:pb-0">
|
|
649
640
|
<span class="text-[11px] font-semibold tracking-wide text-(--faint-color) uppercase">{$T("widget.mission.zones")}</span>
|
|
650
641
|
<div class="flex flex-col gap-1.5 rounded-lg bg-(--container-color) p-3 text-[13px] tabular-nums">
|
|
651
642
|
{#each fields as field, i}
|
|
@@ -725,7 +716,7 @@
|
|
|
725
716
|
{/if}
|
|
726
717
|
</div>
|
|
727
718
|
|
|
728
|
-
<div class="flex flex-col gap-3 pt-3
|
|
719
|
+
<div class="flex flex-col gap-3 pt-3 @xl:pt-0 @xl:pl-4">
|
|
729
720
|
<span class="text-[11px] font-semibold tracking-wide text-(--faint-color) uppercase">{$T("widget.mission.calc")}</span>
|
|
730
721
|
{#if stats}
|
|
731
722
|
<div class="grid grid-cols-2 gap-x-4 gap-y-1.5 rounded-lg bg-(--container-color) p-3 text-[13px] tabular-nums">
|
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
import { accentStyle, type AccentColor } from "../../accent"
|
|
10
10
|
import { themeState } from "../mapTheme.svelte"
|
|
11
11
|
import MissionActions from "./MissionActions.svelte"
|
|
12
|
+
import SectionHead from "../../SectionHead.svelte"
|
|
12
13
|
import Button from "../../Button/Button.svelte"
|
|
13
14
|
import Dragging from "../../Dragging.svelte"
|
|
14
15
|
import Input from "../../Input/Input.svelte"
|
|
@@ -20,7 +21,6 @@
|
|
|
20
21
|
import { SimClock } from "./simClock.svelte"
|
|
21
22
|
import { missionProgress } from "./progress"
|
|
22
23
|
import MapIcon from "../MapIcon.svelte"
|
|
23
|
-
import ArrowIcon from "../../libIcons/ArrowIcon.svelte"
|
|
24
24
|
import type { LngLat } from "./coverage"
|
|
25
25
|
import { DEFAULT_ROUTE_PLAN, ROUTE_FIRST_ALT, ROUTE_FIRST_SPEED, routeLegs, routeStats, routeMission, type IRoutePlan, type IRouteWaypoint } from "./route"
|
|
26
26
|
|
|
@@ -186,8 +186,11 @@
|
|
|
186
186
|
const mapBtnMain = "border-(--accent-color)! bg-(--accent-color)! text-(--on-accent)!"
|
|
187
187
|
type Section = "summary"
|
|
188
188
|
let open = $state<Record<Section, boolean>>({ summary: false })
|
|
189
|
-
/*
|
|
190
|
-
|
|
189
|
+
/* Узкая карта: короткая подпись кнопки редактора, компактная панель имитации */
|
|
190
|
+
let mapWidth = $state(0)
|
|
191
|
+
let compactMap = $derived(mapWidth > 0 && mapWidth < 480)
|
|
192
|
+
/* Сетка строки точки: ручка, номер, высота, скорость, расстояние от прошлой, удаление; поля сужаются до узкой карточки, не шире 8rem */
|
|
193
|
+
const ROW_GRID = "grid-cols-[1.25rem_1.5rem_minmax(0,8rem)_minmax(0,8rem)_minmax(3.5rem,1fr)_1rem]"
|
|
191
194
|
let listEl: HTMLDivElement | undefined = $state()
|
|
192
195
|
const listId = Math.floor(Math.random() * 1e6)
|
|
193
196
|
const card = "flex flex-col gap-3 rounded-[10px] border border-(--hairline-color) bg-(--back-color) p-3"
|
|
@@ -196,29 +199,9 @@
|
|
|
196
199
|
|
|
197
200
|
<svelte:window onkeydown={onKey} />
|
|
198
201
|
|
|
199
|
-
{#snippet head(key: Section, title: string, summary: string)}
|
|
200
|
-
<button
|
|
201
|
-
type="button"
|
|
202
|
-
class="flex w-full cursor-pointer items-center justify-between gap-2 border-none bg-transparent p-0 text-left"
|
|
203
|
-
aria-expanded={open[key]}
|
|
204
|
-
onclick={() => (open[key] = !open[key])}
|
|
205
|
-
>
|
|
206
|
-
<span class="text-[12px] font-semibold text-(--muted-color)">
|
|
207
|
-
{title}
|
|
208
|
-
<span class="font-normal text-(--faint-color) tabular-nums">· {summary}</span>
|
|
209
|
-
</span>
|
|
210
|
-
<span
|
|
211
|
-
class="flex size-3.5 shrink-0 text-(--faint-color) transition-transform duration-150 [&_svg]:h-full [&_svg]:w-full"
|
|
212
|
-
style="transform: rotate({open[key] ? 90 : 0}deg)"
|
|
213
|
-
>
|
|
214
|
-
<ArrowIcon />
|
|
215
|
-
</span>
|
|
216
|
-
</button>
|
|
217
|
-
{/snippet}
|
|
218
|
-
|
|
219
202
|
<div
|
|
220
203
|
bind:this={rootEl}
|
|
221
|
-
class={twMerge("relative flex w-full flex-col gap-4 rounded-2xl border border-(--hairline-color) bg-(--container-color) p-4", wrapperClass)}
|
|
204
|
+
class={twMerge("@container relative flex w-full flex-col gap-4 rounded-2xl border border-(--hairline-color) bg-(--container-color) p-4", wrapperClass)}
|
|
222
205
|
style={rootStyle}
|
|
223
206
|
>
|
|
224
207
|
<WidgetHeader icon={MapIcon} label={label?.name || $T("widget.route.title")} bind:collapsed {hints}>
|
|
@@ -256,7 +239,7 @@
|
|
|
256
239
|
|
|
257
240
|
{#if !collapsed}
|
|
258
241
|
<div transition:slide={{ duration: 150 }} class="flex flex-col gap-4">
|
|
259
|
-
<div style="height: {height}px">
|
|
242
|
+
<div style="height: {height}px" bind:clientWidth={mapWidth}>
|
|
260
243
|
<MapLibre
|
|
261
244
|
bind:map={mapInstance}
|
|
262
245
|
class="h-full w-full overflow-hidden rounded-[14px] border border-(--hairline-color)"
|
|
@@ -277,7 +260,7 @@
|
|
|
277
260
|
use:hint={{ text: $T("widget.route.hint.add"), enabled: $hints }}
|
|
278
261
|
>
|
|
279
262
|
<span class="size-3 shrink-0 rounded-full border-2 border-white bg-(--accent-color) outline outline-(--accent-color)"></span>
|
|
280
|
-
{$T("widget.route.add")}
|
|
263
|
+
{$T(compactMap ? "widget.route.addShort" : "widget.route.add")}
|
|
281
264
|
</button>
|
|
282
265
|
{#if adding}
|
|
283
266
|
<button class="{mapBtn} {mapBtnMain}" onclick={() => (adding = false)}>{$T("widget.mission.finish")}</button>
|
|
@@ -300,23 +283,23 @@
|
|
|
300
283
|
/>
|
|
301
284
|
{@render overlay?.()}
|
|
302
285
|
{#if simulate}
|
|
303
|
-
<MissionSim clock={sim} colors={theme.colors} />
|
|
286
|
+
<MissionSim clock={sim} colors={theme.colors} compact={compactMap} />
|
|
304
287
|
{/if}
|
|
305
288
|
</MapLibre>
|
|
306
289
|
</div>
|
|
307
290
|
|
|
308
291
|
<!-- Итог: расчёт и точки с высотой и скоростью; свёрнут по умолчанию, в заголовке краткая сводка -->
|
|
309
292
|
<div class={card}>
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
$T("widget.mission.summary")
|
|
313
|
-
[
|
|
293
|
+
<SectionHead
|
|
294
|
+
bind:open={open.summary}
|
|
295
|
+
title={$T("widget.mission.summary")}
|
|
296
|
+
summary={[
|
|
314
297
|
`${$T("widget.route.s.points")} ${stats.points}`,
|
|
315
298
|
`${$T("widget.route.s.maxAlt")} ${stats.maxAlt} ${$T("widget.mission.m")}`,
|
|
316
299
|
`${$T("widget.mission.s.path")} ${km(stats.length)}`,
|
|
317
300
|
`${$T("widget.mission.s.time")} ${fmt(stats.timeMin, 0)} ${$T("widget.mission.min")}`,
|
|
318
|
-
].join(" · ")
|
|
319
|
-
|
|
301
|
+
].join(" · ")}
|
|
302
|
+
/>
|
|
320
303
|
{#if open.summary}
|
|
321
304
|
<!-- Сверху расчёт, ниже точки на всю ширину: у каждой высота и скорость -->
|
|
322
305
|
<div class="flex flex-col gap-3" transition:slide={{ duration: 150 }}>
|
|
@@ -337,7 +320,7 @@
|
|
|
337
320
|
<span class="text-[11px] font-semibold tracking-wide text-(--faint-color) uppercase">{$T("widget.route.points")}</span>
|
|
338
321
|
{#if route.points.length}
|
|
339
322
|
<!-- Строки переставляются ручкой, как списки в панелях свойств (Dragging) -->
|
|
340
|
-
<div class="grid {ROW_GRID} items-end gap-x-
|
|
323
|
+
<div class="grid {ROW_GRID} items-end gap-x-2 border border-transparent px-2 text-[11px] leading-tight text-(--faint-color)">
|
|
341
324
|
<span></span>
|
|
342
325
|
<span>№</span>
|
|
343
326
|
<span use:hint={{ text: $T("widget.route.hint.alt"), enabled: $hints }}>{$T("widget.route.alt")}</span>
|
|
@@ -352,7 +335,7 @@
|
|
|
352
335
|
>
|
|
353
336
|
{#each route.points as p, i}
|
|
354
337
|
{@const leg = legs.legs[route.start ? i : i - 1]}
|
|
355
|
-
<div id="item-{i}-{listId}" class="grid {ROW_GRID} items-center gap-x-
|
|
338
|
+
<div id="item-{i}-{listId}" class="grid {ROW_GRID} items-center gap-x-2 px-2 py-1">
|
|
356
339
|
<Dragging
|
|
357
340
|
wrapperClass="size-5"
|
|
358
341
|
container={listEl!}
|
|
@@ -12,11 +12,14 @@
|
|
|
12
12
|
showSpray = false,
|
|
13
13
|
icon = "arrow",
|
|
14
14
|
colors,
|
|
15
|
+
compact = false,
|
|
15
16
|
}: {
|
|
16
17
|
clock: SimClock
|
|
17
18
|
showSpray?: boolean
|
|
18
19
|
icon?: "arrow" | "quad"
|
|
19
20
|
colors: IMapColors /* Аппарат и след - мастер-цвет виджета, распыление - зелёный */
|
|
21
|
+
/* Узкая карта: без заголовка, высоты и скорости, панель почти во всю ширину над масштабом */
|
|
22
|
+
compact?: boolean
|
|
20
23
|
} = $props()
|
|
21
24
|
|
|
22
25
|
const toRad = Math.PI / 180
|
|
@@ -82,11 +85,13 @@
|
|
|
82
85
|
|
|
83
86
|
<!-- Панель имитации внизу карты по центру, оформлена как кнопки MapLibre -->
|
|
84
87
|
<div
|
|
85
|
-
class="absolute
|
|
88
|
+
class="absolute left-1/2 z-10 w-max -translate-x-1/2 rounded-[4px] bg-(--back-color) shadow-[0_0_0_1px_var(--hairline-color)] {compact
|
|
89
|
+
? 'bottom-9 max-w-[calc(100%-1rem)]'
|
|
90
|
+
: 'bottom-2.5 max-w-[calc(100%-8rem)]'}"
|
|
86
91
|
>
|
|
87
92
|
<div class="flex flex-col gap-1 px-3 py-1.5 text-[12px] whitespace-nowrap text-(--font-color) tabular-nums">
|
|
88
93
|
<div class="flex flex-wrap items-center gap-x-3 gap-y-1">
|
|
89
|
-
<span class="font-semibold">{$T("widget.sim.title")}</span>
|
|
94
|
+
{#if !compact}<span class="font-semibold">{$T("widget.sim.title")}</span>{/if}
|
|
90
95
|
<button
|
|
91
96
|
class={iconBtn}
|
|
92
97
|
onclick={() => clock.toggle()}
|
|
@@ -109,9 +114,9 @@
|
|
|
109
114
|
{/each}
|
|
110
115
|
</select>
|
|
111
116
|
<span>{clockText(clock.t)} / {clockText(clock.duration)} · {Math.round((clock.t / Math.max(1, clock.duration)) * 100)}%</span>
|
|
112
|
-
<span>{pos.alt.toFixed(0)} {$T("widget.mission.m")} · {pos.speed.toFixed(1)} {$T("widget.mission.ms")}</span>
|
|
117
|
+
{#if !compact}<span>{pos.alt.toFixed(0)} {$T("widget.mission.m")} · {pos.speed.toFixed(1)} {$T("widget.mission.ms")}</span>{/if}
|
|
113
118
|
{#if showSpray}
|
|
114
|
-
<span class="min-w-[7.5rem] font-semibold {pos.spray ? 'text-(--green-text)' : 'text-(--muted-color)'}"
|
|
119
|
+
<span class="{compact ? '' : 'min-w-[7.5rem]'} font-semibold {pos.spray ? 'text-(--green-text)' : 'text-(--muted-color)'}"
|
|
115
120
|
>{pos.spray ? $T("widget.sim.sprayOn") : $T("widget.sim.sprayOff")}</span
|
|
116
121
|
>
|
|
117
122
|
{/if}
|
|
@@ -278,8 +278,8 @@
|
|
|
278
278
|
let width = $state(600)
|
|
279
279
|
let compact = $derived(width < 440)
|
|
280
280
|
|
|
281
|
-
/* Геометрия
|
|
282
|
-
|
|
281
|
+
/* Геометрия прибора: viewBox 600×320; в компактном режиме ширина viewBox - фактическая ширина прибора (не уже 300), чтобы он рисовался 1:1, а не сжимался */
|
|
282
|
+
let VW = $derived(compact ? Math.max(300, Math.round(width)) : 600)
|
|
283
283
|
const HH = 270
|
|
284
284
|
let HX = $derived(compact ? 0 : 80)
|
|
285
285
|
let HW = $derived(compact ? VW : 440)
|
|
@@ -462,7 +462,7 @@
|
|
|
462
462
|
</script>
|
|
463
463
|
|
|
464
464
|
<div
|
|
465
|
-
class={twMerge("relative flex w-full flex-col gap-4 rounded-2xl border border-(--hairline-color) bg-(--container-color) p-4", wrapperClass)}
|
|
465
|
+
class={twMerge("@container relative flex w-full flex-col gap-4 rounded-2xl border border-(--hairline-color) bg-(--container-color) p-4", wrapperClass)}
|
|
466
466
|
style={rootStyle}
|
|
467
467
|
>
|
|
468
468
|
<WidgetHeader icon={PlaneIcon} label={label?.name || $T("pfd.title")} bind:collapsed {hints}>
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
import ColorPicker from "./ColorPicker.svelte"
|
|
11
11
|
import WidgetHeader from "../WidgetHeader.svelte"
|
|
12
12
|
import { hint, hintsSetting } from "../hints"
|
|
13
|
-
import
|
|
13
|
+
import SectionHead from "../SectionHead.svelte"
|
|
14
14
|
import { accentStyle } from "../accent"
|
|
15
15
|
import { readPersistedCollapsed, writePersistedCollapsed } from "../widgetCollapse"
|
|
16
16
|
|
|
@@ -99,7 +99,7 @@
|
|
|
99
99
|
</script>
|
|
100
100
|
|
|
101
101
|
<div
|
|
102
|
-
class={twMerge("relative flex w-full flex-col gap-4 rounded-2xl border border-(--hairline-color) bg-(--container-color) p-4", wrapperClass)}
|
|
102
|
+
class={twMerge("@container relative flex w-full flex-col gap-4 rounded-2xl border border-(--hairline-color) bg-(--container-color) p-4", wrapperClass)}
|
|
103
103
|
style={rootStyle}
|
|
104
104
|
>
|
|
105
105
|
<!-- Заголовок: образец текущего цвета -->
|
|
@@ -151,25 +151,12 @@
|
|
|
151
151
|
|
|
152
152
|
<!-- Оборудование: свёрнуто по умолчанию, сохраняется одним пакетом, лента перезапускается -->
|
|
153
153
|
<div class="flex flex-col gap-3 rounded-[10px] border border-(--hairline-color) bg-(--back-color) p-3">
|
|
154
|
-
<
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
<span class="text-[12px] font-semibold text-(--muted-color)">
|
|
161
|
-
{$T("widget.rgb.hardware")}
|
|
162
|
-
<span class="font-normal text-(--faint-color)">
|
|
163
|
-
· {hardware.Count} LED · {MODELS[hardware.Model]?.name ?? "-"} · {ORDERS[hardware.Order]?.name ?? "-"}
|
|
164
|
-
</span>
|
|
165
|
-
</span>
|
|
166
|
-
<span
|
|
167
|
-
class="flex size-3.5 shrink-0 text-(--faint-color) transition-transform duration-150 [&_svg]:h-full [&_svg]:w-full"
|
|
168
|
-
style="transform: rotate({hardwareOpen || isDirty ? 90 : 0}deg)"
|
|
169
|
-
>
|
|
170
|
-
<ArrowIcon />
|
|
171
|
-
</span>
|
|
172
|
-
</button>
|
|
154
|
+
<SectionHead
|
|
155
|
+
title={$T("widget.rgb.hardware")}
|
|
156
|
+
summary={`${hardware.Count} LED · ${MODELS[hardware.Model]?.name ?? "-"} · ${ORDERS[hardware.Order]?.name ?? "-"}`}
|
|
157
|
+
open={hardwareOpen || isDirty}
|
|
158
|
+
onToggle={() => (hardwareOpen = !hardwareOpen)}
|
|
159
|
+
/>
|
|
173
160
|
{#if hardwareOpen || isDirty}
|
|
174
161
|
<div class="flex flex-col gap-3" transition:slide={{ duration: 150 }}>
|
|
175
162
|
<div use:hint={{ text: $T("widget.rgb.hint.count"), enabled: $hints }}>
|
|
@@ -133,7 +133,7 @@
|
|
|
133
133
|
</script>
|
|
134
134
|
|
|
135
135
|
<div
|
|
136
|
-
class={twMerge("relative flex w-full flex-col gap-4 rounded-2xl border border-(--hairline-color) bg-(--container-color) p-4", wrapperClass)}
|
|
136
|
+
class={twMerge("@container relative flex w-full flex-col gap-4 rounded-2xl border border-(--hairline-color) bg-(--container-color) p-4", wrapperClass)}
|
|
137
137
|
style={rootStyle}
|
|
138
138
|
>
|
|
139
139
|
<!-- Заголовок -->
|
|
@@ -170,7 +170,7 @@
|
|
|
170
170
|
</div>
|
|
171
171
|
{:else}
|
|
172
172
|
<!-- Кучи -->
|
|
173
|
-
<div class="grid gap-3 {heaps.length > 1 ? 'sm:grid-cols-2' : ''}">
|
|
173
|
+
<div class="grid gap-3 {heaps.length > 1 ? '@sm:grid-cols-2' : ''}">
|
|
174
174
|
{#each heaps as heap (heap.Name)}
|
|
175
175
|
<div
|
|
176
176
|
class="flex flex-col gap-2 rounded-[10px] border border-(--hairline-color) bg-(--back-color) p-3"
|
|
@@ -123,7 +123,7 @@
|
|
|
123
123
|
</script>
|
|
124
124
|
|
|
125
125
|
<div
|
|
126
|
-
class={twMerge("relative flex w-full flex-col gap-4 rounded-2xl border border-(--hairline-color) bg-(--container-color) p-4", wrapperClass)}
|
|
126
|
+
class={twMerge("@container relative flex w-full flex-col gap-4 rounded-2xl border border-(--hairline-color) bg-(--container-color) p-4", wrapperClass)}
|
|
127
127
|
style={rootStyle}
|
|
128
128
|
>
|
|
129
129
|
<!-- Заголовок и переключатель режима -->
|
|
@@ -147,7 +147,7 @@
|
|
|
147
147
|
<!-- Клиентский режим (STA) -->
|
|
148
148
|
<div class="flex flex-col gap-3 rounded-[10px] border border-(--hairline-color) bg-(--back-color) p-3" transition:slide={{ duration: 150 }}>
|
|
149
149
|
<!-- SSID с поиском и пароль - одной строкой по 50%, на узком экране друг под другом -->
|
|
150
|
-
<div class="grid grid-cols-1 gap-x-4 gap-y-3 sm:grid-cols-2">
|
|
150
|
+
<div class="grid grid-cols-1 gap-x-4 gap-y-3 @sm:grid-cols-2">
|
|
151
151
|
<div class="flex min-w-0 items-end gap-2">
|
|
152
152
|
<div class="min-w-0 flex-1" use:hint={{ text: $T("widget.wifi.hint.ssid"), enabled: $hints }}>
|
|
153
153
|
<UI.Select
|
|
@@ -178,7 +178,7 @@
|
|
|
178
178
|
/>
|
|
179
179
|
</div>
|
|
180
180
|
|
|
181
|
-
<div class="w-full sm:w-72" use:hint={{ text: $T("widget.wifi.hint.ip_mode"), enabled: $hints }}>
|
|
181
|
+
<div class="w-full @sm:w-72" use:hint={{ text: $T("widget.wifi.hint.ip_mode"), enabled: $hints }}>
|
|
182
182
|
<UI.Select
|
|
183
183
|
wrapperClass="w-full"
|
|
184
184
|
type="buttons"
|
|
@@ -190,7 +190,7 @@
|
|
|
190
190
|
</div>
|
|
191
191
|
|
|
192
192
|
{#if cfg.StaticIP === 1}
|
|
193
|
-
<div class="grid grid-cols-1 gap-2
|
|
193
|
+
<div class="grid grid-cols-1 gap-2 @md:grid-cols-3" transition:slide={{ duration: 150 }}>
|
|
194
194
|
<div use:hint={{ text: $T("widget.wifi.hint.ip"), enabled: $hints }}>
|
|
195
195
|
<UI.Input
|
|
196
196
|
label={{ name: $T("widget.common.ip") }}
|
|
@@ -227,7 +227,7 @@
|
|
|
227
227
|
<!-- Точка доступа (AP) -->
|
|
228
228
|
<div class="flex flex-col gap-3 rounded-[10px] border border-(--hairline-color) bg-(--back-color) p-3" transition:slide={{ duration: 150 }}>
|
|
229
229
|
<!-- Те же колонки, что у STA: в режиме STA + AP пароли стоят друг под другом -->
|
|
230
|
-
<div class="grid grid-cols-1 gap-x-4 gap-y-3 sm:grid-cols-2">
|
|
230
|
+
<div class="grid grid-cols-1 gap-x-4 gap-y-3 @sm:grid-cols-2">
|
|
231
231
|
<div use:hint={{ text: $T("widget.wifi.hint.ap"), enabled: $hints }}>
|
|
232
232
|
<UI.Input label={{ name: $T("widget.wifi.ap_ssid") }} bind:value={cfg.ApSSID} maxlength={32} />
|
|
233
233
|
</div>
|
|
@@ -240,7 +240,7 @@
|
|
|
240
240
|
/>
|
|
241
241
|
</div>
|
|
242
242
|
|
|
243
|
-
<div class="grid grid-cols-1 gap-2
|
|
243
|
+
<div class="grid grid-cols-1 gap-2 @md:grid-cols-3">
|
|
244
244
|
<div use:hint={{ text: $T("widget.wifi.hint.ap_ip"), enabled: $hints }}>
|
|
245
245
|
<UI.Input label={{ name: $T("widget.common.ip") }} bind:value={cfg.ApIP} maxlength={15} help={{ regExp: IP_REGEXP }} />
|
|
246
246
|
</div>
|
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
export { default as Accordion } from "./Accordion/Accordion.svelte";
|
|
2
|
+
export { default as ExpandIcon } from "./ExpandIcon.svelte";
|
|
3
|
+
export { default as SectionHead } from "./SectionHead.svelte";
|
|
2
4
|
export { default as Button } from "./Button/Button.svelte";
|
|
3
5
|
export { default as Carousel } from "./Carousel/Carousel.svelte";
|
|
4
6
|
export { default as Divider } from "./Divider/Divider.svelte";
|
package/dist/index.js
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
/* Реэкспорт всех UI компонентов для удобного импорта */
|
|
2
2
|
export { default as Accordion } from "./Accordion/Accordion.svelte";
|
|
3
|
+
export { default as ExpandIcon } from "./ExpandIcon.svelte";
|
|
4
|
+
export { default as SectionHead } from "./SectionHead.svelte";
|
|
3
5
|
export { default as Button } from "./Button/Button.svelte";
|
|
4
6
|
export { default as Carousel } from "./Carousel/Carousel.svelte";
|
|
5
7
|
export { default as Divider } from "./Divider/Divider.svelte";
|
|
@@ -984,6 +984,16 @@ declare const translations: {
|
|
|
984
984
|
en: string;
|
|
985
985
|
zh: string;
|
|
986
986
|
};
|
|
987
|
+
"widget.mission.editFieldShort": {
|
|
988
|
+
ru: string;
|
|
989
|
+
en: string;
|
|
990
|
+
zh: string;
|
|
991
|
+
};
|
|
992
|
+
"widget.mission.editHolesShort": {
|
|
993
|
+
ru: string;
|
|
994
|
+
en: string;
|
|
995
|
+
zh: string;
|
|
996
|
+
};
|
|
987
997
|
"widget.mission.close": {
|
|
988
998
|
ru: string;
|
|
989
999
|
en: string;
|
|
@@ -1129,6 +1139,11 @@ declare const translations: {
|
|
|
1129
1139
|
en: string;
|
|
1130
1140
|
zh: string;
|
|
1131
1141
|
};
|
|
1142
|
+
"widget.route.addShort": {
|
|
1143
|
+
ru: string;
|
|
1144
|
+
en: string;
|
|
1145
|
+
zh: string;
|
|
1146
|
+
};
|
|
1132
1147
|
"widget.route.helpEmpty": {
|
|
1133
1148
|
ru: string;
|
|
1134
1149
|
en: string;
|
|
@@ -381,6 +381,8 @@ const translations = {
|
|
|
381
381
|
"widget.mission.lha": { ru: "л/га", en: "l/ha", zh: "升/公顷" },
|
|
382
382
|
"widget.mission.editField": { ru: "Редактор полей", en: "Field editor", zh: "田块编辑" },
|
|
383
383
|
"widget.mission.editHoles": { ru: "Редактор запретных зон", en: "No-fly zone editor", zh: "禁飞区编辑" },
|
|
384
|
+
"widget.mission.editFieldShort": { ru: "Поля", en: "Fields", zh: "田块" },
|
|
385
|
+
"widget.mission.editHolesShort": { ru: "Запретные зоны", en: "No-fly zones", zh: "禁飞区" },
|
|
384
386
|
"widget.mission.close": { ru: "Замкнуть", en: "Close", zh: "闭合" },
|
|
385
387
|
"widget.mission.settings": { ru: "Маршрут и внесение", en: "Route and application", zh: "航线与喷洒" },
|
|
386
388
|
"widget.mission.s.angle": { ru: "угол", en: "angle", zh: "角度" },
|
|
@@ -458,6 +460,7 @@ const translations = {
|
|
|
458
460
|
"widget.route.title": { ru: "Планировщик маршрута", en: "Route planner", zh: "航线规划" },
|
|
459
461
|
"widget.route.pts": { ru: "т.", en: "pts", zh: "点" },
|
|
460
462
|
"widget.route.add": { ru: "Редактор точек", en: "Waypoint editor", zh: "航点编辑" },
|
|
463
|
+
"widget.route.addShort": { ru: "Точки", en: "Waypoints", zh: "航点" },
|
|
461
464
|
"widget.route.helpEmpty": {
|
|
462
465
|
ru: "Нажмите «Изменить точки» и кликайте по карте по порядку облёта.",
|
|
463
466
|
en: "Press “Edit points” and click the map in flight order.",
|