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 = () => {
|
window.startAnimations = () => {
|
||||||
console.log('Starting movie page animations...');
|
console.log('Starting movie page animations...');
|
||||||
|
|
||||||
// Enhanced spinner animation with easing
|
|
||||||
const spinners = document.querySelectorAll('.spinner');
|
const spinners = document.querySelectorAll('.spinner');
|
||||||
spinners.forEach((spinner, index) => {
|
spinners.forEach((spinner, index) => {
|
||||||
let rotation = 0;
|
let rotation = 0;
|
||||||
@@ -849,7 +848,6 @@
|
|||||||
animate();
|
animate();
|
||||||
});
|
});
|
||||||
|
|
||||||
// Enhanced loading dots with wave effect
|
|
||||||
const loadingDots = document.querySelectorAll('.loading-dot');
|
const loadingDots = document.querySelectorAll('.loading-dot');
|
||||||
loadingDots.forEach((dot, index) => {
|
loadingDots.forEach((dot, index) => {
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
@@ -857,7 +855,6 @@
|
|||||||
}, 50);
|
}, 50);
|
||||||
});
|
});
|
||||||
|
|
||||||
// Add stagger animation to movie cards
|
|
||||||
const movieCards = document.querySelectorAll('.movie-card');
|
const movieCards = document.querySelectorAll('.movie-card');
|
||||||
movieCards.forEach((card, index) => {
|
movieCards.forEach((card, index) => {
|
||||||
card.style.opacity = '0';
|
card.style.opacity = '0';
|
||||||
@@ -870,7 +867,6 @@
|
|||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
// Add parallax effect
|
|
||||||
window.addEventListener('scroll', () => {
|
window.addEventListener('scroll', () => {
|
||||||
const scrolled = window.pageYOffset;
|
const scrolled = window.pageYOffset;
|
||||||
const parallaxElements = document.querySelectorAll('.search-container::before');
|
const parallaxElements = document.querySelectorAll('.search-container::before');
|
||||||
|
|||||||
@@ -766,7 +766,6 @@
|
|||||||
window.startAnimations = () => {
|
window.startAnimations = () => {
|
||||||
console.log('Starting TV show page animations...');
|
console.log('Starting TV show page animations...');
|
||||||
|
|
||||||
// Enhanced spinner animation with easing
|
|
||||||
const spinners = document.querySelectorAll('.spinner');
|
const spinners = document.querySelectorAll('.spinner');
|
||||||
spinners.forEach((spinner, index) => {
|
spinners.forEach((spinner, index) => {
|
||||||
let rotation = 0;
|
let rotation = 0;
|
||||||
@@ -780,7 +779,6 @@
|
|||||||
animate();
|
animate();
|
||||||
});
|
});
|
||||||
|
|
||||||
// Enhanced loading dots with wave effect
|
|
||||||
const loadingDots = document.querySelectorAll('.loading-dot');
|
const loadingDots = document.querySelectorAll('.loading-dot');
|
||||||
loadingDots.forEach((dot, index) => {
|
loadingDots.forEach((dot, index) => {
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
@@ -788,7 +786,6 @@
|
|||||||
}, 50);
|
}, 50);
|
||||||
});
|
});
|
||||||
|
|
||||||
// Add stagger animation to show cards
|
|
||||||
const showCards = document.querySelectorAll('.show-card');
|
const showCards = document.querySelectorAll('.show-card');
|
||||||
showCards.forEach((card, index) => {
|
showCards.forEach((card, index) => {
|
||||||
card.style.opacity = '0';
|
card.style.opacity = '0';
|
||||||
@@ -800,7 +797,6 @@
|
|||||||
}, index * 100 + 200);
|
}, index * 100 + 200);
|
||||||
});
|
});
|
||||||
|
|
||||||
// Add floating animation to icons
|
|
||||||
const icons = document.querySelectorAll('.input-icon');
|
const icons = document.querySelectorAll('.input-icon');
|
||||||
icons.forEach((icon, index) => {
|
icons.forEach((icon, index) => {
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
@@ -810,7 +806,6 @@
|
|||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
// Add parallax effect
|
|
||||||
window.addEventListener('scroll', () => {
|
window.addEventListener('scroll', () => {
|
||||||
const scrolled = window.pageYOffset;
|
const scrolled = window.pageYOffset;
|
||||||
const parallaxElements = document.querySelectorAll('.search-container::before');
|
const parallaxElements = document.querySelectorAll('.search-container::before');
|
||||||
@@ -819,7 +814,6 @@
|
|||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
// Additional CSS for icon floating animation
|
|
||||||
const style = document.createElement('style');
|
const style = document.createElement('style');
|
||||||
style.textContent = `
|
style.textContent = `
|
||||||
@@keyframes iconFloat {
|
@@keyframes iconFloat {
|
||||||
|
|||||||
@@ -49,7 +49,6 @@ namespace MovieActorLookup.Models.Movies
|
|||||||
[JsonPropertyName("belongs_to_collection")]
|
[JsonPropertyName("belongs_to_collection")]
|
||||||
public CollectionInfo BelongsToCollection { get; set; }
|
public CollectionInfo BelongsToCollection { get; set; }
|
||||||
|
|
||||||
// Constructor
|
|
||||||
public Movie()
|
public Movie()
|
||||||
{
|
{
|
||||||
GenreIds = new List<int>();
|
GenreIds = new List<int>();
|
||||||
@@ -77,7 +76,7 @@ namespace MovieActorLookup.Models.Movies
|
|||||||
public int Page { get; set; }
|
public int Page { get; set; }
|
||||||
|
|
||||||
[JsonPropertyName("results")]
|
[JsonPropertyName("results")]
|
||||||
public List<Movie> Results { get; set; } = new List<Movie>();
|
public List<Movie> Results { get; set; } = [];
|
||||||
|
|
||||||
[JsonPropertyName("total_pages")]
|
[JsonPropertyName("total_pages")]
|
||||||
public int TotalPages { get; set; }
|
public int TotalPages { get; set; }
|
||||||
|
|||||||
@@ -101,7 +101,6 @@ public class MovieService
|
|||||||
|
|
||||||
if (response.IsSuccessful)
|
if (response.IsSuccessful)
|
||||||
{
|
{
|
||||||
// Deserialize the response into the ActorFilmography class
|
|
||||||
var actorFilmography = JsonSerializer.Deserialize<ActorMovieFilmography>(response.Content, new JsonSerializerOptions { PropertyNameCaseInsensitive = true });
|
var actorFilmography = JsonSerializer.Deserialize<ActorMovieFilmography>(response.Content, new JsonSerializerOptions { PropertyNameCaseInsensitive = true });
|
||||||
return actorFilmography;
|
return actorFilmography;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user