✨ MAJOR FEATURES: • Auto-zoom intelligence với smart bounds fitting • Enhanced 3D GPS markers với pulsing effects • Professional route display với 6-layer rendering • Status-based parking icons với availability indicators • Production-ready build optimizations 🗺️ AUTO-ZOOM FEATURES: • Smart bounds fitting cho GPS + selected parking • Adaptive padding (50px) cho visual balance • Max zoom control (level 16) để tránh quá gần • Dynamic centering khi không có selection 🎨 ENHANCED VISUALS: • 3D GPS marker với multi-layer pulse effects • Advanced parking icons với status colors • Selection highlighting với animation • Dimming system cho non-selected items 🛣️ ROUTE SYSTEM: • OpenRouteService API integration • Multi-layer route rendering (glow, shadow, main, animated) • Real-time distance & duration calculation • Visual route info trong popup 📱 PRODUCTION READY: • SSR safe với dynamic imports • Build errors resolved • Global deployment via Vercel • Optimized performance 🌍 DEPLOYMENT: • Vercel: https://whatever-ctk2auuxr-phong12hexdockworks-projects.vercel.app • Bundle size: 22.8 kB optimized • Global CDN distribution • HTTPS enabled 💾 VERSION CONTROL: • MapView-v2.0.tsx backup created • MAPVIEW_VERSIONS.md documentation • Full version history tracking
65 lines
1.7 KiB
JavaScript
65 lines
1.7 KiB
JavaScript
/*
|
|
MIT License http://www.opensource.org/licenses/mit-license.php
|
|
Author Tobias Koppers @sokra
|
|
*/
|
|
|
|
"use strict";
|
|
|
|
const CaseSensitiveModulesWarning = require("./CaseSensitiveModulesWarning");
|
|
|
|
/** @typedef {import("./Compiler")} Compiler */
|
|
/** @typedef {import("./Module")} Module */
|
|
/** @typedef {import("./NormalModule")} NormalModule */
|
|
|
|
const PLUGIN_NAME = "WarnCaseSensitiveModulesPlugin";
|
|
|
|
class WarnCaseSensitiveModulesPlugin {
|
|
/**
|
|
* Apply the plugin
|
|
* @param {Compiler} compiler the compiler instance
|
|
* @returns {void}
|
|
*/
|
|
apply(compiler) {
|
|
compiler.hooks.compilation.tap(PLUGIN_NAME, compilation => {
|
|
compilation.hooks.seal.tap(PLUGIN_NAME, () => {
|
|
/** @type {Map<string, Map<string, Module>>} */
|
|
const moduleWithoutCase = new Map();
|
|
for (const module of compilation.modules) {
|
|
const identifier = module.identifier();
|
|
|
|
// Ignore `data:` URLs, because it's not a real path
|
|
if (
|
|
/** @type {NormalModule} */
|
|
(module).resourceResolveData !== undefined &&
|
|
/** @type {NormalModule} */
|
|
(module).resourceResolveData.encodedContent !== undefined
|
|
) {
|
|
continue;
|
|
}
|
|
|
|
const lowerIdentifier = identifier.toLowerCase();
|
|
let map = moduleWithoutCase.get(lowerIdentifier);
|
|
if (map === undefined) {
|
|
map = new Map();
|
|
moduleWithoutCase.set(lowerIdentifier, map);
|
|
}
|
|
map.set(identifier, module);
|
|
}
|
|
for (const pair of moduleWithoutCase) {
|
|
const map = pair[1];
|
|
if (map.size > 1) {
|
|
compilation.warnings.push(
|
|
new CaseSensitiveModulesWarning(
|
|
map.values(),
|
|
compilation.moduleGraph
|
|
)
|
|
);
|
|
}
|
|
}
|
|
});
|
|
});
|
|
}
|
|
}
|
|
|
|
module.exports = WarnCaseSensitiveModulesPlugin;
|