fix js lints

This commit is contained in:
Markus Unterwaditzer
2026-05-15 22:21:03 +02:00
committed by Will Greenberg
parent 19df99d663
commit 2ada840919
3 changed files with 5 additions and 5 deletions

View File

@@ -1,7 +1,7 @@
<script lang="ts">
import { type ReportMetadata } from '$lib/analysis.svelte';
import type { ManifestEntry } from '$lib/manifest.svelte';
import { gpsModeLabel } from '$lib/utils.svelte';
import { gps_mode_label } from '$lib/utils.svelte';
import { AnalysisManager } from '$lib/analysisManager.svelte';
import AnalysisTable from './AnalysisTable.svelte';
import ReAnalyzeButton from './ReAnalyzeButton.svelte';
@@ -73,7 +73,7 @@
{/if}
<p>
<b>GPS Mode:</b>
{gpsModeLabel(entry.gps_mode)}
{gps_mode_label(entry.gps_mode)}
</p>
</div>
{#if metadata && metadata.analyzers}

View File

@@ -1,6 +1,6 @@
<script lang="ts">
import { type SystemStats } from '$lib/systemStats';
import { gpsModeLabel, GpsMode, type GpsData } from '$lib/utils.svelte';
import { gps_mode_label, GpsMode, type GpsData } from '$lib/utils.svelte';
let {
stats,
gps_data = null,
@@ -122,7 +122,7 @@
{#if gps_mode !== GpsMode.Disabled}
<tr class="border-b border-gray-200">
<td class="py-1 pr-4 text-gray-500 font-medium">GPS Mode</td>
<td class="py-1">{gpsModeLabel(gps_mode)}</td>
<td class="py-1">{gps_mode_label(gps_mode)}</td>
</tr>
{#if gps_data}
<tr class="border-b border-gray-200">

View File

@@ -34,7 +34,7 @@ export enum GpsMode {
Api = 2,
}
export function gpsModeLabel(mode: GpsMode | undefined | null): string {
export function gps_mode_label(mode: GpsMode | undefined | null): string {
switch (mode) {
case GpsMode.Fixed:
return 'Fixed coordinates';