🎯 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 @@
export declare function assignTwoLevelsDeep<TObject, T>(_dest: TObject, ...args: T[]): TObject & T;

View File

@@ -0,0 +1,13 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.assignTwoLevelsDeep = void 0;
function assignTwoLevelsDeep(_dest, ...args) {
const dest = _dest;
for (const arg of args) {
for (const [key, value] of Object.entries(arg !== null && arg !== void 0 ? arg : {})) {
dest[key] = Object.assign(Object.assign({}, dest[key]), value);
}
}
return dest;
}
exports.assignTwoLevelsDeep = assignTwoLevelsDeep;

View File

@@ -0,0 +1,9 @@
import { SchemaObjectMetadata } from '../interfaces/schema-object-metadata.interface';
import { SwaggerEnumType } from '../types/swagger-enum.type';
export declare function getEnumValues(enumType: SwaggerEnumType | (() => SwaggerEnumType)): string[] | number[];
export declare function getEnumType(values: (string | number)[]): 'string' | 'number';
export declare function addEnumArraySchema(paramDefinition: Partial<Record<'schema' | 'isArray' | 'enumName', any>>, decoratorOptions: Partial<Record<'enum' | 'enumName', any>>): void;
export declare function addEnumSchema(paramDefinition: Partial<Record<string, any>>, decoratorOptions: Partial<Record<string, any>>): void;
export declare const isEnumArray: <T extends Partial<Record<"enum" | "isArray", any>>>(obj: Record<string, any>) => obj is T;
export declare const isEnumDefined: <T extends Partial<Record<"enum", any>>>(obj: Record<string, any>) => obj is T;
export declare const isEnumMetadata: (metadata: SchemaObjectMetadata) => any;

View File

@@ -0,0 +1,59 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.isEnumMetadata = exports.isEnumDefined = exports.isEnumArray = exports.addEnumSchema = exports.addEnumArraySchema = exports.getEnumType = exports.getEnumValues = void 0;
const lodash_1 = require("lodash");
function getEnumValues(enumType) {
if (typeof enumType === 'function') {
return getEnumValues(enumType());
}
if (Array.isArray(enumType)) {
return enumType;
}
if (typeof enumType !== 'object') {
return [];
}
const numericValues = Object.values(enumType)
.filter((value) => typeof value === 'number')
.map((value) => value.toString());
return Object.keys(enumType)
.filter((key) => !numericValues.includes(key))
.map((key) => enumType[key]);
}
exports.getEnumValues = getEnumValues;
function getEnumType(values) {
const hasString = values.filter(lodash_1.isString).length > 0;
return hasString ? 'string' : 'number';
}
exports.getEnumType = getEnumType;
function addEnumArraySchema(paramDefinition, decoratorOptions) {
const paramSchema = paramDefinition.schema || {};
paramDefinition.schema = paramSchema;
paramSchema.type = 'array';
delete paramDefinition.isArray;
const enumValues = getEnumValues(decoratorOptions.enum);
paramSchema.items = {
type: getEnumType(enumValues),
enum: enumValues
};
if (decoratorOptions.enumName) {
paramDefinition.enumName = decoratorOptions.enumName;
}
}
exports.addEnumArraySchema = addEnumArraySchema;
function addEnumSchema(paramDefinition, decoratorOptions) {
const paramSchema = paramDefinition.schema || {};
const enumValues = getEnumValues(decoratorOptions.enum);
paramDefinition.schema = paramSchema;
paramSchema.enum = enumValues;
paramSchema.type = getEnumType(enumValues);
if (decoratorOptions.enumName) {
paramDefinition.enumName = decoratorOptions.enumName;
}
}
exports.addEnumSchema = addEnumSchema;
const isEnumArray = (obj) => obj.isArray && obj.enum;
exports.isEnumArray = isEnumArray;
const isEnumDefined = (obj) => obj.enum;
exports.isEnumDefined = isEnumDefined;
const isEnumMetadata = (metadata) => { var _a; return metadata.enum || (metadata.isArray && ((_a = metadata.items) === null || _a === void 0 ? void 0 : _a['enum'])); };
exports.isEnumMetadata = isEnumMetadata;

View File

@@ -0,0 +1,2 @@
import 'reflect-metadata';
export declare function extendMetadata<T extends Record<string, any>[] = any[]>(metadata: T, metakey: string, target: object): any;

View File

@@ -0,0 +1,12 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.extendMetadata = void 0;
require("reflect-metadata");
function extendMetadata(metadata, metakey, target) {
const existingMetadata = Reflect.getMetadata(metakey, target);
if (!existingMetadata) {
return metadata;
}
return existingMetadata.concat(metadata);
}
exports.extendMetadata = extendMetadata;

View File

@@ -0,0 +1,2 @@
import { INestApplication } from '@nestjs/common';
export declare function getGlobalPrefix(app: INestApplication): string;

View File

@@ -0,0 +1,8 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.getGlobalPrefix = void 0;
function getGlobalPrefix(app) {
const internalConfigRef = app.config;
return (internalConfigRef && internalConfigRef.getGlobalPrefix()) || '';
}
exports.getGlobalPrefix = getGlobalPrefix;

View File

@@ -0,0 +1,4 @@
export declare function getSchemaPath(model: string | Function): string;
export declare function refs(...models: Function[]): {
$ref: string;
}[];

View File

@@ -0,0 +1,15 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.refs = exports.getSchemaPath = void 0;
const shared_utils_1 = require("@nestjs/common/utils/shared.utils");
function getSchemaPath(model) {
const modelName = (0, shared_utils_1.isString)(model) ? model : model && model.name;
return `#/components/schemas/${modelName}`;
}
exports.getSchemaPath = getSchemaPath;
function refs(...models) {
return models.map((item) => ({
$ref: getSchemaPath(item.name)
}));
}
exports.refs = refs;

View File

@@ -0,0 +1 @@
export * from './get-schema-path.util';

View File

@@ -0,0 +1,17 @@
"use strict";
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
var desc = Object.getOwnPropertyDescriptor(m, k);
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
desc = { enumerable: true, get: function() { return m[k]; } };
}
Object.defineProperty(o, k2, desc);
}) : (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
o[k2] = m[k];
}));
var __exportStar = (this && this.__exportStar) || function(m, exports) {
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
};
Object.defineProperty(exports, "__esModule", { value: true });
__exportStar(require("./get-schema-path.util"), exports);

View File

@@ -0,0 +1,2 @@
import { ParamWithTypeMetadata } from '../services/parameter-metadata-accessor';
export declare function isBodyParameter(param: ParamWithTypeMetadata): boolean;

View File

@@ -0,0 +1,7 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.isBodyParameter = void 0;
function isBodyParameter(param) {
return param.in === 'body';
}
exports.isBodyParameter = isBodyParameter;

View File

@@ -0,0 +1,2 @@
import { Type } from '@nestjs/common';
export declare function isBuiltInType(type: Type<unknown> | Function | string): boolean;

View File

@@ -0,0 +1,9 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.isBuiltInType = void 0;
const lodash_1 = require("lodash");
const constants_1 = require("../services/constants");
function isBuiltInType(type) {
return (0, lodash_1.isFunction)(type) && constants_1.BUILT_IN_TYPES.some((item) => item === type);
}
exports.isBuiltInType = isBuiltInType;

View File

@@ -0,0 +1,2 @@
import { Type } from '@nestjs/common';
export declare function isDateCtor(type: Type<unknown> | Function | string): boolean;

View File

@@ -0,0 +1,7 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.isDateCtor = void 0;
function isDateCtor(type) {
return type === Date;
}
exports.isDateCtor = isDateCtor;

View File

@@ -0,0 +1 @@
export declare function mergeAndUniq<T = any>(a?: unknown, b?: unknown): T;

View File

@@ -0,0 +1,8 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.mergeAndUniq = void 0;
const lodash_1 = require("lodash");
function mergeAndUniq(a = [], b = []) {
return (0, lodash_1.uniq)((0, lodash_1.merge)(a, b));
}
exports.mergeAndUniq = mergeAndUniq;

View File

@@ -0,0 +1 @@
export declare function normalizeRelPath(input: string): string;

View File

@@ -0,0 +1,8 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.normalizeRelPath = void 0;
function normalizeRelPath(input) {
const output = input.replace(/\/\/+/g, '/');
return output;
}
exports.normalizeRelPath = normalizeRelPath;

View File

@@ -0,0 +1 @@
export declare function resolvePath(path: string): string;

View File

@@ -0,0 +1,8 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.resolvePath = void 0;
const pathLib = require("path");
function resolvePath(path) {
return path ? pathLib.resolve(path) : path;
}
exports.resolvePath = resolvePath;

View File

@@ -0,0 +1 @@
export declare function reverseObjectKeys(originalObject: Record<string, any>): Record<string, any>;

View File

@@ -0,0 +1,12 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.reverseObjectKeys = void 0;
function reverseObjectKeys(originalObject) {
const reversedObject = {};
const keys = Object.keys(originalObject).reverse();
for (const key of keys) {
reversedObject[key] = originalObject[key];
}
return reversedObject;
}
exports.reverseObjectKeys = reverseObjectKeys;

View File

@@ -0,0 +1 @@
export declare function stripLastSlash(path: string): string;

View File

@@ -0,0 +1,9 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.stripLastSlash = void 0;
function stripLastSlash(path) {
return path && path[path.length - 1] === '/'
? path.slice(0, path.length - 1)
: path;
}
exports.stripLastSlash = stripLastSlash;

View File

@@ -0,0 +1 @@
export declare const validateGlobalPrefix: (globalPrefix: string) => boolean;

View File

@@ -0,0 +1,5 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.validateGlobalPrefix = void 0;
const validateGlobalPrefix = (globalPrefix) => globalPrefix && !globalPrefix.match(/^(\/?)$/);
exports.validateGlobalPrefix = validateGlobalPrefix;

View File

@@ -0,0 +1 @@
export declare const validatePath: (inputPath: string) => string;

View File

@@ -0,0 +1,5 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.validatePath = void 0;
const validatePath = (inputPath) => inputPath.charAt(0) !== '/' ? '/' + inputPath : inputPath;
exports.validatePath = validatePath;