Skip to content

Commit

Permalink
Realizacao do merge da branch 1-tela_visualizacao
Browse files Browse the repository at this point in the history
US1 - Desenvolvimento de Tela para Gestão de Dados de Visualizações dos Vídeos
  • Loading branch information
GabrielRoger07 authored Jul 28, 2024
2 parents cda58f0 + c802853 commit bd8cad6
Show file tree
Hide file tree
Showing 231 changed files with 568 additions and 3 deletions.
Empty file modified .dockerignore
100644 → 100755
Empty file.
Empty file modified .editorconfig
100644 → 100755
Empty file.
Empty file modified .github/templates/bug_report.md
100644 → 100755
Empty file.
Empty file modified .github/templates/feature_request.md
100644 → 100755
Empty file.
Empty file modified .github/templates/pull_request_template.md
100644 → 100755
Empty file.
Empty file modified .github/templates/user_stories.md
100644 → 100755
Empty file.
Empty file modified .github/workflows/continous-integration.yml
100644 → 100755
Empty file.
Empty file modified .github/workflows/deploy.yml
100644 → 100755
Empty file.
Empty file modified .github/workflows/release.yml
100644 → 100755
Empty file.
Empty file modified .gitignore
100644 → 100755
Empty file.
Empty file modified Dockerfile
100644 → 100755
Empty file.
Empty file modified README.md
100644 → 100755
Empty file.
Empty file modified angular.json
100644 → 100755
Empty file.
Empty file modified certificate.cnf
100644 → 100755
Empty file.
Empty file modified docker-compose.yml
100644 → 100755
Empty file.
Empty file modified karma.conf.js
100644 → 100755
Empty file.
Empty file modified ngsw-config.json
100644 → 100755
Empty file.
Empty file modified package-lock.json
100644 → 100755
Empty file.
Empty file modified package.json
100644 → 100755
Empty file.
Empty file modified postcss.config.js
100644 → 100755
Empty file.
Empty file modified public/Simbolo_UnBTV.svg
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified sonar-project.properties
100644 → 100755
Empty file.
Empty file modified sonar_scripts/parser.py
100644 → 100755
Empty file.
Empty file modified src/.well-known/assetlinks.json
100644 → 100755
Empty file.
Empty file modified src/_redirects
100644 → 100755
Empty file.
3 changes: 3 additions & 0 deletions src/app/app-routing.module.ts
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ import { GridComponent } from './pages/grid/grid.component';
import { CatalogComponent } from './pages/catalog/catalog.component';
import { PrivacyPolicyComponent } from './pages/privacy-policy/privacy-policy.component';
import { CategoryTableComponent } from './pages/category-table/category-table.component';
import { VideoViewsComponent } from './pages/video-views/video-views.component';


import { WithTokenGuard } from './guard/with-token.guard';

Expand Down Expand Up @@ -86,6 +88,7 @@ const routes: Routes = [
},
{ path: 'privacy', component: PrivacyPolicyComponent },
{ path: 'category-views', component: CategoryTableComponent},
{ path: 'video-views', component: VideoViewsComponent},
];

@NgModule({
Expand Down
Empty file modified src/app/app.component.css
100644 → 100755
Empty file.
Empty file modified src/app/app.component.html
100644 → 100755
Empty file.
Empty file modified src/app/app.component.spec.ts
100644 → 100755
Empty file.
Empty file modified src/app/app.component.ts
100644 → 100755
Empty file.
Empty file modified src/app/app.constant.ts
100644 → 100755
Empty file.
4 changes: 3 additions & 1 deletion src/app/app.module.ts
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ import { CatalogComponent } from './pages/catalog/catalog.component';
import { PrivacyPolicyComponent } from './pages/privacy-policy/privacy-policy.component';
import { ServiceWorkerModule } from '@angular/service-worker';
import { CategoryTableComponent } from './pages/category-table/category-table.component';
import { VideoViewsComponent } from './pages/video-views/video-views.component';

@NgModule({
imports: [
Expand Down Expand Up @@ -98,7 +99,8 @@ import { CategoryTableComponent } from './pages/category-table/category-table.co
VideoCommentComponent,
CatalogComponent,
PrivacyPolicyComponent,
CategoryTableComponent
CategoryTableComponent,
VideoViewsComponent
],

providers: [
Expand Down
Empty file modified src/app/components/background/background.component.css
100644 → 100755
Empty file.
Empty file modified src/app/components/background/background.component.html
100644 → 100755
Empty file.
Empty file modified src/app/components/background/background.component.spec.ts
100644 → 100755
Empty file.
Empty file modified src/app/components/background/background.component.ts
100644 → 100755
Empty file.
Empty file modified src/app/components/video-comment/video-comment.component.css
100644 → 100755
Empty file.
Empty file modified src/app/components/video-comment/video-comment.component.html
100644 → 100755
Empty file.
Empty file.
Empty file modified src/app/components/video-comment/video-comment.component.ts
100644 → 100755
Empty file.
Empty file modified src/app/environment/environment.test.ts
100644 → 100755
Empty file.
Empty file modified src/app/environment/environment.ts
100644 → 100755
Empty file.
Empty file modified src/app/guard/auth.guard.spec.ts
100644 → 100755
Empty file.
Empty file modified src/app/guard/auth.guard.ts
100644 → 100755
Empty file.
Empty file modified src/app/guard/with-token.guard.spec.ts
100644 → 100755
Empty file.
Empty file modified src/app/guard/with-token.guard.ts
100644 → 100755
Empty file.
Empty file modified src/app/helper/must-match.validator.ts
100644 → 100755
Empty file.
Empty file modified src/app/interceptor/user-token-interceptor.service.spec.ts
100644 → 100755
Empty file.
Empty file modified src/app/interceptor/user-token-interceptor.service.ts
100644 → 100755
Empty file.
Empty file modified src/app/pages/active-account/active-account.component.css
100644 → 100755
Empty file.
Empty file modified src/app/pages/active-account/active-account.component.html
100644 → 100755
Empty file.
Empty file modified src/app/pages/active-account/active-account.component.spec.ts
100644 → 100755
Empty file.
Empty file modified src/app/pages/active-account/active-account.component.ts
100644 → 100755
Empty file.
Empty file modified src/app/pages/agora/agora.component.css
100644 → 100755
Empty file.
Empty file modified src/app/pages/agora/agora.component.html
100644 → 100755
Empty file.
Empty file modified src/app/pages/agora/agora.component.spec.ts
100644 → 100755
Empty file.
Empty file modified src/app/pages/agora/agora.component.ts
100644 → 100755
Empty file.
Empty file modified src/app/pages/catalog/catalog.component.css
100644 → 100755
Empty file.
Empty file modified src/app/pages/catalog/catalog.component.html
100644 → 100755
Empty file.
Empty file modified src/app/pages/catalog/catalog.component.spec.ts
100644 → 100755
Empty file.
Empty file modified src/app/pages/catalog/catalog.component.ts
100644 → 100755
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file modified src/app/pages/edit-user/edit-user.component.css
100644 → 100755
Empty file.
Empty file modified src/app/pages/edit-user/edit-user.component.html
100644 → 100755
Empty file.
Empty file modified src/app/pages/edit-user/edit-user.component.spec.ts
100644 → 100755
Empty file.
Empty file modified src/app/pages/edit-user/edit-user.component.ts
100644 → 100755
Empty file.
Empty file modified src/app/pages/grid-days/grid-days.component.css
100644 → 100755
Empty file.
Empty file modified src/app/pages/grid-days/grid-days.component.html
100644 → 100755
Empty file.
Empty file modified src/app/pages/grid-days/grid-days.component.spec.ts
100644 → 100755
Empty file.
Empty file modified src/app/pages/grid-days/grid-days.component.ts
100644 → 100755
Empty file.
Empty file modified src/app/pages/grid/grid.component.css
100644 → 100755
Empty file.
Empty file modified src/app/pages/grid/grid.component.html
100644 → 100755
Empty file.
Empty file modified src/app/pages/grid/grid.component.spec.ts
100644 → 100755
Empty file.
Empty file modified src/app/pages/grid/grid.component.ts
100644 → 100755
Empty file.
Empty file modified src/app/pages/login-social/login-social.component.css
100644 → 100755
Empty file.
Empty file modified src/app/pages/login-social/login-social.component.html
100644 → 100755
Empty file.
Empty file modified src/app/pages/login-social/login-social.component.spec.ts
100644 → 100755
Empty file.
Empty file modified src/app/pages/login-social/login-social.component.ts
100644 → 100755
Empty file.
Empty file modified src/app/pages/login/login.component.css
100644 → 100755
Empty file.
Empty file modified src/app/pages/login/login.component.html
100644 → 100755
Empty file.
Empty file modified src/app/pages/login/login.component.spec.ts
100644 → 100755
Empty file.
Empty file modified src/app/pages/login/login.component.ts
100644 → 100755
Empty file.
Empty file modified src/app/pages/participate/participate.component.css
100644 → 100755
Empty file.
Empty file modified src/app/pages/participate/participate.component.html
100644 → 100755
Empty file.
Empty file modified src/app/pages/participate/participate.component.spec.ts
100644 → 100755
Empty file.
Empty file modified src/app/pages/participate/participate.component.ts
100644 → 100755
Empty file.
Empty file modified src/app/pages/privacy-policy/privacy-policy.component.css
100644 → 100755
Empty file.
Empty file modified src/app/pages/privacy-policy/privacy-policy.component.html
100644 → 100755
Empty file.
Empty file modified src/app/pages/privacy-policy/privacy-policy.component.spec.ts
100644 → 100755
Empty file.
Empty file modified src/app/pages/privacy-policy/privacy-policy.component.ts
100644 → 100755
Empty file.
Empty file modified src/app/pages/profile/profile.component.css
100644 → 100755
Empty file.
Empty file modified src/app/pages/profile/profile.component.html
100644 → 100755
Empty file.
Empty file modified src/app/pages/profile/profile.component.spec.ts
100644 → 100755
Empty file.
Empty file modified src/app/pages/profile/profile.component.ts
100644 → 100755
Empty file.
Empty file modified src/app/pages/programacao/programacao.component.css
100644 → 100755
Empty file.
Empty file modified src/app/pages/programacao/programacao.component.html
100644 → 100755
Empty file.
Empty file modified src/app/pages/programacao/programacao.component.spec.ts
100644 → 100755
Empty file.
Empty file modified src/app/pages/programacao/programacao.component.ts
100644 → 100755
Empty file.
Empty file modified src/app/pages/register/register.component.css
100644 → 100755
Empty file.
Empty file modified src/app/pages/register/register.component.html
100644 → 100755
Empty file.
Empty file modified src/app/pages/register/register.component.spec.ts
100644 → 100755
Empty file.
Empty file modified src/app/pages/register/register.component.ts
100644 → 100755
Empty file.
Empty file modified src/app/pages/reset-password/reset-password.component.css
100644 → 100755
Empty file.
Empty file modified src/app/pages/reset-password/reset-password.component.html
100644 → 100755
Empty file.
Empty file modified src/app/pages/reset-password/reset-password.component.spec.ts
100644 → 100755
Empty file.
Empty file modified src/app/pages/reset-password/reset-password.component.ts
100644 → 100755
Empty file.
Empty file modified src/app/pages/stream-view/stream-view.component.css
100644 → 100755
Empty file.
Empty file modified src/app/pages/stream-view/stream-view.component.html
100644 → 100755
Empty file.
Empty file modified src/app/pages/stream-view/stream-view.component.spec.ts
100644 → 100755
Empty file.
Empty file modified src/app/pages/stream-view/stream-view.component.ts
100644 → 100755
Empty file.
Empty file modified src/app/pages/suggest-agenda/suggest-agenda.component.css
100644 → 100755
Empty file.
Empty file modified src/app/pages/suggest-agenda/suggest-agenda.component.html
100644 → 100755
Empty file.
2 changes: 1 addition & 1 deletion src/app/pages/suggest-agenda/suggest-agenda.component.spec.ts
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -123,4 +123,4 @@ describe('SuggestAgendaComponent', () => {
component.sendSuggestAgenda();
expect(alertSpy).toHaveBeenCalledWith('error', 'Erro', 'ERRO - A URL (endereço do vídeo) não é válida. Favor corrigir ou deletar.');
});
});
});
Empty file modified src/app/pages/suggest-agenda/suggest-agenda.component.ts
100644 → 100755
Empty file.
Empty file modified src/app/pages/update-role/update-role.component.css
100644 → 100755
Empty file.
Empty file modified src/app/pages/update-role/update-role.component.html
100644 → 100755
Empty file.
Empty file modified src/app/pages/update-role/update-role.component.spec.ts
100644 → 100755
Empty file.
Empty file modified src/app/pages/update-role/update-role.component.ts
100644 → 100755
Empty file.
Empty file modified src/app/pages/video-viewer/video-viewer.component.css
100644 → 100755
Empty file.
Empty file modified src/app/pages/video-viewer/video-viewer.component.html
100644 → 100755
Empty file.
Empty file modified src/app/pages/video-viewer/video-viewer.component.spec.ts
100644 → 100755
Empty file.
Empty file modified src/app/pages/video-viewer/video-viewer.component.ts
100644 → 100755
Empty file.
204 changes: 204 additions & 0 deletions src/app/pages/video-views/video-views.component.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,204 @@
html, body {
height: 100%;
margin: 0;
padding: 0;
font-family: Helvetic, sans-serif;
}

.containerPrincipal {
display: flex;
min-height: 100vh;
flex-direction: column;
}

aside {
width: 11em;
background-color: white;
padding: 1em 0.75em;
box-shadow: 0.125em 0 0.3125em rgba(0,0,0,0.1);
text-align: left;
position: fixed;
height: 100%;
margin: 0;
}

.informacoesUsuario p {
margin: 0;
font-size: 1.2em;
}

.linksBarraLateral {
display: flex;
justify-content: space-between;
align-items: center;
margin: 0.75em 0;
}

.linkLogout, .linkVoltar {
color: #0087c8;
text-decoration: none;
}

.linkLogout:hover, .linkVoltar:hover {
text-decoration: underline;
color: #0056b3;
cursor: pointer;
}

hr.solid {
border-top: 0.0625em solid #bbb;
}

nav ul {
list-style: none;
padding: 0;
}

nav ul li {
margin: 0.9375em 0;
}

nav ul li a {
text-decoration: none;
color: #1d1d1d;
font-size: 1.1em;
}

nav ul li a:hover,
nav ul li a.linkSelecionado {
color: #00a550;
}

main {
flex: 1;
margin-left: 12em; /* Certifique-se de que este valor esteja sincronizado com a largura do aside */
padding: 0.25em;
display: flex;
flex-direction: column;
}

header h1 {
font-size: 2.4em;
color: #00a550;
}

hr.solid2 {
border-top: 0.125em solid #bbb;
}

.containerConteudo {
margin-top: 1.25em;
flex: 1;
}

.containerFiltro {
display: table;
width: 100%;
table-layout: fixed;
margin-bottom: 1.25em;
}

.filtroItem {
display: table-cell;
padding: 0 0.5em;
}

.filtroItem input {
padding: 0.25em 0.5em;
}

.dropdown {
position: relative;
display: inline-block;
}

.botaoDropdown {
background-color: #f8f9fa;
color: #1d1d1d;
padding: 0.75em;
font-size: 1em;
border: 0.0625em solid #ddd;
cursor: pointer;
display: flex;
align-items: center;
}

.setinha {
margin-left: 0.5em;
border: solid #1d1d1d;
border-width: 0 0.125em 0.125em 0;
display: inline-block;
padding: 0.125em;
transform: rotate(45deg);
margin-bottom: 0.25em;
}

.conteudoDropdown {
display: none;
position: absolute;
background-color: #ffffff;
min-width: 12em;
box-shadow: 0.125em 0.125em 0.3125em rgba(0,0,0,0.2);
z-index: 1;
border: 0.0625em solid #ddd;
}

.conteudoDropdown label {
color: black;
padding: 0.5em 0.75em;
text-decoration: none;
display: block;
}

.conteudoDropdown label:hover {
background-color: #d0d0d0;
}

.dropdown:hover .conteudoDropdown {
display: block;
}

.dropdown:hover .botaoDropdown {
background-color: #d0d0d0;
}

table {
width: 100%;
border-collapse: collapse;
margin-top: 1.25em;
}

th, td {
border: 0.0625em solid #ddd;
padding: 0.75em;
text-align: left;
word-break: break-word;
}

th {
background-color: #d0d0d0;
}

th.ordenavel:hover {
cursor: pointer;
text-decoration: underline;
color: #0056b3;
}

th.ordenavel .setinha.up {
transform: rotate(225deg);
}

th.selected {
color: #0087c8;
}

thead {
font-size: 1.2em;
}

th:nth-child(1) { width: 10%; }
th:nth-child(2) { width: 20%; }
th:nth-child(3) { width: 40%; }
th:nth-child(4) { width: 15%; }
th:nth-child(5) { width: 15%; }
71 changes: 71 additions & 0 deletions src/app/pages/video-views/video-views.component.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,71 @@
<div class="containerPrincipal">
<aside>
<div class="informacoesUsuario">
<p>Olá, Admin!</p>
<div class="linksBarraLateral">
<a class="linkLogout" (click)="logoutUser()">Sair</a>
<a href="/homeAdmin" class="linkVoltar">Voltar</a>
</div>
</div>
<hr class="solid">
<nav>
<ul>
<li><a href="/video-views" class="linkSelecionado">Dados - Vídeos</a></li>
<li><a href="/category-views">Dados - Categorias</a></li>
</ul>
</nav>
</aside>
<main>
<header>
<h1>Dados - Vídeos</h1>
<hr class="solid2">
</header>
<div class="containerConteudo">
<div class="containerFiltro">
<div class="filtroItem">
<input [(ngModel)]="filterId" (ngModelChange)="filterVideos()" placeholder="Filtrar por ID" />
</div>
<div class="filtroItem">
<input [(ngModel)]="filterTitle" (ngModelChange)="filterVideos()" placeholder="Filtrar por Título" />
</div>
<div class="filtroItem">
<input [(ngModel)]="filterDescription" (ngModelChange)="filterVideos()" placeholder="Filtrar por Descrição" />
</div>
<div class="filtroItem">
<div class="dropdown">
<button class="botaoDropdown">Filtrar por Categoria <span class="setinha"></span></button>
<div class="conteudoDropdown">
<div *ngFor="let category of categories">
<label>
<input type="checkbox" [(ngModel)]="selectedCategories[category]" (ngModelChange)="filterVideos()" /> {{ category }}
</label>
</div>
</div>
</div>
</div>
</div>
<table>
<thead>
<tr>
<th>ID</th>
<th>Título</th>
<th>Descrição</th>
<th>Categoria</th>
<th (click)="changeSortOrder()" class="ordenavel">Nº Visualizações
<span class="setinha" [ngClass]="{'up': !sortAscending, 'down': sortAscending}"></span>
</th>
</tr>
</thead>
<tbody>
<tr *ngFor="let video of filteredVideos">
<td>{{ video.id }}</td>
<td>{{ video.title }}</td>
<td>{{ video.description }}</td>
<td>{{ video.catalog }}</td>
<td>{{ video.qtAccess }}</td>
</tr>
</tbody>
</table>
</div>
</main>
</div>
Loading

0 comments on commit bd8cad6

Please sign in to comment.