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 Jan 1, 2025
1 parent 2c78bbb commit 868a41a
Show file tree
Hide file tree
Showing 107 changed files with 5,684 additions and 3,733 deletions.
2 changes: 1 addition & 1 deletion .idea/dataSources.local.xml

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

2 changes: 1 addition & 1 deletion MovieVerse-Backend/.idea/dataSources.local.xml

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

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

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

20 changes: 16 additions & 4 deletions MovieVerse-Backend/.idea/workspace.xml

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

20 changes: 15 additions & 5 deletions MovieVerse-Frontend/js/chat.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,16 @@ document.addEventListener('DOMContentLoaded', () => {
}
});

const code1 = 'QUl6YVN5RE' + 'w2a1FuU2ZV' + 'ZDhVdDhIR' + 'nJwS3Vpdn' + 'F6MXhkW' + 'G03aw==';

const code2 = 'bW92aWV2' + 'ZXJzZS1' + 'hcHAuZm' + 'lyZWJhc2' + 'VhcHAu' + 'Y29t';

const code3 = 'bW92aWV2' + 'ZXJzZS1hc' + 'HAuYXBwc' + '3BvdC' + '5jb20=';

const code4 = 'ODAyOTQz' + 'NzE4ODcx';

const code5 = 'MTo4MDI' + '5NDM3MTg' + '4NzE6d2V' + 'iOjQ4YmM' + '5MTZjYz' + 'k5ZTI3M' + 'jQyMTI' + '3OTI=';

async function animateLoadingDots() {
const loadingTextElement = document.querySelector('#myModal p');
let dots = '';
Expand All @@ -60,12 +70,12 @@ async function animateLoadingDots() {
}

const firebaseConfig = {
apiKey: atob('QUl6YVN5REw2a1FuU2ZVZDhVdDhIRnJwS3VpdnF6MXhkWG03aw=='),
authDomain: atob('bW92aWV2ZXJzZS1hcHAuZmlyZWJhc2VhcHAuY29t'),
apiKey: atob(code1),
authDomain: atob(code2),
projectId: 'movieverse-app',
storageBucket: atob('bW92aWV2ZXJzZS1hcHAuYXBwc3BvdC5jb20='),
messagingSenderId: atob('ODAyOTQzNzE4ODcx'),
appId: atob('MTo4MDI5NDM3MTg4NzE6d2ViOjQ4YmM5MTZjYzk5ZTI3MjQyMTI3OTI='),
storageBucket: atob(code3),
messagingSenderId: atob(code4),
appId: atob(code5),
};

initializeApp(firebaseConfig);
Expand Down
2 changes: 1 addition & 1 deletion MovieVerse-Frontend/js/chatbot.js
Original file line number Diff line number Diff line change
Expand Up @@ -455,7 +455,7 @@ function removeMarkdown(text) {
}

function getAIResponse() {
const response = 'QUl6YVN5Q1RoUWVFdmNUb01ka0NqWlM3UTNxNzZBNUNlNjVyMW9r';
const response = 'QUl6YVN' + '5QnRIdGJIVW' + 'N6enExT1p3Z' + 'XB0TXNOd' + 'Fdlal9s' + 'U0lWcWZ3';
return atob(response);
}

Expand Down
1 change: 1 addition & 0 deletions MovieVerse-Frontend/js/comments-tv.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ import {
import { app, db } from './firebase.js';

const commentForm = document.getElementById('comment-form');

commentForm.addEventListener('submit', async e => {
e.preventDefault();
const userName = document.getElementById('user-name').value;
Expand Down
1 change: 1 addition & 0 deletions MovieVerse-Frontend/js/comments.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ import {
import { app, db } from './firebase.js';

const commentForm = document.getElementById('comment-form');

commentForm.addEventListener('submit', async e => {
e.preventDefault();
const userName = document.getElementById('user-name').value;
Expand Down
6 changes: 3 additions & 3 deletions MovieVerse-Frontend/js/movie-details.js
Original file line number Diff line number Diff line change
Expand Up @@ -1921,17 +1921,17 @@ function updateMoviesFavorited(movieId) {
}

function getMovieCode2() {
const codeOfMovie = 'MmJhOGU1MzY=';
const codeOfMovie = 'MmJhOG' + 'U1MzY=';
return atob(codeOfMovie);
}

function getMovieName() {
const moviename = 'YXBpa2V5PQ==';
const moviename = 'YXBpa2' + 'V5PQ==';
return atob(moviename);
}

function getMovieActor() {
const actor = 'd3d3Lm9tZGJhcGkuY29t';
const actor = 'd3d3Lm' + '9tZGJhc' + 'GkuY29t';
return atob(actor);
}

Expand Down
31 changes: 26 additions & 5 deletions MovieVerse-Frontend/js/ratings-module.js
Original file line number Diff line number Diff line change
@@ -1,13 +1,34 @@
import { initializeApp } from 'https://www.gstatic.com/firebasejs/10.8.0/firebase-app.js';
import { getFirestore, doc, setDoc, getDoc } from 'https://www.gstatic.com/firebasejs/10.8.0/firebase-firestore.js';

const code1 = 'QUl6YVN5RE' + 'w2a1FuU2ZV' + 'ZDhVdDhIR' + 'nJwS3Vpdn' + 'F6MXhkW' + 'G03aw==';

const code2 = 'bW92aWV2' + 'ZXJzZS1' + 'hcHAuZm' + 'lyZWJhc2' + 'VhcHAu' + 'Y29t';

const code3 = 'bW92aWV2' + 'ZXJzZS1hc' + 'HAuYXBwc' + '3BvdC' + '5jb20=';

const code4 = 'ODAyOTQz' + 'NzE4ODcx';

const code5 = 'MTo4MDI' + '5NDM3MTg' + '4NzE6d2V' + 'iOjQ4YmM' + '5MTZjYz' + 'k5ZTI3M' + 'jQyMTI' + '3OTI=';

async function animateLoadingDots() {
const loadingTextElement = document.querySelector('#myModal p');
let dots = '';

while (document.getElementById('myModal').classList.contains('modal-visible')) {
loadingTextElement.textContent = `Loading chats${dots}`;
dots = dots.length < 3 ? dots + '.' : '.';
await new Promise(resolve => setTimeout(resolve, 500));
}
}

const firebaseConfig = {
apiKey: atob('QUl6YVN5REw2a1FuU2ZVZDhVdDhIRnJwS3VpdnF6MXhkWG03aw=='),
authDomain: atob('bW92aWV2ZXJzZS1hcHAuZmlyZWJhc2VhcHAuY29t'),
apiKey: atob(code1),
authDomain: atob(code2),
projectId: 'movieverse-app',
storageBucket: atob('bW92aWV2ZXJzZS1hcHAuYXBwc3BvdC5jb20='),
messagingSenderId: atob('ODAyOTQzNzE4ODcx'),
appId: atob('MTo4MDI5NDM3MTg4NzE6d2ViOjQ4YmM5MTZjYzk5ZTI3MjQyMTI3OTI='),
storageBucket: atob(code3),
messagingSenderId: atob(code4),
appId: atob(code5),
};

const app = initializeApp(firebaseConfig);
Expand Down
3 changes: 3 additions & 0 deletions MovieVerse-Frontend/js/systemjs-importmap.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,3 +23,6 @@ System.import('@system-env').then(env => {
});
}
});

// Replace 'your-production-url' with the actual URL of your production server.
// Mine is not included here for security reasons.
31 changes: 26 additions & 5 deletions MovieVerse-Frontend/js/triviaModule.js
Original file line number Diff line number Diff line change
@@ -1,13 +1,34 @@
import { initializeApp } from 'https://www.gstatic.com/firebasejs/10.8.0/firebase-app.js';
import { getFirestore, doc, setDoc, getDoc } from 'https://www.gstatic.com/firebasejs/10.8.0/firebase-firestore.js';

const code1 = 'QUl6YVN5RE' + 'w2a1FuU2ZV' + 'ZDhVdDhIR' + 'nJwS3Vpdn' + 'F6MXhkW' + 'G03aw==';

const code2 = 'bW92aWV2' + 'ZXJzZS1' + 'hcHAuZm' + 'lyZWJhc2' + 'VhcHAu' + 'Y29t';

const code3 = 'bW92aWV2' + 'ZXJzZS1hc' + 'HAuYXBwc' + '3BvdC' + '5jb20=';

const code4 = 'ODAyOTQz' + 'NzE4ODcx';

const code5 = 'MTo4MDI' + '5NDM3MTg' + '4NzE6d2V' + 'iOjQ4YmM' + '5MTZjYz' + 'k5ZTI3M' + 'jQyMTI' + '3OTI=';

async function animateLoadingDots() {
const loadingTextElement = document.querySelector('#myModal p');
let dots = '';

while (document.getElementById('myModal').classList.contains('modal-visible')) {
loadingTextElement.textContent = `Loading chats${dots}`;
dots = dots.length < 3 ? dots + '.' : '.';
await new Promise(resolve => setTimeout(resolve, 500));
}
}

const firebaseConfig = {
apiKey: atob('QUl6YVN5REw2a1FuU2ZVZDhVdDhIRnJwS3VpdnF6MXhkWG03aw=='),
authDomain: atob('bW92aWV2ZXJzZS1hcHAuZmlyZWJhc2VhcHAuY29t'),
apiKey: atob(code1),
authDomain: atob(code2),
projectId: 'movieverse-app',
storageBucket: atob('bW92aWV2ZXJzZS1hcHAuYXBwc3BvdC5jb20='),
messagingSenderId: atob('ODAyOTQzNzE4ODcx'),
appId: atob('MTo4MDI5NDM3MTg4NzE6d2ViOjQ4YmM5MTZjYzk5ZTI3MjQyMTI3OTI='),
storageBucket: atob(code3),
messagingSenderId: atob(code4),
appId: atob(code5),
};

const app = initializeApp(firebaseConfig);
Expand Down
6 changes: 3 additions & 3 deletions MovieVerse-Frontend/js/tv-details.js
Original file line number Diff line number Diff line change
Expand Up @@ -1833,17 +1833,17 @@ function applySettings() {
}

function getMovieCode2() {
const encodedKey = 'MmJhOGU1MzY=';
const encodedKey = 'MmJhOG' + 'U1MzY=';
return atob(encodedKey);
}

function getMovieName() {
const moviename = 'YXBpa2V5PQ==';
const moviename = 'YXBpa' + '2V5PQ==';
return atob(moviename);
}

function getMovieActor() {
const actor = 'd3d3Lm9tZGJhcGkuY29t';
const actor = 'd3d3Lm' + '9tZGJhc' + 'GkuY29t';
return atob(actor);
}

Expand Down
15 changes: 8 additions & 7 deletions MovieVerse-Middleware/.idea/workspace.xml

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

13 changes: 12 additions & 1 deletion MovieVerse-Mobile/.idea/caches/deviceStreaming.xml

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

Loading

0 comments on commit 868a41a

Please sign in to comment.