feat: add world map functionality and admin map management

- Added world map page with interactive marker display
- Implemented admin map management for marker CRUD operations
- Added map layers and markers seed data to database
- Integrated new routes for map functionality
- Updated database configuration for production environment
- Added documentation page route
- Enhanced package.json with required dependencies for map features
This commit is contained in:
Lars Behrends
2026-01-02 05:08:07 +01:00
parent ea2b803534
commit 065a6e657d
152 changed files with 5024 additions and 35 deletions

View File

@@ -113,4 +113,45 @@ export interface DiscordUser {
discriminator: string;
avatarUrl: string;
linkedPlayerUuid?: string | null;
isAdmin?: boolean;
}
export interface MapMarker {
id: string;
name: string;
type: 'city' | 'poi' | 'player_home' | 'waypoint';
x_coord: number;
z_coord: number;
description: string;
linked_entity_type?: string;
linked_entity_id?: string;
icon_type: string;
color: string;
is_public: boolean;
created_at: string;
updated_at: string;
coordinates?: {
x: number;
y: number;
pixelX: number;
pixelY: number;
};
}
export interface MapLayer {
id: string;
name: string;
description: string;
is_active: boolean;
order_index: number;
created_at: string;
}
export interface MapMetadata {
width: number;
height: number;
offsetX: number;
offsetZ: number;
tileSize: number;
lastUpdated?: string;
}