Remove redundant comments and update list initialization
Removed unnecessary inline comments from SearchMovies.razor, SearchShows.razor, Movie.cs, and MovieService.cs to improve code readability. Also updated Movie.Results list initialization to use collection expression syntax.
This commit is contained in:
@@ -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');
|
||||
|
||||
@@ -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 {
|
||||
|
||||
@@ -49,7 +49,6 @@ namespace MovieActorLookup.Models.Movies
|
||||
[JsonPropertyName("belongs_to_collection")]
|
||||
public CollectionInfo BelongsToCollection { get; set; }
|
||||
|
||||
// Constructor
|
||||
public Movie()
|
||||
{
|
||||
GenreIds = new List<int>();
|
||||
@@ -77,7 +76,7 @@ namespace MovieActorLookup.Models.Movies
|
||||
public int Page { get; set; }
|
||||
|
||||
[JsonPropertyName("results")]
|
||||
public List<Movie> Results { get; set; } = new List<Movie>();
|
||||
public List<Movie> Results { get; set; } = [];
|
||||
|
||||
[JsonPropertyName("total_pages")]
|
||||
public int TotalPages { get; set; }
|
||||
|
||||
@@ -101,7 +101,6 @@ public class MovieService
|
||||
|
||||
if (response.IsSuccessful)
|
||||
{
|
||||
// Deserialize the response into the ActorFilmography class
|
||||
var actorFilmography = JsonSerializer.Deserialize<ActorMovieFilmography>(response.Content, new JsonSerializerOptions { PropertyNameCaseInsensitive = true });
|
||||
return actorFilmography;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user