diff --git a/MovieActorLookup/Components/Pages/SearchMovies.razor b/MovieActorLookup/Components/Pages/SearchMovies.razor index 37e2bdf..a1a6f7a 100644 --- a/MovieActorLookup/Components/Pages/SearchMovies.razor +++ b/MovieActorLookup/Components/Pages/SearchMovies.razor @@ -835,7 +835,6 @@ window.startAnimations = () => { console.log('Starting movie page animations...'); - // Enhanced spinner animation with easing const spinners = document.querySelectorAll('.spinner'); spinners.forEach((spinner, index) => { let rotation = 0; @@ -849,7 +848,6 @@ animate(); }); - // Enhanced loading dots with wave effect const loadingDots = document.querySelectorAll('.loading-dot'); loadingDots.forEach((dot, index) => { setTimeout(() => { @@ -857,7 +855,6 @@ }, 50); }); - // Add stagger animation to movie cards const movieCards = document.querySelectorAll('.movie-card'); movieCards.forEach((card, index) => { card.style.opacity = '0'; @@ -870,7 +867,6 @@ }); }; - // Add parallax effect window.addEventListener('scroll', () => { const scrolled = window.pageYOffset; const parallaxElements = document.querySelectorAll('.search-container::before'); diff --git a/MovieActorLookup/Components/Pages/SearchShows.razor b/MovieActorLookup/Components/Pages/SearchShows.razor index 344679c..8e96108 100644 --- a/MovieActorLookup/Components/Pages/SearchShows.razor +++ b/MovieActorLookup/Components/Pages/SearchShows.razor @@ -766,7 +766,6 @@ window.startAnimations = () => { console.log('Starting TV show page animations...'); - // Enhanced spinner animation with easing const spinners = document.querySelectorAll('.spinner'); spinners.forEach((spinner, index) => { let rotation = 0; @@ -780,7 +779,6 @@ animate(); }); - // Enhanced loading dots with wave effect const loadingDots = document.querySelectorAll('.loading-dot'); loadingDots.forEach((dot, index) => { setTimeout(() => { @@ -788,7 +786,6 @@ }, 50); }); - // Add stagger animation to show cards const showCards = document.querySelectorAll('.show-card'); showCards.forEach((card, index) => { card.style.opacity = '0'; @@ -800,7 +797,6 @@ }, index * 100 + 200); }); - // Add floating animation to icons const icons = document.querySelectorAll('.input-icon'); icons.forEach((icon, index) => { setTimeout(() => { @@ -810,7 +806,6 @@ }); }; - // Add parallax effect window.addEventListener('scroll', () => { const scrolled = window.pageYOffset; const parallaxElements = document.querySelectorAll('.search-container::before'); @@ -819,7 +814,6 @@ }); }); - // Additional CSS for icon floating animation const style = document.createElement('style'); style.textContent = ` @@keyframes iconFloat { diff --git a/MovieActorLookup/Models/Movie/Movie.cs b/MovieActorLookup/Models/Movie/Movie.cs index 9eabd37..386df53 100644 --- a/MovieActorLookup/Models/Movie/Movie.cs +++ b/MovieActorLookup/Models/Movie/Movie.cs @@ -49,7 +49,6 @@ namespace MovieActorLookup.Models.Movies [JsonPropertyName("belongs_to_collection")] public CollectionInfo BelongsToCollection { get; set; } - // Constructor public Movie() { GenreIds = new List(); @@ -77,7 +76,7 @@ namespace MovieActorLookup.Models.Movies public int Page { get; set; } [JsonPropertyName("results")] - public List Results { get; set; } = new List(); + public List Results { get; set; } = []; [JsonPropertyName("total_pages")] public int TotalPages { get; set; } diff --git a/MovieActorLookup/Services/MovieService.cs b/MovieActorLookup/Services/MovieService.cs index 2fd57a5..912b113 100644 --- a/MovieActorLookup/Services/MovieService.cs +++ b/MovieActorLookup/Services/MovieService.cs @@ -101,7 +101,6 @@ public class MovieService if (response.IsSuccessful) { - // Deserialize the response into the ActorFilmography class var actorFilmography = JsonSerializer.Deserialize(response.Content, new JsonSerializerOptions { PropertyNameCaseInsensitive = true }); return actorFilmography; }