-
-
-
-
-
-
+
+
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
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 dec9f62..f80fc45 100644
--- a/src/app/user/search/page-search/page-search.component.scss
+++ b/src/app/user/search/page-search/page-search.component.scss
@@ -17,13 +17,10 @@
//--------------------------------------------------------------------------------------------
.inputSearchBar {
- width: 50%;
+ width: 40%;
font-size: large;
-}
-.btnRechercher {
- border: solid black 1px;
+ border-bottom: 10px;
border-radius: 5px;
- font-size: large;
}
//--------------------------------------------------------------------------------------------
@@ -70,3 +67,24 @@
-ms-transform: translateY(-50%);
transform: translateY(-50%);
}
+
+
+
+// -------------------------------------------------------------------------
+
+
+// aura
+::ng-deep .mat-checkbox-ripple .mat-ripple-element {
+ background-color: grey !important;
+}
+
+// contenu coche
+::ng-deep .mat-checkbox-checked.mat-accent .mat-checkbox-background {
+ background-color: black !important;
+}
+
+// indeterminate
+::ng-deep .mat-checkbox .mat-checkbox-frame {
+ border: solid 1px black !important;
+ background-color: white !important;
+}
diff --git a/src/app/user/utils/services/addVideoToPlaylists/add-video-to-playlists.service.ts b/src/app/user/utils/services/addVideoToPlaylists/add-video-to-playlists.service.ts
index fa45fb1..88aadaf 100644
--- a/src/app/user/utils/services/addVideoToPlaylists/add-video-to-playlists.service.ts
+++ b/src/app/user/utils/services/addVideoToPlaylists/add-video-to-playlists.service.ts
@@ -77,7 +77,7 @@ export class AddVideoToPlaylistsService
case "annulation":
case null:
case undefined:
- message = "Annulation de l'opération" ;
+ message = "Opération annulée" ;
break;
}
const config = { duration: 1000, panelClass: "custom-class" };
diff --git a/src/app/user/utils/services/videoUrl/video-url.service.spec.ts b/src/app/user/utils/services/videoUrl/video-url.service.spec.ts
deleted file mode 100644
index 7ded62b..0000000
--- a/src/app/user/utils/services/videoUrl/video-url.service.spec.ts
+++ /dev/null
@@ -1,16 +0,0 @@
-import { TestBed } from '@angular/core/testing';
-
-import { VideoUrlService } from './video-url.service';
-
-describe('VideoUrlService', () => {
- let service: VideoUrlService;
-
- beforeEach(() => {
- TestBed.configureTestingModule({});
- service = TestBed.inject(VideoUrlService);
- });
-
- it('should be created', () => {
- expect(service).toBeTruthy();
- });
-});
diff --git a/src/app/user/utils/services/videoUrl/video-url.service.ts b/src/app/user/utils/services/videoUrl/video-url.service.ts
deleted file mode 100644
index 4f7c2be..0000000
--- a/src/app/user/utils/services/videoUrl/video-url.service.ts
+++ /dev/null
@@ -1,56 +0,0 @@
-import { Injectable } from '@angular/core';
-import {DomSanitizer, SafeResourceUrl} from "@angular/platform-browser";
-
-@Injectable({
- providedIn: 'root'
-})
-export class VideoUrlService
-{
-
- constructor(private _sanitizer: DomSanitizer) { }
-
-
- safeUrl(videoId: string, source: string): SafeResourceUrl
- {
- let videoUrl = "" ;
- if(source === 'youtube') videoUrl = "https://www.youtube.com/embed/" + videoId;
- else if(source === 'dailymotion') videoUrl = "https://www.dailymotion.com/embed/video/" + videoId;
- return this._sanitizer.bypassSecurityTrustResourceUrl(videoUrl);
- }
-
- /*
- safeUrl(videoUrl: string): SafeResourceUrl
- {
- if(videoUrl.includes("youtu")) videoUrl = this.youtubeSafeUrl(videoUrl);
- if(videoUrl.includes("dailymotion")) videoUrl = this.daylimotionSafeUrl(videoUrl);
- return this._sanitizer.bypassSecurityTrustResourceUrl(videoUrl);
- }
-
-
- youtubeSafeUrl(videoUrl: string): string
- {
- if(videoUrl.includes("youtu.be"))
- {
- //console.log("de la forme: https://youtu.be/blablabla");
- const tab = videoUrl.split("youtu.be/");
- videoUrl = tab[0] + "www.youtube.com/embed/" + tab[1];
- }
- else if(videoUrl.includes("youtube.com/watch?v="))
- {
- //console.log("de la forme: https://www.youtube.com/watch?v=blablabla");
- const tab = videoUrl.split("youtube.com/watch?v=");
- videoUrl = tab[0] + "youtube.com/embed/" + tab[1];
- }
- return videoUrl;
- }
-
-
- daylimotionSafeUrl(videoUrl: string): string
- {
- //console.log("de la forme: https://www.dailymotion.com/video/blablabla");
- const n = "https://www.dailymotion.com/".length;
- return videoUrl.slice(0, n) + "embed/" + videoUrl.slice(n);
- }
- */
-
-}
diff --git a/src/app/user/watching/page-watching-video/page-watching-video.component.html b/src/app/user/watching/page-watching-video/page-watching-video.component.html
index 2135644..e2179d4 100644
--- a/src/app/user/watching/page-watching-video/page-watching-video.component.html
+++ b/src/app/user/watching/page-watching-video/page-watching-video.component.html
@@ -11,34 +11,39 @@
-
-
-
-
+
+
-
-
-
-
-
-
+
+
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
@@ -147,7 +152,7 @@
-
diff --git a/src/app/user/watching/page-watching-video/page-watching-video.component.scss b/src/app/user/watching/page-watching-video/page-watching-video.component.scss
index 823e9cb..52a8508 100644
--- a/src/app/user/watching/page-watching-video/page-watching-video.component.scss
+++ b/src/app/user/watching/page-watching-video/page-watching-video.component.scss
@@ -17,13 +17,10 @@
//--------------------------------------------------------------------------------------------
.inputSearchBar {
- width: 50%;
+ width: 40%;
font-size: large;
-}
-.btnRechercher {
- border: solid black 1px;
+ border-bottom: 10px;
border-radius: 5px;
- font-size: large;
}
//--------------------------------------------------------------------------------------------
@@ -96,3 +93,23 @@
border-bottom: solid 1px black;
font-size: large;
}
+
+
+// -------------------------------------------------------------------------
+
+
+// aura
+::ng-deep .mat-checkbox-ripple .mat-ripple-element {
+ background-color: grey !important;
+}
+
+// contenu coche
+::ng-deep .mat-checkbox-checked.mat-accent .mat-checkbox-background {
+ background-color: black !important;
+}
+
+// indeterminate
+::ng-deep .mat-checkbox .mat-checkbox-frame {
+ border: solid 1px black !important;
+ background-color: white !important;
+}
diff --git a/src/app/user/watching/page-watching-video/page-watching-video.component.ts b/src/app/user/watching/page-watching-video/page-watching-video.component.ts
index 7dd6b24..02ec8df 100644
--- a/src/app/user/watching/page-watching-video/page-watching-video.component.ts
+++ b/src/app/user/watching/page-watching-video/page-watching-video.component.ts
@@ -6,9 +6,9 @@ import {FictitiousVideosService} from "../../../utils/services/fictitiousDatas/f
import {FictitiousAdvertsService} from "../../../utils/services/fictitiousDatas/fictitiousAdverts/fictitious-adverts.service";
import {ThemeService} from "../../../utils/services/theme/theme.service";
import {ActivatedRoute, Router} from "@angular/router";
-import {VideoUrlService} from "../../utils/services/videoUrl/video-url.service";
import {AddVideoToPlaylistsService} from "../../utils/services/addVideoToPlaylists/add-video-to-playlists.service";
import {PlaylistDB} from "../../../utils/interfaces/playlist";
+import {DomSanitizer, SafeResourceUrl} from "@angular/platform-browser";
@@ -47,7 +47,7 @@ export class PageWatchingVideoComponent implements OnInit
public themeService: ThemeService,
private activatedRoute: ActivatedRoute,
private router: Router,
- public videoUrlService: VideoUrlService,
+ private _sanitizer: DomSanitizer,
private addVideoToPlaylistsService: AddVideoToPlaylistsService ) { }
@@ -109,4 +109,12 @@ export class PageWatchingVideoComponent implements OnInit
else if(this.from === 'history') this.router.navigateByUrl("/user/history");
}
+
+ safeUrl(videoId: string, source: string): SafeResourceUrl
+ {
+ let videoUrl = "" ;
+ if(source === 'youtube') videoUrl = "https://www.youtube.com/embed/" + videoId;
+ else if(source === 'dailymotion') videoUrl = "https://www.dailymotion.com/embed/video/" + videoId;
+ return this._sanitizer.bypassSecurityTrustResourceUrl(videoUrl);
+ }
}