🎯 MapView v2.0 - Global Deployment Ready

 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
This commit is contained in:
2025-07-20 19:52:16 +07:00
parent 3203463a6a
commit c65cc97a33
64624 changed files with 7199453 additions and 6462 deletions

View File

@@ -0,0 +1,61 @@
import { HttpServer, RequestMethod, VersioningOptions } from '@nestjs/common';
import { RequestHandler, VersionValue } from '@nestjs/common/interfaces';
import { CorsOptions, CorsOptionsDelegate } from '@nestjs/common/interfaces/external/cors-options.interface';
import { NestApplicationOptions } from '@nestjs/common/interfaces/nest-application-options.interface';
/**
* @publicApi
*/
export declare abstract class AbstractHttpAdapter<TServer = any, TRequest = any, TResponse = any> implements HttpServer<TRequest, TResponse> {
protected instance?: any;
protected httpServer: TServer;
constructor(instance?: any);
init(): Promise<void>;
use(...args: any[]): any;
get(handler: RequestHandler): any;
get(path: any, handler: RequestHandler): any;
post(handler: RequestHandler): any;
post(path: any, handler: RequestHandler): any;
head(handler: RequestHandler): any;
head(path: any, handler: RequestHandler): any;
delete(handler: RequestHandler): any;
delete(path: any, handler: RequestHandler): any;
put(handler: RequestHandler): any;
put(path: any, handler: RequestHandler): any;
patch(handler: RequestHandler): any;
patch(path: any, handler: RequestHandler): any;
all(handler: RequestHandler): any;
all(path: any, handler: RequestHandler): any;
search(handler: RequestHandler): any;
search(path: any, handler: RequestHandler): any;
options(handler: RequestHandler): any;
options(path: any, handler: RequestHandler): any;
listen(port: string | number, callback?: () => void): any;
listen(port: string | number, hostname: string, callback?: () => void): any;
getHttpServer(): TServer;
setHttpServer(httpServer: TServer): void;
setInstance<T = any>(instance: T): void;
getInstance<T = any>(): T;
abstract close(): any;
abstract initHttpServer(options: NestApplicationOptions): any;
abstract useStaticAssets(...args: any[]): any;
abstract setViewEngine(engine: string): any;
abstract getRequestHostname(request: any): any;
abstract getRequestMethod(request: any): any;
abstract getRequestUrl(request: any): any;
abstract status(response: any, statusCode: number): any;
abstract reply(response: any, body: any, statusCode?: number): any;
abstract end(response: any, message?: string): any;
abstract render(response: any, view: string, options: any): any;
abstract redirect(response: any, statusCode: number, url: string): any;
abstract setErrorHandler(handler: Function, prefix?: string): any;
abstract setNotFoundHandler(handler: Function, prefix?: string): any;
abstract isHeadersSent(response: any): any;
abstract getHeader?(response: any, name: string): any;
abstract setHeader(response: any, name: string, value: string): any;
abstract appendHeader?(response: any, name: string, value: string): any;
abstract registerParserMiddleware(prefix?: string, rawBody?: boolean): any;
abstract enableCors(options: CorsOptions | CorsOptionsDelegate<TRequest>, prefix?: string): any;
abstract createMiddlewareFactory(requestMethod: RequestMethod): ((path: string, callback: Function) => any) | Promise<(path: string, callback: Function) => any>;
abstract getType(): string;
abstract applyVersionFilter(handler: Function, version: VersionValue, versioningOptions: VersioningOptions): (req: TRequest, res: TResponse, next: () => void) => Function;
}

View File

@@ -0,0 +1,59 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.AbstractHttpAdapter = void 0;
/**
* @publicApi
*/
class AbstractHttpAdapter {
constructor(instance) {
this.instance = instance;
}
// eslint-disable-next-line @typescript-eslint/no-empty-function
async init() { }
use(...args) {
return this.instance.use(...args);
}
get(...args) {
return this.instance.get(...args);
}
post(...args) {
return this.instance.post(...args);
}
head(...args) {
return this.instance.head(...args);
}
delete(...args) {
return this.instance.delete(...args);
}
put(...args) {
return this.instance.put(...args);
}
patch(...args) {
return this.instance.patch(...args);
}
all(...args) {
return this.instance.all(...args);
}
search(...args) {
return this.instance.search(...args);
}
options(...args) {
return this.instance.options(...args);
}
listen(port, hostname, callback) {
return this.instance.listen(port, hostname, callback);
}
getHttpServer() {
return this.httpServer;
}
setHttpServer(httpServer) {
this.httpServer = httpServer;
}
setInstance(instance) {
this.instance = instance;
}
getInstance() {
return this.instance;
}
}
exports.AbstractHttpAdapter = AbstractHttpAdapter;

View File

@@ -0,0 +1 @@
export * from './http-adapter';

4
backend/node_modules/@nestjs/core/adapters/index.js generated vendored Normal file
View File

@@ -0,0 +1,4 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const tslib_1 = require("tslib");
tslib_1.__exportStar(require("./http-adapter"), exports);