Skip to content

Commit

Permalink
changes related to name of web app && google api chnaged && some othe…
Browse files Browse the repository at this point in the history
…r changes
  • Loading branch information
mamta-vyas committed Sep 5, 2024
1 parent 2029ee6 commit b75eb30
Show file tree
Hide file tree
Showing 12 changed files with 24 additions and 118 deletions.
14 changes: 0 additions & 14 deletions .firebase/hosting.YnVpbGQ.cache

This file was deleted.

6 changes: 6 additions & 0 deletions .firebase/hosting.cHVibGlj.cache
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
robots.txt,1723539248137,391d14b3c2f8c9143a27a28c7399585142228d4d1bdbe2c87ac946de411fa9a2
manifest.json,1723539248136,4e1d3adad9ce7e17c0d13fac197f1c27091906f4ecf3909c9f51247bff345118
logo512.png,1723539248135,2356e0b814e58a349935c8de17226873d615d088a867d591fef48a64c80c9a2f
logo192.png,1723539248133,f66564670b5bfe49f3f04a5b63107bae60f4a7736f1d3b83aa0115f7acf45150
index.html,1725534740353,844ed03125ab4c1529ad6a619df5d12a206cb4df093a10d73b514b3f976840f4
favicon.ico,1723539248131,1463be9bedc82e16f9364eec7a1f5152cbe56229401381eed65c1496cb884407
1 change: 0 additions & 1 deletion .firebase/hosting.eQ.cache

This file was deleted.

2 changes: 1 addition & 1 deletion .firebaserc
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"projects": {
"default": "netflixgpt-97c48"
"default": "movies-gpt-508cc"
}
}
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,9 @@
- Adding .env file to gitignore
- Made our Site Responsive

import { getAuth } from "firebase/auth";
export const auth = getAuth();


# Features:
- Login/SignUp page
Expand Down
2 changes: 1 addition & 1 deletion firebase.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"hosting": {
"public": "y",
"public": "public",
"ignore": [
"firebase.json",
"**/.*",
Expand Down
Empty file removed public/_redirects
Empty file.
4 changes: 2 additions & 2 deletions public/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<html lang="en">
<head>
<meta charset="utf-8" />
<link rel="icon" href="https://cdn4.iconfinder.com/data/icons/logos-and-brands/512/227_Netflix_logo-512.png" />
<link rel="icon" href="%PUBLIC_URL%/favicon.ico" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<meta name="theme-color" content="#000000" />
<meta
Expand All @@ -24,7 +24,7 @@
work correctly both with client-side routing and a non-root public URL.
Learn how to configure a non-root public URL by running `npm run build`.
-->
<title>Netflix-GPT</title>
<title>Movies-GPT</title>
</head>
<body>
<noscript>You need to enable JavaScript to run this app.</noscript>
Expand Down
2 changes: 1 addition & 1 deletion src/utils/constants.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
export const LOGO = "https://cdn.cookielaw.org/logos/dd6b162f-1a32-456a-9cfe-897231c7763c/4345ea78-053c-46d2-b11e-09adaef973dc/Netflix_Logo_PMS.png"
export const LOGO = "https://images.creativemarket.com/0.1.0/ps/7414066/1820/1214/m1/fpnw/wm1/logo-design-for-movie-production-company-01-.jpg?1575502358&s=c37b3e6a8863b415070b669f6c8a457c"

export const USER_AVATAR = "https://avatars.githubusercontent.com/u/112095415?s=400&u=7437601668ac21e28d12c404c2139121bbbbc14d&v=4"

Expand Down
15 changes: 8 additions & 7 deletions src/utils/firebase.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,19 +2,20 @@
import { initializeApp } from "firebase/app";
import { getAnalytics } from "firebase/analytics";
import { getAuth } from "firebase/auth";

// TODO: Add SDKs for Firebase products that you want to use
// https://firebase.google.com/docs/web/setup#available-libraries

// Your web app's Firebase configuration
// For Firebase JS SDK v7.20.0 and later, measurementId is optional
const firebaseConfig = {
apiKey: "AIzaSyAnDAYcIi2RC5XWl6M4MWh22RlYTrZc11o",
authDomain: "netflixgpt-97c48.firebaseapp.com",
projectId: "netflixgpt-97c48",
storageBucket: "netflixgpt-97c48.appspot.com",
messagingSenderId: "998859428816",
appId: "1:998859428816:web:7c549fa1d8ddef0d6bdfd5",
measurementId: "G-SE7DVT7Y9S"
apiKey: "AIzaSyBDIaqYz6eMvguoDLeCXwpN-N-YPnQ0-D0",
authDomain: "movies-gpt-508cc.firebaseapp.com",
projectId: "movies-gpt-508cc",
storageBucket: "movies-gpt-508cc.appspot.com",
messagingSenderId: "37058728954",
appId: "1:37058728954:web:c31c78adbf238ab2514a43",
measurementId: "G-ZWJFWX4689"
};

// Initialize Firebase
Expand Down
4 changes: 2 additions & 2 deletions src/utils/validate.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
export const checkValidData = (email, password , name) => {
const isEmailValid = /^([a-zA-Z0-9._%-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,})$/.test(email);
const isPasswordValid = /^(?=.*\d)(?=.*[a-z])(?=.*[A-Z])(?=.*[a-zA-Z]).{8,}$/.test(password);
const isNameValid = /\b([A-ZÀ-ÿ][-,a-z. ']+[ ]*)+/.test(name);
// const isNameValid = /\b([A-ZÀ-ÿ][-,a-z. ']+[ ]*)+/.test(name);

if(!isEmailValid) return "Email ID is not valid";
if(!isPasswordValid) return "Password is not valid";
if(!isNameValid) return "Name is not valid";
// if(!isNameValid) return "Name is not valid";

return null;
};
89 changes: 0 additions & 89 deletions y/index.html

This file was deleted.

0 comments on commit b75eb30

Please sign in to comment.