From acaf9f8a6b5e1d9b7187bb2f6e07f4e720b93e09 Mon Sep 17 00:00:00 2001 From: "gpt-engineer-app[bot]" <159125892+gpt-engineer-app[bot]@users.noreply.github.com> Date: Thu, 23 Apr 2026 21:56:35 +0000 Subject: [PATCH 1/3] Changes Co-authored-by: domfelipe <53182096+domfelipe@users.noreply.github.com> --- src/routes/{admin.tsx => admin.index.tsx} | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) rename src/routes/{admin.tsx => admin.index.tsx} (99%) diff --git a/src/routes/admin.tsx b/src/routes/admin.index.tsx similarity index 99% rename from src/routes/admin.tsx rename to src/routes/admin.index.tsx index 8cd957f..df9cdd1 100644 --- a/src/routes/admin.tsx +++ b/src/routes/admin.index.tsx @@ -28,7 +28,7 @@ import { TableRow, } from "@/components/ui/table"; -export const Route = createFileRoute("/admin")({ +export const Route = createFileRoute("/admin/")({ component: AdminPage, }); From 4636279a40e71b90a4c3f5dde13d13bca9fa933d Mon Sep 17 00:00:00 2001 From: "gpt-engineer-app[bot]" <159125892+gpt-engineer-app[bot]@users.noreply.github.com> Date: Thu, 23 Apr 2026 21:56:48 +0000 Subject: [PATCH 2/3] Changes Co-authored-by: domfelipe <53182096+domfelipe@users.noreply.github.com> --- src/routeTree.gen.ts | 52 ++++++++++++++++++-------------------------- 1 file changed, 21 insertions(+), 31 deletions(-) diff --git a/src/routeTree.gen.ts b/src/routeTree.gen.ts index e613a8d..0a9e7b3 100644 --- a/src/routeTree.gen.ts +++ b/src/routeTree.gen.ts @@ -14,9 +14,9 @@ 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 AdminRouteImport } from './routes/admin' import { Route as IndexRouteImport } from './routes/index' import { Route as PainelIndexRouteImport } from './routes/painel.index' +import { Route as AdminIndexRouteImport } from './routes/admin.index' import { Route as PainelSkillsRouteImport } from './routes/painel.skills' import { Route as PainelFaturamentoRouteImport } from './routes/painel.faturamento' import { Route as PainelConfiguracoesRouteImport } from './routes/painel.configuracoes' @@ -58,11 +58,6 @@ const LoginRoute = LoginRouteImport.update({ path: '/login', getParentRoute: () => rootRouteImport, } as any) -const AdminRoute = AdminRouteImport.update({ - id: '/admin', - path: '/admin', - getParentRoute: () => rootRouteImport, -} as any) const IndexRoute = IndexRouteImport.update({ id: '/', path: '/', @@ -73,6 +68,11 @@ const PainelIndexRoute = PainelIndexRouteImport.update({ path: '/', getParentRoute: () => PainelRoute, } as any) +const AdminIndexRoute = AdminIndexRouteImport.update({ + id: '/admin/', + path: '/admin/', + getParentRoute: () => rootRouteImport, +} as any) const PainelSkillsRoute = PainelSkillsRouteImport.update({ id: '/skills', path: '/skills', @@ -151,7 +151,6 @@ const AdminAgenteIdRoute = AdminAgenteIdRouteImport.update({ export interface FileRoutesByFullPath { '/': typeof IndexRoute - '/admin': typeof AdminRouteWithChildren '/login': typeof LoginRoute '/painel': typeof PainelRouteWithChildren '/recuperar-senha': typeof RecuperarSenhaRoute @@ -162,6 +161,7 @@ export interface FileRoutesByFullPath { '/painel/configuracoes': typeof PainelConfiguracoesRoute '/painel/faturamento': typeof PainelFaturamentoRoute '/painel/skills': typeof PainelSkillsRouteWithChildren + '/admin/': typeof AdminIndexRoute '/painel/': typeof PainelIndexRoute '/admin/agente/$id': typeof AdminAgenteIdRoute '/painel/cronjobs/$id': typeof PainelCronjobsIdRoute @@ -176,7 +176,6 @@ export interface FileRoutesByFullPath { } export interface FileRoutesByTo { '/': typeof IndexRoute - '/admin': typeof AdminRouteWithChildren '/login': typeof LoginRoute '/recuperar-senha': typeof RecuperarSenhaRoute '/redefinir-senha': typeof RedefinirSenhaRoute @@ -185,6 +184,7 @@ export interface FileRoutesByTo { '/painel/agente': typeof PainelAgenteRoute '/painel/configuracoes': typeof PainelConfiguracoesRoute '/painel/faturamento': typeof PainelFaturamentoRoute + '/admin': typeof AdminIndexRoute '/painel': typeof PainelIndexRoute '/admin/agente/$id': typeof AdminAgenteIdRoute '/painel/cronjobs/$id': typeof PainelCronjobsIdRoute @@ -200,7 +200,6 @@ export interface FileRoutesByTo { export interface FileRoutesById { __root__: typeof rootRouteImport '/': typeof IndexRoute - '/admin': typeof AdminRouteWithChildren '/login': typeof LoginRoute '/painel': typeof PainelRouteWithChildren '/recuperar-senha': typeof RecuperarSenhaRoute @@ -211,6 +210,7 @@ export interface FileRoutesById { '/painel/configuracoes': typeof PainelConfiguracoesRoute '/painel/faturamento': typeof PainelFaturamentoRoute '/painel/skills': typeof PainelSkillsRouteWithChildren + '/admin/': typeof AdminIndexRoute '/painel/': typeof PainelIndexRoute '/admin/agente/$id': typeof AdminAgenteIdRoute '/painel/cronjobs/$id': typeof PainelCronjobsIdRoute @@ -227,7 +227,6 @@ export interface FileRouteTypes { fileRoutesByFullPath: FileRoutesByFullPath fullPaths: | '/' - | '/admin' | '/login' | '/painel' | '/recuperar-senha' @@ -238,6 +237,7 @@ export interface FileRouteTypes { | '/painel/configuracoes' | '/painel/faturamento' | '/painel/skills' + | '/admin/' | '/painel/' | '/admin/agente/$id' | '/painel/cronjobs/$id' @@ -252,7 +252,6 @@ export interface FileRouteTypes { fileRoutesByTo: FileRoutesByTo to: | '/' - | '/admin' | '/login' | '/recuperar-senha' | '/redefinir-senha' @@ -261,6 +260,7 @@ export interface FileRouteTypes { | '/painel/agente' | '/painel/configuracoes' | '/painel/faturamento' + | '/admin' | '/painel' | '/admin/agente/$id' | '/painel/cronjobs/$id' @@ -275,7 +275,6 @@ export interface FileRouteTypes { id: | '__root__' | '/' - | '/admin' | '/login' | '/painel' | '/recuperar-senha' @@ -286,6 +285,7 @@ export interface FileRouteTypes { | '/painel/configuracoes' | '/painel/faturamento' | '/painel/skills' + | '/admin/' | '/painel/' | '/admin/agente/$id' | '/painel/cronjobs/$id' @@ -301,13 +301,13 @@ export interface FileRouteTypes { } export interface RootRouteChildren { IndexRoute: typeof IndexRoute - AdminRoute: typeof AdminRouteWithChildren LoginRoute: typeof LoginRoute PainelRoute: typeof PainelRouteWithChildren RecuperarSenhaRoute: typeof RecuperarSenhaRoute RedefinirSenhaRoute: typeof RedefinirSenhaRoute SignupRoute: typeof SignupRoute CheckoutSucessoRoute: typeof CheckoutSucessoRoute + AdminIndexRoute: typeof AdminIndexRoute } declare module '@tanstack/react-router' { @@ -347,13 +347,6 @@ declare module '@tanstack/react-router' { preLoaderRoute: typeof LoginRouteImport parentRoute: typeof rootRouteImport } - '/admin': { - id: '/admin' - path: '/admin' - fullPath: '/admin' - preLoaderRoute: typeof AdminRouteImport - parentRoute: typeof rootRouteImport - } '/': { id: '/' path: '/' @@ -368,6 +361,13 @@ declare module '@tanstack/react-router' { preLoaderRoute: typeof PainelIndexRouteImport parentRoute: typeof PainelRoute } + '/admin/': { + id: '/admin/' + path: '/admin' + fullPath: '/admin/' + preLoaderRoute: typeof AdminIndexRouteImport + parentRoute: typeof rootRouteImport + } '/painel/skills': { id: '/painel/skills' path: '/skills' @@ -476,16 +476,6 @@ declare module '@tanstack/react-router' { } } -interface AdminRouteChildren { - AdminAgenteIdRoute: typeof AdminAgenteIdRoute -} - -const AdminRouteChildren: AdminRouteChildren = { - AdminAgenteIdRoute: AdminAgenteIdRoute, -} - -const AdminRouteWithChildren = AdminRoute._addFileChildren(AdminRouteChildren) - interface PainelSkillsRouteChildren { PainelSkillsIdRoute: typeof PainelSkillsIdRoute PainelSkillsNovaRoute: typeof PainelSkillsNovaRoute @@ -535,13 +525,13 @@ const PainelRouteWithChildren = const rootRouteChildren: RootRouteChildren = { IndexRoute: IndexRoute, - AdminRoute: AdminRouteWithChildren, LoginRoute: LoginRoute, PainelRoute: PainelRouteWithChildren, RecuperarSenhaRoute: RecuperarSenhaRoute, RedefinirSenhaRoute: RedefinirSenhaRoute, SignupRoute: SignupRoute, CheckoutSucessoRoute: CheckoutSucessoRoute, + AdminIndexRoute: AdminIndexRoute, } export const routeTree = rootRouteImport ._addFileChildren(rootRouteChildren) From 41e1fb1c22c78b59285e992be5de5c8d67288076 Mon Sep 17 00:00:00 2001 From: "gpt-engineer-app[bot]" <159125892+gpt-engineer-app[bot]@users.noreply.github.com> Date: Thu, 23 Apr 2026 21:56:56 +0000 Subject: [PATCH 3/3] Changes Co-authored-by: domfelipe <53182096+domfelipe@users.noreply.github.com> --- src/routeTree.gen.ts | 43 ++++++++++++++++++++++++++++++++++++------- src/routes/admin.tsx | 11 +++++++++++ 2 files changed, 47 insertions(+), 7 deletions(-) create mode 100644 src/routes/admin.tsx diff --git a/src/routeTree.gen.ts b/src/routeTree.gen.ts index 0a9e7b3..dd06ff5 100644 --- a/src/routeTree.gen.ts +++ b/src/routeTree.gen.ts @@ -14,6 +14,7 @@ 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 AdminRouteImport } from './routes/admin' import { Route as IndexRouteImport } from './routes/index' import { Route as PainelIndexRouteImport } from './routes/painel.index' import { Route as AdminIndexRouteImport } from './routes/admin.index' @@ -58,6 +59,11 @@ const LoginRoute = LoginRouteImport.update({ path: '/login', getParentRoute: () => rootRouteImport, } as any) +const AdminRoute = AdminRouteImport.update({ + id: '/admin', + path: '/admin', + getParentRoute: () => rootRouteImport, +} as any) const IndexRoute = IndexRouteImport.update({ id: '/', path: '/', @@ -69,9 +75,9 @@ const PainelIndexRoute = PainelIndexRouteImport.update({ getParentRoute: () => PainelRoute, } as any) const AdminIndexRoute = AdminIndexRouteImport.update({ - id: '/admin/', - path: '/admin/', - getParentRoute: () => rootRouteImport, + id: '/', + path: '/', + getParentRoute: () => AdminRoute, } as any) const PainelSkillsRoute = PainelSkillsRouteImport.update({ id: '/skills', @@ -151,6 +157,7 @@ const AdminAgenteIdRoute = AdminAgenteIdRouteImport.update({ export interface FileRoutesByFullPath { '/': typeof IndexRoute + '/admin': typeof AdminRouteWithChildren '/login': typeof LoginRoute '/painel': typeof PainelRouteWithChildren '/recuperar-senha': typeof RecuperarSenhaRoute @@ -200,6 +207,7 @@ export interface FileRoutesByTo { export interface FileRoutesById { __root__: typeof rootRouteImport '/': typeof IndexRoute + '/admin': typeof AdminRouteWithChildren '/login': typeof LoginRoute '/painel': typeof PainelRouteWithChildren '/recuperar-senha': typeof RecuperarSenhaRoute @@ -227,6 +235,7 @@ export interface FileRouteTypes { fileRoutesByFullPath: FileRoutesByFullPath fullPaths: | '/' + | '/admin' | '/login' | '/painel' | '/recuperar-senha' @@ -275,6 +284,7 @@ export interface FileRouteTypes { id: | '__root__' | '/' + | '/admin' | '/login' | '/painel' | '/recuperar-senha' @@ -301,13 +311,13 @@ export interface FileRouteTypes { } export interface RootRouteChildren { IndexRoute: typeof IndexRoute + AdminRoute: typeof AdminRouteWithChildren LoginRoute: typeof LoginRoute PainelRoute: typeof PainelRouteWithChildren RecuperarSenhaRoute: typeof RecuperarSenhaRoute RedefinirSenhaRoute: typeof RedefinirSenhaRoute SignupRoute: typeof SignupRoute CheckoutSucessoRoute: typeof CheckoutSucessoRoute - AdminIndexRoute: typeof AdminIndexRoute } declare module '@tanstack/react-router' { @@ -347,6 +357,13 @@ declare module '@tanstack/react-router' { preLoaderRoute: typeof LoginRouteImport parentRoute: typeof rootRouteImport } + '/admin': { + id: '/admin' + path: '/admin' + fullPath: '/admin' + preLoaderRoute: typeof AdminRouteImport + parentRoute: typeof rootRouteImport + } '/': { id: '/' path: '/' @@ -363,10 +380,10 @@ declare module '@tanstack/react-router' { } '/admin/': { id: '/admin/' - path: '/admin' + path: '/' fullPath: '/admin/' preLoaderRoute: typeof AdminIndexRouteImport - parentRoute: typeof rootRouteImport + parentRoute: typeof AdminRoute } '/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 { PainelSkillsIdRoute: typeof PainelSkillsIdRoute PainelSkillsNovaRoute: typeof PainelSkillsNovaRoute @@ -525,13 +554,13 @@ const PainelRouteWithChildren = const rootRouteChildren: RootRouteChildren = { IndexRoute: IndexRoute, + AdminRoute: AdminRouteWithChildren, LoginRoute: LoginRoute, PainelRoute: PainelRouteWithChildren, RecuperarSenhaRoute: RecuperarSenhaRoute, RedefinirSenhaRoute: RedefinirSenhaRoute, SignupRoute: SignupRoute, CheckoutSucessoRoute: CheckoutSucessoRoute, - AdminIndexRoute: AdminIndexRoute, } export const routeTree = rootRouteImport ._addFileChildren(rootRouteChildren) diff --git a/src/routes/admin.tsx b/src/routes/admin.tsx new file mode 100644 index 0000000..d816c36 --- /dev/null +++ b/src/routes/admin.tsx @@ -0,0 +1,11 @@ +"use client"; + +import { Outlet, createFileRoute } from "@tanstack/react-router"; + +export const Route = createFileRoute("/admin")({ + component: AdminLayout, +}); + +function AdminLayout() { + return ; +} \ No newline at end of file