[MVPTN-99] refactor(Estrutura): Refatoração de estrutura do projeto, adicionado favicon
This commit is contained in:
parent
3aa4c73453
commit
7f9b7944db
34 changed files with 97 additions and 76 deletions
BIN
public/images/favicon.ico
Normal file
BIN
public/images/favicon.ico
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 41 KiB |
BIN
public/images/logo-abb.png
Normal file
BIN
public/images/logo-abb.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 2.8 KiB |
|
|
@ -3,17 +3,17 @@
|
||||||
import React, { useEffect, useState, useCallback } from 'react';
|
import React, { useEffect, useState, useCallback } from 'react';
|
||||||
|
|
||||||
import Loading from '@/app/_components/loading/loading';
|
import Loading from '@/app/_components/loading/loading';
|
||||||
import TPessoaTable from '../../../_components/t_pessoa/TPessoaTable';
|
import TPessoaTable from '@/packages/administrativo/components/t_pessoa/fisica/TPessoaFisicaTable';
|
||||||
import TPessoaForm from '../../../_components/t_pessoa/TPessoaForm';
|
import TPessoaForm from '@/packages/administrativo/components/t_pessoa/fisica/TPessoaFisicaForm';
|
||||||
|
|
||||||
import { useTPessoaIndexHook } from '../../../_hooks/t_pessoa/useTPessoaIndexHook';
|
import { useTPessoaIndexHook } from '@/packages/administrativo/hooks/t_pessoa/useTPessoaIndexHook';
|
||||||
import { useTPessoaSaveHook } from '../../../_hooks/t_pessoa/useTPessoaSaveHook';
|
import { useTPessoaSaveHook } from '@/packages/administrativo/hooks/t_pessoa/useTPessoaSaveHook';
|
||||||
import { useTPessoaDeleteHook } from '../../../_hooks/t_pessoa/useTPessoaDeleteHook';
|
import { useTPessoaDeleteHook } from '@/packages/administrativo/hooks/t_pessoa/useTPessoaDeleteHook';
|
||||||
|
|
||||||
import ConfirmDialog from '@/app/_components/confirm_dialog/ConfirmDialog';
|
import ConfirmDialog from '@/app/_components/confirm_dialog/ConfirmDialog';
|
||||||
import { useConfirmDialog } from '@/app/_components/confirm_dialog/useConfirmDialog';
|
import { useConfirmDialog } from '@/app/_components/confirm_dialog/useConfirmDialog';
|
||||||
|
|
||||||
import TPessoaInterface from '../../../_interfaces/TPessoaInterface';
|
import TPessoaInterface from '@/packages/administrativo/interfaces/TPessoaInterface';
|
||||||
import Header from '@/app/_components/structure/Header';
|
import Header from '@/app/_components/structure/Header';
|
||||||
|
|
||||||
export default function TPessoaFisica() {
|
export default function TPessoaFisica() {
|
||||||
|
|
@ -4,17 +4,17 @@ import React, { useEffect, useState, useCallback } from 'react';
|
||||||
|
|
||||||
import Loading from '@/app/_components/loading/loading';
|
import Loading from '@/app/_components/loading/loading';
|
||||||
|
|
||||||
import { useTPessoaSaveHook } from '../../../_hooks/t_pessoa/useTPessoaSaveHook';
|
import { useTPessoaSaveHook } from '@/packages/administrativo/hooks/t_pessoa/useTPessoaSaveHook';
|
||||||
import { useTPessoaDeleteHook } from '../../../_hooks/t_pessoa/useTPessoaDeleteHook';
|
import { useTPessoaDeleteHook } from '@/packages/administrativo/hooks/t_pessoa/useTPessoaDeleteHook';
|
||||||
|
|
||||||
import ConfirmDialog from '@/app/_components/confirm_dialog/ConfirmDialog';
|
import ConfirmDialog from '@/app/_components/confirm_dialog/ConfirmDialog';
|
||||||
import { useConfirmDialog } from '@/app/_components/confirm_dialog/useConfirmDialog';
|
import { useConfirmDialog } from '@/app/_components/confirm_dialog/useConfirmDialog';
|
||||||
|
|
||||||
import TPessoaInterface from '../../../_interfaces/TPessoaInterface';
|
import TPessoaInterface from '@/packages/administrativo/interfaces/TPessoaInterface';
|
||||||
import Header from '@/app/_components/structure/Header';
|
import Header from '@/app/_components/structure/Header';
|
||||||
import TPessoaJuridicaTable from '../../../_components/t_pessoa/juridica/TPessoaJuridicaTable';
|
import TPessoaJuridicaTable from '@/packages/administrativo/components/t_pessoa/juridica/TPessoaJuridicaTable';
|
||||||
import { useTPessoaJuridicaIndexHook } from '../../../_hooks/t_pessoa/juridica/useTPessoaJuridicaIndexHook';
|
import { useTPessoaJuridicaIndexHook } from '@/packages/administrativo/hooks/t_pessoa/juridica/useTPessoaJuridicaIndexHook';
|
||||||
import TPessoaJuridicaForm from '../../../_components/t_pessoa/juridica/TPessoaJuridicaForm';
|
import TPessoaJuridicaForm from '@/packages/administrativo/components/t_pessoa/juridica/TPessoaJuridicaForm';
|
||||||
|
|
||||||
export default function TPessoaFisica() {
|
export default function TPessoaFisica() {
|
||||||
// Controle de estado do botão
|
// Controle de estado do botão
|
||||||
|
|
@ -28,8 +28,11 @@ const geistMono = Geist_Mono({
|
||||||
});
|
});
|
||||||
|
|
||||||
export const metadata: Metadata = {
|
export const metadata: Metadata = {
|
||||||
title: 'Create Next App',
|
title: 'SAAS - Orius Tecnologia',
|
||||||
description: 'Generated by create next app',
|
description: 'Evolução tecnológica com toque humano',
|
||||||
|
icons: {
|
||||||
|
icon: '/images/favicon.ico',
|
||||||
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
export default function RootLayout({
|
export default function RootLayout({
|
||||||
|
|
@ -53,11 +56,15 @@ export default function RootLayout({
|
||||||
<Breadcrumb>
|
<Breadcrumb>
|
||||||
<BreadcrumbList>
|
<BreadcrumbList>
|
||||||
<BreadcrumbItem className="hidden md:block">
|
<BreadcrumbItem className="hidden md:block">
|
||||||
<BreadcrumbLink href="#">Building Your Application</BreadcrumbLink>
|
<BreadcrumbLink href="#">
|
||||||
|
Building Your Application
|
||||||
|
</BreadcrumbLink>
|
||||||
</BreadcrumbItem>
|
</BreadcrumbItem>
|
||||||
<BreadcrumbSeparator className="hidden md:block" />
|
<BreadcrumbSeparator className="hidden md:block" />
|
||||||
<BreadcrumbItem>
|
<BreadcrumbItem>
|
||||||
<BreadcrumbPage>Data Fetching</BreadcrumbPage>
|
<BreadcrumbPage>
|
||||||
|
Data Fetching
|
||||||
|
</BreadcrumbPage>
|
||||||
</BreadcrumbItem>
|
</BreadcrumbItem>
|
||||||
</BreadcrumbList>
|
</BreadcrumbList>
|
||||||
</Breadcrumb>
|
</Breadcrumb>
|
||||||
|
|
|
||||||
|
|
@ -30,6 +30,7 @@ import {
|
||||||
} from '@/components/ui/sidebar';
|
} from '@/components/ui/sidebar';
|
||||||
|
|
||||||
import useGUsuarioGetJWTHook from '@/hooks/auth/useGUsuarioGetJWTHook';
|
import useGUsuarioGetJWTHook from '@/hooks/auth/useGUsuarioGetJWTHook';
|
||||||
|
import Image from 'next/image';
|
||||||
|
|
||||||
// This is sample data.
|
// This is sample data.
|
||||||
const data = {
|
const data = {
|
||||||
|
|
@ -75,6 +76,22 @@ const data = {
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
title: 'Pessoas',
|
||||||
|
url: '#',
|
||||||
|
icon: SquareTerminal,
|
||||||
|
isActive: false,
|
||||||
|
items: [
|
||||||
|
{
|
||||||
|
title: 'Físicas',
|
||||||
|
url: '/administrativo/pessoas/fisicas',
|
||||||
|
},
|
||||||
|
{
|
||||||
|
title: 'Jurídicas',
|
||||||
|
url: '/administrativo/pessoas/fisicas',
|
||||||
|
},
|
||||||
|
],
|
||||||
|
},
|
||||||
{
|
{
|
||||||
title: 'Cadastros',
|
title: 'Cadastros',
|
||||||
url: '#',
|
url: '#',
|
||||||
|
|
@ -144,14 +161,6 @@ const data = {
|
||||||
title: 'Censec/Centrais',
|
title: 'Censec/Centrais',
|
||||||
url: '/cadastros/censec/',
|
url: '/cadastros/censec/',
|
||||||
},
|
},
|
||||||
{
|
|
||||||
title: 'Pessoas/Físicas',
|
|
||||||
url: '/cadastros/pessoa/fisica',
|
|
||||||
},
|
|
||||||
{
|
|
||||||
title: 'Pessoas/Jurídica',
|
|
||||||
url: '/cadastros/pessoa/juridica',
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
title: 'Imovel/Urbano',
|
title: 'Imovel/Urbano',
|
||||||
url: '/cadastros/imoveis/urbanos',
|
url: '/cadastros/imoveis/urbanos',
|
||||||
|
|
@ -226,7 +235,6 @@ const data = {
|
||||||
|
|
||||||
export function AppSidebar({ ...props }: React.ComponentProps<typeof Sidebar>) {
|
export function AppSidebar({ ...props }: React.ComponentProps<typeof Sidebar>) {
|
||||||
const { userAuthenticated } = useGUsuarioGetJWTHook();
|
const { userAuthenticated } = useGUsuarioGetJWTHook();
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<Sidebar collapsible="icon" {...props}>
|
<Sidebar collapsible="icon" {...props}>
|
||||||
<SidebarHeader>
|
<SidebarHeader>
|
||||||
|
|
@ -236,28 +244,34 @@ export function AppSidebar({ ...props }: React.ComponentProps<typeof Sidebar>) {
|
||||||
<a href="#">
|
<a href="#">
|
||||||
<div className="bg-sidebar-primary text-sidebar-primary-foreground flex aspect-square size-8 items-center justify-center rounded-lg">
|
<div className="bg-sidebar-primary text-sidebar-primary-foreground flex aspect-square size-8 items-center justify-center rounded-lg">
|
||||||
<GalleryVerticalEnd className="size-4" />
|
<GalleryVerticalEnd className="size-4" />
|
||||||
|
<Image
|
||||||
|
src="/images/logo-abb.png"
|
||||||
|
alt="Logo do site"
|
||||||
|
width={100}
|
||||||
|
height={100}
|
||||||
|
className='rounded-lg'
|
||||||
|
/>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div className="flex flex-col gap-0.5 leading-none">
|
<div className="flex flex-col gap-0.5 leading-none">
|
||||||
<span className="font-semibold">Orius Tecnologia</span>
|
<span className="font-semibold">
|
||||||
|
Orius Tecnologia
|
||||||
<span className="">25.9.1</span>
|
</span>
|
||||||
|
<span className="">
|
||||||
|
25.9.1
|
||||||
|
</span>
|
||||||
</div>
|
</div>
|
||||||
</a>
|
</a>
|
||||||
</SidebarMenuButton>
|
</SidebarMenuButton>
|
||||||
</SidebarMenuItem>
|
</SidebarMenuItem>
|
||||||
</SidebarMenu>
|
</SidebarMenu>
|
||||||
</SidebarHeader>
|
</SidebarHeader>
|
||||||
|
|
||||||
<SidebarContent>
|
<SidebarContent>
|
||||||
<NavMain items={data.navMain} />
|
<NavMain items={data.navMain} />
|
||||||
<NavProjects projects={data.projects} />
|
<NavProjects projects={data.projects} />
|
||||||
</SidebarContent>
|
</SidebarContent>
|
||||||
|
|
||||||
<SidebarFooter>
|
<SidebarFooter>
|
||||||
{userAuthenticated?.data ? <NavUser user={userAuthenticated.data} /> : 'Carregando...'}
|
{userAuthenticated?.data ? <NavUser user={userAuthenticated.data} /> : 'Carregando...'}
|
||||||
</SidebarFooter>
|
</SidebarFooter>
|
||||||
|
|
||||||
<SidebarRail />
|
<SidebarRail />
|
||||||
</Sidebar>
|
</Sidebar>
|
||||||
);
|
);
|
||||||
|
|
|
||||||
|
|
@ -25,7 +25,7 @@ import {
|
||||||
} from '@/components/ui/form';
|
} from '@/components/ui/form';
|
||||||
import { Input } from '@/components/ui/input';
|
import { Input } from '@/components/ui/input';
|
||||||
|
|
||||||
import { TPessoaSchema } from '../../_schemas/TPessoaSchema';
|
import { TPessoaSchema } from '../../../schemas/TPessoaFisicaSchema';
|
||||||
import LoadingButton from '@/app/_components/loadingButton/LoadingButton';
|
import LoadingButton from '@/app/_components/loadingButton/LoadingButton';
|
||||||
import { Tabs, TabsContent, TabsList, TabsTrigger } from '@/components/ui/tabs';
|
import { Tabs, TabsContent, TabsList, TabsTrigger } from '@/components/ui/tabs';
|
||||||
import {
|
import {
|
||||||
|
|
@ -37,10 +37,10 @@ import {
|
||||||
} from '@/components/ui/select';
|
} from '@/components/ui/select';
|
||||||
import { CheckIcon, ChevronsUpDownIcon, HouseIcon, IdCardIcon, UserIcon } from 'lucide-react';
|
import { CheckIcon, ChevronsUpDownIcon, HouseIcon, IdCardIcon, UserIcon } from 'lucide-react';
|
||||||
import { Sexo } from '@/enums/SexoEnum';
|
import { Sexo } from '@/enums/SexoEnum';
|
||||||
import { useGTBEstadoCivilReadHook } from '../../_hooks/g_tb_estadocivil/useGTBEstadoCivilReadHook';
|
import { useGTBEstadoCivilReadHook } from '../../../../../app/(protected)/(cadastros)/cadastros/_hooks/g_tb_estadocivil/useGTBEstadoCivilReadHook';
|
||||||
import GetCapitalize from '@/actions/text/GetCapitalize';
|
import GetCapitalize from '@/actions/text/GetCapitalize';
|
||||||
import { useGTBRegimeComunhaoReadHook } from '../../_hooks/g_tb_regimecomunhao/useGTBRegimeComunhaoReadHook';
|
import { useGTBRegimeComunhaoReadHook } from '../../../../../app/(protected)/(cadastros)/cadastros/_hooks/g_tb_regimecomunhao/useGTBRegimeComunhaoReadHook';
|
||||||
import { useGTBProfissaoReadHook } from '../../_hooks/g_tb_profissao/useGTBProfissaoReadHook';
|
import { useGTBProfissaoReadHook } from '../../../../../app/(protected)/(cadastros)/cadastros/_hooks/g_tb_profissao/useGTBProfissaoReadHook';
|
||||||
import { Popover, PopoverContent, PopoverTrigger } from '@/components/ui/popover';
|
import { Popover, PopoverContent, PopoverTrigger } from '@/components/ui/popover';
|
||||||
import {
|
import {
|
||||||
Command,
|
Command,
|
||||||
|
|
@ -16,7 +16,7 @@ import { ColumnDef } from '@tanstack/react-table';
|
||||||
import GetNameInitials from '@/actions/text/GetNameInitials';
|
import GetNameInitials from '@/actions/text/GetNameInitials';
|
||||||
import { DataTable } from '@/app/_components/dataTable/DataTable';
|
import { DataTable } from '@/app/_components/dataTable/DataTable';
|
||||||
|
|
||||||
import TPessoaInterface from '../../_interfaces/TPessoaInterface';
|
import TPessoaInterface from '../../../interfaces/TPessoaInterface';
|
||||||
import { FormatCPF } from '@/actions/CPF/FormatCPF';
|
import { FormatCPF } from '@/actions/CPF/FormatCPF';
|
||||||
import { FormatPhone } from '@/actions/phone/FormatPhone';
|
import { FormatPhone } from '@/actions/phone/FormatPhone';
|
||||||
import { FormatDateTime } from '@/actions/dateTime/FormatDateTime';
|
import { FormatDateTime } from '@/actions/dateTime/FormatDateTime';
|
||||||
|
|
@ -25,12 +25,12 @@ import {
|
||||||
} from '@/components/ui/form';
|
} from '@/components/ui/form';
|
||||||
import { Input } from '@/components/ui/input';
|
import { Input } from '@/components/ui/input';
|
||||||
|
|
||||||
import { TPessoaSchema } from '../../../_schemas/TPessoaSchema';
|
import { TPessoaSchema } from '../../../schemas/TPessoaFisicaSchema';
|
||||||
import LoadingButton from '@/app/_components/loadingButton/LoadingButton';
|
import LoadingButton from '@/app/_components/loadingButton/LoadingButton';
|
||||||
import { Tabs, TabsContent, TabsList, TabsTrigger } from '@/components/ui/tabs';
|
import { Tabs, TabsContent, TabsList, TabsTrigger } from '@/components/ui/tabs';
|
||||||
import { HouseIcon, IdCardIcon, UserIcon } from 'lucide-react';
|
import { HouseIcon, IdCardIcon, UserIcon } from 'lucide-react';
|
||||||
import { Textarea } from '@/components/ui/textarea';
|
import { Textarea } from '@/components/ui/textarea';
|
||||||
import { useTPessoaRepresentanteIndexHook } from '../../../_hooks/t_pessoa_representante/useTPessoaRepresentanteIndexHook';
|
import { useTPessoaRepresentanteIndexHook } from '../../../hooks/t_pessoa_representante/useTPessoaRepresentanteIndexHook';
|
||||||
import TPessoaRepresentantePage from '../../t_pessoa_representante/TPessoaRepresentantePage';
|
import TPessoaRepresentantePage from '../../t_pessoa_representante/TPessoaRepresentantePage';
|
||||||
|
|
||||||
type FormValues = z.infer<typeof TPessoaSchema>;
|
type FormValues = z.infer<typeof TPessoaSchema>;
|
||||||
|
|
@ -16,7 +16,7 @@ import { ColumnDef } from '@tanstack/react-table';
|
||||||
import GetNameInitials from '@/actions/text/GetNameInitials';
|
import GetNameInitials from '@/actions/text/GetNameInitials';
|
||||||
import { DataTable } from '@/app/_components/dataTable/DataTable';
|
import { DataTable } from '@/app/_components/dataTable/DataTable';
|
||||||
|
|
||||||
import TPessoaInterface from '../../../_interfaces/TPessoaInterface';
|
import TPessoaInterface from '../../../interfaces/TPessoaInterface';
|
||||||
import { FormatCPF } from '@/actions/CPF/FormatCPF';
|
import { FormatCPF } from '@/actions/CPF/FormatCPF';
|
||||||
import { FormatPhone } from '@/actions/phone/FormatPhone';
|
import { FormatPhone } from '@/actions/phone/FormatPhone';
|
||||||
import { FormatDateTime } from '@/actions/dateTime/FormatDateTime';
|
import { FormatDateTime } from '@/actions/dateTime/FormatDateTime';
|
||||||
|
|
@ -25,7 +25,7 @@ import {
|
||||||
} from '@/components/ui/form';
|
} from '@/components/ui/form';
|
||||||
import { Input } from '@/components/ui/input';
|
import { Input } from '@/components/ui/input';
|
||||||
|
|
||||||
import { TPessoaSchema } from '../../_schemas/TPessoaSchema';
|
import { TPessoaSchema } from '../../schemas/TPessoaFisicaSchema';
|
||||||
import LoadingButton from '@/app/_components/loadingButton/LoadingButton';
|
import LoadingButton from '@/app/_components/loadingButton/LoadingButton';
|
||||||
import { Tabs, TabsContent, TabsList, TabsTrigger } from '@/components/ui/tabs';
|
import { Tabs, TabsContent, TabsList, TabsTrigger } from '@/components/ui/tabs';
|
||||||
import {
|
import {
|
||||||
|
|
@ -47,10 +47,10 @@ import {
|
||||||
UserIcon,
|
UserIcon,
|
||||||
} from 'lucide-react';
|
} from 'lucide-react';
|
||||||
import { Sexo } from '@/enums/SexoEnum';
|
import { Sexo } from '@/enums/SexoEnum';
|
||||||
import { useGTBEstadoCivilReadHook } from '../../_hooks/g_tb_estadocivil/useGTBEstadoCivilReadHook';
|
import { useGTBEstadoCivilReadHook } from '../../../../app/(protected)/(cadastros)/cadastros/_hooks/g_tb_estadocivil/useGTBEstadoCivilReadHook';
|
||||||
import GetCapitalize from '@/actions/text/GetCapitalize';
|
import GetCapitalize from '@/actions/text/GetCapitalize';
|
||||||
import { useGTBRegimeComunhaoReadHook } from '../../_hooks/g_tb_regimecomunhao/useGTBRegimeComunhaoReadHook';
|
import { useGTBRegimeComunhaoReadHook } from '../../../../app/(protected)/(cadastros)/cadastros/_hooks/g_tb_regimecomunhao/useGTBRegimeComunhaoReadHook';
|
||||||
import { useGTBProfissaoReadHook } from '../../_hooks/g_tb_profissao/useGTBProfissaoReadHook';
|
import { useGTBProfissaoReadHook } from '../../../../app/(protected)/(cadastros)/cadastros/_hooks/g_tb_profissao/useGTBProfissaoReadHook';
|
||||||
import { Popover, PopoverContent, PopoverTrigger } from '@/components/ui/popover';
|
import { Popover, PopoverContent, PopoverTrigger } from '@/components/ui/popover';
|
||||||
import {
|
import {
|
||||||
Command,
|
Command,
|
||||||
|
|
@ -61,9 +61,9 @@ import {
|
||||||
CommandList,
|
CommandList,
|
||||||
} from '@/components/ui/command';
|
} from '@/components/ui/command';
|
||||||
import { cn } from '@/lib/utils';
|
import { cn } from '@/lib/utils';
|
||||||
import { useTPessoaIndexHook } from '../../_hooks/t_pessoa/useTPessoaIndexHook';
|
import { useTPessoaIndexHook } from '../../hooks/t_pessoa/useTPessoaIndexHook';
|
||||||
import TPessoaTable from '../t_pessoa/TPessoaTable';
|
import TPessoaTable from '../t_pessoa/fisica/TPessoaFisicaTable';
|
||||||
import TPessoaInterface from '../../_interfaces/TPessoaInterface';
|
import TPessoaInterface from '../../interfaces/TPessoaInterface';
|
||||||
import { ColumnDef } from '@tanstack/react-table';
|
import { ColumnDef } from '@tanstack/react-table';
|
||||||
import GetNameInitials from '@/actions/text/GetNameInitials';
|
import GetNameInitials from '@/actions/text/GetNameInitials';
|
||||||
import empty from '@/actions/validations/empty';
|
import empty from '@/actions/validations/empty';
|
||||||
|
|
@ -3,18 +3,18 @@
|
||||||
import React, { useEffect, useState, useCallback } from 'react';
|
import React, { useEffect, useState, useCallback } from 'react';
|
||||||
|
|
||||||
import Loading from '@/app/_components/loading/loading';
|
import Loading from '@/app/_components/loading/loading';
|
||||||
import TPessoaForm from '../../_components/t_pessoa/TPessoaForm';
|
import TPessoaForm from '../t_pessoa/fisica/TPessoaFisicaForm';
|
||||||
|
|
||||||
import { useTPessoaIndexHook } from '../../_hooks/t_pessoa/useTPessoaIndexHook';
|
import { useTPessoaIndexHook } from '../../hooks/t_pessoa/useTPessoaIndexHook';
|
||||||
import { useTPessoaSaveHook } from '../../_hooks/t_pessoa/useTPessoaSaveHook';
|
import { useTPessoaSaveHook } from '../../hooks/t_pessoa/useTPessoaSaveHook';
|
||||||
import { useTPessoaDeleteHook } from '../../_hooks/t_pessoa/useTPessoaDeleteHook';
|
import { useTPessoaDeleteHook } from '../../hooks/t_pessoa/useTPessoaDeleteHook';
|
||||||
|
|
||||||
import ConfirmDialog from '@/app/_components/confirm_dialog/ConfirmDialog';
|
import ConfirmDialog from '@/app/_components/confirm_dialog/ConfirmDialog';
|
||||||
import { useConfirmDialog } from '@/app/_components/confirm_dialog/useConfirmDialog';
|
import { useConfirmDialog } from '@/app/_components/confirm_dialog/useConfirmDialog';
|
||||||
|
|
||||||
import TPessoaInterface from '../../_interfaces/TPessoaInterface';
|
import TPessoaInterface from '../../interfaces/TPessoaInterface';
|
||||||
import TPessoaRepresentanteTable from './TPessoaRepresentanteTable';
|
import TPessoaRepresentanteTable from './TPessoaRepresentanteTable';
|
||||||
import { useTPessoaRepresentanteIndexHook } from '../../_hooks/t_pessoa_representante/useTPessoaRepresentanteIndexHook';
|
import { useTPessoaRepresentanteIndexHook } from '../../hooks/t_pessoa_representante/useTPessoaRepresentanteIndexHook';
|
||||||
import { Button } from '@/components/ui/button';
|
import { Button } from '@/components/ui/button';
|
||||||
import Header from '@/app/_components/structure/Header';
|
import Header from '@/app/_components/structure/Header';
|
||||||
import TPessoaRepresentanteForm from './TPessoaRepresentanteForm';
|
import TPessoaRepresentanteForm from './TPessoaRepresentanteForm';
|
||||||
|
|
@ -16,7 +16,7 @@ import { ColumnDef } from '@tanstack/react-table';
|
||||||
import GetNameInitials from '@/actions/text/GetNameInitials';
|
import GetNameInitials from '@/actions/text/GetNameInitials';
|
||||||
import { DataTable } from '@/app/_components/dataTable/DataTable';
|
import { DataTable } from '@/app/_components/dataTable/DataTable';
|
||||||
|
|
||||||
import TPessoaInterface from '../../_interfaces/TPessoaInterface';
|
import TPessoaInterface from '../../interfaces/TPessoaInterface';
|
||||||
import { FormatCPF } from '@/actions/CPF/FormatCPF';
|
import { FormatCPF } from '@/actions/CPF/FormatCPF';
|
||||||
import { FormatPhone } from '@/actions/phone/FormatPhone';
|
import { FormatPhone } from '@/actions/phone/FormatPhone';
|
||||||
import empty from '@/actions/validations/empty';
|
import empty from '@/actions/validations/empty';
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
import { useResponse } from '@/app/_response/ResponseContext';
|
import { useResponse } from '@/app/_response/ResponseContext';
|
||||||
import TPessoaJuridicaInterface from '../../../_interfaces/TPessoaJuridicaInterface';
|
import TPessoaJuridicaInterface from '../../../interfaces/TPessoaJuridicaInterface';
|
||||||
import { TCensecDeleteService } from '../../../_services/t_censec/TCensecDeleteService';
|
import { TCensecDeleteService } from '../../../../../app/(protected)/(cadastros)/cadastros/_services/t_censec/TCensecDeleteService';
|
||||||
|
|
||||||
export const useTPessoaJuridicaDeleteHook = () => {
|
export const useTPessoaJuridicaDeleteHook = () => {
|
||||||
const { setResponse } = useResponse();
|
const { setResponse } = useResponse();
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
import { useResponse } from '@/app/_response/ResponseContext';
|
import { useResponse } from '@/app/_response/ResponseContext';
|
||||||
import { TPessoaJuridicaIndexService } from '../../../_services/t_pessoa/juridica/TPessoaJuridicaIndexService';
|
import { TPessoaJuridicaIndexService } from '../../../services/t_pessoa/juridica/TPessoaJuridicaIndexService';
|
||||||
import { useState } from 'react';
|
import { useState } from 'react';
|
||||||
import TPessoaJuridicaInterface from '../../../_interfaces/TPessoaJuridicaInterface';
|
import TPessoaJuridicaInterface from '../../../interfaces/TPessoaJuridicaInterface';
|
||||||
|
|
||||||
export const useTPessoaJuridicaIndexHook = () => {
|
export const useTPessoaJuridicaIndexHook = () => {
|
||||||
const { setResponse } = useResponse();
|
const { setResponse } = useResponse();
|
||||||
|
|
@ -2,8 +2,8 @@
|
||||||
|
|
||||||
import { useResponse } from '@/app/_response/ResponseContext';
|
import { useResponse } from '@/app/_response/ResponseContext';
|
||||||
import { useState } from 'react';
|
import { useState } from 'react';
|
||||||
import TPessoaInterface from '../../../_interfaces/TPessoaInterface';
|
import TPessoaInterface from '../../../interfaces/TPessoaInterface';
|
||||||
import { TCensecSaveService } from '../../../_services/t_censec/TCensecSaveService';
|
import { TCensecSaveService } from '../../../../../app/(protected)/(cadastros)/cadastros/_services/t_censec/TCensecSaveService';
|
||||||
|
|
||||||
export const useTPessoaJuridicaSaveHook = () => {
|
export const useTPessoaJuridicaSaveHook = () => {
|
||||||
const { setResponse } = useResponse();
|
const { setResponse } = useResponse();
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
import { useResponse } from '@/app/_response/ResponseContext';
|
import { useResponse } from '@/app/_response/ResponseContext';
|
||||||
import TPessoaInterface from '../../_interfaces/TPessoaInterface';
|
import TPessoaInterface from '../../interfaces/TPessoaInterface';
|
||||||
import { TCensecDeleteService } from '../../_services/t_censec/TCensecDeleteService';
|
import { TCensecDeleteService } from '../../../../app/(protected)/(cadastros)/cadastros/_services/t_censec/TCensecDeleteService';
|
||||||
|
|
||||||
export const useTPessoaDeleteHook = () => {
|
export const useTPessoaDeleteHook = () => {
|
||||||
const { setResponse } = useResponse();
|
const { setResponse } = useResponse();
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
import { useResponse } from '@/app/_response/ResponseContext';
|
import { useResponse } from '@/app/_response/ResponseContext';
|
||||||
import { TPessoaIndexService } from '../../_services/t_pessoa/TPessoaIndexService';
|
import { TPessoaIndexService } from '../../services/t_pessoa/TPessoaIndexService';
|
||||||
import { useState } from 'react';
|
import { useState } from 'react';
|
||||||
import TPessoaInterface from '../../_interfaces/TPessoaInterface';
|
import TPessoaInterface from '../../interfaces/TPessoaInterface';
|
||||||
|
|
||||||
export const useTPessoaIndexHook = () => {
|
export const useTPessoaIndexHook = () => {
|
||||||
const { setResponse } = useResponse();
|
const { setResponse } = useResponse();
|
||||||
|
|
@ -2,8 +2,8 @@
|
||||||
|
|
||||||
import { useResponse } from '@/app/_response/ResponseContext';
|
import { useResponse } from '@/app/_response/ResponseContext';
|
||||||
import { useState } from 'react';
|
import { useState } from 'react';
|
||||||
import TPessoaInterface from '../../_interfaces/TPessoaInterface';
|
import TPessoaInterface from '../../interfaces/TPessoaInterface';
|
||||||
import { TCensecSaveService } from '../../_services/t_censec/TCensecSaveService';
|
import { TCensecSaveService } from '../../../../app/(protected)/(cadastros)/cadastros/_services/t_censec/TCensecSaveService';
|
||||||
|
|
||||||
export const useTPessoaSaveHook = () => {
|
export const useTPessoaSaveHook = () => {
|
||||||
const { setResponse } = useResponse();
|
const { setResponse } = useResponse();
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
import { useResponse } from '@/app/_response/ResponseContext';
|
import { useResponse } from '@/app/_response/ResponseContext';
|
||||||
import TPessoaInterface from '../../_interfaces/TPessoaInterface';
|
import TPessoaInterface from '../../interfaces/TPessoaInterface';
|
||||||
import { TCensecDeleteService } from '../../_services/t_censec/TCensecDeleteService';
|
import { TCensecDeleteService } from '../../../../app/(protected)/(cadastros)/cadastros/_services/t_censec/TCensecDeleteService';
|
||||||
|
|
||||||
export const useTPessoaDeleteHook = () => {
|
export const useTPessoaDeleteHook = () => {
|
||||||
const { setResponse } = useResponse();
|
const { setResponse } = useResponse();
|
||||||
|
|
@ -1,8 +1,8 @@
|
||||||
import { useResponse } from '@/app/_response/ResponseContext';
|
import { useResponse } from '@/app/_response/ResponseContext';
|
||||||
import { TPessoaIndexService } from '../../_services/t_pessoa/TPessoaIndexService';
|
import { TPessoaIndexService } from '../../services/t_pessoa/TPessoaIndexService';
|
||||||
import { useState } from 'react';
|
import { useState } from 'react';
|
||||||
import TPessoaInterface from '../../_interfaces/TPessoaInterface';
|
import TPessoaInterface from '../../interfaces/TPessoaInterface';
|
||||||
import { TPessoaRepresentanteIndexData } from '../../_data/TPessoaRepresentante/TPessoaRepresentanteIndexData';
|
import { TPessoaRepresentanteIndexData } from '../../data/TPessoaRepresentante/TPessoaRepresentanteIndexData';
|
||||||
|
|
||||||
export const useTPessoaRepresentanteIndexHook = () => {
|
export const useTPessoaRepresentanteIndexHook = () => {
|
||||||
const { setResponse } = useResponse();
|
const { setResponse } = useResponse();
|
||||||
|
|
@ -2,8 +2,8 @@
|
||||||
|
|
||||||
import { useResponse } from '@/app/_response/ResponseContext';
|
import { useResponse } from '@/app/_response/ResponseContext';
|
||||||
import { useState } from 'react';
|
import { useState } from 'react';
|
||||||
import TPessoaInterface from '../../_interfaces/TPessoaInterface';
|
import TPessoaInterface from '../../interfaces/TPessoaInterface';
|
||||||
import { TCensecSaveService } from '../../_services/t_censec/TCensecSaveService';
|
import { TCensecSaveService } from '../../../../app/(protected)/(cadastros)/cadastros/_services/t_censec/TCensecSaveService';
|
||||||
|
|
||||||
export const useTPessoaSaveHook = () => {
|
export const useTPessoaSaveHook = () => {
|
||||||
const { setResponse } = useResponse();
|
const { setResponse } = useResponse();
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
import { withClientErrorHandler } from '@/actions/withClientErrorHandler/withClientErrorHandler';
|
import { withClientErrorHandler } from '@/actions/withClientErrorHandler/withClientErrorHandler';
|
||||||
import { TPessoaIndexData } from '../../_data/TPessoa/TPessoaIndexData';
|
import { TPessoaIndexData } from '../../data/TPessoa/TPessoaIndexData';
|
||||||
|
|
||||||
async function executeTPessoaIndexService() {
|
async function executeTPessoaIndexService() {
|
||||||
const response = TPessoaIndexData();
|
const response = TPessoaIndexData();
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
import { withClientErrorHandler } from '@/actions/withClientErrorHandler/withClientErrorHandler';
|
import { withClientErrorHandler } from '@/actions/withClientErrorHandler/withClientErrorHandler';
|
||||||
import { TPessoaJuridicaIndexData } from '../../../_data/TPessoa/juridica/TPessoaJuridicaIndexData';
|
import { TPessoaJuridicaIndexData } from '../../../data/TPessoa/juridica/TPessoaJuridicaIndexData';
|
||||||
|
|
||||||
async function executeTPessoaJuridicaIndexService() {
|
async function executeTPessoaJuridicaIndexService() {
|
||||||
const response = TPessoaJuridicaIndexData();
|
const response = TPessoaJuridicaIndexData();
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
import { withClientErrorHandler } from '@/actions/withClientErrorHandler/withClientErrorHandler';
|
import { withClientErrorHandler } from '@/actions/withClientErrorHandler/withClientErrorHandler';
|
||||||
import { TPessoaRepresentanteIndexData } from '../../_data/TPessoaRepresentante/TPessoaRepresentanteIndexData';
|
import { TPessoaRepresentanteIndexData } from '../../data/TPessoaRepresentante/TPessoaRepresentanteIndexData';
|
||||||
|
|
||||||
async function executeTPessoaRepresentanteIndexService() {
|
async function executeTPessoaRepresentanteIndexService() {
|
||||||
const response = TPessoaRepresentanteIndexData();
|
const response = TPessoaRepresentanteIndexData();
|
||||||
Loading…
Add table
Reference in a new issue