chore: automated housekeeping...

This commit is contained in:
Pieter Vander Vennet 2025-06-16 14:46:12 +02:00
parent d3dc1ac4c0
commit b4efa38c06
96 changed files with 3045 additions and 2849 deletions

View file

@ -123,9 +123,7 @@ export default abstract class ImageProvider {
value: string
): undefined | ProvidedImage[] | Promise<ProvidedImage[]>
public abstract DownloadAttribution(providedImage: {
id: string
}): Promise<LicenseInfo>
public abstract DownloadAttribution(providedImage: { id: string }): Promise<LicenseInfo>
public abstract apiUrls(): string[]
@ -141,7 +139,7 @@ export default abstract class ImageProvider {
id: string
}): Promise<Feature<Point, PanoramaView>> | undefined
public static async offerImageAsDownload(image: { url_hd?: string, url: string }) {
public static async offerImageAsDownload(image: { url_hd?: string; url: string }) {
const response = await fetch(image.url_hd ?? image.url)
const blob = await response.blob()
Utils.offerContentsAsDownloadableFile(blob, new URL(image.url).pathname.split("/").at(-1), {