Skip to content

Commit

Permalink
Final: Enhance app functionalities (#196)
Browse files Browse the repository at this point in the history
  • Loading branch information
hoangsonww committed Jul 29, 2024
1 parent 13d96e2 commit 4aa6d24
Show file tree
Hide file tree
Showing 22 changed files with 32 additions and 32 deletions.
8 changes: 4 additions & 4 deletions .idea/codeStyles/Project.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions MovieVerse-Frontend/js/actor-details.js
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ async function fetchActorDetails(actorId) {
if (actor.success === false) {
document.getElementById('actor-details-container').innerHTML = `
<div style="display: flex; justify-content: center; align-items: center; text-align: center; width: 100vw; height: 800px">
<h2>Actor details not found - try again with a different actor.</h2>
<h2>Actor details currently unavailable - please try again</h2>
</div>`;
} else {
updateBrowserURL(actor.name);
Expand All @@ -99,7 +99,7 @@ async function fetchActorDetails(actorId) {
console.log('Error fetching actor details:', error);
document.getElementById('actor-details-container').innerHTML = `
<div style="display: flex; justify-content: center; align-items: center; text-align: center; width: 100vw; height: 800px">
<h2>Actor details not found - try again with a different actor.</h2>
<h2>Actor details currently unavailable - please try again</h2>
</div>`;
hideSpinner();
}
Expand Down
2 changes: 1 addition & 1 deletion MovieVerse-Frontend/js/company-details.js
Original file line number Diff line number Diff line change
Expand Up @@ -323,7 +323,7 @@ async function fetchCompanyDetails(companyId) {
const companyDetailsContainer = document.getElementById('company-details-container');
companyDetailsContainer.innerHTML = `
<div style="display: flex; justify-content: center; align-items: center; height: 100vh; text-align: center; width: 100vw;">
<h2>Company details not found - try again with a different company.</h2>
<h2>Company details currently unavailable - please try again</h2>
</div>`;
hideSpinner();
}
Expand Down
4 changes: 2 additions & 2 deletions MovieVerse-Frontend/js/director-details.js
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ async function fetchDirectorDetails(directorId) {
if (director.success === false) {
document.getElementById('director-details-container').innerHTML = `
<div style="display: flex; justify-content: center; align-items: center; text-align: center; margin-top: 40px; width: 100vw; height: 800px">
<h2>Director details not found - try again with a different director.</h2>
<h2>Director details currently unavailable - please try again</h2>
</div>`;
} else {
updateBrowserURL(director.name);
Expand All @@ -120,7 +120,7 @@ async function fetchDirectorDetails(directorId) {
} catch (error) {
document.getElementById('director-details-container').innerHTML = `
<div style="display: flex; justify-content: center; align-items: center; text-align: center; margin-top: 40px; width: 100vw; height: 800px">
<h2>Director details not found - try again with a different director.</h2>
<h2>Director details currently unavailable - please try again</h2>
</div>`;
console.log('Error fetching director details:', error);
hideSpinner();
Expand Down
2 changes: 1 addition & 1 deletion MovieVerse-Frontend/js/movie-details.js
Original file line number Diff line number Diff line change
Expand Up @@ -578,7 +578,7 @@ async function fetchMovieDetails(movieId) {
} catch (error) {
document.getElementById('movie-details-container').innerHTML = `
<div style="display: flex; justify-content: center; align-items: center; text-align: center; margin-top: 40px; width: 100vw; height: 800px">
<h2>Movie details not found - Try again with a different movie</h2>
<h2>Movie details currently unavailable - please try again</h2>
</div>`;
console.log('Error fetching movie details:', error);
} finally {
Expand Down
2 changes: 1 addition & 1 deletion MovieVerse-Frontend/js/tv-details.js
Original file line number Diff line number Diff line change
Expand Up @@ -568,7 +568,7 @@ async function fetchTvDetails(tvSeriesId) {
} catch (error) {
document.getElementById('movie-details-container').innerHTML = `
<div style="display: flex; justify-content: center; align-items: center; text-align: center; margin-top: 40px; width: 100vw; height: 800px">
<h2>TV series details not found - Try again with another TV series</h2>
<h2>TV series details currently unavailable - please try again</h2>
</div>`;
console.log('Error fetching TV series details:', error);
} finally {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ async function fetchActorDetails(actorId) {
if (actor.success === false) {
document.getElementById('actor-details-container').innerHTML = `
<div style="display: flex; justify-content: center; align-items: center; text-align: center; width: 100vw; height: 800px">
<h2>Actor details not found - try again with a different actor.</h2>
<h2>Actor details currently unavailable - please try again</h2>
</div>`;
} else {
updateBrowserURL(actor.name);
Expand All @@ -99,7 +99,7 @@ async function fetchActorDetails(actorId) {
console.log('Error fetching actor details:', error);
document.getElementById('actor-details-container').innerHTML = `
<div style="display: flex; justify-content: center; align-items: center; text-align: center; width: 100vw; height: 800px">
<h2>Actor details not found - try again with a different actor.</h2>
<h2>Actor details currently unavailable - please try again</h2>
</div>`;
hideSpinner();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -323,7 +323,7 @@ async function fetchCompanyDetails(companyId) {
const companyDetailsContainer = document.getElementById('company-details-container');
companyDetailsContainer.innerHTML = `
<div style="display: flex; justify-content: center; align-items: center; height: 100vh; text-align: center; width: 100vw;">
<h2>Company details not found - try again with a different company.</h2>
<h2>Company details currently unavailable - please try again</h2>
</div>`;
hideSpinner();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ async function fetchDirectorDetails(directorId) {
if (director.success === false) {
document.getElementById('director-details-container').innerHTML = `
<div style="display: flex; justify-content: center; align-items: center; text-align: center; margin-top: 40px; width: 100vw; height: 800px">
<h2>Director details not found - try again with a different director.</h2>
<h2>Director details currently unavailable - please try again</h2>
</div>`;
} else {
updateBrowserURL(director.name);
Expand All @@ -120,7 +120,7 @@ async function fetchDirectorDetails(directorId) {
} catch (error) {
document.getElementById('director-details-container').innerHTML = `
<div style="display: flex; justify-content: center; align-items: center; text-align: center; margin-top: 40px; width: 100vw; height: 800px">
<h2>Director details not found - try again with a different director.</h2>
<h2>Director details currently unavailable - please try again</h2>
</div>`;
console.log('Error fetching director details:', error);
hideSpinner();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -578,7 +578,7 @@ async function fetchMovieDetails(movieId) {
} catch (error) {
document.getElementById('movie-details-container').innerHTML = `
<div style="display: flex; justify-content: center; align-items: center; text-align: center; margin-top: 40px; width: 100vw; height: 800px">
<h2>Movie details not found - Try again with a different movie</h2>
<h2>Movie details currently unavailable - please try again</h2>
</div>`;
console.log('Error fetching movie details:', error);
} finally {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -568,7 +568,7 @@ async function fetchTvDetails(tvSeriesId) {
} catch (error) {
document.getElementById('movie-details-container').innerHTML = `
<div style="display: flex; justify-content: center; align-items: center; text-align: center; margin-top: 40px; width: 100vw; height: 800px">
<h2>TV series details not found - Try again with another TV series</h2>
<h2>TV series details currently unavailable - please try again</h2>
</div>`;
console.log('Error fetching TV series details:', error);
} finally {
Expand Down
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ async function fetchActorDetails(actorId) {
if (actor.success === false) {
document.getElementById('actor-details-container').innerHTML = `
<div style="display: flex; justify-content: center; align-items: center; text-align: center; width: 100vw; height: 800px">
<h2>Actor details not found - try again with a different actor.</h2>
<h2>Actor details currently unavailable - please try again</h2>
</div>`;
} else {
updateBrowserURL(actor.name);
Expand All @@ -99,7 +99,7 @@ async function fetchActorDetails(actorId) {
console.log('Error fetching actor details:', error);
document.getElementById('actor-details-container').innerHTML = `
<div style="display: flex; justify-content: center; align-items: center; text-align: center; width: 100vw; height: 800px">
<h2>Actor details not found - try again with a different actor.</h2>
<h2>Actor details currently unavailable - please try again</h2>
</div>`;
hideSpinner();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -323,7 +323,7 @@ async function fetchCompanyDetails(companyId) {
const companyDetailsContainer = document.getElementById('company-details-container');
companyDetailsContainer.innerHTML = `
<div style="display: flex; justify-content: center; align-items: center; height: 100vh; text-align: center; width: 100vw;">
<h2>Company details not found - try again with a different company.</h2>
<h2>Company details currently unavailable - please try again</h2>
</div>`;
hideSpinner();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ async function fetchDirectorDetails(directorId) {
if (director.success === false) {
document.getElementById('director-details-container').innerHTML = `
<div style="display: flex; justify-content: center; align-items: center; text-align: center; margin-top: 40px; width: 100vw; height: 800px">
<h2>Director details not found - try again with a different director.</h2>
<h2>Director details currently unavailable - please try again</h2>
</div>`;
} else {
updateBrowserURL(director.name);
Expand All @@ -120,7 +120,7 @@ async function fetchDirectorDetails(directorId) {
} catch (error) {
document.getElementById('director-details-container').innerHTML = `
<div style="display: flex; justify-content: center; align-items: center; text-align: center; margin-top: 40px; width: 100vw; height: 800px">
<h2>Director details not found - try again with a different director.</h2>
<h2>Director details currently unavailable - please try again</h2>
</div>`;
console.log('Error fetching director details:', error);
hideSpinner();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -578,7 +578,7 @@ async function fetchMovieDetails(movieId) {
} catch (error) {
document.getElementById('movie-details-container').innerHTML = `
<div style="display: flex; justify-content: center; align-items: center; text-align: center; margin-top: 40px; width: 100vw; height: 800px">
<h2>Movie details not found - Try again with a different movie</h2>
<h2>Movie details currently unavailable - please try again</h2>
</div>`;
console.log('Error fetching movie details:', error);
} finally {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -568,7 +568,7 @@ async function fetchTvDetails(tvSeriesId) {
} catch (error) {
document.getElementById('movie-details-container').innerHTML = `
<div style="display: flex; justify-content: center; align-items: center; text-align: center; margin-top: 40px; width: 100vw; height: 800px">
<h2>TV series details not found - Try again with another TV series</h2>
<h2>TV series details currently unavailable - please try again</h2>
</div>`;
console.log('Error fetching TV series details:', error);
} finally {
Expand Down
4 changes: 2 additions & 2 deletions MovieVerse-Mobile/www/MovieVerse-Frontend/js/actor-details.js
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ async function fetchActorDetails(actorId) {
if (actor.success === false) {
document.getElementById('actor-details-container').innerHTML = `
<div style="display: flex; justify-content: center; align-items: center; text-align: center; width: 100vw; height: 800px">
<h2>Actor details not found - try again with a different actor.</h2>
<h2>Actor details currently unavailable - please try again</h2>
</div>`;
} else {
updateBrowserURL(actor.name);
Expand All @@ -99,7 +99,7 @@ async function fetchActorDetails(actorId) {
console.log('Error fetching actor details:', error);
document.getElementById('actor-details-container').innerHTML = `
<div style="display: flex; justify-content: center; align-items: center; text-align: center; width: 100vw; height: 800px">
<h2>Actor details not found - try again with a different actor.</h2>
<h2>Actor details currently unavailable - please try again</h2>
</div>`;
hideSpinner();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -323,7 +323,7 @@ async function fetchCompanyDetails(companyId) {
const companyDetailsContainer = document.getElementById('company-details-container');
companyDetailsContainer.innerHTML = `
<div style="display: flex; justify-content: center; align-items: center; height: 100vh; text-align: center; width: 100vw;">
<h2>Company details not found - try again with a different company.</h2>
<h2>Company details currently unavailable - please try again</h2>
</div>`;
hideSpinner();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ async function fetchDirectorDetails(directorId) {
if (director.success === false) {
document.getElementById('director-details-container').innerHTML = `
<div style="display: flex; justify-content: center; align-items: center; text-align: center; margin-top: 40px; width: 100vw; height: 800px">
<h2>Director details not found - try again with a different director.</h2>
<h2>Director details currently unavailable - please try again</h2>
</div>`;
} else {
updateBrowserURL(director.name);
Expand All @@ -120,7 +120,7 @@ async function fetchDirectorDetails(directorId) {
} catch (error) {
document.getElementById('director-details-container').innerHTML = `
<div style="display: flex; justify-content: center; align-items: center; text-align: center; margin-top: 40px; width: 100vw; height: 800px">
<h2>Director details not found - try again with a different director.</h2>
<h2>Director details currently unavailable - please try again</h2>
</div>`;
console.log('Error fetching director details:', error);
hideSpinner();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -578,7 +578,7 @@ async function fetchMovieDetails(movieId) {
} catch (error) {
document.getElementById('movie-details-container').innerHTML = `
<div style="display: flex; justify-content: center; align-items: center; text-align: center; margin-top: 40px; width: 100vw; height: 800px">
<h2>Movie details not found - Try again with a different movie</h2>
<h2>Movie details currently unavailable - please try again</h2>
</div>`;
console.log('Error fetching movie details:', error);
} finally {
Expand Down
2 changes: 1 addition & 1 deletion MovieVerse-Mobile/www/MovieVerse-Frontend/js/tv-details.js
Original file line number Diff line number Diff line change
Expand Up @@ -568,7 +568,7 @@ async function fetchTvDetails(tvSeriesId) {
} catch (error) {
document.getElementById('movie-details-container').innerHTML = `
<div style="display: flex; justify-content: center; align-items: center; text-align: center; margin-top: 40px; width: 100vw; height: 800px">
<h2>TV series details not found - Try again with another TV series</h2>
<h2>TV series details currently unavailable - please try again</h2>
</div>`;
console.log('Error fetching TV series details:', error);
} finally {
Expand Down

0 comments on commit 4aa6d24

Please sign in to comment.