Spaces:
Runtime error
Runtime error
Greg
Claude Opus 4.7 (1M context)
Preparar despliegue en fly.io: monolito dockerizado + seeder demo
6aa6081 Download frontend/src/utils/roles.ts from Talosware/talos-access: direct link, hf CLI and curl.
- Browser
- Download file 433 Bytes
-
https://huggingface.co/spaces/Talosware/talos-access/resolve/main/frontend/src/utils/roles.ts
- Command line
-
hf download hf://spaces/Talosware/talos-access/frontend/src/utils/roles.ts
-
curl -L -o roles.ts https://huggingface.co/spaces/Talosware/talos-access/resolve/main/frontend/src/utils/roles.ts
433 Bytes
| const ROLE_LABELS: Record<string, string> = { | |
| admin: 'Administrador', | |
| teacher: 'Docente', | |
| administrativo: 'Administrativo', | |
| obrero: 'Obrero', | |
| representative: 'Representante', | |
| student: 'Estudiante', | |
| }; | |
| export const ROLES = Object.entries(ROLE_LABELS).map(([value, label]) => ({ value, label })); | |
| export function translateRole(role?: string | null): string { | |
| if (!role) return ''; | |
| return ROLE_LABELS[role] || role; | |
| } | |