mirror of
https://github.com/immich-app/immich
synced 2025-11-07 17:27:20 +00:00
Fix web lint issues
This commit is contained in:
parent
6725954b70
commit
4f7a3afbfc
40 changed files with 122 additions and 121 deletions
|
|
@ -9,10 +9,14 @@
|
|||
import { browser } from '$app/env';
|
||||
import { AssetResponseDto, AlbumResponseDto } from '@api';
|
||||
|
||||
type Leaflet = typeof import('leaflet');
|
||||
type LeafletMap = import('leaflet').Map;
|
||||
type LeafletMarker = import('leaflet').Marker;
|
||||
|
||||
// Map Property
|
||||
let map: any;
|
||||
let leaflet: any;
|
||||
let marker: any;
|
||||
let map: LeafletMap;
|
||||
let leaflet: Leaflet;
|
||||
let marker: LeafletMarker;
|
||||
|
||||
export let asset: AssetResponseDto;
|
||||
$: if (asset.exifInfo?.latitude != null && asset.exifInfo?.longitude != null) {
|
||||
|
|
@ -31,7 +35,6 @@
|
|||
|
||||
async function drawMap(lat: number, lon: number) {
|
||||
if (!leaflet) {
|
||||
// @ts-ignore
|
||||
leaflet = await import('leaflet');
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue