> = {
"clean": SquareDashedMousePointer,
"map-controls": "🗺",
"gpx": "💾",
+ "integration": "{ 👩💻 }",
};
export function getPreviousGuide(currentGuide: string): string | undefined {
@@ -40,7 +42,7 @@ export function getPreviousGuide(currentGuide: string): string | undefined {
if (index === 0) {
return undefined;
}
- let previousGuide = keys.at(index - 1);
+ let previousGuide = keys[index - 1];
if (previousGuide === undefined) {
return undefined;
} else if (guides[previousGuide].length === 0) {
@@ -65,7 +67,7 @@ export function getNextGuide(currentGuide: string): string | undefined {
if (guides[currentGuide].length === 0) {
let keys = Object.keys(guides);
let index = keys.indexOf(currentGuide);
- return keys.at(index + 1);
+ return keys[index + 1];
} else {
return `${currentGuide}/${guides[currentGuide][0]}`;
}
@@ -76,7 +78,7 @@ export function getNextGuide(currentGuide: string): string | undefined {
} else {
let keys = Object.keys(guides);
let index = keys.indexOf(subguides[0]);
- return keys.at(index + 1);
+ return keys[index + 1];
}
}
}
\ No newline at end of file
diff --git a/website/src/lib/components/file-list/FileListNodeLabel.svelte b/website/src/lib/components/file-list/FileListNodeLabel.svelte
index 1b4af97b..af650a8a 100644
--- a/website/src/lib/components/file-list/FileListNodeLabel.svelte
+++ b/website/src/lib/components/file-list/FileListNodeLabel.svelte
@@ -2,7 +2,7 @@
import { Button } from '$lib/components/ui/button';
import * as ContextMenu from '$lib/components/ui/context-menu';
import Shortcut from '$lib/components/Shortcut.svelte';
- import { dbUtils, getFile, settings } from '$lib/db';
+ import { dbUtils, getFile } from '$lib/db';
import {
Copy,
Info,
@@ -38,7 +38,7 @@
} from './Selection';
import { getContext } from 'svelte';
import { get } from 'svelte/store';
- import { allHidden, editMetadata, editStyle, gpxLayers, map } from '$lib/stores';
+ import { allHidden, editMetadata, editStyle, embedding, gpxLayers, map } from '$lib/stores';
import {
GPXTreeElement,
Track,
@@ -57,8 +57,6 @@
let orientation = getContext<'vertical' | 'horizontal'>('orientation');
- const { verticalFileView } = settings;
-
$: singleSelection = $selection.size === 1;
let nodeColors: string[] = [];
@@ -131,10 +129,12 @@
{/if}
{#if item.level === ListLevel.FILE || item.level === ListLevel.TRACK}
`${c} ${Math.floor((100 * i) / nodeColors.length)}% ${Math.floor((100 * (i + 1)) / nodeColors.length)}%`
@@ -147,6 +147,11 @@
? 'text-muted-foreground'
: ''}"
on:contextmenu={(e) => {
+ if ($embedding) {
+ e.preventDefault();
+ e.stopPropagation();
+ return;
+ }
if (e.ctrlKey) {
// Add to selection instead of opening context menu
e.preventDefault();
@@ -181,13 +186,13 @@
{:else if item.level === ListLevel.WAYPOINT}
{/if}
-
+
{label}
{#if hidden}
- {#if $verticalFileView}
+ {#if orientation === 'vertical'}
{#if item instanceof ListFileItem}
{/if}
- {#if $verticalFileView}
+ {#if orientation === 'vertical'}
{$_('menu.duplicate')}
- {#if $verticalFileView}
+ {#if orientation === 'vertical'}
{$_('menu.copy')}
diff --git a/website/src/lib/db.ts b/website/src/lib/db.ts
index 7141368b..53a24f0a 100644
--- a/website/src/lib/db.ts
+++ b/website/src/lib/db.ts
@@ -280,47 +280,49 @@ function commitFileStateChange(newFileState: ReadonlyMap, patch
});
}
-export const fileObservers: Writable
-
@@ -173,7 +162,6 @@
{slicedGPXStatistics}
panelSize={192}
orientation={'horizontal'}
- velocityUnits={$velocityUnits}
/>