mirror of
https://github.com/BinaryAlley/Nemera.git
synced 2026-12-03 14:11:10 +00:00
Adds music page play affordances and shuffle playback
Adds play and shuffle actions to music library, artist, and album cards. Adds the library play context and the uniform shuffle endpoint. Expands the player bar with queue covers, now playing details, and release type. Updates the bundled themes, API documentation, and the user manual.
This commit is contained in:
1 parent
93821a2776
commit
067e9a21d0
132 files changed
+2935
-715
No files matched your search
@@ -26,6 +26,11 @@ public class MusicAlbumDto
|
||||
/// </summary>
|
||||
public Guid ArtistId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the name of the artist the album belongs to.
|
||||
/// </summary>
|
||||
public string ArtistName { get; set; } = string.Empty;
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the Id of the media library this album belongs to.
|
||||
/// </summary>
|
||||
|
||||
+48
@@ -0,0 +1,48 @@
|
||||
#region ========================================================================= USING =====================================================================================
|
||||
using System;
|
||||
using System.Diagnostics;
|
||||
#endregion
|
||||
|
||||
namespace Lumina.Presentation.Web.Common.DTO.AudioLibrary.MusicLibrary;
|
||||
|
||||
/// <summary>
|
||||
/// Data transfer object for a track returned by a randomized shuffle query.
|
||||
/// </summary>
|
||||
[DebuggerDisplay("Title: {Title}")]
|
||||
public class MusicShuffleTrackDto
|
||||
{
|
||||
/// <summary>
|
||||
/// Gets or sets the Id of the track.
|
||||
/// </summary>
|
||||
public Guid TrackId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the title of the track.
|
||||
/// </summary>
|
||||
public string Title { get; set; } = string.Empty;
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the duration of the track in seconds.
|
||||
/// </summary>
|
||||
public int DurationInSeconds { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the Id of the album the track belongs to.
|
||||
/// </summary>
|
||||
public Guid AlbumId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the title of the album the track belongs to.
|
||||
/// </summary>
|
||||
public string AlbumTitle { get; set; } = string.Empty;
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the Id of the artist the album belongs to.
|
||||
/// </summary>
|
||||
public Guid ArtistId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the path of the cover of the album, if available.
|
||||
/// </summary>
|
||||
public string? CoverPath { get; set; }
|
||||
}
|
||||
+24
@@ -0,0 +1,24 @@
|
||||
#region ========================================================================= USING =====================================================================================
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Diagnostics;
|
||||
#endregion
|
||||
|
||||
namespace Lumina.Presentation.Web.Common.Requests.Library.AudioLibrary.MusicLibrary.Tracks;
|
||||
|
||||
/// <summary>
|
||||
/// Represents a request to draw a random selection of tracks from a media library, an artist or an album.
|
||||
/// </summary>
|
||||
/// <param name="LibraryId">The unique identifier of the media library the tracks are sampled from. Required.</param>
|
||||
/// <param name="Count">The maximum number of tracks to return. Required.</param>
|
||||
/// <param name="ArtistId">The unique identifier of the artist whose tracks are sampled. Optional.</param>
|
||||
/// <param name="AlbumId">The unique identifier of the album whose tracks are sampled. Optional.</param>
|
||||
/// <param name="ExcludedTrackIds">The tracks that must not be returned, usually the ones already in the queue. Optional.</param>
|
||||
[DebuggerDisplay("LibraryId: {LibraryId} Count: {Count}")]
|
||||
public record ShuffleTracksRequest(
|
||||
Guid LibraryId,
|
||||
int Count,
|
||||
Guid? ArtistId,
|
||||
Guid? AlbumId,
|
||||
List<Guid>? ExcludedTrackIds
|
||||
);
|
||||
@@ -21,6 +21,7 @@ public static partial class ApiRoutes
|
||||
public const string UPDATE_ALBUM_COVER = "libraries/{libraryId}/artists/{artistId}/albums/{albumId}/cover";
|
||||
public const string DELETE_ALBUM = "libraries/{libraryId}/artists/{artistId}/albums/{albumId}";
|
||||
public const string GET_ALBUM_TRACKS_LITE = "libraries/{libraryId}/artists/{artistId}/albums/{albumId}/tracks/lite";
|
||||
public const string SHUFFLE_TRACKS = "libraries/{libraryId}/tracks/shuffle";
|
||||
public const string GET_TRACK = "libraries/{libraryId}/artists/{artistId}/albums/{albumId}/tracks/{trackId}";
|
||||
public const string UPDATE_TRACK = "libraries/{libraryId}/artists/{artistId}/albums/{albumId}/tracks/{trackId}";
|
||||
public const string DELETE_TRACK = "libraries/{libraryId}/artists/{artistId}/albums/{albumId}/tracks/{trackId}";
|
||||
|
||||
@@ -24,6 +24,7 @@ public static partial class WebRoutes
|
||||
public const string UPDATE_ALBUM_COVER = "{culture}/library/audio-library/music-library/artists/{artistId}/albums/{albumId}/api-update-cover";
|
||||
public const string DELETE_ALBUM = "{culture}/library/audio-library/music-library/artists/{artistId}/albums/{albumId}/api-delete-album";
|
||||
public const string GET_ALBUM_TRACKS = "{culture}/library/audio-library/music-library/artists/{artistId}/albums/{albumId}/tracks/api-get-tracks";
|
||||
public const string SHUFFLE_TRACKS = "{culture}/library/audio-library/music-library/tracks/api-shuffle-tracks";
|
||||
public const string TRACK = "{culture}/library/audio-library/music-library/artists/{artistId}/albums/{albumId}/tracks/{trackId}";
|
||||
public const string GET_TRACK = "{culture}/library/audio-library/music-library/artists/{artistId}/albums/{albumId}/tracks/{trackId}/api-get-track";
|
||||
public const string SAVE_TRACK = "{culture}/library/audio-library/music-library/artists/{artistId}/albums/{albumId}/tracks/{trackId}/api-save-track";
|
||||
|
||||
Reference in new issue
Block a user