Init Commit

This commit is contained in:
2026-01-29 13:43:44 -03:00
commit b9aa8478db
126 changed files with 20649 additions and 0 deletions

View File

@@ -0,0 +1,86 @@
export const AD_STATUSES = {
DRAFT: 1,
PAYMENT_PENDING: 2,
MODERATION_PENDING: 3,
ACTIVE: 4,
REJECTED: 5,
PAUSED: 6,
SOLD: 7,
EXPIRED: 8,
DELETED: 9,
RESERVED: 10
};
// Estilos de alto contraste para sobreponer en fotos
export const STATUS_CONFIG: Record<number, { label: string; color: string; bg: string; border: string; icon: string }> = {
[AD_STATUSES.ACTIVE]: {
label: 'Activo',
color: 'text-white',
bg: 'bg-green-600/90',
border: 'border-green-400/50',
icon: '✅'
},
[AD_STATUSES.PAUSED]: {
label: 'Pausado',
color: 'text-white',
bg: 'bg-amber-600/90',
border: 'border-amber-400/50',
icon: '⏸️'
},
[AD_STATUSES.RESERVED]: {
label: 'Reservado',
color: 'text-white',
bg: 'bg-blue-600/90',
border: 'border-blue-400/50',
icon: '🔐'
},
[AD_STATUSES.SOLD]: {
label: 'Vendido',
color: 'text-white',
bg: 'bg-gray-800/90',
border: 'border-gray-500/50',
icon: '🤝'
},
[AD_STATUSES.MODERATION_PENDING]: {
label: 'En Revisión',
color: 'text-white',
bg: 'bg-indigo-600/90',
border: 'border-indigo-400/50',
icon: '⏳'
},
[AD_STATUSES.REJECTED]: {
label: 'Rechazado',
color: 'text-white',
bg: 'bg-red-600/90',
border: 'border-red-400/50',
icon: '✕'
},
[AD_STATUSES.DRAFT]: {
label: 'Borrador',
color: 'text-white',
bg: 'bg-gray-600/90',
border: 'border-gray-400/50',
icon: '📝'
},
[AD_STATUSES.DELETED]: {
label: 'Eliminar',
color: 'text-white',
bg: 'bg-red-700/90',
border: 'border-red-500/50',
icon: '🗑️'
},
[AD_STATUSES.EXPIRED]: {
label: 'Vencido',
color: 'text-white',
bg: 'bg-stone-700/90',
border: 'border-stone-500/50',
icon: '⏰'
},
[AD_STATUSES.PAYMENT_PENDING]: {
label: 'Pago Pendiente',
color: 'text-white',
bg: 'bg-yellow-600/90',
border: 'border-yellow-400/50',
icon: '💳'
}
};

View File

@@ -0,0 +1,76 @@
export const VEHICLE_TYPES = {
AUTOS: 1,
MOTOS: 2
};
export const AUTO_SEGMENTS = [
'Hatchback',
'Sedán',
'SUV',
'Crossover',
'Pick-up',
'Coupé',
'Convertible',
'Minivan',
'Familiar / Rural',
'Todoterreno',
'Van (Comercial)'
];
export const MOTO_SEGMENTS = [
'Calle / Naked',
'Clásica / Colección',
'Triciclo / Cuatriciclo',
'Custom / Chopper',
'Enduro (Off-Road-Motocross) / Cross / Trial',
'Pista / Carenadas / Sport',
'Ciclomotor / Scooter',
'Touring / Trail',
'Kartings'
];
export const AUTO_TRANSMISSIONS = [
'Manual',
'Automática',
'Continuamente Variable (CVT)',
'Doble Embrague (DSG o DGT)',
'Manual Automatizada (AMT)',
'Manual Secuencial',
'Electrónica Variable (EVT)',
'Hidráulica',
'Sin Especificar'
];
export const MOTO_TRANSMISSIONS = [
'Manual',
'Automática',
'Sin Transmisión (Eléctrica)',
'Sin Especificar'
];
export const FUEL_TYPES = [
'Nafta',
'Diesel',
'GNC',
'Nafta/GNC',
'Eléctrico',
'Hidrógeno',
'Sin Especificar'
];
export const VEHICLE_CONDITIONS = [
'0 Kilómetro',
'Excelente',
'Muy Bueno',
'Bueno',
'Regular',
'Para Repuestos'
];
export const STEERING_TYPES = [
'Asistida',
'Hidráulica',
'Eléctrica',
'Mecánica',
'Sin Especificar'
];