- 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.
24 lines
779 B
TypeScript
24 lines
779 B
TypeScript
/** Admin API composable. Uses useMapApi internally. */
|
|
export function useAdminApi() {
|
|
const api = useMapApi()
|
|
|
|
return {
|
|
adminUsers: api.adminUsers,
|
|
adminUserByName: api.adminUserByName,
|
|
adminUserPost: api.adminUserPost,
|
|
adminUserDelete: api.adminUserDelete,
|
|
adminSettings: api.adminSettings,
|
|
adminSettingsPost: api.adminSettingsPost,
|
|
adminMaps: api.adminMaps,
|
|
adminMapPost: api.adminMapPost,
|
|
adminMapToggleHidden: api.adminMapToggleHidden,
|
|
adminWipe: api.adminWipe,
|
|
adminRebuildZooms: api.adminRebuildZooms,
|
|
adminExportUrl: api.adminExportUrl,
|
|
adminMerge: api.adminMerge,
|
|
adminWipeTile: api.adminWipeTile,
|
|
adminSetCoords: api.adminSetCoords,
|
|
adminHideMarker: api.adminHideMarker,
|
|
}
|
|
}
|