- Updated PasswordInput component with improved styling and touch manipulation support. - Added new IconMenu component for consistent icon representation in the UI. - Refactored MapControls and introduced MapControlsContent for better organization and usability. - Implemented suppress-leaflet-deprecation plugin to handle known warnings in Firefox. - Enhanced default layout with a responsive drawer for mobile navigation and improved user experience.
23 lines
833 B
TypeScript
23 lines
833 B
TypeScript
/**
|
|
* Suppress known Firefox deprecation warnings from Leaflet when panning/dragging the map.
|
|
* See: https://github.com/Leaflet/Leaflet/issues/7078, https://github.com/Leaflet/Leaflet/issues/9386
|
|
* No ill effect; Leaflet has not fixed this upstream.
|
|
*/
|
|
export default defineNuxtPlugin(() => {
|
|
if (import.meta.dev && typeof console !== 'undefined' && console.warn) {
|
|
const originalWarn = console.warn
|
|
console.warn = function (...args: unknown[]) {
|
|
const msg = typeof args[0] === 'string' ? args[0] : String(args[0])
|
|
if (
|
|
msg.includes('mozPressure') ||
|
|
msg.includes('mozInputSource') ||
|
|
msg.includes('PointerEvent.pressure') ||
|
|
msg.includes('PointerEvent.pointerType')
|
|
) {
|
|
return
|
|
}
|
|
originalWarn.apply(console, args)
|
|
}
|
|
}
|
|
})
|