feat: implement email verification and password management features

This commit is contained in:
2025-09-04 16:21:51 -03:00
parent 4d5de1ba88
commit fa355da5f6
7 changed files with 864 additions and 17 deletions

View File

@@ -9,16 +9,28 @@
// Additionally, you should also exclude this file from your linter and/or formatter to prevent it from being checked or modified.
import { Route as rootRouteImport } from './routes/__root'
import { Route as VerifyEmailRouteImport } from './routes/verify-email'
import { Route as SpaceRouteImport } from './routes/space'
import { Route as PasswordRouteImport } from './routes/password'
import { Route as LoginRouteImport } from './routes/login'
import { Route as DashboardRouteImport } from './routes/dashboard'
import { Route as IndexRouteImport } from './routes/index'
const VerifyEmailRoute = VerifyEmailRouteImport.update({
id: '/verify-email',
path: '/verify-email',
getParentRoute: () => rootRouteImport,
} as any)
const SpaceRoute = SpaceRouteImport.update({
id: '/space',
path: '/space',
getParentRoute: () => rootRouteImport,
} as any)
const PasswordRoute = PasswordRouteImport.update({
id: '/password',
path: '/password',
getParentRoute: () => rootRouteImport,
} as any)
const LoginRoute = LoginRouteImport.update({
id: '/login',
path: '/login',
@@ -39,38 +51,66 @@ export interface FileRoutesByFullPath {
'/': typeof IndexRoute
'/dashboard': typeof DashboardRoute
'/login': typeof LoginRoute
'/password': typeof PasswordRoute
'/space': typeof SpaceRoute
'/verify-email': typeof VerifyEmailRoute
}
export interface FileRoutesByTo {
'/': typeof IndexRoute
'/dashboard': typeof DashboardRoute
'/login': typeof LoginRoute
'/password': typeof PasswordRoute
'/space': typeof SpaceRoute
'/verify-email': typeof VerifyEmailRoute
}
export interface FileRoutesById {
__root__: typeof rootRouteImport
'/': typeof IndexRoute
'/dashboard': typeof DashboardRoute
'/login': typeof LoginRoute
'/password': typeof PasswordRoute
'/space': typeof SpaceRoute
'/verify-email': typeof VerifyEmailRoute
}
export interface FileRouteTypes {
fileRoutesByFullPath: FileRoutesByFullPath
fullPaths: '/' | '/dashboard' | '/login' | '/space'
fullPaths:
| '/'
| '/dashboard'
| '/login'
| '/password'
| '/space'
| '/verify-email'
fileRoutesByTo: FileRoutesByTo
to: '/' | '/dashboard' | '/login' | '/space'
id: '__root__' | '/' | '/dashboard' | '/login' | '/space'
to: '/' | '/dashboard' | '/login' | '/password' | '/space' | '/verify-email'
id:
| '__root__'
| '/'
| '/dashboard'
| '/login'
| '/password'
| '/space'
| '/verify-email'
fileRoutesById: FileRoutesById
}
export interface RootRouteChildren {
IndexRoute: typeof IndexRoute
DashboardRoute: typeof DashboardRoute
LoginRoute: typeof LoginRoute
PasswordRoute: typeof PasswordRoute
SpaceRoute: typeof SpaceRoute
VerifyEmailRoute: typeof VerifyEmailRoute
}
declare module '@tanstack/react-router' {
interface FileRoutesByPath {
'/verify-email': {
id: '/verify-email'
path: '/verify-email'
fullPath: '/verify-email'
preLoaderRoute: typeof VerifyEmailRouteImport
parentRoute: typeof rootRouteImport
}
'/space': {
id: '/space'
path: '/space'
@@ -78,6 +118,13 @@ declare module '@tanstack/react-router' {
preLoaderRoute: typeof SpaceRouteImport
parentRoute: typeof rootRouteImport
}
'/password': {
id: '/password'
path: '/password'
fullPath: '/password'
preLoaderRoute: typeof PasswordRouteImport
parentRoute: typeof rootRouteImport
}
'/login': {
id: '/login'
path: '/login'
@@ -106,7 +153,9 @@ const rootRouteChildren: RootRouteChildren = {
IndexRoute: IndexRoute,
DashboardRoute: DashboardRoute,
LoginRoute: LoginRoute,
PasswordRoute: PasswordRoute,
SpaceRoute: SpaceRoute,
VerifyEmailRoute: VerifyEmailRoute,
}
export const routeTree = rootRouteImport
._addFileChildren(rootRouteChildren)