mirror of
https://github.com/domfelipe/mika-agent-assist.git
synced 2026-08-07 15:56:50 +00:00
Changes
Co-authored-by: domfelipe <53182096+domfelipe@users.noreply.github.com>
This commit is contained in:
parent
4636279a40
commit
41e1fb1c22
2 changed files with 47 additions and 7 deletions
|
|
@ -14,6 +14,7 @@ import { Route as RedefinirSenhaRouteImport } from './routes/redefinir-senha'
|
||||||
import { Route as RecuperarSenhaRouteImport } from './routes/recuperar-senha'
|
import { Route as RecuperarSenhaRouteImport } from './routes/recuperar-senha'
|
||||||
import { Route as PainelRouteImport } from './routes/painel'
|
import { Route as PainelRouteImport } from './routes/painel'
|
||||||
import { Route as LoginRouteImport } from './routes/login'
|
import { Route as LoginRouteImport } from './routes/login'
|
||||||
|
import { Route as AdminRouteImport } from './routes/admin'
|
||||||
import { Route as IndexRouteImport } from './routes/index'
|
import { Route as IndexRouteImport } from './routes/index'
|
||||||
import { Route as PainelIndexRouteImport } from './routes/painel.index'
|
import { Route as PainelIndexRouteImport } from './routes/painel.index'
|
||||||
import { Route as AdminIndexRouteImport } from './routes/admin.index'
|
import { Route as AdminIndexRouteImport } from './routes/admin.index'
|
||||||
|
|
@ -58,6 +59,11 @@ const LoginRoute = LoginRouteImport.update({
|
||||||
path: '/login',
|
path: '/login',
|
||||||
getParentRoute: () => rootRouteImport,
|
getParentRoute: () => rootRouteImport,
|
||||||
} as any)
|
} as any)
|
||||||
|
const AdminRoute = AdminRouteImport.update({
|
||||||
|
id: '/admin',
|
||||||
|
path: '/admin',
|
||||||
|
getParentRoute: () => rootRouteImport,
|
||||||
|
} as any)
|
||||||
const IndexRoute = IndexRouteImport.update({
|
const IndexRoute = IndexRouteImport.update({
|
||||||
id: '/',
|
id: '/',
|
||||||
path: '/',
|
path: '/',
|
||||||
|
|
@ -69,9 +75,9 @@ const PainelIndexRoute = PainelIndexRouteImport.update({
|
||||||
getParentRoute: () => PainelRoute,
|
getParentRoute: () => PainelRoute,
|
||||||
} as any)
|
} as any)
|
||||||
const AdminIndexRoute = AdminIndexRouteImport.update({
|
const AdminIndexRoute = AdminIndexRouteImport.update({
|
||||||
id: '/admin/',
|
id: '/',
|
||||||
path: '/admin/',
|
path: '/',
|
||||||
getParentRoute: () => rootRouteImport,
|
getParentRoute: () => AdminRoute,
|
||||||
} as any)
|
} as any)
|
||||||
const PainelSkillsRoute = PainelSkillsRouteImport.update({
|
const PainelSkillsRoute = PainelSkillsRouteImport.update({
|
||||||
id: '/skills',
|
id: '/skills',
|
||||||
|
|
@ -151,6 +157,7 @@ const AdminAgenteIdRoute = AdminAgenteIdRouteImport.update({
|
||||||
|
|
||||||
export interface FileRoutesByFullPath {
|
export interface FileRoutesByFullPath {
|
||||||
'/': typeof IndexRoute
|
'/': typeof IndexRoute
|
||||||
|
'/admin': typeof AdminRouteWithChildren
|
||||||
'/login': typeof LoginRoute
|
'/login': typeof LoginRoute
|
||||||
'/painel': typeof PainelRouteWithChildren
|
'/painel': typeof PainelRouteWithChildren
|
||||||
'/recuperar-senha': typeof RecuperarSenhaRoute
|
'/recuperar-senha': typeof RecuperarSenhaRoute
|
||||||
|
|
@ -200,6 +207,7 @@ export interface FileRoutesByTo {
|
||||||
export interface FileRoutesById {
|
export interface FileRoutesById {
|
||||||
__root__: typeof rootRouteImport
|
__root__: typeof rootRouteImport
|
||||||
'/': typeof IndexRoute
|
'/': typeof IndexRoute
|
||||||
|
'/admin': typeof AdminRouteWithChildren
|
||||||
'/login': typeof LoginRoute
|
'/login': typeof LoginRoute
|
||||||
'/painel': typeof PainelRouteWithChildren
|
'/painel': typeof PainelRouteWithChildren
|
||||||
'/recuperar-senha': typeof RecuperarSenhaRoute
|
'/recuperar-senha': typeof RecuperarSenhaRoute
|
||||||
|
|
@ -227,6 +235,7 @@ export interface FileRouteTypes {
|
||||||
fileRoutesByFullPath: FileRoutesByFullPath
|
fileRoutesByFullPath: FileRoutesByFullPath
|
||||||
fullPaths:
|
fullPaths:
|
||||||
| '/'
|
| '/'
|
||||||
|
| '/admin'
|
||||||
| '/login'
|
| '/login'
|
||||||
| '/painel'
|
| '/painel'
|
||||||
| '/recuperar-senha'
|
| '/recuperar-senha'
|
||||||
|
|
@ -275,6 +284,7 @@ export interface FileRouteTypes {
|
||||||
id:
|
id:
|
||||||
| '__root__'
|
| '__root__'
|
||||||
| '/'
|
| '/'
|
||||||
|
| '/admin'
|
||||||
| '/login'
|
| '/login'
|
||||||
| '/painel'
|
| '/painel'
|
||||||
| '/recuperar-senha'
|
| '/recuperar-senha'
|
||||||
|
|
@ -301,13 +311,13 @@ export interface FileRouteTypes {
|
||||||
}
|
}
|
||||||
export interface RootRouteChildren {
|
export interface RootRouteChildren {
|
||||||
IndexRoute: typeof IndexRoute
|
IndexRoute: typeof IndexRoute
|
||||||
|
AdminRoute: typeof AdminRouteWithChildren
|
||||||
LoginRoute: typeof LoginRoute
|
LoginRoute: typeof LoginRoute
|
||||||
PainelRoute: typeof PainelRouteWithChildren
|
PainelRoute: typeof PainelRouteWithChildren
|
||||||
RecuperarSenhaRoute: typeof RecuperarSenhaRoute
|
RecuperarSenhaRoute: typeof RecuperarSenhaRoute
|
||||||
RedefinirSenhaRoute: typeof RedefinirSenhaRoute
|
RedefinirSenhaRoute: typeof RedefinirSenhaRoute
|
||||||
SignupRoute: typeof SignupRoute
|
SignupRoute: typeof SignupRoute
|
||||||
CheckoutSucessoRoute: typeof CheckoutSucessoRoute
|
CheckoutSucessoRoute: typeof CheckoutSucessoRoute
|
||||||
AdminIndexRoute: typeof AdminIndexRoute
|
|
||||||
}
|
}
|
||||||
|
|
||||||
declare module '@tanstack/react-router' {
|
declare module '@tanstack/react-router' {
|
||||||
|
|
@ -347,6 +357,13 @@ declare module '@tanstack/react-router' {
|
||||||
preLoaderRoute: typeof LoginRouteImport
|
preLoaderRoute: typeof LoginRouteImport
|
||||||
parentRoute: typeof rootRouteImport
|
parentRoute: typeof rootRouteImport
|
||||||
}
|
}
|
||||||
|
'/admin': {
|
||||||
|
id: '/admin'
|
||||||
|
path: '/admin'
|
||||||
|
fullPath: '/admin'
|
||||||
|
preLoaderRoute: typeof AdminRouteImport
|
||||||
|
parentRoute: typeof rootRouteImport
|
||||||
|
}
|
||||||
'/': {
|
'/': {
|
||||||
id: '/'
|
id: '/'
|
||||||
path: '/'
|
path: '/'
|
||||||
|
|
@ -363,10 +380,10 @@ declare module '@tanstack/react-router' {
|
||||||
}
|
}
|
||||||
'/admin/': {
|
'/admin/': {
|
||||||
id: '/admin/'
|
id: '/admin/'
|
||||||
path: '/admin'
|
path: '/'
|
||||||
fullPath: '/admin/'
|
fullPath: '/admin/'
|
||||||
preLoaderRoute: typeof AdminIndexRouteImport
|
preLoaderRoute: typeof AdminIndexRouteImport
|
||||||
parentRoute: typeof rootRouteImport
|
parentRoute: typeof AdminRoute
|
||||||
}
|
}
|
||||||
'/painel/skills': {
|
'/painel/skills': {
|
||||||
id: '/painel/skills'
|
id: '/painel/skills'
|
||||||
|
|
@ -476,6 +493,18 @@ declare module '@tanstack/react-router' {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
interface AdminRouteChildren {
|
||||||
|
AdminIndexRoute: typeof AdminIndexRoute
|
||||||
|
AdminAgenteIdRoute: typeof AdminAgenteIdRoute
|
||||||
|
}
|
||||||
|
|
||||||
|
const AdminRouteChildren: AdminRouteChildren = {
|
||||||
|
AdminIndexRoute: AdminIndexRoute,
|
||||||
|
AdminAgenteIdRoute: AdminAgenteIdRoute,
|
||||||
|
}
|
||||||
|
|
||||||
|
const AdminRouteWithChildren = AdminRoute._addFileChildren(AdminRouteChildren)
|
||||||
|
|
||||||
interface PainelSkillsRouteChildren {
|
interface PainelSkillsRouteChildren {
|
||||||
PainelSkillsIdRoute: typeof PainelSkillsIdRoute
|
PainelSkillsIdRoute: typeof PainelSkillsIdRoute
|
||||||
PainelSkillsNovaRoute: typeof PainelSkillsNovaRoute
|
PainelSkillsNovaRoute: typeof PainelSkillsNovaRoute
|
||||||
|
|
@ -525,13 +554,13 @@ const PainelRouteWithChildren =
|
||||||
|
|
||||||
const rootRouteChildren: RootRouteChildren = {
|
const rootRouteChildren: RootRouteChildren = {
|
||||||
IndexRoute: IndexRoute,
|
IndexRoute: IndexRoute,
|
||||||
|
AdminRoute: AdminRouteWithChildren,
|
||||||
LoginRoute: LoginRoute,
|
LoginRoute: LoginRoute,
|
||||||
PainelRoute: PainelRouteWithChildren,
|
PainelRoute: PainelRouteWithChildren,
|
||||||
RecuperarSenhaRoute: RecuperarSenhaRoute,
|
RecuperarSenhaRoute: RecuperarSenhaRoute,
|
||||||
RedefinirSenhaRoute: RedefinirSenhaRoute,
|
RedefinirSenhaRoute: RedefinirSenhaRoute,
|
||||||
SignupRoute: SignupRoute,
|
SignupRoute: SignupRoute,
|
||||||
CheckoutSucessoRoute: CheckoutSucessoRoute,
|
CheckoutSucessoRoute: CheckoutSucessoRoute,
|
||||||
AdminIndexRoute: AdminIndexRoute,
|
|
||||||
}
|
}
|
||||||
export const routeTree = rootRouteImport
|
export const routeTree = rootRouteImport
|
||||||
._addFileChildren(rootRouteChildren)
|
._addFileChildren(rootRouteChildren)
|
||||||
|
|
|
||||||
11
src/routes/admin.tsx
Normal file
11
src/routes/admin.tsx
Normal file
|
|
@ -0,0 +1,11 @@
|
||||||
|
"use client";
|
||||||
|
|
||||||
|
import { Outlet, createFileRoute } from "@tanstack/react-router";
|
||||||
|
|
||||||
|
export const Route = createFileRoute("/admin")({
|
||||||
|
component: AdminLayout,
|
||||||
|
});
|
||||||
|
|
||||||
|
function AdminLayout() {
|
||||||
|
return <Outlet />;
|
||||||
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue