Compare commits
4 Commits
feat/impro
...
b22b6da2e1
| Author | SHA1 | Date | |
|---|---|---|---|
| b22b6da2e1 | |||
|
|
9e4d34b5d8 | ||
|
|
bc5f676cea | ||
| f6a7b7344e |
@@ -65,7 +65,7 @@ bun --filter @gruperly/web icons # regenera los iconos PWA de apps/web
|
||||
- **zod en v3.24 (pin exacto)**, no v4: `better-call` (transitiva de better-auth) pide `zod ^4` — ese peer warning es conocido y aceptado. `validator` de hono (`hono/validator`) sustituyó a `@hono/zod-validator` (sus tipos duales zod v3/v4 causaban TS2589/exhaustion no resolubles con `ZodTypeAny`); las rutas tipan `c.req.valid` vía el `ValidationInput` derivado del schema.
|
||||
- **PWA (`apps/web`)**: Workbox precachea todo lo que emite Vite, así que el tamaño del precache es un costo real de arranque offline. Cuatro trampas ya pisadas: (1) `globIgnores: ['**/workbox-*.js']` matchea también `workbox-window.*.js`, que es el módulo cliente de `virtual:pwa-register` — excluirlo rompe el registro del SW en cada carga; solo se excluye `**/sw.js`. (2) Importar `@fontsource-variable/inter/wght.css` arrastra los 7 subsets (~220 KB que el navegador nunca baja); por eso los `@font-face` de `latin`/`latin-ext` están escritos a mano en `src/index.css`. **No re-agregar `<link>` a `fonts.googleapis.com`**: rompe el offline. (3) El SW necesita contexto seguro (HTTPS o `localhost`); por IP de LAN sobre `http://` no se registra y no avisa. (4) El aviso de instalación vive en `PwaProvider` (fuera del `RouterProvider`, así que sigue la ruta con `router.subscribe('onResolved')`) y **no** en `RootLayout`: `AppLayoutGuard` desmonta `RootLayout` cada vez que su query de onboarding vuelve a `pending`, y un `settled` de dwell en el hijo se perdería en cada navegación.
|
||||
- **Aviso de instalación (`src/features/pwa/`)**: se ofrece solo con **sesión iniciada**, fuera de `/onboarding` y tras **20 s seguidos en la misma ruta** (navegar antes reinicia la cuenta; después de armado ya no se oculta). El descarte es definitivo vía `localStorage['pwa-install-dismissed']`. Ojo: `_authenticated` **no** es un guard de sesión —`AppLayoutGuard` renderiza `RootLayout` aunque no haya `user`—, así que el gate se chequea en el provider. Safari en iOS no dispara `beforeinstallprompt`: ahí se muestra `IosInstallHint` con la instrucción de Compartir → Agregar a pantalla de inicio (excluye CriOS/FxiOS/EdgiOS, que también usan WebKit pero se instalan desde Safari).
|
||||
- **App de alumnos (`modules/student-portal`, `modules/student-access`, web `/i/$token`, `/acceso`, `/alumno/*`)**: acceso sin contraseña y sin datos obligatorios nuevos. Ojo con esto:
|
||||
- **App de alumnos (`modules/student-portal`, `modules/student-access`, web `/i/$token`, `/access`, `/student/*`)**: acceso sin contraseña y sin datos obligatorios nuevos. Ojo con esto:
|
||||
1. **No pasa por Better Auth**: tablas propias (`student_*`), cookie propia (`gruperly_student`, `__Host-` con HTTPS, 90 días deslizante, se reescribe como mucho cada 1 h) y middleware propio (`studentSession`). Todo `/api/v1/student-portal` está en `isPublicApiRequest` del profe; cada ruta privada declara `studentSession`. Así una sesión de alumno no llega a endpoints del profe y al revés. Nunca montes rutas del profe bajo `/student-portal`.
|
||||
2. Tokens de 32 bytes base64url; **en la base solo el SHA-256**. Invitación 72 h, recuperación 15 min, confirmación de mail 24 h. El **GET del link no consume** (vistas previas de WhatsApp); el POST consume con `updateMany` condicional (`used_at IS NULL AND revoked_at IS NULL AND expires_at > now`) y `count === 1` gana. Todo link inválido responde el mismo `{ status: 'invalid' }` / 410.
|
||||
3. **Reinvitar reinicia el acceso**: revoca tokens pendientes y sesiones, **borra las passkeys** y resetea `welcomed_at`.
|
||||
@@ -81,6 +81,7 @@ bun --filter @gruperly/web icons # regenera los iconos PWA de apps/web
|
||||
## Convenciones repo-específicas
|
||||
|
||||
- **Frontend en español**: copy de UI, comentarios y textos en español.
|
||||
- **Paths de rutas en inglés**: aunque el copy esté en español, los segmentos de URL van siempre en inglés, tanto en la web (nombres de archivo en `apps/web/src/routes/`, `createFileRoute`, `to=`/`navigate`) como en la API y en los links que arma el backend (p. ej. `/student/payments`, no `/alumno/pagos`; `/access`, no `/acceso`).
|
||||
- **Base de datos**: todas las tablas y columnas físicas usan **snake_case**. Los modelos declaran `@@map` (p. ej. `User` → `users`, `WaitlistEntry` → `waitlist_entries`) y todo campo Prisma camelCase que cree una columna debe declarar `@map("nombre_campo")` (p. ej. `createdAt @map("created_at")`). Al agregar un modelo o campo nuevo, incluir siempre el mapping correspondiente sin cambiar la API camelCase de Prisma Client.
|
||||
- **API** responde errores en **Problem Details RFC 7807** (`application/problem+json`) y resultados como `{ data, pagination }`; los "use cases" devuelven `Result` y nunca lanzan excepciones de dominio.
|
||||
- **Tailwind v4** con tokens en `@theme` dentro de `apps/web/src/index.css` (p. ej. `--color-accent: #1e90ff`). Se usan como clases auto-generadas: `text-accent`, `bg-success-soft`, etc. Radius por defecto `0.75rem` (`rounded-xl`).
|
||||
|
||||
@@ -19,6 +19,7 @@ import { logger } from '@/logger';
|
||||
import { PlanGuard } from '@/modules/billing/lib/entitlements';
|
||||
import { getMpAccessToken } from '@/modules/mp';
|
||||
import { createCheckoutPreference, getWebOrigin, MpApiError } from '@/modules/mp/lib';
|
||||
import { CHECKOUT_BACK_PATH } from '../../lib';
|
||||
|
||||
type BatchDeps = {
|
||||
db?: Pick<PrismaClient, 'group' | 'attendee' | 'payment' | 'user'>;
|
||||
@@ -95,7 +96,7 @@ export class CreatePaymentBatch {
|
||||
return token;
|
||||
}
|
||||
|
||||
const backUrl = `${this.deps.webOrigin ?? getWebOrigin()}/payments`;
|
||||
const backUrl = `${this.deps.webOrigin ?? getWebOrigin()}${CHECKOUT_BACK_PATH}`;
|
||||
const dueDate = new Date(input.dueDate);
|
||||
const title = input.description?.trim() || group.name;
|
||||
const createPreference = this.deps.createPreference ?? createCheckoutPreference;
|
||||
|
||||
@@ -12,7 +12,7 @@ import { logger } from '@/logger';
|
||||
import { PlanGuard } from '@/modules/billing/lib/entitlements';
|
||||
import { getMpAccessToken } from '@/modules/mp';
|
||||
import { createCheckoutPreference, getWebOrigin } from '@/modules/mp/lib';
|
||||
import { type PaymentRecord, toPaymentDto } from '../../lib';
|
||||
import { CHECKOUT_BACK_PATH, type PaymentRecord, toPaymentDto } from '../../lib';
|
||||
|
||||
type RenewDeps = {
|
||||
db?: Pick<PrismaClient, 'payment' | 'user'>;
|
||||
@@ -83,7 +83,7 @@ export class RenewPaymentLink {
|
||||
return token;
|
||||
}
|
||||
|
||||
const backUrl = `${this.deps.webOrigin ?? getWebOrigin()}/payments`;
|
||||
const backUrl = `${this.deps.webOrigin ?? getWebOrigin()}${CHECKOUT_BACK_PATH}`;
|
||||
const createPreference = this.deps.createPreference ?? createCheckoutPreference;
|
||||
|
||||
let preference: { initPoint: string; id: string };
|
||||
|
||||
@@ -1,5 +1,9 @@
|
||||
import type { PaymentDto } from '@gruperly/shared';
|
||||
|
||||
/* Where Mercado Pago sends whoever paid a Checkout Pro link: the student app
|
||||
(without a student session it falls through to /access). */
|
||||
export const CHECKOUT_BACK_PATH = '/student/payments';
|
||||
|
||||
export type PaymentRecord = {
|
||||
id: string;
|
||||
groupId: string;
|
||||
|
||||
@@ -1 +1 @@
|
||||
export { type PaymentRecord, toPaymentDto } from './helpers';
|
||||
export { CHECKOUT_BACK_PATH, type PaymentRecord, toPaymentDto } from './helpers';
|
||||
|
||||
@@ -75,7 +75,7 @@ export class SetRecoveryEmail {
|
||||
await sender.sendStudentEmailConfirmation({
|
||||
email,
|
||||
name: account.name,
|
||||
url: `${webUrl()}/acceso/mail/${token}`,
|
||||
url: `${webUrl()}/access/email/${token}`,
|
||||
});
|
||||
} catch (error) {
|
||||
logger.error({ error, accountId }, 'Student recovery email confirmation could not be sent');
|
||||
|
||||
@@ -142,7 +142,7 @@ describe('create payments batch', () => {
|
||||
unitPrice: 120,
|
||||
currencyId: 'ARS',
|
||||
externalReference: 'pay-1',
|
||||
backUrl: `${webOrigin}/payments`,
|
||||
backUrl: `${webOrigin}/student/payments`,
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
@@ -101,7 +101,7 @@ describe('renew payment link', () => {
|
||||
unitPrice: 120,
|
||||
currencyId: 'ARS',
|
||||
externalReference: 'pay-1',
|
||||
backUrl: `${webOrigin}/payments`,
|
||||
backUrl: `${webOrigin}/student/payments`,
|
||||
});
|
||||
expect(prisma.payment.update).toHaveBeenCalledWith({
|
||||
where: { id: 'pay-1' },
|
||||
|
||||
@@ -103,7 +103,7 @@ export function InviteToAppSheet({
|
||||
}
|
||||
>
|
||||
<div className="space-y-4">
|
||||
<div className="rounded-2xl rounded-tl-sm bg-success-soft px-4 py-3 text-sm text-primary" aria-label="Vista previa del mensaje">
|
||||
<div className="rounded-2xl rounded-tl-sm bg-success-soft px-4 py-3 text-sm text-primary break-words" aria-label="Vista previa del mensaje">
|
||||
{preview}
|
||||
</div>
|
||||
|
||||
|
||||
@@ -24,7 +24,7 @@ export function ConfirmRecoveryEmailView({ token }: { token: string }) {
|
||||
Si algún día perdés el acceso, pedí un link a <strong className="text-primary">{mutation.data.email}</strong>.
|
||||
</p>
|
||||
</div>
|
||||
<Link to="/alumno" className="inline-flex h-12 w-full items-center justify-center rounded-xl bg-accent font-medium text-on-accent hover:bg-accent-strong">
|
||||
<Link to="/student" className="inline-flex h-12 w-full items-center justify-center rounded-xl bg-accent font-medium text-on-accent hover:bg-accent-strong">
|
||||
Ir a gruperly
|
||||
</Link>
|
||||
</>
|
||||
|
||||
@@ -19,7 +19,7 @@ export function PasskeyLoginButton() {
|
||||
try {
|
||||
await loginWithPasskey()
|
||||
await queryClient.invalidateQueries({ queryKey: ['student'] })
|
||||
await navigate({ to: '/alumno', replace: true })
|
||||
await navigate({ to: '/student', replace: true })
|
||||
} catch (error) {
|
||||
if (!isPasskeyCancel(error)) setFailed(true)
|
||||
} finally {
|
||||
|
||||
@@ -34,7 +34,7 @@ export function StudentLinkProvider({ token, children }: { token: string; childr
|
||||
mutationFn: () => consumeStudentLink(token),
|
||||
onSuccess: async ({ firstLogin }) => {
|
||||
queryClient.removeQueries({ queryKey: ['student'] })
|
||||
await navigate({ to: firstLogin ? '/alumno/bienvenida' : '/alumno', replace: true })
|
||||
await navigate({ to: firstLogin ? '/student/welcome' : '/student', replace: true })
|
||||
},
|
||||
})
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import { Link } from '@tanstack/react-router'
|
||||
import type { StudentFee } from '@gruperly/shared'
|
||||
import { Receipt } from 'lucide-react'
|
||||
import { ExternalLink, Receipt } from 'lucide-react'
|
||||
import { Badge } from '../../components/ui'
|
||||
import { formatPrice } from '../../lib/format'
|
||||
import { feeLabel } from './format'
|
||||
@@ -12,6 +12,10 @@ export function FeeCard({ fees }: { fees: StudentFee[] }) {
|
||||
const first = fees[0] as StudentFee
|
||||
const toReport = fees.filter((fee) => fee.status !== 'reported')
|
||||
const total = toReport.reduce((sum, fee) => sum + fee.amount, 0)
|
||||
// Cada cuota tiene su propio link de MP: con varias, se elige en Pagos.
|
||||
const payable = toReport.filter((fee) => fee.checkoutUrl)
|
||||
const single = payable.length === 1 ? (payable[0] as StudentFee) : null
|
||||
const primary = 'flex min-h-12 items-center justify-center gap-2 rounded-xl bg-accent font-semibold text-on-accent hover:bg-accent-strong'
|
||||
|
||||
return (
|
||||
<article className="rounded-2xl border border-border bg-surface p-5">
|
||||
@@ -32,13 +36,29 @@ export function FeeCard({ fees }: { fees: StudentFee[] }) {
|
||||
) : null}
|
||||
</div>
|
||||
{toReport.length > 0 ? (
|
||||
<div className="mt-4 space-y-2">
|
||||
{single ? (
|
||||
<a href={single.checkoutUrl ?? undefined} target="_blank" rel="noreferrer" className={primary}>
|
||||
Pagar con Mercado Pago
|
||||
<ExternalLink className="size-4" aria-hidden="true" />
|
||||
</a>
|
||||
) : payable.length > 1 ? (
|
||||
<Link to="/student/payments" className={primary}>
|
||||
Pagar con Mercado Pago
|
||||
</Link>
|
||||
) : null}
|
||||
<Link
|
||||
to="/alumno/informar-pago"
|
||||
className="mt-4 flex min-h-12 items-center justify-center gap-2 rounded-xl bg-accent font-semibold text-on-accent hover:bg-accent-strong"
|
||||
to="/student/report-payment"
|
||||
className={
|
||||
payable.length > 0
|
||||
? 'flex min-h-12 items-center justify-center gap-2 rounded-xl border border-border font-semibold text-primary hover:bg-primary-soft'
|
||||
: primary
|
||||
}
|
||||
>
|
||||
<Receipt className="size-5" aria-hidden="true" />
|
||||
Informar pago
|
||||
</Link>
|
||||
</div>
|
||||
) : (
|
||||
<p className="mt-3 text-sm text-secondary">Tu profe tiene que confirmar el pago que informaste.</p>
|
||||
)}
|
||||
|
||||
@@ -34,7 +34,7 @@ export function NextClassCard({ item, timeZone }: NextClassCardProps) {
|
||||
</p>
|
||||
) : (
|
||||
<Link
|
||||
to="/alumno/avisar"
|
||||
to="/student/notify-absence"
|
||||
search={{ clase: item.startsAt }}
|
||||
className="mt-4 flex min-h-12 items-center justify-center gap-2 rounded-xl bg-white font-semibold text-brand-night hover:bg-brand-cloud"
|
||||
>
|
||||
|
||||
@@ -33,10 +33,10 @@ export function NotifyAbsenceView({ preselected }: { preselected?: string }) {
|
||||
<FlowDone title={`Listo, le avisamos a ${teacher}`}>
|
||||
<p className="text-sm text-secondary">Si cambiás de idea, podés deshacerlo desde Clases mientras la clase no haya empezado.</p>
|
||||
<div className="space-y-2 pt-2">
|
||||
<Link to="/alumno" className="flex min-h-12 items-center justify-center rounded-xl bg-accent font-semibold text-on-accent hover:bg-accent-strong">
|
||||
<Link to="/student" className="flex min-h-12 items-center justify-center rounded-xl bg-accent font-semibold text-on-accent hover:bg-accent-strong">
|
||||
Volver al inicio
|
||||
</Link>
|
||||
<Link to="/alumno/clases" className="flex min-h-12 items-center justify-center rounded-xl border border-border font-medium text-primary hover:bg-primary-soft">
|
||||
<Link to="/student/classes" className="flex min-h-12 items-center justify-center rounded-xl border border-border font-medium text-primary hover:bg-primary-soft">
|
||||
Ver mis clases
|
||||
</Link>
|
||||
</div>
|
||||
@@ -61,7 +61,7 @@ export function NotifyAbsenceView({ preselected }: { preselected?: string }) {
|
||||
|
||||
return (
|
||||
<div className="space-y-6">
|
||||
<Link to="/alumno" className="hidden items-center gap-1 text-sm text-secondary hover:text-primary lg:inline-flex">
|
||||
<Link to="/student" className="hidden items-center gap-1 text-sm text-secondary hover:text-primary lg:inline-flex">
|
||||
<ArrowLeft className="size-4" aria-hidden="true" />
|
||||
Volver
|
||||
</Link>
|
||||
|
||||
@@ -34,7 +34,7 @@ export function ReportPaymentView() {
|
||||
<p className="text-sm text-secondary">
|
||||
{teacher} va a revisar el comprobante. Te avisamos acá cuando lo confirme.
|
||||
</p>
|
||||
<Link to="/alumno" className="flex min-h-12 items-center justify-center rounded-xl bg-accent font-semibold text-on-accent hover:bg-accent-strong">
|
||||
<Link to="/student" className="flex min-h-12 items-center justify-center rounded-xl bg-accent font-semibold text-on-accent hover:bg-accent-strong">
|
||||
Volver al inicio
|
||||
</Link>
|
||||
</FlowDone>
|
||||
@@ -63,7 +63,7 @@ export function ReportPaymentView() {
|
||||
|
||||
return (
|
||||
<div className="space-y-6">
|
||||
<Link to="/alumno/pagos" className="hidden items-center gap-1 text-sm text-secondary hover:text-primary lg:inline-flex">
|
||||
<Link to="/student/payments" className="hidden items-center gap-1 text-sm text-secondary hover:text-primary lg:inline-flex">
|
||||
<ArrowLeft className="size-4" aria-hidden="true" />
|
||||
Volver
|
||||
</Link>
|
||||
|
||||
@@ -94,7 +94,7 @@ function useReportPayment(attendeeId: string | null) {
|
||||
}
|
||||
|
||||
/* State of the student app: the session ("me"), the selected attendee and its
|
||||
classes and fees. Without a session (401) it sends the student to /acceso. */
|
||||
classes and fees. Without a session (401) it sends the student to /access. */
|
||||
export function StudentAppProvider({ children }: { children: ReactNode }) {
|
||||
const navigate = useNavigate()
|
||||
const queryClient = useQueryClient()
|
||||
@@ -104,7 +104,7 @@ export function StudentAppProvider({ children }: { children: ReactNode }) {
|
||||
|
||||
useEffect(() => {
|
||||
if (meQuery.error instanceof ApiError && meQuery.error.status === 401) {
|
||||
void navigate({ to: '/acceso', replace: true })
|
||||
void navigate({ to: '/access', replace: true })
|
||||
}
|
||||
}, [meQuery.error, navigate])
|
||||
|
||||
@@ -145,7 +145,7 @@ export function StudentAppProvider({ children }: { children: ReactNode }) {
|
||||
mutationFn: logoutStudent,
|
||||
onSettled: async () => {
|
||||
queryClient.removeQueries({ queryKey: ['student'] })
|
||||
await navigate({ to: '/acceso', replace: true })
|
||||
await navigate({ to: '/access', replace: true })
|
||||
},
|
||||
})
|
||||
|
||||
|
||||
@@ -24,7 +24,7 @@ export function StudentClassesView() {
|
||||
</div>
|
||||
|
||||
<Link
|
||||
to="/alumno/avisar"
|
||||
to="/student/notify-absence"
|
||||
className="flex min-h-12 items-center justify-center gap-2 rounded-xl bg-accent font-semibold text-on-accent hover:bg-accent-strong"
|
||||
>
|
||||
<CalendarX2 className="size-5" aria-hidden="true" />
|
||||
|
||||
@@ -34,7 +34,7 @@ export function StudentLayout() {
|
||||
<div className="flex justify-center py-20" role="status" aria-label="Cargando">
|
||||
<Loader2 className="size-8 animate-spin text-accent" aria-hidden="true" />
|
||||
</div>
|
||||
) : !student && !location.pathname.startsWith('/alumno/perfil') ? (
|
||||
) : !student && !location.pathname.startsWith('/student/profile') ? (
|
||||
<div className="mt-10 space-y-3 rounded-2xl border border-border bg-surface p-6 text-center">
|
||||
<UserX className="mx-auto size-8 text-foreground" aria-hidden="true" />
|
||||
<h1 className="text-lg font-bold text-primary">No tenés grupos activos</h1>
|
||||
|
||||
@@ -69,7 +69,7 @@ export function StudentPaymentsView() {
|
||||
)}
|
||||
{canReport ? (
|
||||
<Link
|
||||
to="/alumno/informar-pago"
|
||||
to="/student/report-payment"
|
||||
className="flex min-h-12 items-center justify-center gap-2 rounded-xl bg-accent font-semibold text-on-accent hover:bg-accent-strong"
|
||||
>
|
||||
<Receipt className="size-5" aria-hidden="true" />
|
||||
|
||||
@@ -13,7 +13,7 @@ export function WelcomeView() {
|
||||
const [email, setEmail] = useState('')
|
||||
|
||||
const goHome = () =>
|
||||
finishWelcome.mutate(undefined, { onSettled: () => void navigate({ to: '/alumno', replace: true }) })
|
||||
finishWelcome.mutate(undefined, { onSettled: () => void navigate({ to: '/student', replace: true }) })
|
||||
|
||||
const handleContinue = () => {
|
||||
const value = email.trim()
|
||||
|
||||
@@ -3,17 +3,17 @@ import type { NavItem } from '../../components/layout/nav-items'
|
||||
|
||||
// Bottom nav of the student app: the single source for StudentBottomNav.
|
||||
export const STUDENT_NAV_ITEMS: NavItem[] = [
|
||||
{ label: 'Inicio', to: '/alumno', icon: Home },
|
||||
{ label: 'Clases', to: '/alumno/clases', icon: CalendarDays },
|
||||
{ label: 'Pagos', to: '/alumno/pagos', icon: Wallet },
|
||||
{ label: 'Perfil', to: '/alumno/perfil', icon: User },
|
||||
{ label: 'Inicio', to: '/student', icon: Home },
|
||||
{ label: 'Clases', to: '/student/classes', icon: CalendarDays },
|
||||
{ label: 'Pagos', to: '/student/payments', icon: Wallet },
|
||||
{ label: 'Perfil', to: '/student/profile', icon: User },
|
||||
]
|
||||
|
||||
/* Flow screens with their own fixed bottom button: no nav there. */
|
||||
export const STUDENT_FLOW_PATHS = ['/alumno/bienvenida', '/alumno/avisar', '/alumno/informar-pago']
|
||||
export const STUDENT_FLOW_PATHS = ['/student/welcome', '/student/notify-absence', '/student/report-payment']
|
||||
|
||||
export function isStudentNavItemActive(pathname: string, to: string): boolean {
|
||||
const path = pathname.replace(/\/$/, '') || '/'
|
||||
if (to === '/alumno') return path === '/alumno'
|
||||
if (to === '/student') return path === '/student'
|
||||
return path === to || path.startsWith(`${to}/`)
|
||||
}
|
||||
|
||||
@@ -24,7 +24,7 @@ import { Route as AuthenticatedPaymentsRouteImport } from './routes/_authenticat
|
||||
import { Route as AuthenticatedProfileRouteImport } from './routes/_authenticated/profile'
|
||||
import { Route as AuthenticatedSecurityRouteImport } from './routes/_authenticated/security'
|
||||
import { Route as AuthenticatedSettingsRouteImport } from './routes/_authenticated/settings'
|
||||
import { Route as AccesoIndexRouteImport } from './routes/acceso.index'
|
||||
import { Route as AccessIndexRouteImport } from './routes/access.index'
|
||||
import { Route as AdminIndexRouteImport } from './routes/admin/index'
|
||||
import { Route as ITokenRouteImport } from './routes/i.$token'
|
||||
import { Route as JoinTokenRouteImport } from './routes/join.$token'
|
||||
@@ -32,14 +32,14 @@ import { Route as ReportAbsenceTokenRouteImport } from './routes/report-absence.
|
||||
import { Route as AuthenticatedGroupsIndexRouteImport } from './routes/_authenticated/groups/index'
|
||||
import { Route as AuthenticatedGroupsAttentionRouteImport } from './routes/_authenticated/groups/attention'
|
||||
import { Route as AuthenticatedGroupsNewRouteImport } from './routes/_authenticated/groups/new'
|
||||
import { Route as StudentAlumnoIndexRouteImport } from './routes/_student/alumno.index'
|
||||
import { Route as StudentAlumnoAvisarRouteImport } from './routes/_student/alumno.avisar'
|
||||
import { Route as StudentAlumnoBienvenidaRouteImport } from './routes/_student/alumno.bienvenida'
|
||||
import { Route as StudentAlumnoClasesRouteImport } from './routes/_student/alumno.clases'
|
||||
import { Route as StudentAlumnoInformarPagoRouteImport } from './routes/_student/alumno.informar-pago'
|
||||
import { Route as StudentAlumnoPagosRouteImport } from './routes/_student/alumno.pagos'
|
||||
import { Route as StudentAlumnoPerfilRouteImport } from './routes/_student/alumno.perfil'
|
||||
import { Route as AccesoMailTokenRouteImport } from './routes/acceso.mail.$token'
|
||||
import { Route as StudentStudentIndexRouteImport } from './routes/_student/student.index'
|
||||
import { Route as StudentStudentClassesRouteImport } from './routes/_student/student.classes'
|
||||
import { Route as StudentStudentNotifyAbsenceRouteImport } from './routes/_student/student.notify-absence'
|
||||
import { Route as StudentStudentPaymentsRouteImport } from './routes/_student/student.payments'
|
||||
import { Route as StudentStudentProfileRouteImport } from './routes/_student/student.profile'
|
||||
import { Route as StudentStudentReportPaymentRouteImport } from './routes/_student/student.report-payment'
|
||||
import { Route as StudentStudentWelcomeRouteImport } from './routes/_student/student.welcome'
|
||||
import { Route as AccessEmailTokenRouteImport } from './routes/access.email.$token'
|
||||
import { Route as AdminAccountsAccountIdRouteImport } from './routes/admin/accounts.$accountId'
|
||||
import { Route as AuthenticatedClassSessionIdAttendanceRouteImport } from './routes/_authenticated/class/$sessionId/attendance'
|
||||
import { Route as AuthenticatedGroupsGroupIdIndexRouteImport } from './routes/_authenticated/groups/$groupId/index'
|
||||
@@ -120,9 +120,9 @@ const AuthenticatedSettingsRoute = AuthenticatedSettingsRouteImport.update({
|
||||
path: '/settings',
|
||||
getParentRoute: () => AuthenticatedRoute,
|
||||
} as any)
|
||||
const AccesoIndexRoute = AccesoIndexRouteImport.update({
|
||||
id: '/acceso/',
|
||||
path: '/acceso/',
|
||||
const AccessIndexRoute = AccessIndexRouteImport.update({
|
||||
id: '/access/',
|
||||
path: '/access/',
|
||||
getParentRoute: () => rootRouteImport,
|
||||
} as any)
|
||||
const AdminIndexRoute = AdminIndexRouteImport.update({
|
||||
@@ -162,45 +162,46 @@ const AuthenticatedGroupsNewRoute = AuthenticatedGroupsNewRouteImport.update({
|
||||
path: '/groups/new',
|
||||
getParentRoute: () => AuthenticatedRoute,
|
||||
} as any)
|
||||
const StudentAlumnoIndexRoute = StudentAlumnoIndexRouteImport.update({
|
||||
id: '/alumno/',
|
||||
path: '/alumno/',
|
||||
const StudentStudentIndexRoute = StudentStudentIndexRouteImport.update({
|
||||
id: '/student/',
|
||||
path: '/student/',
|
||||
getParentRoute: () => StudentRoute,
|
||||
} as any)
|
||||
const StudentAlumnoAvisarRoute = StudentAlumnoAvisarRouteImport.update({
|
||||
id: '/alumno/avisar',
|
||||
path: '/alumno/avisar',
|
||||
const StudentStudentClassesRoute = StudentStudentClassesRouteImport.update({
|
||||
id: '/student/classes',
|
||||
path: '/student/classes',
|
||||
getParentRoute: () => StudentRoute,
|
||||
} as any)
|
||||
const StudentAlumnoBienvenidaRoute = StudentAlumnoBienvenidaRouteImport.update({
|
||||
id: '/alumno/bienvenida',
|
||||
path: '/alumno/bienvenida',
|
||||
getParentRoute: () => StudentRoute,
|
||||
} as any)
|
||||
const StudentAlumnoClasesRoute = StudentAlumnoClasesRouteImport.update({
|
||||
id: '/alumno/clases',
|
||||
path: '/alumno/clases',
|
||||
getParentRoute: () => StudentRoute,
|
||||
} as any)
|
||||
const StudentAlumnoInformarPagoRoute =
|
||||
StudentAlumnoInformarPagoRouteImport.update({
|
||||
id: '/alumno/informar-pago',
|
||||
path: '/alumno/informar-pago',
|
||||
const StudentStudentNotifyAbsenceRoute =
|
||||
StudentStudentNotifyAbsenceRouteImport.update({
|
||||
id: '/student/notify-absence',
|
||||
path: '/student/notify-absence',
|
||||
getParentRoute: () => StudentRoute,
|
||||
} as any)
|
||||
const StudentAlumnoPagosRoute = StudentAlumnoPagosRouteImport.update({
|
||||
id: '/alumno/pagos',
|
||||
path: '/alumno/pagos',
|
||||
const StudentStudentPaymentsRoute = StudentStudentPaymentsRouteImport.update({
|
||||
id: '/student/payments',
|
||||
path: '/student/payments',
|
||||
getParentRoute: () => StudentRoute,
|
||||
} as any)
|
||||
const StudentAlumnoPerfilRoute = StudentAlumnoPerfilRouteImport.update({
|
||||
id: '/alumno/perfil',
|
||||
path: '/alumno/perfil',
|
||||
const StudentStudentProfileRoute = StudentStudentProfileRouteImport.update({
|
||||
id: '/student/profile',
|
||||
path: '/student/profile',
|
||||
getParentRoute: () => StudentRoute,
|
||||
} as any)
|
||||
const AccesoMailTokenRoute = AccesoMailTokenRouteImport.update({
|
||||
id: '/acceso/mail/$token',
|
||||
path: '/acceso/mail/$token',
|
||||
const StudentStudentReportPaymentRoute =
|
||||
StudentStudentReportPaymentRouteImport.update({
|
||||
id: '/student/report-payment',
|
||||
path: '/student/report-payment',
|
||||
getParentRoute: () => StudentRoute,
|
||||
} as any)
|
||||
const StudentStudentWelcomeRoute = StudentStudentWelcomeRouteImport.update({
|
||||
id: '/student/welcome',
|
||||
path: '/student/welcome',
|
||||
getParentRoute: () => StudentRoute,
|
||||
} as any)
|
||||
const AccessEmailTokenRoute = AccessEmailTokenRouteImport.update({
|
||||
id: '/access/email/$token',
|
||||
path: '/access/email/$token',
|
||||
getParentRoute: () => rootRouteImport,
|
||||
} as any)
|
||||
const AdminAccountsAccountIdRoute = AdminAccountsAccountIdRouteImport.update({
|
||||
@@ -256,20 +257,20 @@ export interface FileRoutesByFullPath {
|
||||
'/i/$token': typeof ITokenRoute
|
||||
'/join/$token': typeof JoinTokenRoute
|
||||
'/report-absence/$token': typeof ReportAbsenceTokenRoute
|
||||
'/acceso/': typeof AccesoIndexRoute
|
||||
'/access/': typeof AccessIndexRoute
|
||||
'/admin/': typeof AdminIndexRoute
|
||||
'/groups/attention': typeof AuthenticatedGroupsAttentionRoute
|
||||
'/groups/new': typeof AuthenticatedGroupsNewRoute
|
||||
'/alumno/avisar': typeof StudentAlumnoAvisarRoute
|
||||
'/alumno/bienvenida': typeof StudentAlumnoBienvenidaRoute
|
||||
'/alumno/clases': typeof StudentAlumnoClasesRoute
|
||||
'/alumno/informar-pago': typeof StudentAlumnoInformarPagoRoute
|
||||
'/alumno/pagos': typeof StudentAlumnoPagosRoute
|
||||
'/alumno/perfil': typeof StudentAlumnoPerfilRoute
|
||||
'/acceso/mail/$token': typeof AccesoMailTokenRoute
|
||||
'/student/classes': typeof StudentStudentClassesRoute
|
||||
'/student/notify-absence': typeof StudentStudentNotifyAbsenceRoute
|
||||
'/student/payments': typeof StudentStudentPaymentsRoute
|
||||
'/student/profile': typeof StudentStudentProfileRoute
|
||||
'/student/report-payment': typeof StudentStudentReportPaymentRoute
|
||||
'/student/welcome': typeof StudentStudentWelcomeRoute
|
||||
'/access/email/$token': typeof AccessEmailTokenRoute
|
||||
'/admin/accounts/$accountId': typeof AdminAccountsAccountIdRoute
|
||||
'/groups/': typeof AuthenticatedGroupsIndexRoute
|
||||
'/alumno/': typeof StudentAlumnoIndexRoute
|
||||
'/student/': typeof StudentStudentIndexRoute
|
||||
'/class/$sessionId/attendance': typeof AuthenticatedClassSessionIdAttendanceRoute
|
||||
'/groups/$groupId/analytics': typeof AuthenticatedGroupsGroupIdAnalyticsRoute
|
||||
'/groups/$groupId/': typeof AuthenticatedGroupsGroupIdIndexRoute
|
||||
@@ -292,20 +293,20 @@ export interface FileRoutesByTo {
|
||||
'/i/$token': typeof ITokenRoute
|
||||
'/join/$token': typeof JoinTokenRoute
|
||||
'/report-absence/$token': typeof ReportAbsenceTokenRoute
|
||||
'/acceso': typeof AccesoIndexRoute
|
||||
'/access': typeof AccessIndexRoute
|
||||
'/admin': typeof AdminIndexRoute
|
||||
'/groups/attention': typeof AuthenticatedGroupsAttentionRoute
|
||||
'/groups/new': typeof AuthenticatedGroupsNewRoute
|
||||
'/alumno/avisar': typeof StudentAlumnoAvisarRoute
|
||||
'/alumno/bienvenida': typeof StudentAlumnoBienvenidaRoute
|
||||
'/alumno/clases': typeof StudentAlumnoClasesRoute
|
||||
'/alumno/informar-pago': typeof StudentAlumnoInformarPagoRoute
|
||||
'/alumno/pagos': typeof StudentAlumnoPagosRoute
|
||||
'/alumno/perfil': typeof StudentAlumnoPerfilRoute
|
||||
'/acceso/mail/$token': typeof AccesoMailTokenRoute
|
||||
'/student/classes': typeof StudentStudentClassesRoute
|
||||
'/student/notify-absence': typeof StudentStudentNotifyAbsenceRoute
|
||||
'/student/payments': typeof StudentStudentPaymentsRoute
|
||||
'/student/profile': typeof StudentStudentProfileRoute
|
||||
'/student/report-payment': typeof StudentStudentReportPaymentRoute
|
||||
'/student/welcome': typeof StudentStudentWelcomeRoute
|
||||
'/access/email/$token': typeof AccessEmailTokenRoute
|
||||
'/admin/accounts/$accountId': typeof AdminAccountsAccountIdRoute
|
||||
'/groups': typeof AuthenticatedGroupsIndexRoute
|
||||
'/alumno': typeof StudentAlumnoIndexRoute
|
||||
'/student': typeof StudentStudentIndexRoute
|
||||
'/class/$sessionId/attendance': typeof AuthenticatedClassSessionIdAttendanceRoute
|
||||
'/groups/$groupId/analytics': typeof AuthenticatedGroupsGroupIdAnalyticsRoute
|
||||
'/groups/$groupId': typeof AuthenticatedGroupsGroupIdIndexRoute
|
||||
@@ -332,20 +333,20 @@ export interface FileRoutesById {
|
||||
'/join/$token': typeof JoinTokenRoute
|
||||
'/report-absence/$token': typeof ReportAbsenceTokenRoute
|
||||
'/_authenticated/': typeof AuthenticatedIndexRoute
|
||||
'/acceso/': typeof AccesoIndexRoute
|
||||
'/access/': typeof AccessIndexRoute
|
||||
'/admin/': typeof AdminIndexRoute
|
||||
'/_authenticated/groups/attention': typeof AuthenticatedGroupsAttentionRoute
|
||||
'/_authenticated/groups/new': typeof AuthenticatedGroupsNewRoute
|
||||
'/_student/alumno/avisar': typeof StudentAlumnoAvisarRoute
|
||||
'/_student/alumno/bienvenida': typeof StudentAlumnoBienvenidaRoute
|
||||
'/_student/alumno/clases': typeof StudentAlumnoClasesRoute
|
||||
'/_student/alumno/informar-pago': typeof StudentAlumnoInformarPagoRoute
|
||||
'/_student/alumno/pagos': typeof StudentAlumnoPagosRoute
|
||||
'/_student/alumno/perfil': typeof StudentAlumnoPerfilRoute
|
||||
'/acceso/mail/$token': typeof AccesoMailTokenRoute
|
||||
'/_student/student/classes': typeof StudentStudentClassesRoute
|
||||
'/_student/student/notify-absence': typeof StudentStudentNotifyAbsenceRoute
|
||||
'/_student/student/payments': typeof StudentStudentPaymentsRoute
|
||||
'/_student/student/profile': typeof StudentStudentProfileRoute
|
||||
'/_student/student/report-payment': typeof StudentStudentReportPaymentRoute
|
||||
'/_student/student/welcome': typeof StudentStudentWelcomeRoute
|
||||
'/access/email/$token': typeof AccessEmailTokenRoute
|
||||
'/admin/accounts/$accountId': typeof AdminAccountsAccountIdRoute
|
||||
'/_authenticated/groups/': typeof AuthenticatedGroupsIndexRoute
|
||||
'/_student/alumno/': typeof StudentAlumnoIndexRoute
|
||||
'/_student/student/': typeof StudentStudentIndexRoute
|
||||
'/_authenticated/class/$sessionId/attendance': typeof AuthenticatedClassSessionIdAttendanceRoute
|
||||
'/_authenticated/groups/$groupId/analytics': typeof AuthenticatedGroupsGroupIdAnalyticsRoute
|
||||
'/_authenticated/groups/$groupId/': typeof AuthenticatedGroupsGroupIdIndexRoute
|
||||
@@ -371,20 +372,20 @@ export interface FileRouteTypes {
|
||||
| '/i/$token'
|
||||
| '/join/$token'
|
||||
| '/report-absence/$token'
|
||||
| '/acceso/'
|
||||
| '/access/'
|
||||
| '/admin/'
|
||||
| '/groups/attention'
|
||||
| '/groups/new'
|
||||
| '/alumno/avisar'
|
||||
| '/alumno/bienvenida'
|
||||
| '/alumno/clases'
|
||||
| '/alumno/informar-pago'
|
||||
| '/alumno/pagos'
|
||||
| '/alumno/perfil'
|
||||
| '/acceso/mail/$token'
|
||||
| '/student/classes'
|
||||
| '/student/notify-absence'
|
||||
| '/student/payments'
|
||||
| '/student/profile'
|
||||
| '/student/report-payment'
|
||||
| '/student/welcome'
|
||||
| '/access/email/$token'
|
||||
| '/admin/accounts/$accountId'
|
||||
| '/groups/'
|
||||
| '/alumno/'
|
||||
| '/student/'
|
||||
| '/class/$sessionId/attendance'
|
||||
| '/groups/$groupId/analytics'
|
||||
| '/groups/$groupId/'
|
||||
@@ -407,20 +408,20 @@ export interface FileRouteTypes {
|
||||
| '/i/$token'
|
||||
| '/join/$token'
|
||||
| '/report-absence/$token'
|
||||
| '/acceso'
|
||||
| '/access'
|
||||
| '/admin'
|
||||
| '/groups/attention'
|
||||
| '/groups/new'
|
||||
| '/alumno/avisar'
|
||||
| '/alumno/bienvenida'
|
||||
| '/alumno/clases'
|
||||
| '/alumno/informar-pago'
|
||||
| '/alumno/pagos'
|
||||
| '/alumno/perfil'
|
||||
| '/acceso/mail/$token'
|
||||
| '/student/classes'
|
||||
| '/student/notify-absence'
|
||||
| '/student/payments'
|
||||
| '/student/profile'
|
||||
| '/student/report-payment'
|
||||
| '/student/welcome'
|
||||
| '/access/email/$token'
|
||||
| '/admin/accounts/$accountId'
|
||||
| '/groups'
|
||||
| '/alumno'
|
||||
| '/student'
|
||||
| '/class/$sessionId/attendance'
|
||||
| '/groups/$groupId/analytics'
|
||||
| '/groups/$groupId'
|
||||
@@ -446,20 +447,20 @@ export interface FileRouteTypes {
|
||||
| '/join/$token'
|
||||
| '/report-absence/$token'
|
||||
| '/_authenticated/'
|
||||
| '/acceso/'
|
||||
| '/access/'
|
||||
| '/admin/'
|
||||
| '/_authenticated/groups/attention'
|
||||
| '/_authenticated/groups/new'
|
||||
| '/_student/alumno/avisar'
|
||||
| '/_student/alumno/bienvenida'
|
||||
| '/_student/alumno/clases'
|
||||
| '/_student/alumno/informar-pago'
|
||||
| '/_student/alumno/pagos'
|
||||
| '/_student/alumno/perfil'
|
||||
| '/acceso/mail/$token'
|
||||
| '/_student/student/classes'
|
||||
| '/_student/student/notify-absence'
|
||||
| '/_student/student/payments'
|
||||
| '/_student/student/profile'
|
||||
| '/_student/student/report-payment'
|
||||
| '/_student/student/welcome'
|
||||
| '/access/email/$token'
|
||||
| '/admin/accounts/$accountId'
|
||||
| '/_authenticated/groups/'
|
||||
| '/_student/alumno/'
|
||||
| '/_student/student/'
|
||||
| '/_authenticated/class/$sessionId/attendance'
|
||||
| '/_authenticated/groups/$groupId/analytics'
|
||||
| '/_authenticated/groups/$groupId/'
|
||||
@@ -480,8 +481,8 @@ export interface RootRouteChildren {
|
||||
ITokenRoute: typeof ITokenRoute
|
||||
JoinTokenRoute: typeof JoinTokenRoute
|
||||
ReportAbsenceTokenRoute: typeof ReportAbsenceTokenRoute
|
||||
AccesoIndexRoute: typeof AccesoIndexRoute
|
||||
AccesoMailTokenRoute: typeof AccesoMailTokenRoute
|
||||
AccessIndexRoute: typeof AccessIndexRoute
|
||||
AccessEmailTokenRoute: typeof AccessEmailTokenRoute
|
||||
}
|
||||
|
||||
declare module '@tanstack/react-router' {
|
||||
@@ -591,11 +592,11 @@ declare module '@tanstack/react-router' {
|
||||
preLoaderRoute: typeof AuthenticatedSettingsRouteImport
|
||||
parentRoute: typeof AuthenticatedRoute
|
||||
}
|
||||
'/acceso/': {
|
||||
id: '/acceso/'
|
||||
path: '/acceso'
|
||||
fullPath: '/acceso/'
|
||||
preLoaderRoute: typeof AccesoIndexRouteImport
|
||||
'/access/': {
|
||||
id: '/access/'
|
||||
path: '/access'
|
||||
fullPath: '/access/'
|
||||
preLoaderRoute: typeof AccessIndexRouteImport
|
||||
parentRoute: typeof rootRouteImport
|
||||
}
|
||||
'/admin/': {
|
||||
@@ -647,60 +648,60 @@ declare module '@tanstack/react-router' {
|
||||
preLoaderRoute: typeof AuthenticatedGroupsNewRouteImport
|
||||
parentRoute: typeof AuthenticatedRoute
|
||||
}
|
||||
'/_student/alumno/': {
|
||||
id: '/_student/alumno/'
|
||||
path: '/alumno'
|
||||
fullPath: '/alumno/'
|
||||
preLoaderRoute: typeof StudentAlumnoIndexRouteImport
|
||||
'/_student/student/': {
|
||||
id: '/_student/student/'
|
||||
path: '/student'
|
||||
fullPath: '/student/'
|
||||
preLoaderRoute: typeof StudentStudentIndexRouteImport
|
||||
parentRoute: typeof StudentRoute
|
||||
}
|
||||
'/_student/alumno/avisar': {
|
||||
id: '/_student/alumno/avisar'
|
||||
path: '/alumno/avisar'
|
||||
fullPath: '/alumno/avisar'
|
||||
preLoaderRoute: typeof StudentAlumnoAvisarRouteImport
|
||||
'/_student/student/classes': {
|
||||
id: '/_student/student/classes'
|
||||
path: '/student/classes'
|
||||
fullPath: '/student/classes'
|
||||
preLoaderRoute: typeof StudentStudentClassesRouteImport
|
||||
parentRoute: typeof StudentRoute
|
||||
}
|
||||
'/_student/alumno/bienvenida': {
|
||||
id: '/_student/alumno/bienvenida'
|
||||
path: '/alumno/bienvenida'
|
||||
fullPath: '/alumno/bienvenida'
|
||||
preLoaderRoute: typeof StudentAlumnoBienvenidaRouteImport
|
||||
'/_student/student/notify-absence': {
|
||||
id: '/_student/student/notify-absence'
|
||||
path: '/student/notify-absence'
|
||||
fullPath: '/student/notify-absence'
|
||||
preLoaderRoute: typeof StudentStudentNotifyAbsenceRouteImport
|
||||
parentRoute: typeof StudentRoute
|
||||
}
|
||||
'/_student/alumno/clases': {
|
||||
id: '/_student/alumno/clases'
|
||||
path: '/alumno/clases'
|
||||
fullPath: '/alumno/clases'
|
||||
preLoaderRoute: typeof StudentAlumnoClasesRouteImport
|
||||
'/_student/student/payments': {
|
||||
id: '/_student/student/payments'
|
||||
path: '/student/payments'
|
||||
fullPath: '/student/payments'
|
||||
preLoaderRoute: typeof StudentStudentPaymentsRouteImport
|
||||
parentRoute: typeof StudentRoute
|
||||
}
|
||||
'/_student/alumno/informar-pago': {
|
||||
id: '/_student/alumno/informar-pago'
|
||||
path: '/alumno/informar-pago'
|
||||
fullPath: '/alumno/informar-pago'
|
||||
preLoaderRoute: typeof StudentAlumnoInformarPagoRouteImport
|
||||
'/_student/student/profile': {
|
||||
id: '/_student/student/profile'
|
||||
path: '/student/profile'
|
||||
fullPath: '/student/profile'
|
||||
preLoaderRoute: typeof StudentStudentProfileRouteImport
|
||||
parentRoute: typeof StudentRoute
|
||||
}
|
||||
'/_student/alumno/pagos': {
|
||||
id: '/_student/alumno/pagos'
|
||||
path: '/alumno/pagos'
|
||||
fullPath: '/alumno/pagos'
|
||||
preLoaderRoute: typeof StudentAlumnoPagosRouteImport
|
||||
'/_student/student/report-payment': {
|
||||
id: '/_student/student/report-payment'
|
||||
path: '/student/report-payment'
|
||||
fullPath: '/student/report-payment'
|
||||
preLoaderRoute: typeof StudentStudentReportPaymentRouteImport
|
||||
parentRoute: typeof StudentRoute
|
||||
}
|
||||
'/_student/alumno/perfil': {
|
||||
id: '/_student/alumno/perfil'
|
||||
path: '/alumno/perfil'
|
||||
fullPath: '/alumno/perfil'
|
||||
preLoaderRoute: typeof StudentAlumnoPerfilRouteImport
|
||||
'/_student/student/welcome': {
|
||||
id: '/_student/student/welcome'
|
||||
path: '/student/welcome'
|
||||
fullPath: '/student/welcome'
|
||||
preLoaderRoute: typeof StudentStudentWelcomeRouteImport
|
||||
parentRoute: typeof StudentRoute
|
||||
}
|
||||
'/acceso/mail/$token': {
|
||||
id: '/acceso/mail/$token'
|
||||
path: '/acceso/mail/$token'
|
||||
fullPath: '/acceso/mail/$token'
|
||||
preLoaderRoute: typeof AccesoMailTokenRouteImport
|
||||
'/access/email/$token': {
|
||||
id: '/access/email/$token'
|
||||
path: '/access/email/$token'
|
||||
fullPath: '/access/email/$token'
|
||||
preLoaderRoute: typeof AccessEmailTokenRouteImport
|
||||
parentRoute: typeof rootRouteImport
|
||||
}
|
||||
'/admin/accounts/$accountId': {
|
||||
@@ -791,23 +792,23 @@ const AuthenticatedRouteWithChildren = AuthenticatedRoute._addFileChildren(
|
||||
)
|
||||
|
||||
interface StudentRouteChildren {
|
||||
StudentAlumnoAvisarRoute: typeof StudentAlumnoAvisarRoute
|
||||
StudentAlumnoBienvenidaRoute: typeof StudentAlumnoBienvenidaRoute
|
||||
StudentAlumnoClasesRoute: typeof StudentAlumnoClasesRoute
|
||||
StudentAlumnoInformarPagoRoute: typeof StudentAlumnoInformarPagoRoute
|
||||
StudentAlumnoPagosRoute: typeof StudentAlumnoPagosRoute
|
||||
StudentAlumnoPerfilRoute: typeof StudentAlumnoPerfilRoute
|
||||
StudentAlumnoIndexRoute: typeof StudentAlumnoIndexRoute
|
||||
StudentStudentClassesRoute: typeof StudentStudentClassesRoute
|
||||
StudentStudentNotifyAbsenceRoute: typeof StudentStudentNotifyAbsenceRoute
|
||||
StudentStudentPaymentsRoute: typeof StudentStudentPaymentsRoute
|
||||
StudentStudentProfileRoute: typeof StudentStudentProfileRoute
|
||||
StudentStudentReportPaymentRoute: typeof StudentStudentReportPaymentRoute
|
||||
StudentStudentWelcomeRoute: typeof StudentStudentWelcomeRoute
|
||||
StudentStudentIndexRoute: typeof StudentStudentIndexRoute
|
||||
}
|
||||
|
||||
const StudentRouteChildren: StudentRouteChildren = {
|
||||
StudentAlumnoAvisarRoute: StudentAlumnoAvisarRoute,
|
||||
StudentAlumnoBienvenidaRoute: StudentAlumnoBienvenidaRoute,
|
||||
StudentAlumnoClasesRoute: StudentAlumnoClasesRoute,
|
||||
StudentAlumnoInformarPagoRoute: StudentAlumnoInformarPagoRoute,
|
||||
StudentAlumnoPagosRoute: StudentAlumnoPagosRoute,
|
||||
StudentAlumnoPerfilRoute: StudentAlumnoPerfilRoute,
|
||||
StudentAlumnoIndexRoute: StudentAlumnoIndexRoute,
|
||||
StudentStudentClassesRoute: StudentStudentClassesRoute,
|
||||
StudentStudentNotifyAbsenceRoute: StudentStudentNotifyAbsenceRoute,
|
||||
StudentStudentPaymentsRoute: StudentStudentPaymentsRoute,
|
||||
StudentStudentProfileRoute: StudentStudentProfileRoute,
|
||||
StudentStudentReportPaymentRoute: StudentStudentReportPaymentRoute,
|
||||
StudentStudentWelcomeRoute: StudentStudentWelcomeRoute,
|
||||
StudentStudentIndexRoute: StudentStudentIndexRoute,
|
||||
}
|
||||
|
||||
const StudentRouteWithChildren =
|
||||
@@ -838,8 +839,8 @@ const rootRouteChildren: RootRouteChildren = {
|
||||
ITokenRoute: ITokenRoute,
|
||||
JoinTokenRoute: JoinTokenRoute,
|
||||
ReportAbsenceTokenRoute: ReportAbsenceTokenRoute,
|
||||
AccesoIndexRoute: AccesoIndexRoute,
|
||||
AccesoMailTokenRoute: AccesoMailTokenRoute,
|
||||
AccessIndexRoute: AccessIndexRoute,
|
||||
AccessEmailTokenRoute: AccessEmailTokenRoute,
|
||||
}
|
||||
export const routeTree = rootRouteImport
|
||||
._addFileChildren(rootRouteChildren)
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import { createFileRoute } from '@tanstack/react-router'
|
||||
import { StudentClassesView } from '../../features/student-app/StudentClassesView'
|
||||
|
||||
export const Route = createFileRoute('/_student/alumno/clases')({
|
||||
export const Route = createFileRoute('/_student/student/classes')({
|
||||
component: StudentClassesView,
|
||||
})
|
||||
@@ -1,6 +1,6 @@
|
||||
import { createFileRoute } from '@tanstack/react-router'
|
||||
import { StudentHomeView } from '../../features/student-app/StudentHomeView'
|
||||
|
||||
export const Route = createFileRoute('/_student/alumno/')({
|
||||
export const Route = createFileRoute('/_student/student/')({
|
||||
component: StudentHomeView,
|
||||
})
|
||||
@@ -6,7 +6,7 @@ function NotifyAbsenceRoute() {
|
||||
return <NotifyAbsenceView preselected={clase} />
|
||||
}
|
||||
|
||||
export const Route = createFileRoute('/_student/alumno/avisar')({
|
||||
export const Route = createFileRoute('/_student/student/notify-absence')({
|
||||
validateSearch: (search: Record<string, unknown>): { clase?: string } =>
|
||||
typeof search.clase === 'string' ? { clase: search.clase } : {},
|
||||
component: NotifyAbsenceRoute,
|
||||
@@ -1,6 +1,6 @@
|
||||
import { createFileRoute } from '@tanstack/react-router'
|
||||
import { StudentPaymentsView } from '../../features/student-app/StudentPaymentsView'
|
||||
|
||||
export const Route = createFileRoute('/_student/alumno/pagos')({
|
||||
export const Route = createFileRoute('/_student/student/payments')({
|
||||
component: StudentPaymentsView,
|
||||
})
|
||||
@@ -1,6 +1,6 @@
|
||||
import { createFileRoute } from '@tanstack/react-router'
|
||||
import { StudentProfileView } from '../../features/student-app/StudentProfileView'
|
||||
|
||||
export const Route = createFileRoute('/_student/alumno/perfil')({
|
||||
export const Route = createFileRoute('/_student/student/profile')({
|
||||
component: StudentProfileView,
|
||||
})
|
||||
@@ -1,6 +1,6 @@
|
||||
import { createFileRoute } from '@tanstack/react-router'
|
||||
import { ReportPaymentView } from '../../features/student-app/ReportPaymentView'
|
||||
|
||||
export const Route = createFileRoute('/_student/alumno/informar-pago')({
|
||||
export const Route = createFileRoute('/_student/student/report-payment')({
|
||||
component: ReportPaymentView,
|
||||
})
|
||||
@@ -1,6 +1,6 @@
|
||||
import { createFileRoute } from '@tanstack/react-router'
|
||||
import { WelcomeView } from '../../features/student-app/WelcomeView'
|
||||
|
||||
export const Route = createFileRoute('/_student/alumno/bienvenida')({
|
||||
export const Route = createFileRoute('/_student/student/welcome')({
|
||||
component: WelcomeView,
|
||||
})
|
||||
@@ -6,6 +6,6 @@ function ConfirmRecoveryEmailRoute() {
|
||||
return <ConfirmRecoveryEmailView token={token} />
|
||||
}
|
||||
|
||||
export const Route = createFileRoute('/acceso/mail/$token')({
|
||||
export const Route = createFileRoute('/access/email/$token')({
|
||||
component: ConfirmRecoveryEmailRoute,
|
||||
})
|
||||
@@ -1,6 +1,6 @@
|
||||
import { createFileRoute } from '@tanstack/react-router'
|
||||
import { LinkUsedView } from '../features/student-access/LinkUsedView'
|
||||
|
||||
export const Route = createFileRoute('/acceso/')({
|
||||
export const Route = createFileRoute('/access/')({
|
||||
component: () => <LinkUsedView variant="signed-out" />,
|
||||
})
|
||||
Reference in New Issue
Block a user