✨ 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
57 lines
2.4 KiB
JavaScript
57 lines
2.4 KiB
JavaScript
"use strict";
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
exports.TestingModule = void 0;
|
|
const common_1 = require("@nestjs/common");
|
|
const load_package_util_1 = require("@nestjs/common/utils/load-package.util");
|
|
const shared_utils_1 = require("@nestjs/common/utils/shared.utils");
|
|
const core_1 = require("@nestjs/core");
|
|
/**
|
|
* @publicApi
|
|
*/
|
|
class TestingModule extends core_1.NestApplicationContext {
|
|
constructor(container, graphInspector, contextModule, applicationConfig, scope = []) {
|
|
const options = {};
|
|
super(container, options, contextModule, scope);
|
|
this.applicationConfig = applicationConfig;
|
|
this.graphInspector = graphInspector;
|
|
}
|
|
isHttpServer(serverOrOptions) {
|
|
return !!(serverOrOptions && serverOrOptions.patch);
|
|
}
|
|
createNestApplication(serverOrOptions, options) {
|
|
const [httpAdapter, appOptions] = this.isHttpServer(serverOrOptions)
|
|
? [serverOrOptions, options]
|
|
: [this.createHttpAdapter(), serverOrOptions];
|
|
this.applyLogger(appOptions);
|
|
this.container.setHttpAdapter(httpAdapter);
|
|
const instance = new core_1.NestApplication(this.container, httpAdapter, this.applicationConfig, this.graphInspector, appOptions);
|
|
return this.createAdapterProxy(instance, httpAdapter);
|
|
}
|
|
createNestMicroservice(options) {
|
|
const { NestMicroservice } = (0, load_package_util_1.loadPackage)('@nestjs/microservices', 'TestingModule', () => require('@nestjs/microservices'));
|
|
this.applyLogger(options);
|
|
return new NestMicroservice(this.container, options, this.graphInspector, this.applicationConfig);
|
|
}
|
|
createHttpAdapter(httpServer) {
|
|
const { ExpressAdapter } = (0, load_package_util_1.loadPackage)('@nestjs/platform-express', 'NestFactory', () => require('@nestjs/platform-express'));
|
|
return new ExpressAdapter(httpServer);
|
|
}
|
|
applyLogger(options) {
|
|
if (!options || (0, shared_utils_1.isUndefined)(options.logger)) {
|
|
return;
|
|
}
|
|
common_1.Logger.overrideLogger(options.logger);
|
|
}
|
|
createAdapterProxy(app, adapter) {
|
|
return new Proxy(app, {
|
|
get: (receiver, prop) => {
|
|
if (!(prop in receiver) && prop in adapter) {
|
|
return adapter[prop];
|
|
}
|
|
return receiver[prop];
|
|
},
|
|
});
|
|
}
|
|
}
|
|
exports.TestingModule = TestingModule;
|