From f4d489b4740c6001f79cc1a725b745d4b9548095 Mon Sep 17 00:00:00 2001 From: James Lyne Date: Fri, 17 Jun 2022 14:02:58 +0100 Subject: [PATCH] Inspection fixes --- src/components/ChatBox.vue | 1 - src/dynmap.d.ts | 16 ---------------- src/leaflet/control/LiveAtlasLayerControl.ts | 1 + src/leaflet/control/LoginControl.ts | 1 - src/providers/OverviewerMapProvider.ts | 4 ++-- 5 files changed, 3 insertions(+), 20 deletions(-) diff --git a/src/components/ChatBox.vue b/src/components/ChatBox.vue index 9b3787fa..fe8ba223 100644 --- a/src/components/ChatBox.vue +++ b/src/components/ChatBox.vue @@ -36,7 +36,6 @@ import ChatMessage from "@/components/chat/ChatMessage.vue"; import {ActionTypes} from "@/store/action-types"; import ChatError from "@/errors/ChatError"; - import {MutationTypes} from "@/store/mutation-types"; export default defineComponent({ components: { diff --git a/src/dynmap.d.ts b/src/dynmap.d.ts index 4f58196a..65fa3ecb 100644 --- a/src/dynmap.d.ts +++ b/src/dynmap.d.ts @@ -66,22 +66,6 @@ interface DynmapMarkerUpdate { payload: LiveAtlasMarker, } -interface DynmapPointUpdate extends DynmapMarkerUpdate { - payload?: LiveAtlasPointMarker -} - -interface DynmapAreaUpdate extends DynmapMarkerUpdate { - payload?: LiveAtlasAreaMarker -} - -interface DynmapCircleUpdate extends DynmapMarkerUpdate { - payload?: LiveAtlasCircleMarker -} - -interface DynmapLineUpdate extends DynmapMarkerUpdate { - payload?: LiveAtlasLineMarker -} - interface DynmapTileUpdate { name: string timestamp: number diff --git a/src/leaflet/control/LiveAtlasLayerControl.ts b/src/leaflet/control/LiveAtlasLayerControl.ts index 952a15cf..993f7e3a 100644 --- a/src/leaflet/control/LiveAtlasLayerControl.ts +++ b/src/leaflet/control/LiveAtlasLayerControl.ts @@ -93,6 +93,7 @@ export class LiveAtlasLayerControl extends Control.Layers { return this; } + // noinspection JSUnusedGlobalSymbols _initLayout() { const className = 'leaflet-control-layers', container = this._container = DomUtil.create('div', className), diff --git a/src/leaflet/control/LoginControl.ts b/src/leaflet/control/LoginControl.ts index 5a7dfbdf..6ce6c077 100644 --- a/src/leaflet/control/LoginControl.ts +++ b/src/leaflet/control/LoginControl.ts @@ -16,7 +16,6 @@ import {Control, ControlOptions, DomEvent, DomUtil} from 'leaflet'; import {useStore} from "@/store"; -import {MutationTypes} from "@/store/mutation-types"; import {watch} from "@vue/runtime-core"; import "@/assets/icons/login.svg"; diff --git a/src/providers/OverviewerMapProvider.ts b/src/providers/OverviewerMapProvider.ts index 5cf0cadb..05da1f73 100644 --- a/src/providers/OverviewerMapProvider.ts +++ b/src/providers/OverviewerMapProvider.ts @@ -63,7 +63,7 @@ export default class OverviewerMapProvider extends MapProvider { } } - private static buildServerConfig(response: any): LiveAtlasServerConfig { + private static buildServerConfig(ignore: any): LiveAtlasServerConfig { return { title: useStore().state.initialTitle, @@ -77,7 +77,7 @@ export default class OverviewerMapProvider extends MapProvider { }; } - private static buildMessagesConfig(response: any): LiveAtlasServerMessageConfig { + private static buildMessagesConfig(ignore: any): LiveAtlasServerMessageConfig { return { worldsHeading: 'Worlds',