Files
hnh-map/frontend-nuxt/types/api.ts
Nikolay Tatarinov 6a6977ddff Enhance user profile management and Gravatar integration
- Added email field to user profile API and frontend components for better user identification.
- Implemented PATCH /map/api/me endpoint to update user email, enhancing user experience.
- Introduced useGravatarUrl composable for generating Gravatar URLs based on user email.
- Updated profile and layout components to display user avatars using Gravatar, improving visual consistency.
- Enhanced development documentation to guide testing of navbar and profile features.
2026-03-01 16:48:56 +03:00

49 lines
783 B
TypeScript

export interface MeResponse {
username: string
auths: string[]
email?: string
tokens?: string[]
prefix?: string
}
export interface MapInfoAdmin {
ID: number
Name: string
Hidden: boolean
Priority: boolean
}
export interface SettingsResponse {
prefix: string
defaultHide: boolean
title: string
}
export interface ConfigResponse {
title?: string
auths?: string[]
}
export interface MapInfo {
ID: number
Name: string
size?: number
}
export interface Character {
name: string
id: number
map: number
position: { x: number; y: number }
type: string
}
export interface Marker {
name: string
id: number
map: number
position: { x: number; y: number }
image: string
hidden: boolean
}