✨ 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
91 lines
4.1 KiB
JavaScript
91 lines
4.1 KiB
JavaScript
"use strict";
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
exports.StartCommand = void 0;
|
|
const ui_1 = require("../lib/ui");
|
|
const remaining_flags_1 = require("../lib/utils/remaining-flags");
|
|
const abstract_command_1 = require("./abstract.command");
|
|
class StartCommand extends abstract_command_1.AbstractCommand {
|
|
load(program) {
|
|
program
|
|
.command('start [app]')
|
|
.allowUnknownOption()
|
|
.option('-c, --config [path]', 'Path to nest-cli configuration file.')
|
|
.option('-p, --path [path]', 'Path to tsconfig file.')
|
|
.option('-w, --watch', 'Run in watch mode (live-reload).')
|
|
.option('-b, --builder [name]', 'Builder to be used (tsc, webpack, swc).')
|
|
.option('--watchAssets', 'Watch non-ts (e.g., .graphql) files mode.')
|
|
.option('-d, --debug [hostport] ', 'Run in debug mode (with --inspect flag).')
|
|
.option('--webpack', 'Use webpack for compilation (deprecated option, use --builder instead).')
|
|
.option('--webpackPath [path]', 'Path to webpack configuration.')
|
|
.option('--type-check', 'Enable type checking (when SWC is used).')
|
|
.option('--tsc', 'Use typescript compiler for compilation.')
|
|
.option('--sourceRoot [sourceRoot]', 'Points at the root of the source code for the single project in standard mode structures, or the default project in monorepo mode structures.')
|
|
.option('--entryFile [entryFile]', "Path to the entry file where this command will work with. Defaults to the one defined at your Nest's CLI config file.")
|
|
.option('-e, --exec [binary]', 'Binary to run (default: "node").')
|
|
.option('--preserveWatchOutput', 'Use "preserveWatchOutput" option when using tsc watch mode.')
|
|
.description('Run Nest application.')
|
|
.action(async (app, command) => {
|
|
const options = [];
|
|
options.push({
|
|
name: 'config',
|
|
value: command.config,
|
|
});
|
|
const isWebpackEnabled = command.tsc ? false : command.webpack;
|
|
options.push({ name: 'webpack', value: isWebpackEnabled });
|
|
options.push({ name: 'debug', value: command.debug });
|
|
options.push({ name: 'watch', value: !!command.watch });
|
|
options.push({ name: 'watchAssets', value: !!command.watchAssets });
|
|
options.push({
|
|
name: 'path',
|
|
value: command.path,
|
|
});
|
|
options.push({
|
|
name: 'webpackPath',
|
|
value: command.webpackPath,
|
|
});
|
|
options.push({
|
|
name: 'exec',
|
|
value: command.exec,
|
|
});
|
|
options.push({
|
|
name: 'sourceRoot',
|
|
value: command.sourceRoot,
|
|
});
|
|
options.push({
|
|
name: 'entryFile',
|
|
value: command.entryFile,
|
|
});
|
|
options.push({
|
|
name: 'preserveWatchOutput',
|
|
value: !!command.preserveWatchOutput &&
|
|
!!command.watch &&
|
|
!isWebpackEnabled,
|
|
});
|
|
const availableBuilders = ['tsc', 'webpack', 'swc'];
|
|
if (command.builder && !availableBuilders.includes(command.builder)) {
|
|
console.error(ui_1.ERROR_PREFIX +
|
|
` Invalid builder option: ${command.builder}. Available builders: ${availableBuilders.join(', ')}`);
|
|
return;
|
|
}
|
|
options.push({
|
|
name: 'builder',
|
|
value: command.builder,
|
|
});
|
|
options.push({
|
|
name: 'typeCheck',
|
|
value: command.typeCheck,
|
|
});
|
|
const inputs = [];
|
|
inputs.push({ name: 'app', value: app });
|
|
const flags = (0, remaining_flags_1.getRemainingFlags)(program);
|
|
try {
|
|
await this.action.handle(inputs, options, flags);
|
|
}
|
|
catch (err) {
|
|
process.exit(1);
|
|
}
|
|
});
|
|
}
|
|
}
|
|
exports.StartCommand = StartCommand;
|