- Added a new AGENTS.md file to document the project structure and conventions. - Updated .gitignore to include node_modules and refined cursor rules. - Introduced new backend and frontend components for improved map interactions, including context menus and controls. - Enhanced API composables for better admin and authentication functionalities. - Refactored existing components for cleaner code and improved user experience. - Updated README.md to clarify production asset serving and user setup instructions.
48 lines
765 B
TypeScript
48 lines
765 B
TypeScript
export interface MeResponse {
|
|
username: string
|
|
auths: 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
|
|
}
|