✨ 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
123 lines
4.2 KiB
TypeScript
123 lines
4.2 KiB
TypeScript
import type { NextConfigComplete } from '../server/config-shared';
|
|
import type { webpack } from 'next/dist/compiled/webpack/webpack';
|
|
import type { MiddlewareConfigParsed, MiddlewareConfig, PageStaticInfo } from './analysis/get-page-static-info';
|
|
import type { LoadedEnvFiles } from '@next/env';
|
|
import type { AppLoaderOptions } from './webpack/loaders/next-app-loader';
|
|
import type { CompilerNameValues } from '../shared/lib/constants';
|
|
import type { __ApiPreviewProps } from '../server/api-utils';
|
|
import type { ServerRuntime } from '../../types';
|
|
import type { PageExtensions } from './page-extensions-type';
|
|
import type { MappedPages } from './build-context';
|
|
import { PAGE_TYPES } from '../lib/page-types';
|
|
export declare function sortByPageExts(pageExtensions: PageExtensions): (a: string, b: string) => number;
|
|
export declare function getStaticInfoIncludingLayouts({ isInsideAppDir, pageExtensions, pageFilePath, appDir, config, isDev, page, }: {
|
|
isInsideAppDir: boolean;
|
|
pageExtensions: PageExtensions;
|
|
pageFilePath: string;
|
|
appDir: string | undefined;
|
|
config: NextConfigComplete;
|
|
isDev: boolean | undefined;
|
|
page: string;
|
|
}): Promise<PageStaticInfo>;
|
|
type ObjectValue<T> = T extends {
|
|
[key: string]: infer V;
|
|
} ? V : never;
|
|
/**
|
|
* For a given page path removes the provided extensions.
|
|
*/
|
|
export declare function getPageFromPath(pagePath: string, pageExtensions: PageExtensions): string;
|
|
export declare function getPageFilePath({ absolutePagePath, pagesDir, appDir, rootDir, }: {
|
|
absolutePagePath: string;
|
|
pagesDir: string | undefined;
|
|
appDir: string | undefined;
|
|
rootDir: string;
|
|
}): string;
|
|
/**
|
|
* Creates a mapping of route to page file path for a given list of page paths.
|
|
* For example ['/middleware.ts'] is turned into { '/middleware': `${ROOT_DIR_ALIAS}/middleware.ts` }
|
|
*/
|
|
export declare function createPagesMapping({ isDev, pageExtensions, pagePaths, pagesType, pagesDir, }: {
|
|
isDev: boolean;
|
|
pageExtensions: PageExtensions;
|
|
pagePaths: string[];
|
|
pagesType: PAGE_TYPES;
|
|
pagesDir: string | undefined;
|
|
}): MappedPages;
|
|
export interface CreateEntrypointsParams {
|
|
buildId: string;
|
|
config: NextConfigComplete;
|
|
envFiles: LoadedEnvFiles;
|
|
isDev?: boolean;
|
|
pages: MappedPages;
|
|
pagesDir?: string;
|
|
previewMode: __ApiPreviewProps;
|
|
rootDir: string;
|
|
rootPaths?: MappedPages;
|
|
appDir?: string;
|
|
appPaths?: MappedPages;
|
|
pageExtensions: PageExtensions;
|
|
hasInstrumentationHook?: boolean;
|
|
}
|
|
export declare function getEdgeServerEntry(opts: {
|
|
rootDir: string;
|
|
absolutePagePath: string;
|
|
buildId: string;
|
|
bundlePath: string;
|
|
config: NextConfigComplete;
|
|
isDev: boolean;
|
|
isServerComponent: boolean;
|
|
page: string;
|
|
pages: MappedPages;
|
|
middleware?: Partial<MiddlewareConfigParsed>;
|
|
pagesType: PAGE_TYPES;
|
|
appDirLoader?: string;
|
|
hasInstrumentationHook?: boolean;
|
|
preferredRegion: string | string[] | undefined;
|
|
middlewareConfig?: MiddlewareConfig;
|
|
}): string | {
|
|
import: string;
|
|
layer: "rsc";
|
|
} | {
|
|
import: string;
|
|
layer: "ssr" | undefined;
|
|
};
|
|
export declare function getInstrumentationEntry(opts: {
|
|
absolutePagePath: string;
|
|
isEdgeServer: boolean;
|
|
isDev: boolean;
|
|
}): {
|
|
import: string;
|
|
filename: string;
|
|
layer: "instrument";
|
|
};
|
|
export declare function getAppEntry(opts: Readonly<AppLoaderOptions>): {
|
|
import: string;
|
|
layer: "rsc";
|
|
};
|
|
export declare function getClientEntry(opts: {
|
|
absolutePagePath: string;
|
|
page: string;
|
|
}): string | string[];
|
|
export declare function runDependingOnPageType<T>(params: {
|
|
onClient: () => T;
|
|
onEdgeServer: () => T;
|
|
onServer: () => T;
|
|
page: string;
|
|
pageRuntime: ServerRuntime;
|
|
pageType?: PAGE_TYPES;
|
|
}): void;
|
|
export declare function createEntrypoints(params: CreateEntrypointsParams): Promise<{
|
|
client: webpack.EntryObject;
|
|
server: webpack.EntryObject;
|
|
edgeServer: webpack.EntryObject;
|
|
middlewareMatchers: undefined;
|
|
}>;
|
|
export declare function finalizeEntrypoint({ name, compilerType, value, isServerComponent, hasAppDir, }: {
|
|
compilerType?: CompilerNameValues;
|
|
name: string;
|
|
value: ObjectValue<webpack.EntryObject>;
|
|
isServerComponent?: boolean;
|
|
hasAppDir?: boolean;
|
|
}): ObjectValue<webpack.EntryObject>;
|
|
export {};
|