Skip to content

Commit

Permalink
feat: reorganize sidebar items
Browse files Browse the repository at this point in the history
  • Loading branch information
guesant committed Feb 2, 2025
1 parent 332dcf2 commit dc32c9b
Show file tree
Hide file tree
Showing 4 changed files with 71 additions and 39 deletions.
7 changes: 5 additions & 2 deletions app/components/Appbar/Appbar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,10 @@ const notificationsButtonEl = ref(null);
<header
class="flex items-center w-full h-[4.563rem] border-b border-ldsa-grey/50 bg-ldsa-bg"
>
<div class="m-[0.34375rem] cursor-pointer" @click="toggleHamburger">
<div
class="m-[0.34375rem] cursor-pointer shrink-0"
@click="toggleHamburger"
>
<IconsMenuIconHamburgerOn
v-if="hamburgerActive"
class="p-3 w-[2.813rem]"
Expand Down Expand Up @@ -44,7 +47,7 @@ const notificationsButtonEl = ref(null);
<div class="mr-3" />

<LogoSisghaLogomarca
class="mr-8 w-[8.75rem] hidden sm:block cursor-pointer"
class="mr-8 w-[8.75rem] hidden sm:block cursor-pointer shrink-0"
/>
</header>
</template>
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
import iconAmbientes from '~/assets/icons/Ambientes.svg';
import iconBlocos from '~/assets/icons/Blocos.svg';
import iconLogout from '~/assets/icons/Logout.svg';
import iconReservas from '~/assets/icons/Reservas.svg';
import iconPerfil from '~/assets/icons/Usuario.svg';
import type { ISidebarItem } from '../../../../../../../Sidebar/SidebarItem/ISidebarItem';

export const useLayoutsDashboardSisgeaCommonSidebarItems = () => {
Expand All @@ -26,6 +28,22 @@ export const useLayoutsDashboardSisgeaCommonSidebarItems = () => {
to: '/sisgea/blocos',
exact: false,
},

{
type: 'link',
title: 'Perfil',
icon: iconPerfil,
to: `/sisgea/perfil`,
exact: false,
},

{
type: 'link',
title: 'Sair',
icon: iconLogout,
to: '/logout',
exact: false,
},
];

return { items };
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,53 +21,56 @@ export const useLayoutsDashboardSisghaDapeSidebarItems = () => {
to: `${CAMINHO_DAPE}/`,
exact: true,
},
{
type: 'link',
title: 'Turmas',
icon: iconTurmas,
to: `${CAMINHO_DAPE}/turmas`,
exact: false,
},
{
type: 'link',
title: 'Disciplinas',
icon: iconDisciplina,
to: `${CAMINHO_DAPE}/disciplinas`,
exact: false,
},
{
type: 'link',
title: 'Perfil',
icon: iconPerfil,
to: `${CAMINHO_DAPE}/perfil`,
exact: false,
},
{
type: 'link',
title: 'Diários',
icon: iconDiario,
to: `${CAMINHO_DAPE}/diarios`,
exact: false,
},

{
type: 'link',
title: 'Calendário',
icon: iconCalendario,
to: `${CAMINHO_DAPE}/calendario`,
exact: false,
},

{
type: 'group',
title: 'Outros',
title: 'Gestão',
icon: iconOutros,
items: [
{
type: 'link',
title: 'Diários',
icon: iconDiario,
to: `${CAMINHO_DAPE}/diarios`,
exact: false,
},
{
type: 'link',
title: 'Turmas',
icon: iconTurmas,
to: `${CAMINHO_DAPE}/turmas`,
exact: false,
},
{
type: 'link',
title: 'Usuários',
icon: iconUsuarios,
to: `${CAMINHO_DAPE}/usuarios`,
exact: false,
},
],
},

{
type: 'group',
title: 'Ensino',
icon: iconOutros,
items: [
{
type: 'link',
title: 'Disciplinas',
icon: iconDisciplina,
to: `${CAMINHO_DAPE}/disciplinas`,
exact: false,
},
{
type: 'link',
title: 'Cursos',
Expand All @@ -80,6 +83,14 @@ export const useLayoutsDashboardSisghaDapeSidebarItems = () => {

{ type: 'spacer' },

{
type: 'link',
title: 'Perfil',
icon: iconPerfil,
to: `${CAMINHO_DAPE}/perfil`,
exact: false,
},

{
type: 'link',
title: 'Sair',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,6 @@ export const useLayoutsDashboardSisghaProfessorSidebarItems = () => {
exact: true,
},

{
type: 'link',
title: 'Perfil',
icon: iconPerfil,
to: `${CAMINHO_PROFESSOR}/perfil`,
exact: false,
},

{
type: 'link',
title: 'Calendário',
Expand All @@ -34,6 +26,14 @@ export const useLayoutsDashboardSisghaProfessorSidebarItems = () => {

{ type: 'spacer' },

{
type: 'link',
title: 'Perfil',
icon: iconPerfil,
to: `${CAMINHO_PROFESSOR}/perfil`,
exact: false,
},

{
type: 'link',
title: 'Sair',
Expand Down

0 comments on commit dc32c9b

Please sign in to comment.