✨ 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
94 lines
2.4 KiB
JavaScript
94 lines
2.4 KiB
JavaScript
'use strict';
|
|
/**
|
|
* Inquirer.js
|
|
* A collection of common interactive command line user interfaces.
|
|
*/
|
|
|
|
const inquirer = module.exports;
|
|
|
|
/**
|
|
* Client interfaces
|
|
*/
|
|
|
|
inquirer.prompts = {};
|
|
|
|
inquirer.Separator = require('./objects/separator');
|
|
|
|
inquirer.ui = {
|
|
BottomBar: require('./ui/bottom-bar'),
|
|
Prompt: require('./ui/prompt'),
|
|
};
|
|
|
|
/**
|
|
* Create a new self-contained prompt module.
|
|
*/
|
|
inquirer.createPromptModule = function (opt) {
|
|
const promptModule = function (questions, answers) {
|
|
let ui;
|
|
try {
|
|
ui = new inquirer.ui.Prompt(promptModule.prompts, opt);
|
|
} catch (error) {
|
|
return Promise.reject(error);
|
|
}
|
|
const promise = ui.run(questions, answers);
|
|
|
|
// Monkey patch the UI on the promise object so
|
|
// that it remains publicly accessible.
|
|
promise.ui = ui;
|
|
|
|
return promise;
|
|
};
|
|
|
|
promptModule.prompts = {};
|
|
|
|
/**
|
|
* Register a prompt type
|
|
* @param {String} name Prompt type name
|
|
* @param {Function} prompt Prompt constructor
|
|
* @return {inquirer}
|
|
*/
|
|
|
|
promptModule.registerPrompt = function (name, prompt) {
|
|
promptModule.prompts[name] = prompt;
|
|
return this;
|
|
};
|
|
|
|
/**
|
|
* Register the defaults provider prompts
|
|
*/
|
|
|
|
promptModule.restoreDefaultPrompts = function () {
|
|
this.registerPrompt('list', require('./prompts/list'));
|
|
this.registerPrompt('input', require('./prompts/input'));
|
|
this.registerPrompt('number', require('./prompts/number'));
|
|
this.registerPrompt('confirm', require('./prompts/confirm'));
|
|
this.registerPrompt('rawlist', require('./prompts/rawlist'));
|
|
this.registerPrompt('expand', require('./prompts/expand'));
|
|
this.registerPrompt('checkbox', require('./prompts/checkbox'));
|
|
this.registerPrompt('password', require('./prompts/password'));
|
|
this.registerPrompt('editor', require('./prompts/editor'));
|
|
};
|
|
|
|
promptModule.restoreDefaultPrompts();
|
|
|
|
return promptModule;
|
|
};
|
|
|
|
/**
|
|
* Public CLI helper interface
|
|
* @param {Array|Object|Rx.Observable} questions - Questions settings array
|
|
* @param {Function} cb - Callback being passed the user answers
|
|
* @return {inquirer.ui.Prompt}
|
|
*/
|
|
|
|
inquirer.prompt = inquirer.createPromptModule();
|
|
|
|
// Expose helper functions on the top level for easiest usage by common users
|
|
inquirer.registerPrompt = function (name, prompt) {
|
|
inquirer.prompt.registerPrompt(name, prompt);
|
|
};
|
|
|
|
inquirer.restoreDefaultPrompts = function () {
|
|
inquirer.prompt.restoreDefaultPrompts();
|
|
};
|