mirror of
https://github.com/EFForg/rayhunter.git
synced 2026-06-08 06:01:53 -07:00
appease npm again
This commit is contained in:
@@ -46,7 +46,7 @@
|
|||||||
});
|
});
|
||||||
|
|
||||||
// Format signal value with unit
|
// Format signal value with unit
|
||||||
function formatSignal(value: number | undefined, unit: string): string {
|
function format_signal(value: number | undefined, unit: string): string {
|
||||||
if (value === undefined) return '—';
|
if (value === undefined) return '—';
|
||||||
return `${value.toFixed(1)} ${unit}`;
|
return `${value.toFixed(1)} ${unit}`;
|
||||||
}
|
}
|
||||||
@@ -144,7 +144,7 @@
|
|||||||
</span>
|
</span>
|
||||||
{#if stats.cell_info.rsrp_dbm !== undefined}
|
{#if stats.cell_info.rsrp_dbm !== undefined}
|
||||||
<span class="text-gray-600">
|
<span class="text-gray-600">
|
||||||
(RSRP: {formatSignal(stats.cell_info.rsrp_dbm, 'dBm')})
|
(RSRP: {format_signal(stats.cell_info.rsrp_dbm, 'dBm')})
|
||||||
</span>
|
</span>
|
||||||
{/if}
|
{/if}
|
||||||
</div>
|
</div>
|
||||||
@@ -157,12 +157,15 @@
|
|||||||
{/if}
|
{/if}
|
||||||
{#if stats.cell_info.rsrq_db !== undefined}
|
{#if stats.cell_info.rsrq_db !== undefined}
|
||||||
<span class="ml-2"
|
<span class="ml-2"
|
||||||
>RSRQ: {formatSignal(stats.cell_info.rsrq_db, 'dB')}</span
|
>RSRQ: {format_signal(stats.cell_info.rsrq_db, 'dB')}</span
|
||||||
>
|
>
|
||||||
{/if}
|
{/if}
|
||||||
{#if stats.cell_info.rssi_dbm !== undefined}
|
{#if stats.cell_info.rssi_dbm !== undefined}
|
||||||
<span class="ml-2"
|
<span class="ml-2"
|
||||||
>RSSI: {formatSignal(stats.cell_info.rssi_dbm, 'dBm')}</span
|
>RSSI: {format_signal(
|
||||||
|
stats.cell_info.rssi_dbm,
|
||||||
|
'dBm'
|
||||||
|
)}</span
|
||||||
>
|
>
|
||||||
{/if}
|
{/if}
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user