mirror of
https://github.com/EFForg/rayhunter.git
synced 2026-06-03 11:43:34 -07:00
fix js lints
This commit is contained in:
committed by
Will Greenberg
parent
19df99d663
commit
2ada840919
@@ -1,7 +1,7 @@
|
|||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
import { type ReportMetadata } from '$lib/analysis.svelte';
|
import { type ReportMetadata } from '$lib/analysis.svelte';
|
||||||
import type { ManifestEntry } from '$lib/manifest.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 { AnalysisManager } from '$lib/analysisManager.svelte';
|
||||||
import AnalysisTable from './AnalysisTable.svelte';
|
import AnalysisTable from './AnalysisTable.svelte';
|
||||||
import ReAnalyzeButton from './ReAnalyzeButton.svelte';
|
import ReAnalyzeButton from './ReAnalyzeButton.svelte';
|
||||||
@@ -73,7 +73,7 @@
|
|||||||
{/if}
|
{/if}
|
||||||
<p>
|
<p>
|
||||||
<b>GPS Mode:</b>
|
<b>GPS Mode:</b>
|
||||||
{gpsModeLabel(entry.gps_mode)}
|
{gps_mode_label(entry.gps_mode)}
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
{#if metadata && metadata.analyzers}
|
{#if metadata && metadata.analyzers}
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
import { type SystemStats } from '$lib/systemStats';
|
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 {
|
let {
|
||||||
stats,
|
stats,
|
||||||
gps_data = null,
|
gps_data = null,
|
||||||
@@ -122,7 +122,7 @@
|
|||||||
{#if gps_mode !== GpsMode.Disabled}
|
{#if gps_mode !== GpsMode.Disabled}
|
||||||
<tr class="border-b border-gray-200">
|
<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 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>
|
</tr>
|
||||||
{#if gps_data}
|
{#if gps_data}
|
||||||
<tr class="border-b border-gray-200">
|
<tr class="border-b border-gray-200">
|
||||||
|
|||||||
@@ -34,7 +34,7 @@ export enum GpsMode {
|
|||||||
Api = 2,
|
Api = 2,
|
||||||
}
|
}
|
||||||
|
|
||||||
export function gpsModeLabel(mode: GpsMode | undefined | null): string {
|
export function gps_mode_label(mode: GpsMode | undefined | null): string {
|
||||||
switch (mode) {
|
switch (mode) {
|
||||||
case GpsMode.Fixed:
|
case GpsMode.Fixed:
|
||||||
return 'Fixed coordinates';
|
return 'Fixed coordinates';
|
||||||
|
|||||||
Reference in New Issue
Block a user