-
-
+
@@ -26,10 +23,8 @@
-
-
-
-
+
+
diff --git a/src/app/user/myPlaylists/playlist-list/playlist-list.component.scss b/src/app/user/myPlaylists/playlist-list/playlist-list.component.scss
index 0a457d6..451a75f 100644
--- a/src/app/user/myPlaylists/playlist-list/playlist-list.component.scss
+++ b/src/app/user/myPlaylists/playlist-list/playlist-list.component.scss
@@ -2,8 +2,7 @@
background-color: white ;
text-align: center;
width: 35vw;
- height: 79vh;
- margin: 3vh 0vh 3vh 0vh;
+ margin: 1vh 0vh 3vh 0vh;
padding: 0px;
border: solid 2px black;
}
@@ -11,14 +10,16 @@
// SearchBar -----------------------------------------------------------
.searchBarContainer {
+ text-align: center;
+ margin: 0px 0px 0px 0px;
+ padding: 10px 0px 10px 0px;
background-color: #dcdcdc;
- border-bottom: solid 2px black;
- height: 5vh;
- padding: 15px;
+ font-size: large;
+ border-bottom: solid 1px black;
}
.inputSearchBar {
- width: 50%;
+ width: 70%;
}
.btnRechercher {
border: solid black 1px;
@@ -29,7 +30,7 @@
.playlistListContainer {
max-width: 100%;
- height: 70vh;
+ height: 60vh;
overflow-y: scroll;
padding: 0px;
}
@@ -42,7 +43,7 @@
.btnPlaylist {
background-color: white;
padding: 20px;
- border-bottom: solid 2px black;
+ border-bottom: solid 1px black;
width: 100%;
}
.btnPlaylist:hover {
@@ -57,19 +58,12 @@
// Bouton creer playlist -------------------------------------------------
.btnCreerPlaylistContainer {
- height: 4vh;
- margin: 0px;
- padding: 0px;
+ margin: 0px 0px 0px 0px;
+ background-color: #dcdcdc;
+ font-size: large;
+ border-top: solid 1px black;
}
.btnCreerPlaylist {
- background-color: #dcdcdc;
- border-top: solid 2px black;
- border-bottom: solid 2px black;
- height: 100%;
- width: 100%;
- padding: 10px;
-}
-.btnCreerPlaylist:hover {
- background-color: #969696;
+ margin: 0px 0px 0px 0px;
}
diff --git a/src/app/user/myPlaylists/playlist-list/playlist-list.component.ts b/src/app/user/myPlaylists/playlist-list/playlist-list.component.ts
index cead58e..bb48030 100644
--- a/src/app/user/myPlaylists/playlist-list/playlist-list.component.ts
+++ b/src/app/user/myPlaylists/playlist-list/playlist-list.component.ts
@@ -3,7 +3,6 @@ import {ThemeService} from "../../../utils/services/theme/theme.service";
import {Playlist} from "../../../utils/interfaces/playlist";
import {MessageService} from "../../../utils/services/message/message.service";
import {MatDialog} from "@angular/material/dialog";
-import {PopupAddVideoToPlaylistsComponent} from "../../../utils/components/popup-add-video-to-playlists/popup-add-video-to-playlists.component";
import {MatSnackBar} from "@angular/material/snack-bar";
import {PopupCreatePlaylistComponent} from "../../../utils/components/popup-create-playlist/popup-create-playlist.component";
@@ -46,7 +45,7 @@ export class PlaylistListComponent implements OnInit
onCreatePlaylist(): void
{
- const config = { width: '15%', data: this.tabPlaylist };
+ const config = { width: '30%', data: this.tabPlaylist };
this.dialog
.open(PopupCreatePlaylistComponent, config )
.afterClosed()
diff --git a/src/app/user/myPlaylists/video-list/video-list.component.html b/src/app/user/myPlaylists/video-list/video-list.component.html
index dd8cb32..7c4ff5f 100644
--- a/src/app/user/myPlaylists/video-list/video-list.component.html
+++ b/src/app/user/myPlaylists/video-list/video-list.component.html
@@ -2,8 +2,7 @@
-
-
+
@@ -18,7 +17,6 @@
Aucune playlist selectionnée
-
@@ -66,8 +64,8 @@
-
diff --git a/src/app/user/myPlaylists/video-list/video-list.component.scss b/src/app/user/myPlaylists/video-list/video-list.component.scss
index 71cbfa7..205f6f1 100644
--- a/src/app/user/myPlaylists/video-list/video-list.component.scss
+++ b/src/app/user/myPlaylists/video-list/video-list.component.scss
@@ -2,51 +2,46 @@
background-color: white ;
text-align: center;
width: 35vw;
- height: 79vh;
- margin: 3vh 0vh 3vh 0vh;
+ margin: 1vh 0vh 3vh 0vh;
padding: 0px;
- border: solid 1px black;
+ border: solid 2px black;
}
// TopBorder --------------------------------------------------------
.topBorder {
- height: 4vh;
+ margin: 0px 0px 0px 0px;
background-color: #dcdcdc;
text-align: left;
- padding: 7px;
- display: inline-block;
+ padding: 5px 0px 5px 5px;
border-bottom: solid 1px black;
}
.spanPlayListTitle {
- height: 100%;
- padding: 0px;
- font-size: x-large;
+ font-size: large;
font-weight: bold;
}
-
-
// Liste des videos ------------------------------------------------
.listVideoContainer {
- height: 73vh;
+ height: 65vh;
background-color: white;
padding: 0px;
overflow-y: scroll;
}
.videoContainer {
- border-bottom: solid 2px black;
+ border-bottom: solid 1px black;
padding: 25px;
}
// BottomBorder --------------------------------------------------------
.bottomBorder {
- height: 2vh;
+ margin: 0px 0px 0px 0px;
background-color: #dcdcdc;
border-top: solid 1px black;
border-bottom: solid 1px black;
+ font-size: large;
}
diff --git a/src/app/user/myProfil/page-profil-user/page-profil-user.component.html b/src/app/user/myProfil/page-profil-user/page-profil-user.component.html
index ac1e6be..0fdbc78 100644
--- a/src/app/user/myProfil/page-profil-user/page-profil-user.component.html
+++ b/src/app/user/myProfil/page-profil-user/page-profil-user.component.html
@@ -9,49 +9,13 @@
-
![]()
+
-
-
-
Login:
-
{{user.login}}
-
-
-
-
-
Mail:
-
{{user.mail}}
-
-
-
-
-
Date de naissance:
-
{{ user.dateOfBirth | date:'dd/LL/YYYY' }}
-
-
-
-
-
Sexe:
-
- Homme
- Femme
-
-
-
-
-
-
-
-
-
Date de création:
-
{{ user.createdAt | date:'dd/LL/YYYY' }}
+
+
+
+
@@ -61,6 +25,68 @@
-
+
+
+
+
+
+
+
+
+
+
+
Login:
+
{{user.login}}
+
+
+
+
+
Mail:
+
{{user.mail}}
+
+
+
+
+
Sexe:
+
+ Homme
+ Femme
+
+
+
+
+
+
Date de création:
+
{{ user.createdAt | date:'dd/LL/YYYY' }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
Date de naissance:
+
{{ user.dateOfBirth | date:'dd/LL/YYYY' }}
+
+
+
+
+
+
+
diff --git a/src/app/user/myProfil/page-profil-user/page-profil-user.component.scss b/src/app/user/myProfil/page-profil-user/page-profil-user.component.scss
index 966c9a2..ae34d41 100644
--- a/src/app/user/myProfil/page-profil-user/page-profil-user.component.scss
+++ b/src/app/user/myProfil/page-profil-user/page-profil-user.component.scss
@@ -8,7 +8,7 @@
.boite {
margin-left: auto;
margin-right: auto;
- width: 25%;
+ width: 70%;
margin-top: 10vh;
border: solid 3px;
border-radius: 10px;
@@ -24,6 +24,7 @@
border-color: white;
}
+// --------------------------------------------------------------------------------------------
img {
margin: 0px 0px 10px 0px;
@@ -34,6 +35,7 @@ img {
font-size: xxx-large;
}
+// --------------------------------------------------------------------------------------------
.myRow {
margin: 15px 0px 15px 0px;
@@ -50,6 +52,21 @@ img {
margin: 0px;
}
+// --------------------------------------------------------------------------------------------
+
+.interestsContainer {
+ width: 70%;
+ height: 15vh;
+ overflow-y: scroll;
+ border: 1px solid black;
+}
+
+.interest {
+ border-bottom: 1px solid #dcdcdc;
+ padding: 5px 5px 5px 5px;
+}
+
+// --------------------------------------------------------------------------------------------
.btnContainer {
text-align: center;
@@ -59,3 +76,5 @@ img {
border: solid 1px black;
background-color: white;
}
+
+
diff --git a/src/app/user/myProfil/popup-update-user/popup-update-user.component.ts b/src/app/user/myProfil/popup-update-user/popup-update-user.component.ts
index ac0911d..38980e9 100644
--- a/src/app/user/myProfil/popup-update-user/popup-update-user.component.ts
+++ b/src/app/user/myProfil/popup-update-user/popup-update-user.component.ts
@@ -78,6 +78,10 @@ export class PopupUpdateUserComponent implements OnInit
this.errorMessage = "Email invalide" ;
this.hasError = true;
}
+ else if((this.userCopy.dateOfBirth === undefined) || (this.userCopy.dateOfBirth === null)) {
+ this.errorMessage = "Veuillez remplir le champ 'date de naissance'.";
+ this.hasError = true;
+ }
else if(this.changePassword) {
if (this.newPassword.length === 0) {
this.errorMessage = "Veuillez remplir le champ 'mot de passe'" ;
diff --git a/src/app/user/search/page-search/page-search.component.html b/src/app/user/search/page-search/page-search.component.html
index 5caaee0..0fefb07 100644
--- a/src/app/user/search/page-search/page-search.component.html
+++ b/src/app/user/search/page-search/page-search.component.html
@@ -2,7 +2,7 @@
-
+
@@ -13,7 +13,7 @@
-
+
@@ -44,7 +44,6 @@
-
@@ -70,6 +69,7 @@
+
diff --git a/src/app/user/search/page-search/page-search.component.scss b/src/app/user/search/page-search/page-search.component.scss
index 7e94add..524f35d 100644
--- a/src/app/user/search/page-search/page-search.component.scss
+++ b/src/app/user/search/page-search/page-search.component.scss
@@ -11,22 +11,23 @@
max-width: 100vw;
height: 100vh;
overflow-x: hidden;
+ overflow-y: scroll;
}
.inputSearchBar {
width: 50%;
- font-size: x-large;
+ font-size: large;
}
.btnRechercher {
border: solid black 1px;
border-radius: 5px;
- font-size: x-large;
+ font-size: large;
}
.celluleGrilleVideo {
- border: solid 4px;
+ border: solid 2px;
border-radius: 5px;
width: 100%;
}
diff --git a/src/app/user/search/page-search/page-search.component.ts b/src/app/user/search/page-search/page-search.component.ts
index 234bf18..c6eca80 100644
--- a/src/app/user/search/page-search/page-search.component.ts
+++ b/src/app/user/search/page-search/page-search.component.ts
@@ -1,7 +1,6 @@
import { Component, OnInit } from '@angular/core';
import {MessageService} from "../../../utils/services/message/message.service";
import {FictitiousDatasService} from "../../../utils/services/fictitiousDatas/fictitious-datas.service";
-import {AddVideoToPlaylistsService} from "../../../utils/services/addVideoToPlaylists/add-video-to-playlists.service";
import {Video} from "../../../utils/interfaces/video";
import {Advert} from "../../../utils/interfaces/advert";
import {ThemeService} from "../../../utils/services/theme/theme.service";
@@ -37,7 +36,7 @@ export class PageSearchComponent implements OnInit
ngOnInit(): void
{
// --- FAUX CODE ---
- this.tabVideo = this.fictitiousDatasService.getTabVideo(5);
+ this.tabVideo = this.fictitiousDatasService.getTabVideo(11);
this.ad1 = this.fictitiousDatasService.getAdvert();
this.ad2 = this.fictitiousDatasService.getAdvert();
diff --git a/src/app/user/search/video-cell/video-cell.component.html b/src/app/user/search/video-cell/video-cell.component.html
deleted file mode 100644
index 009fbff..0000000
--- a/src/app/user/search/video-cell/video-cell.component.html
+++ /dev/null
@@ -1,11 +0,0 @@
-
-
-
-
-
- {{video.title}}
-
-
-
diff --git a/src/app/user/search/video-cell/video-cell.component.scss b/src/app/user/search/video-cell/video-cell.component.scss
deleted file mode 100644
index 7d9013d..0000000
--- a/src/app/user/search/video-cell/video-cell.component.scss
+++ /dev/null
@@ -1,18 +0,0 @@
-.conteneur {
- text-align: center;
- border: solid 2px;
- border-radius: 5px;
- padding-top: 15px;
-}
-
-.lightTheme .conteneur {
- background-color: #ffffff;
- border-color: black;
- font-color: black;
-}
-
-.darkTheme .conteneur {
- background-color: #c8c8c8;
- border-color: #ffffff;
- font-color: white;
-}
diff --git a/src/app/user/search/video-cell/video-cell.component.spec.ts b/src/app/user/search/video-cell/video-cell.component.spec.ts
deleted file mode 100644
index c41f534..0000000
--- a/src/app/user/search/video-cell/video-cell.component.spec.ts
+++ /dev/null
@@ -1,25 +0,0 @@
-import { ComponentFixture, TestBed } from '@angular/core/testing';
-
-import { VideoCellComponent } from './video-cell.component';
-
-describe('RectangleVideoComponent', () => {
- let component: VideoCellComponent;
- let fixture: ComponentFixture
;
-
- beforeEach(async () => {
- await TestBed.configureTestingModule({
- declarations: [ VideoCellComponent ]
- })
- .compileComponents();
- });
-
- beforeEach(() => {
- fixture = TestBed.createComponent(VideoCellComponent);
- component = fixture.componentInstance;
- fixture.detectChanges();
- });
-
- it('should create', () => {
- expect(component).toBeTruthy();
- });
-});
diff --git a/src/app/user/search/video-cell/video-cell.component.ts b/src/app/user/search/video-cell/video-cell.component.ts
deleted file mode 100644
index 2973699..0000000
--- a/src/app/user/search/video-cell/video-cell.component.ts
+++ /dev/null
@@ -1,44 +0,0 @@
-import {Component, Input, OnInit } from '@angular/core';
-import {VideoUrlService} from "../../../utils/services/videoUrl/video-url.service";
-import {AddVideoToPlaylistsService} from "../../../utils/services/addVideoToPlaylists/add-video-to-playlists.service";
-import {Video} from "../../../utils/interfaces/video";
-import {ThemeService} from "../../../utils/services/theme/theme.service";
-import {MessageService} from "../../../utils/services/message/message.service";
-import {UserHistoryService} from "../../../utils/services/userHistory/userHistory.service";
-
-
-
-@Component({
- selector: 'app-video-cell',
- templateUrl: './video-cell.component.html',
- styleUrls: ['./video-cell.component.scss']
-})
-export class VideoCellComponent implements OnInit
-{
- @Input() video: Video;
- safeUrl;
- tabVideoUrlClicked: string[] = [];
-
- constructor( private videoUrlService: VideoUrlService,
- private addVideoToPlaylistsService: AddVideoToPlaylistsService,
- public themeService: ThemeService,
- private messageService: MessageService,
- private historiqueService: UserHistoryService ) {}
-
- ngOnInit(): void
- {
- this.safeUrl = this.videoUrlService.safeUrl(this.video.url);
- }
-
- onAdd(): void
- {
- this.addVideoToPlaylistsService.run(this.video);
- }
-
- onIframeClick()
- {
- console.log("onIframeClick: " + this.video.title);
- this.historiqueService.addVideoToHistoque(this.video);
- }
-
-}
diff --git a/src/app/user/search/video-grid/video-grid.component.html b/src/app/user/search/video-grid/video-grid.component.html
index 66f11ef..b94e6f8 100644
--- a/src/app/user/search/video-grid/video-grid.component.html
+++ b/src/app/user/search/video-grid/video-grid.component.html
@@ -1,11 +1,30 @@
-
-
+
+
+
+
+
+
+
+
+
+
+
+ {{tronquage(tabVideo[indexPage+k].title)}}
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/app/user/search/video-grid/video-grid.component.scss b/src/app/user/search/video-grid/video-grid.component.scss
index 8d2c9c1..5a4be0e 100644
--- a/src/app/user/search/video-grid/video-grid.component.scss
+++ b/src/app/user/search/video-grid/video-grid.component.scss
@@ -1,14 +1,40 @@
-.conteneur {
- height: 100%;
+mat-grid-list {
+ margin: 0px 0px 0px 0px;
+ padding: 0px 0px 0px 0px;
}
-nav ul {
- overflow: hidden;
- overflow-y: scroll;
- height: 75vh;
- padding: 30px;
+mat-grid-tile {
+ margin: 0px 0px 0px 0px;
+ padding: 0px 0px 0px 0px;
+ border: solid 1px black;
}
-.ligne {
- margin: 30px 0px 30px 0px;
+
+// ---------------------------------------------------------------------------------------------
+
+
+.myCell {
+ margin: 0px 0px 0px 0px;
+ padding: 15px 0px 0px 0px;
+}
+
+iframe {
+ padding: 0px 0px 0px 0px;
+ width: 85%;
+ height: 15vh;
+}
+
+
+// ---------------------------------------------------------------------------------------------
+
+
+.btnContainer {
+ margin: 0px 0px 0px 0px;
+ padding: 0px 0px 0px 0px;
+ text-align: center;
+}
+
+.btnPaginator {
+ margin: 0px 0px 0px 0px;
+ padding: 0px 0px 0px 0px;
}
diff --git a/src/app/user/search/video-grid/video-grid.component.ts b/src/app/user/search/video-grid/video-grid.component.ts
index 929d45c..8ebcdfb 100644
--- a/src/app/user/search/video-grid/video-grid.component.ts
+++ b/src/app/user/search/video-grid/video-grid.component.ts
@@ -1,6 +1,8 @@
-import {Component, Input, OnChanges} from '@angular/core';
+import {Component, Input, OnChanges } from '@angular/core';
import {Video} from "../../../utils/interfaces/video";
import {UserHistoryService} from "../../../utils/services/userHistory/userHistory.service";
+import {AddVideoToPlaylistsService} from "../../../utils/services/addVideoToPlaylists/add-video-to-playlists.service";
+import {VideoUrlService} from "../../../utils/services/videoUrl/video-url.service";
@Component({
@@ -11,31 +13,33 @@ import {UserHistoryService} from "../../../utils/services/userHistory/userHistor
export class VideoGridComponent implements OnChanges
{
@Input() tabVideo: Video[] = [];
- tabTriplet = [];
+ indexPage: number = 0;
-
- constructor(private historiqueService: UserHistoryService) {}
+ constructor( private historiqueService: UserHistoryService,
+ private addVideoToPlaylistsService: AddVideoToPlaylistsService,
+ private videoUrlService: VideoUrlService ) {}
ngOnChanges(): void
{
- this.historiqueService.clearTabVideoUrlClicked();
+ //this.historiqueService.clearTabVideoUrlClicked();
+ }
- this.tabTriplet = [];
- let n = this.tabVideo.length;
- let i = 0;
- while(i < n)
- {
- let triplet = []
- let compteur = 0;
- while((compteur < 3) && (i < n))
- {
- triplet.push(this.tabVideo[i]);
- i++ ;
- compteur++ ;
- }
- this.tabTriplet.push(triplet)
- }
+ onAdd(video: Video): void
+ {
+ this.addVideoToPlaylistsService.run(video);
+ }
+
+ onIframeClick(video: Video)
+ {
+ console.log("onIframeClick: " + video.title);
+ this.historiqueService.addVideoToHistoque(video);
+ }
+
+ tronquage(str: string)
+ {
+ if(str.length < 30) return str;
+ else return str.substring(0, 30) + "..." ;
}
}