diff --git a/bin/vp.js b/bin/vp.js new file mode 100755 index 0000000..53e05a3 --- /dev/null +++ b/bin/vp.js @@ -0,0 +1,33 @@ +#!/usr/bin/env node +import { spawn } from "node:child_process"; + +const [subcommand, ...rest] = process.argv.slice(2); + +let cmd = "vite"; +let args = []; + +if (subcommand === "check") { + cmd = "tsc"; + args = ["--noEmit", ...rest]; +} else if (subcommand === "test") { + cmd = "vitest"; + args = ["run", ...rest]; +} else if (subcommand === "dev") { + cmd = "vite"; + args = rest; +} else if (subcommand === "build") { + cmd = "vite"; + args = ["build", ...rest]; +} else if (subcommand) { + cmd = subcommand; + args = rest; +} + +const child = spawn(`pnpm exec ${cmd}`, args, { + stdio: "inherit", + shell: true, +}); + +child.on("exit", (code) => { + process.exit(code ?? 0); +}); diff --git a/biome.json b/biome.json new file mode 100644 index 0000000..2705749 --- /dev/null +++ b/biome.json @@ -0,0 +1,34 @@ +{ + "$schema": "https://biomejs.dev/schemas/2.5.15/schema.json", + "vcs": { + "enabled": true, + "clientKind": "git", + "useIgnoreFile": true + }, + "files": { + "ignoreUnknown": false + }, + "formatter": { + "enabled": true, + "indentStyle": "tab" + }, + "linter": { + "enabled": true, + "rules": { + "preset": "recommended" + } + }, + "javascript": { + "formatter": { + "quoteStyle": "double" + } + }, + "assist": { + "enabled": true, + "actions": { + "source": { + "organizeImports": "on" + } + } + } +} diff --git a/index.html b/index.html new file mode 100644 index 0000000..9103c3b --- /dev/null +++ b/index.html @@ -0,0 +1,16 @@ + + +
+ + + +Registro completo de citas, cancelaciones y liberaciones de espacio.
+${err instanceof Error ? err.message : "Error desconocido"}
+No se encontraron reservaciones con el filtro seleccionado.
+| Folio | +Paciente | +Servicio | +Horario | +Monto | +Estado | +Pago | +Google Cal | +
|---|---|---|---|---|---|---|---|
| ${b.booking_code} | +
+ ${b.client_name || "Cliente"}
+ 📱 ${b.client_phone || ""}
+ |
+ ${b.service_name || "Consulta"} | +${formatDateTime(b.scheduled_at)} | +${formatCurrency(b.amount_mxn)} | +${renderBookingStatusBadge(b.booking_status)} | +${renderPaymentStatusBadge(b.payment_status, b.payment_arrangement)} | +${renderCalendarSyncBadge(b.gcal_sync_status, b.id)} | +
Visualización cronológica con protección de buffers de 15 min entre pacientes.
+${err instanceof Error ? err.message : "Error desconocido"}
+No hay citas activas programadas en este momento.
+Reservaciones pendientes de comprobante de pago próximas a realizarse.
+${message}
+ +No hay reservaciones pendientes de pago para las próximas 48 horas.
+