2021-05-27 13:30:56 +00:00
|
|
|
import {State} from "@/store";
|
2021-07-19 15:40:30 +00:00
|
|
|
import {DynmapPlayer, DynmapUrlConfig, LiveAtlasWorldMap} from "@/dynmap";
|
2021-05-15 19:25:03 +00:00
|
|
|
|
|
|
|
declare module "*.png" {
|
|
|
|
const value: any;
|
|
|
|
export = value;
|
|
|
|
}
|
|
|
|
|
|
|
|
declare module '*.vue' {
|
2021-07-19 15:40:30 +00:00
|
|
|
import type {DefineComponent} from 'vue'
|
|
|
|
const component: DefineComponent<{}, {}, any>
|
2021-05-15 19:25:03 +00:00
|
|
|
export default component
|
2020-12-20 16:01:15 +00:00
|
|
|
}
|
|
|
|
|
2021-07-19 15:40:30 +00:00
|
|
|
interface Coordinate {
|
|
|
|
x: number;
|
|
|
|
y: number;
|
|
|
|
z: number;
|
|
|
|
}
|
|
|
|
|
|
|
|
interface LiveAtlasLocation {
|
|
|
|
x: number;
|
|
|
|
y: number;
|
|
|
|
z: number;
|
|
|
|
world?: string;
|
|
|
|
}
|
|
|
|
|
2021-05-18 15:48:56 +00:00
|
|
|
interface LiveAtlasServerDefinition {
|
2021-05-17 02:39:25 +00:00
|
|
|
id: string
|
|
|
|
label?: string
|
2021-05-18 15:48:56 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
interface LiveAtlasDynmapServerDefinition extends LiveAtlasServerDefinition {
|
|
|
|
type: 'dynmap',
|
|
|
|
dynmap: DynmapUrlConfig,
|
2021-05-20 15:13:25 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
interface LiveAtlasMessageConfig {
|
|
|
|
chatPlayerJoin: string;
|
|
|
|
chatPlayerQuit: string;
|
|
|
|
chatAnonymousJoin: string;
|
|
|
|
chatAnonymousQuit: string;
|
|
|
|
chatNoMessages: string;
|
2021-05-20 15:39:41 +00:00
|
|
|
chatTitle: string;
|
2021-05-20 15:13:25 +00:00
|
|
|
chatLogin: string;
|
|
|
|
chatLoginLink: string;
|
|
|
|
chatSend: string;
|
2021-05-20 15:39:41 +00:00
|
|
|
chatPlaceholder: string;
|
2021-05-20 15:13:25 +00:00
|
|
|
chatErrorNotAllowed: string;
|
|
|
|
chatErrorRequiresLogin: string;
|
|
|
|
chatErrorCooldown: string;
|
|
|
|
chatErrorDisabled: string;
|
|
|
|
chatErrorUnknown: string;
|
2021-05-20 15:39:41 +00:00
|
|
|
serversHeading: string;
|
|
|
|
worldsHeading: string;
|
|
|
|
worldsSkeleton: string;
|
|
|
|
playersSkeleton: string;
|
|
|
|
playersHeading: string;
|
|
|
|
playersTitle: string;
|
|
|
|
playersTitleHidden: string;
|
|
|
|
playersTitleOtherWorld: string;
|
|
|
|
followingHeading: string;
|
|
|
|
followingUnfollow: string;
|
|
|
|
followingTitleUnfollow: string;
|
|
|
|
followingHidden: string;
|
|
|
|
linkTitle: string;
|
|
|
|
loadingTitle: string;
|
|
|
|
locationRegion: string;
|
|
|
|
locationChunk: string;
|
2021-05-24 17:23:35 +00:00
|
|
|
contextMenuCopyLink: string;
|
|
|
|
contextMenuCenterHere: string;
|
2021-05-25 18:26:14 +00:00
|
|
|
toggleTitle: string;
|
2021-05-26 20:13:54 +00:00
|
|
|
mapTitle: string;
|
2021-05-28 20:28:21 +00:00
|
|
|
layersTitle: string;
|
2021-05-28 23:38:29 +00:00
|
|
|
copyToClipboardSuccess: string;
|
|
|
|
copyToClipboardError: string;
|
2021-05-25 18:26:14 +00:00
|
|
|
}
|
|
|
|
|
2021-05-28 18:14:06 +00:00
|
|
|
export type LiveAtlasUIElement = 'layers' | 'chat' | 'players' | 'maps' | 'settings';
|
2021-06-23 16:40:56 +00:00
|
|
|
export type LiveAtlasSidebarSection = 'servers' | 'players' | 'maps';
|
|
|
|
|
|
|
|
interface LiveAtlasSortedPlayers extends Array<DynmapPlayer> {
|
|
|
|
dirty?: boolean;
|
|
|
|
}
|
2021-07-19 15:40:30 +00:00
|
|
|
|
|
|
|
interface LiveAtlasWorld {
|
|
|
|
seaLevel: number;
|
|
|
|
name: string;
|
|
|
|
protected: boolean;
|
|
|
|
title: string;
|
|
|
|
height: number;
|
|
|
|
center: Coordinate;
|
|
|
|
maps: Map<string, LiveAtlasWorldMap>;
|
|
|
|
}
|
|
|
|
|
|
|
|
interface LiveAtlasWorldState {
|
|
|
|
raining: boolean;
|
|
|
|
thundering: boolean;
|
|
|
|
timeOfDay: number;
|
|
|
|
}
|
|
|
|
|
|
|
|
interface LiveAtlasWorldMap {
|
|
|
|
world: LiveAtlasWorld;
|
|
|
|
name: string;
|
|
|
|
icon: string;
|
|
|
|
title: string;
|
|
|
|
background: string;
|
|
|
|
nightAndDay: boolean;
|
|
|
|
backgroundDay?: string;
|
|
|
|
backgroundNight?: string;
|
|
|
|
imageFormat: string;
|
|
|
|
prefix: string;
|
|
|
|
protected: boolean;
|
|
|
|
mapToWorld: [number, number, number, number, number, number, number, number, number];
|
|
|
|
worldToMap: [number, number, number, number, number, number, number, number, number];
|
|
|
|
nativeZoomLevels: number;
|
|
|
|
extraZoomLevels: number;
|
|
|
|
}
|
|
|
|
|
|
|
|
interface LiveAtlasParsedUrl {
|
|
|
|
world?: string;
|
|
|
|
map?: string;
|
|
|
|
location?: Coordinate;
|
|
|
|
zoom?: number;
|
|
|
|
legacy: boolean;
|
|
|
|
}
|