Refactoring: remove dependency on 'ToSvelte' by working with TypeComponent directly

This commit is contained in:
Pieter Vander Vennet 2025-07-28 01:33:11 +02:00
parent 8b426ac444
commit 29dc7d1e03
9 changed files with 20 additions and 29 deletions

View file

@ -1,9 +1,9 @@
import { Store, Stores } from "../UIEventSource"
import BaseUIElement from "../../UI/BaseUIElement"
import { LicenseInfo } from "./LicenseInfo"
import { Utils } from "../../Utils"
import { Feature, Point } from "geojson"
import { ServerSourceInfo } from "../../Models/SourceOverview"
import { ComponentType } from "svelte/types/runtime/internal/dev"
export interface ProvidedImage {
url: string
@ -69,10 +69,7 @@ export default abstract class ImageProvider {
public abstract readonly name: string
public abstract SourceIcon(
img?: { id: string; url: string; host?: string },
location?: { lon: number; lat: number }
): BaseUIElement
public abstract sourceIcon(): ComponentType
/**
* Gets all the relevant URLS for the given tags and for the given prefixes;