mirror of
https://github.com/immich-app/immich.git
synced 2024-11-16 02:18:50 -07:00
fix(web): remove warnings during the build (#7035)
* fix: remove warnings during the build * fix: optimize chunks size * fix: remove split vendor chunk strategy * remove custom chunk * Update web/src/routes/(user)/map/+page.svelte * revert change --------- Co-authored-by: Ben McCann <322311+benmccann@users.noreply.github.com>
This commit is contained in:
parent
84191e352e
commit
c0a09d06a2
@ -1,5 +1,5 @@
|
||||
import type { AssetResponseDto, ServerVersionResponseDto } from '@api';
|
||||
import { Socket, io } from 'socket.io-client';
|
||||
import { type Socket, io } from 'socket.io-client';
|
||||
import { writable } from 'svelte/store';
|
||||
import { loadConfig } from './server-config.store';
|
||||
import { getAuthUser } from '$lib/utils/auth';
|
||||
|
@ -9,11 +9,12 @@
|
||||
import { mapSettings } from '$lib/stores/preferences.store';
|
||||
import { featureFlags } from '$lib/stores/server-config.store';
|
||||
import { type MapMarkerResponseDto, api } from '@api';
|
||||
import { isEqual, omit } from 'lodash-es';
|
||||
import { isEqual } from 'lodash-es';
|
||||
import { DateTime, Duration } from 'luxon';
|
||||
import { onDestroy, onMount } from 'svelte';
|
||||
import type { PageData } from './$types';
|
||||
import Map from '$lib/components/shared-components/map/map.svelte';
|
||||
import type { MapSettings } from '$lib/stores/preferences.store';
|
||||
|
||||
export let data: PageData;
|
||||
|
||||
@ -35,6 +36,9 @@
|
||||
});
|
||||
|
||||
$: $featureFlags.map || goto(AppRoute.PHOTOS);
|
||||
const omit = (obj: MapSettings, key: string) => {
|
||||
return Object.fromEntries(Object.entries(obj).filter(([k]) => k !== key));
|
||||
};
|
||||
|
||||
async function loadMapMarkers() {
|
||||
if (abortController) {
|
||||
|
Loading…
Reference in New Issue
Block a user