From d4cad019f1ac31928c3d4d917b0c80dee3805fd5 Mon Sep 17 00:00:00 2001 From: gabrielhrlima Date: Thu, 5 Sep 2024 21:26:00 -0300 Subject: [PATCH 1/2] Corrige algumas issues de manutenibilidade --- src/app/app-routing.module.ts | 26 +++++++++---------- .../controle-super-admin.component.css | 5 ++-- .../controle-super-admin.component.html | 2 +- 3 files changed, 16 insertions(+), 17 deletions(-) diff --git a/src/app/app-routing.module.ts b/src/app/app-routing.module.ts index cdbd71b..b898bc6 100644 --- a/src/app/app-routing.module.ts +++ b/src/app/app-routing.module.ts @@ -13,7 +13,6 @@ import { ResetPasswordComponent } from './pages/reset-password/reset-password.co import { AuthGuard } from './guard/auth.guard'; import { EditUserComponent } from './pages/edit-user/edit-user.component'; import { UpdateRoleComponent } from './pages/update-role/update-role.component'; -import { AdminGuard } from './services/admin.guard'; import { SuggestAgendaComponent } from './pages/suggest-agenda/suggest-agenda.component'; import { ParticipateComponent } from './pages/participate/participate.component'; import { GridDaysComponent } from './pages/grid-days/grid-days.component'; @@ -101,25 +100,26 @@ const routes: Routes = [ }, { path: 'privacy', component: PrivacyPolicyComponent }, - { path: 'homeAdmin', + { + path: 'homeAdmin', component: HomeAdminComponent, canActivate: [TokenAdminGuard], }, { path: 'adminActivate', - component: AdminActivateComponent + component: AdminActivateComponent, }, { path: 'superAdminActivate', component: SuperAdminActivateComponent, }, - { + { path: 'category-views', component: CategoryTableComponent, canActivate: [TokenAdminGuard], }, - { - path: 'video-views', + { + path: 'video-views', component: VideoViewsComponent, canActivate: [TokenAdminGuard], }, @@ -129,14 +129,14 @@ const routes: Routes = [ canActivate: [TokenAdminGuard], }, { - path: 'record', - component: RecordComponent, - canActivate: [AuthGuard] + path: 'record', + component: RecordComponent, + canActivate: [AuthGuard], }, { - path: 'notifications', - component: NotificationsComponent, - canActivate: [AuthGuard] + path: 'notifications', + component: NotificationsComponent, + canActivate: [AuthGuard], }, { path: 'recommendation', @@ -169,4 +169,4 @@ const routes: Routes = [ imports: [RouterModule.forRoot(routes)], exports: [RouterModule], }) -export class AppRoutingModule { } +export class AppRoutingModule {} diff --git a/src/app/pages/controle-super-admin/controle-super-admin.component.css b/src/app/pages/controle-super-admin/controle-super-admin.component.css index 672b5db..41b7343 100644 --- a/src/app/pages/controle-super-admin/controle-super-admin.component.css +++ b/src/app/pages/controle-super-admin/controle-super-admin.component.css @@ -122,7 +122,7 @@ button:hover { background-color: #979ea0; } -.btn_and_select_container{ +.btn_and_select_container { display: flex; } @@ -157,7 +157,6 @@ select { align-items: center; /* Centraliza o texto verticalmente */ justify-content: center; /* Centraliza o texto horizontalmente */ width: auto; /* Define o tamanho automático para alinhar com o conteúdo */ - min-width: 10rem; /* Define uma largura mínima para o texto readonly */ text-align: center; /* Centraliza o texto dentro do elemento */ cursor: not-allowed; /* Cursor de proibição padrão */ transition: background-color 0.3s ease, box-shadow 0.3s ease; /* Transição suave para hover */ @@ -194,4 +193,4 @@ select:focus { select option { color: #000; /* Cor do texto das opções */ -} \ No newline at end of file +} diff --git a/src/app/pages/controle-super-admin/controle-super-admin.component.html b/src/app/pages/controle-super-admin/controle-super-admin.component.html index e368420..965d864 100644 --- a/src/app/pages/controle-super-admin/controle-super-admin.component.html +++ b/src/app/pages/controle-super-admin/controle-super-admin.component.html @@ -42,7 +42,7 @@

Lista de usuários cadastrados:

{{ user.name }} {{ user.connection }} {{ user.email }} - {{ user.role }} + {{ user.role }}