Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions .env.example
Original file line number Diff line number Diff line change
@@ -1,2 +1,6 @@
SUPABASE_URL=https://wlhfrmrzrkbdbgpkodds.supabase.co
SUPABASE_ANON_KEY=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZSIsInJlZiI6IndsaGZybXJ6cmtiZGJncGtvZGRzIiwicm9sZSI6ImFub24iLCJpYXQiOjE3OTI2MjYxMzAsImV4cCI6MjEwODIwMjEzMH0.SIJm0mcKzbM84-xG9RKeKbC5U9vpOFzxGPFoYP3gWRM
# Variables de entorno públicas de Supabase (copiar a .env.local y completar con las credenciales reales)
NEXT_PUBLIC_SUPABASE_URL=https://tu-proyecto.supabase.co
NEXT_PUBLIC_SUPABASE_ANON_KEY=tu-clave-publica-anon-key

# Secreto del servidor para firma HMAC-SHA256 de códigos QR (mínimo 32 caracteres)
QR_SECRET=reemplazar-por-secreto-seguro-de-al-menos-32-caracteres
2 changes: 1 addition & 1 deletion src/app/admin/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import type {
UsuarioRow,
BoletoRow,
ConfiguracionAppRow,
} from '@/lib/data/mockData';
} from '@/lib/types';
import type { RolUsuario } from '@/types/database.types';
import { Card, CardHeader, CardTitle, CardDescription, CardContent } from '@/components/ui/Card';
import { Badge } from '@/components/ui/Badge';
Expand Down
2 changes: 1 addition & 1 deletion src/app/busqueda/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import type {
BusRow,
RutaRow,
BoletoRow,
} from '@/lib/data/mockData';
} from '@/lib/types';
import { Card, CardHeader, CardTitle, CardDescription, CardContent } from '@/components/ui/Card';
import { Badge } from '@/components/ui/Badge';
import { Button } from '@/components/ui/Button';
Expand Down
2 changes: 1 addition & 1 deletion src/app/chofer/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import type {
BoletoRow,
ParadaFrecuenciaRow,
CooperativaRow,
} from '@/lib/data/mockData';
} from '@/lib/types';
import { Card, CardHeader, CardTitle, CardDescription, CardContent } from '@/components/ui/Card';
import { Badge } from '@/components/ui/Badge';
import { Button } from '@/components/ui/Button';
Expand Down
2 changes: 1 addition & 1 deletion src/app/cooperativa/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import type {
RutaRow,
ParadaFrecuenciaRow,
UsuarioRow,
} from '@/lib/data/mockData';
} from '@/lib/types';
import { Card, CardHeader, CardTitle, CardDescription, CardContent } from '@/components/ui/Card';
import { Badge } from '@/components/ui/Badge';
import { Button } from '@/components/ui/Button';
Expand Down
2 changes: 1 addition & 1 deletion src/app/oficina/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import type {
FrecuenciaRow,
BusRow,
CooperativaRow,
} from '@/lib/data/mockData';
} from '@/lib/types';
import { Card, CardHeader, CardTitle, CardDescription, CardContent } from '@/components/ui/Card';
import { Badge } from '@/components/ui/Badge';
import { Button } from '@/components/ui/Button';
Expand Down
2 changes: 1 addition & 1 deletion src/app/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { Card, CardHeader, CardTitle, CardDescription, CardContent } from '@/com
import { Badge } from '@/components/ui/Badge';
import { Button } from '@/components/ui/Button';
import { dataService } from '@/lib/services/dataService';
import type { FrecuenciaRow, CooperativaRow } from '@/lib/data/mockData';
import type { FrecuenciaRow, CooperativaRow } from '@/lib/types';

export default function HomePage() {
const [frecuencias, setFrecuencias] = useState<FrecuenciaRow[]>([]);
Expand Down
2 changes: 1 addition & 1 deletion src/app/pasajero/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import type {
RutaRow,
CooperativaRow,
BusRow,
} from '@/lib/data/mockData';
} from '@/lib/types';
import { Card, CardHeader, CardTitle, CardDescription, CardContent } from '@/components/ui/Card';
import { Badge } from '@/components/ui/Badge';
import { Button } from '@/components/ui/Button';
Expand Down
2 changes: 1 addition & 1 deletion src/app/reportes/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import type {
BusRow,
RutaRow,
FrecuenciaRow,
} from '@/lib/data/mockData';
} from '@/lib/types';
import { Card, CardHeader, CardTitle, CardDescription, CardContent } from '@/components/ui/Card';
import { Badge } from '@/components/ui/Badge';
import { Button } from '@/components/ui/Button';
Expand Down
Loading
Loading