mirror of
https://github.com/domfelipe/mika-agent-assist.git
synced 2026-08-07 13:16:51 +00:00
Changes
Co-authored-by: domfelipe <53182096+domfelipe@users.noreply.github.com>
This commit is contained in:
parent
fa8bee0e36
commit
104dd8af7e
12 changed files with 1428 additions and 50 deletions
|
|
@ -10,14 +10,35 @@
|
|||
|
||||
import { Route as rootRouteImport } from './routes/__root'
|
||||
import { Route as SignupRouteImport } from './routes/signup'
|
||||
import { Route as RedefinirSenhaRouteImport } from './routes/redefinir-senha'
|
||||
import { Route as RecuperarSenhaRouteImport } from './routes/recuperar-senha'
|
||||
import { Route as PainelRouteImport } from './routes/painel'
|
||||
import { Route as LoginRouteImport } from './routes/login'
|
||||
import { Route as IndexRouteImport } from './routes/index'
|
||||
import { Route as PainelIndexRouteImport } from './routes/painel.index'
|
||||
import { Route as PainelFaturamentoRouteImport } from './routes/painel.faturamento'
|
||||
import { Route as PainelConfiguracoesRouteImport } from './routes/painel.configuracoes'
|
||||
|
||||
const SignupRoute = SignupRouteImport.update({
|
||||
id: '/signup',
|
||||
path: '/signup',
|
||||
getParentRoute: () => rootRouteImport,
|
||||
} as any)
|
||||
const RedefinirSenhaRoute = RedefinirSenhaRouteImport.update({
|
||||
id: '/redefinir-senha',
|
||||
path: '/redefinir-senha',
|
||||
getParentRoute: () => rootRouteImport,
|
||||
} as any)
|
||||
const RecuperarSenhaRoute = RecuperarSenhaRouteImport.update({
|
||||
id: '/recuperar-senha',
|
||||
path: '/recuperar-senha',
|
||||
getParentRoute: () => rootRouteImport,
|
||||
} as any)
|
||||
const PainelRoute = PainelRouteImport.update({
|
||||
id: '/painel',
|
||||
path: '/painel',
|
||||
getParentRoute: () => rootRouteImport,
|
||||
} as any)
|
||||
const LoginRoute = LoginRouteImport.update({
|
||||
id: '/login',
|
||||
path: '/login',
|
||||
|
|
@ -28,34 +49,96 @@ const IndexRoute = IndexRouteImport.update({
|
|||
path: '/',
|
||||
getParentRoute: () => rootRouteImport,
|
||||
} as any)
|
||||
const PainelIndexRoute = PainelIndexRouteImport.update({
|
||||
id: '/',
|
||||
path: '/',
|
||||
getParentRoute: () => PainelRoute,
|
||||
} as any)
|
||||
const PainelFaturamentoRoute = PainelFaturamentoRouteImport.update({
|
||||
id: '/faturamento',
|
||||
path: '/faturamento',
|
||||
getParentRoute: () => PainelRoute,
|
||||
} as any)
|
||||
const PainelConfiguracoesRoute = PainelConfiguracoesRouteImport.update({
|
||||
id: '/configuracoes',
|
||||
path: '/configuracoes',
|
||||
getParentRoute: () => PainelRoute,
|
||||
} as any)
|
||||
|
||||
export interface FileRoutesByFullPath {
|
||||
'/': typeof IndexRoute
|
||||
'/login': typeof LoginRoute
|
||||
'/painel': typeof PainelRouteWithChildren
|
||||
'/recuperar-senha': typeof RecuperarSenhaRoute
|
||||
'/redefinir-senha': typeof RedefinirSenhaRoute
|
||||
'/signup': typeof SignupRoute
|
||||
'/painel/configuracoes': typeof PainelConfiguracoesRoute
|
||||
'/painel/faturamento': typeof PainelFaturamentoRoute
|
||||
'/painel/': typeof PainelIndexRoute
|
||||
}
|
||||
export interface FileRoutesByTo {
|
||||
'/': typeof IndexRoute
|
||||
'/login': typeof LoginRoute
|
||||
'/recuperar-senha': typeof RecuperarSenhaRoute
|
||||
'/redefinir-senha': typeof RedefinirSenhaRoute
|
||||
'/signup': typeof SignupRoute
|
||||
'/painel/configuracoes': typeof PainelConfiguracoesRoute
|
||||
'/painel/faturamento': typeof PainelFaturamentoRoute
|
||||
'/painel': typeof PainelIndexRoute
|
||||
}
|
||||
export interface FileRoutesById {
|
||||
__root__: typeof rootRouteImport
|
||||
'/': typeof IndexRoute
|
||||
'/login': typeof LoginRoute
|
||||
'/painel': typeof PainelRouteWithChildren
|
||||
'/recuperar-senha': typeof RecuperarSenhaRoute
|
||||
'/redefinir-senha': typeof RedefinirSenhaRoute
|
||||
'/signup': typeof SignupRoute
|
||||
'/painel/configuracoes': typeof PainelConfiguracoesRoute
|
||||
'/painel/faturamento': typeof PainelFaturamentoRoute
|
||||
'/painel/': typeof PainelIndexRoute
|
||||
}
|
||||
export interface FileRouteTypes {
|
||||
fileRoutesByFullPath: FileRoutesByFullPath
|
||||
fullPaths: '/' | '/login' | '/signup'
|
||||
fullPaths:
|
||||
| '/'
|
||||
| '/login'
|
||||
| '/painel'
|
||||
| '/recuperar-senha'
|
||||
| '/redefinir-senha'
|
||||
| '/signup'
|
||||
| '/painel/configuracoes'
|
||||
| '/painel/faturamento'
|
||||
| '/painel/'
|
||||
fileRoutesByTo: FileRoutesByTo
|
||||
to: '/' | '/login' | '/signup'
|
||||
id: '__root__' | '/' | '/login' | '/signup'
|
||||
to:
|
||||
| '/'
|
||||
| '/login'
|
||||
| '/recuperar-senha'
|
||||
| '/redefinir-senha'
|
||||
| '/signup'
|
||||
| '/painel/configuracoes'
|
||||
| '/painel/faturamento'
|
||||
| '/painel'
|
||||
id:
|
||||
| '__root__'
|
||||
| '/'
|
||||
| '/login'
|
||||
| '/painel'
|
||||
| '/recuperar-senha'
|
||||
| '/redefinir-senha'
|
||||
| '/signup'
|
||||
| '/painel/configuracoes'
|
||||
| '/painel/faturamento'
|
||||
| '/painel/'
|
||||
fileRoutesById: FileRoutesById
|
||||
}
|
||||
export interface RootRouteChildren {
|
||||
IndexRoute: typeof IndexRoute
|
||||
LoginRoute: typeof LoginRoute
|
||||
PainelRoute: typeof PainelRouteWithChildren
|
||||
RecuperarSenhaRoute: typeof RecuperarSenhaRoute
|
||||
RedefinirSenhaRoute: typeof RedefinirSenhaRoute
|
||||
SignupRoute: typeof SignupRoute
|
||||
}
|
||||
|
||||
|
|
@ -68,6 +151,27 @@ declare module '@tanstack/react-router' {
|
|||
preLoaderRoute: typeof SignupRouteImport
|
||||
parentRoute: typeof rootRouteImport
|
||||
}
|
||||
'/redefinir-senha': {
|
||||
id: '/redefinir-senha'
|
||||
path: '/redefinir-senha'
|
||||
fullPath: '/redefinir-senha'
|
||||
preLoaderRoute: typeof RedefinirSenhaRouteImport
|
||||
parentRoute: typeof rootRouteImport
|
||||
}
|
||||
'/recuperar-senha': {
|
||||
id: '/recuperar-senha'
|
||||
path: '/recuperar-senha'
|
||||
fullPath: '/recuperar-senha'
|
||||
preLoaderRoute: typeof RecuperarSenhaRouteImport
|
||||
parentRoute: typeof rootRouteImport
|
||||
}
|
||||
'/painel': {
|
||||
id: '/painel'
|
||||
path: '/painel'
|
||||
fullPath: '/painel'
|
||||
preLoaderRoute: typeof PainelRouteImport
|
||||
parentRoute: typeof rootRouteImport
|
||||
}
|
||||
'/login': {
|
||||
id: '/login'
|
||||
path: '/login'
|
||||
|
|
@ -82,14 +186,62 @@ declare module '@tanstack/react-router' {
|
|||
preLoaderRoute: typeof IndexRouteImport
|
||||
parentRoute: typeof rootRouteImport
|
||||
}
|
||||
'/painel/': {
|
||||
id: '/painel/'
|
||||
path: '/'
|
||||
fullPath: '/painel/'
|
||||
preLoaderRoute: typeof PainelIndexRouteImport
|
||||
parentRoute: typeof PainelRoute
|
||||
}
|
||||
'/painel/faturamento': {
|
||||
id: '/painel/faturamento'
|
||||
path: '/faturamento'
|
||||
fullPath: '/painel/faturamento'
|
||||
preLoaderRoute: typeof PainelFaturamentoRouteImport
|
||||
parentRoute: typeof PainelRoute
|
||||
}
|
||||
'/painel/configuracoes': {
|
||||
id: '/painel/configuracoes'
|
||||
path: '/configuracoes'
|
||||
fullPath: '/painel/configuracoes'
|
||||
preLoaderRoute: typeof PainelConfiguracoesRouteImport
|
||||
parentRoute: typeof PainelRoute
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
interface PainelRouteChildren {
|
||||
PainelConfiguracoesRoute: typeof PainelConfiguracoesRoute
|
||||
PainelFaturamentoRoute: typeof PainelFaturamentoRoute
|
||||
PainelIndexRoute: typeof PainelIndexRoute
|
||||
}
|
||||
|
||||
const PainelRouteChildren: PainelRouteChildren = {
|
||||
PainelConfiguracoesRoute: PainelConfiguracoesRoute,
|
||||
PainelFaturamentoRoute: PainelFaturamentoRoute,
|
||||
PainelIndexRoute: PainelIndexRoute,
|
||||
}
|
||||
|
||||
const PainelRouteWithChildren =
|
||||
PainelRoute._addFileChildren(PainelRouteChildren)
|
||||
|
||||
const rootRouteChildren: RootRouteChildren = {
|
||||
IndexRoute: IndexRoute,
|
||||
LoginRoute: LoginRoute,
|
||||
PainelRoute: PainelRouteWithChildren,
|
||||
RecuperarSenhaRoute: RecuperarSenhaRoute,
|
||||
RedefinirSenhaRoute: RedefinirSenhaRoute,
|
||||
SignupRoute: SignupRoute,
|
||||
}
|
||||
export const routeTree = rootRouteImport
|
||||
._addFileChildren(rootRouteChildren)
|
||||
._addFileTypes<FileRouteTypes>()
|
||||
|
||||
import type { getRouter } from './router.tsx'
|
||||
import type { createStart } from '@tanstack/react-start'
|
||||
declare module '@tanstack/react-start' {
|
||||
interface Register {
|
||||
ssr: true
|
||||
router: Awaited<ReturnType<typeof getRouter>>
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue