-
1">Tracks:
-
Track:
+
Track{{tracks.length > 1?"s":""}}:
@for (data of tracks; track data.id;) {
+ (auxclick)="onSelectTrack($event, data.id)"/>
} @empty {
Aucune piste accessible.
}
diff --git a/front/src/app/scene/album/album.ts b/front/src/app/scene/album/album.ts
index 18996b6..a90dd72 100644
--- a/front/src/app/scene/album/album.ts
+++ b/front/src/app/scene/album/album.ts
@@ -108,7 +108,7 @@ export class AlbumScene implements OnInit {
this.arianeService.navigateTrackEdit({ id: idSelected, newWindows: event.which === 2 });
}
}
- playAll(event: any): void {
+ playAll(): void {
let elements: number[] = [];
for (let iii = 0; iii < this.tracks.length; iii++) {
elements.push(this.tracks[iii].id);
@@ -116,7 +116,7 @@ export class AlbumScene implements OnInit {
this.playerService.clear();
this.playerService.setNewPlaylist(elements);
}
- playShuffle(event: any): void {
+ playShuffle(): void {
let elements: number[] = [];
for (let iii = 0; iii < this.tracks.length; iii++) {
elements.push(this.tracks[iii].id);
diff --git a/front/src/app/scene/album/albums.html b/front/src/app/scene/album/albums.html
index e9ecb7e..f48cea1 100644
--- a/front/src/app/scene/album/albums.html
+++ b/front/src/app/scene/album/albums.html
@@ -1,30 +1,13 @@
-
-
-
- {{name}}
-
-
- {{description}}
-
-
-
- play_arrow
-
-
- shuffle
-
-
-
-
-
-
-
-
-
+
-
+
Album{{albums.length > 1?"s":""}}:
+ [subValuesCallBack]="getArtistsString"/>
-
-
-
1">Tracks:
-
Track:
-
-
+ @if(tracks) {
+
+
+
Track{{tracks.length > 1?"s":""}}:
+ @for (data of tracks; track data.id;) {
+
+ }
-
+ }
\ No newline at end of file
diff --git a/front/src/app/scene/album/albums.ts b/front/src/app/scene/album/albums.ts
index 72a1afa..d4aac6e 100644
--- a/front/src/app/scene/album/albums.ts
+++ b/front/src/app/scene/album/albums.ts
@@ -45,9 +45,9 @@ export class AlbumsScene implements OnInit {
return this.albumService.getArtists(albumId);
}
ngOnInit() {
+ const self = this;
this.getArtistsString = (id: number) => { return self.getArtistsStringCallback(id); };
this.countTrack = (id: number) => { return self.countTrackCallback(id); };
- let self = this;
self.name = "All Albums";
self.description = "View all albums (no specific artist)";
@@ -94,7 +94,7 @@ export class AlbumsScene implements OnInit {
this.arianeService.navigateTrack({ trackId: idSelected, newWindows: event.which === 2 });
}
}
- playAll(event: any): void {
+ playAll(): void {
this.playerService.clear();
let self = this;
this.trackService.getData()
@@ -109,7 +109,7 @@ export class AlbumsScene implements OnInit {
console.log(`error to get list o ftrack ...`)
});
}
- playShuffle(event: any): void {
+ playShuffle(): void {
this.playerService.clear();
let self = this;
this.trackService.getData()
diff --git a/front/src/app/scene/artist/artist-album.html b/front/src/app/scene/artist/artist-album.html
index 0a464fa..91202c5 100644
--- a/front/src/app/scene/artist/artist-album.html
+++ b/front/src/app/scene/artist/artist-album.html
@@ -1,44 +1,23 @@
-
-
-
- {{name}}
-
-
- {{albumName}}
-
-
- {{albumDescription}}
-
-
-
- play_arrow
-
-
- shuffle
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
-
1">Tracks:
-
Track:
-
+
Track{{tracks.length > 1?"s":""}}:
+ @for (data of tracks; track data.id;) {
+
+ } @empty {
+ Aucune piste accessible.
+ }
\ No newline at end of file
diff --git a/front/src/app/scene/artist/artist-album.ts b/front/src/app/scene/artist/artist-album.ts
index 6a2425d..9f1063e 100644
--- a/front/src/app/scene/artist/artist-album.ts
+++ b/front/src/app/scene/artist/artist-album.ts
@@ -99,7 +99,7 @@ export class ArtistAlbumScene implements OnInit {
this.arianeService.navigateTrackEdit({ id: idSelected, newWindows: event.which === 2 });
}
}
- playAll(event: any): void {
+ playAll(): void {
let elements: number[] = [];
for (let iii = 0; iii < this.tracks.length; iii++) {
elements.push(this.tracks[iii].id);
@@ -107,7 +107,7 @@ export class ArtistAlbumScene implements OnInit {
this.playerService.clear();
this.playerService.setNewPlaylist(elements);
}
- playShuffle(event: any): void {
+ playShuffle(): void {
let elements: number[] = [];
for (let iii = 0; iii < this.tracks.length; iii++) {
elements.push(this.tracks[iii].id);
diff --git a/front/src/app/scene/artist/artist.html b/front/src/app/scene/artist/artist.html
index 66558d4..8293c61 100644
--- a/front/src/app/scene/artist/artist.html
+++ b/front/src/app/scene/artist/artist.html
@@ -1,48 +1,33 @@
-
-
-
- {{name}}
-
-
- {{description}}
-
-
-
-
-
- {{name}}
-
-
-
-
-
+ @if(!mediaIsNotFound && !mediaIsLoading && !playTrack) {
+
+
+ {{name}}
+
+
+
+ @if (covers && covers.length > 0) {
+
+
+
+ }
+ @else {
+
+ }
+
+
+ play_circle_outline
+
+
-
-
+
+ @if (artistName!=null) {
+
+ Artist: {{artistName}}
+
+ }
+ @if (albumName!=null) {
+
+ Album: {{albumName}}
+
+ }
+ @if (episode!=null) {
+
+ Episode: {{episode}}
+
+ }
+
+ generatedName: {{generatedName}}
+
+
+ {{description}}
+
+
+ }
+ @if (playTrack) {
+
+
+
+
+
+
+
+ @if (!displayNeedHide || !isPlaying) {
+
+ @if (!isPlaying) {
+
play_arrow
+ }
+ @else {
+
pause
+ }
+
stop
+
+
+
+
+
+ {{currentTimeDisplay}} / {{durationDisplay}}
+
+
+
+
fast_rewind
+
fast_forward
+
+
+ @if (!isFullScreen) {
+
fullscreen
+ }
+ @else {
+
fullscreen_exit
+ }
+
+
volume_up
+ @if (!isPlaying) {
+
play_circle_outline
+
fast_rewind
+
fast_forward
+ }
+
+ }
+
+
+ {{generatedName}}
+
+
+
+ highlight_off
-
-
-
- arrow_forward_ios
-
-
-
-
- arrow_back_ios
-
-
-
-
-
- Artist: {{artistName}}
-
-
- Album: {{albumName}}
-
-
- Episode: {{episode}}
-
-
- generatedName: {{generatedName}}
-
-
- {{description}}
-
-
-
-
-
-
-
-
-
-
-
play_arrow
-
pause
-
stop
-
-
-
+ @if (displayVolumeMenu && (!displayNeedHide || !isPlaying)) {
+
+
-
- {{currentTimeDisplay}} / {{durationDisplay}}
-
-
-
-
fast_rewind
-
fast_forward
-
-
-
fullscreen
-
fullscreen_exit
-
-
volume_up
-
-
play_circle_outline
-
fast_rewind
-
fast_forward
-
-
-
- {{generatedName}}
-
-
-
- highlight_off
-
-
-
-
+ }
-
+ }
\ No newline at end of file
diff --git a/front/src/app/scene/upload/upload.html b/front/src/app/scene/upload/upload.html
index eda4295..26c466c 100644
--- a/front/src/app/scene/upload/upload.html
+++ b/front/src/app/scene/upload/upload.html
@@ -32,207 +32,212 @@
-
-
- Meta-data:
-
+ @if(parsedElement.length !== 0) {
+
+ Meta-data:
+
+ }
-
-
-
-
-
-
+ @if(parsedElement.length !== 0) {
+
+
+
+
+
+
+
+
+
+ ^^^This title already exist !!!
+
+
+
+
+ delete
+
+
+
+
+
+
+
+
+
+ cloud_upload Upload
+
+
+
+
+
+
+
+
+
+
+
+
+ Track ID:
+ Title:
+
+
+
+
+ {{data.episode}}
+ {{data.name}}
+
+
+
+
-
-
-
- cloud_upload Upload
-
-
-
-
-
-
+ }
+ @if(parsedElement.length !== 0) {
+
+
+
+
-
-
-
-
-
- Track ID:
- Title:
-
-
-
-
- {{data.episode}}
- {{data.name}}
-
-
-
+
+
+
+
+
+ Rejected:
+
+ {{data.file.name}} ==> {{data.reason}}
+
+
+
+
+
-
-
-
-
-
-
-
-
-
-
-
- Rejected:
-
- {{data.file.name}} ==> {{data.reason}}
-
-
-
-
-
-
+ }