diff --git a/firebase-debug.log b/firebase-debug.log new file mode 100644 index 0000000..1317033 --- /dev/null +++ b/firebase-debug.log @@ -0,0 +1,21 @@ +[debug] [2024-10-17T08:46:42.713Z] ---------------------------------------------------------------------- +[debug] [2024-10-17T08:46:42.717Z] Command: C:\Program Files\nodejs\node.exe C:\Users\ayush\AppData\Roaming\npm\node_modules\firebase-tools\lib\bin\firebase.js init +[debug] [2024-10-17T08:46:42.718Z] CLI Version: 13.22.1 +[debug] [2024-10-17T08:46:42.718Z] Platform: win32 +[debug] [2024-10-17T08:46:42.719Z] Node Version: v20.15.0 +[debug] [2024-10-17T08:46:42.719Z] Time: Thu Oct 17 2024 14:16:42 GMT+0530 (India Standard Time) +[debug] [2024-10-17T08:46:42.719Z] ---------------------------------------------------------------------- +[debug] +[debug] [2024-10-17T08:46:42.733Z] > command requires scopes: ["email","openid","https://www.googleapis.com/auth/cloudplatformprojects.readonly","https://www.googleapis.com/auth/firebase","https://www.googleapis.com/auth/cloud-platform"] +[debug] [2024-10-17T08:46:42.734Z] > authorizing via signed-in user (ayusharyan686@gmail.com) +[info] + ######## #### ######## ######## ######## ### ###### ######## + ## ## ## ## ## ## ## ## ## ## ## + ###### ## ######## ###### ######## ######### ###### ###### + ## ## ## ## ## ## ## ## ## ## ## + ## #### ## ## ######## ######## ## ## ###### ######## + +You're about to initialize a Firebase project in this directory: + + C:\Users\ayush\Desktop\GSoC\qr-code-generator2 + diff --git a/package-lock.json b/package-lock.json index c108327..58687c3 100644 --- a/package-lock.json +++ b/package-lock.json @@ -18,7 +18,7 @@ "@testing-library/user-event": "^13.5.0", "build": "^0.1.4", "dotenv": "^16.4.5", - "firebase": "^10.14.0", + "firebase": "^10.14.1", "framer-motion": "^11.3.24", "qr-code-styling": "^1.6.0-rc.1", "qr-scanner": "^1.4.2", @@ -2463,10 +2463,9 @@ "license": "Apache-2.0" }, "node_modules/@firebase/app": { - "version": "0.10.12", - "resolved": "https://registry.npmjs.org/@firebase/app/-/app-0.10.12.tgz", - "integrity": "sha512-fgBqe5j7GKv7/eMfyU4N1FdiW6O1EyrrVbMa8rJOT5MYNpCXqdL/5NNcLDStS1l6CN7h65a7jUNXmMnMSWo0sw==", - "license": "Apache-2.0", + "version": "0.10.13", + "resolved": "https://registry.npmjs.org/@firebase/app/-/app-0.10.13.tgz", + "integrity": "sha512-OZiDAEK/lDB6xy/XzYAyJJkaDqmQ+BCtOEPLqFvxWKUz5JbBmej7IiiRHdtiIOD/twW7O5AxVsfaaGA/V1bNsA==", "dependencies": { "@firebase/component": "0.6.9", "@firebase/logger": "0.4.2", @@ -2520,12 +2519,11 @@ "license": "Apache-2.0" }, "node_modules/@firebase/app-compat": { - "version": "0.2.42", - "resolved": "https://registry.npmjs.org/@firebase/app-compat/-/app-compat-0.2.42.tgz", - "integrity": "sha512-vPI0Aksk8ZuHywigyTxrx/oWbuD41kHxajfxRly7urHOFRiXKxf/q2ftgmcMVPfIeg0K02LzYNBmoh2PWzERpg==", - "license": "Apache-2.0", + "version": "0.2.43", + "resolved": "https://registry.npmjs.org/@firebase/app-compat/-/app-compat-0.2.43.tgz", + "integrity": "sha512-HM96ZyIblXjAC7TzE8wIk2QhHlSvksYkQ4Ukh1GmEenzkucSNUmUX4QvoKrqeWsLEQ8hdcojABeCV8ybVyZmeg==", "dependencies": { - "@firebase/app": "0.10.12", + "@firebase/app": "0.10.13", "@firebase/component": "0.6.9", "@firebase/logger": "0.4.2", "@firebase/util": "1.10.0", @@ -2796,10 +2794,9 @@ } }, "node_modules/@firebase/messaging": { - "version": "0.12.11", - "resolved": "https://registry.npmjs.org/@firebase/messaging/-/messaging-0.12.11.tgz", - "integrity": "sha512-zn5zGhF46BmiZ7W9yAUoHlqzJGakmWn1FNp//roXHN62dgdEFIKfXY7IODA2iQiXpmUO3sBdI/Tf+Hsft1mVkw==", - "license": "Apache-2.0", + "version": "0.12.12", + "resolved": "https://registry.npmjs.org/@firebase/messaging/-/messaging-0.12.12.tgz", + "integrity": "sha512-6q0pbzYBJhZEtUoQx7hnPhZvAbuMNuBXKQXOx2YlWhSrlv9N1m0ZzlNpBbu/ItTzrwNKTibdYzUyaaxdWLg+4w==", "dependencies": { "@firebase/component": "0.6.9", "@firebase/installations": "0.6.9", @@ -2813,13 +2810,12 @@ } }, "node_modules/@firebase/messaging-compat": { - "version": "0.2.11", - "resolved": "https://registry.npmjs.org/@firebase/messaging-compat/-/messaging-compat-0.2.11.tgz", - "integrity": "sha512-2NCkfE1L9jSn5OC+2n5rGAz5BEAQreK2lQGdPYQEJlAbKB2efoF+2FdiQ+LD8SlioSXz66REfeaEdesoLPFQcw==", - "license": "Apache-2.0", + "version": "0.2.12", + "resolved": "https://registry.npmjs.org/@firebase/messaging-compat/-/messaging-compat-0.2.12.tgz", + "integrity": "sha512-pKsiUVZrbmRgdImYqhBNZlkKJbqjlPkVdQRZGRbkTyX4OSGKR0F/oJeCt1a8jEg5UnBp4fdVwSWSp4DuCovvEQ==", "dependencies": { "@firebase/component": "0.6.9", - "@firebase/messaging": "0.12.11", + "@firebase/messaging": "0.12.12", "@firebase/util": "1.10.0", "tslib": "^2.1.0" }, @@ -4446,6 +4442,104 @@ "url": "https://github.com/sponsors/gregberge" } }, + "node_modules/@testing-library/dom": { + "version": "10.4.0", + "resolved": "https://registry.npmjs.org/@testing-library/dom/-/dom-10.4.0.tgz", + "integrity": "sha512-pemlzrSESWbdAloYml3bAJMEfNh1Z7EduzqPKprCH5S341frlpYnUEW0H72dLxa6IsYr+mPno20GiSm+h9dEdQ==", + "peer": true, + "dependencies": { + "@babel/code-frame": "^7.10.4", + "@babel/runtime": "^7.12.5", + "@types/aria-query": "^5.0.1", + "aria-query": "5.3.0", + "chalk": "^4.1.0", + "dom-accessibility-api": "^0.5.9", + "lz-string": "^1.5.0", + "pretty-format": "^27.0.2" + }, + "engines": { + "node": ">=18" + } + }, + "node_modules/@testing-library/dom/node_modules/ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "peer": true, + "dependencies": { + "color-convert": "^2.0.1" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, + "node_modules/@testing-library/dom/node_modules/aria-query": { + "version": "5.3.0", + "resolved": "https://registry.npmjs.org/aria-query/-/aria-query-5.3.0.tgz", + "integrity": "sha512-b0P0sZPKtyu8HkeRAfCq0IfURZK+SuwMjY1UXGBU27wpAiTwQAIlq56IbIO+ytk/JjS1fMR14ee5WBBfKi5J6A==", + "peer": true, + "dependencies": { + "dequal": "^2.0.3" + } + }, + "node_modules/@testing-library/dom/node_modules/chalk": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", + "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", + "peer": true, + "dependencies": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/chalk?sponsor=1" + } + }, + "node_modules/@testing-library/dom/node_modules/color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "peer": true, + "dependencies": { + "color-name": "~1.1.4" + }, + "engines": { + "node": ">=7.0.0" + } + }, + "node_modules/@testing-library/dom/node_modules/color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", + "peer": true + }, + "node_modules/@testing-library/dom/node_modules/has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "peer": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/@testing-library/dom/node_modules/supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "peer": true, + "dependencies": { + "has-flag": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, "node_modules/@testing-library/jest-dom": { "version": "5.17.0", "resolved": "https://registry.npmjs.org/@testing-library/jest-dom/-/jest-dom-5.17.0.tgz", @@ -7763,6 +7857,15 @@ "node": ">= 0.8" } }, + "node_modules/dequal": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/dequal/-/dequal-2.0.3.tgz", + "integrity": "sha512-0je+qPKHEMohvfRTCEo3CrPG6cAzAYgmzKyxRiYSSDkS6eGJdyVJm7WaYA5ECaAD9wLB2T4EEeymA5aFVcYXCA==", + "peer": true, + "engines": { + "node": ">=6" + } + }, "node_modules/destroy": { "version": "1.2.0", "resolved": "https://registry.npmjs.org/destroy/-/destroy-1.2.0.tgz", @@ -9344,17 +9447,16 @@ } }, "node_modules/firebase": { - "version": "10.14.0", - "resolved": "https://registry.npmjs.org/firebase/-/firebase-10.14.0.tgz", - "integrity": "sha512-/yB/OE4bfBbmtfku0DCdW6nWMHYVayN6xWKw68ztedxqGevfYDoPoygBXiLmvBHdWdBa+IlhJDkdUUiEEpcAUw==", - "license": "Apache-2.0", + "version": "10.14.1", + "resolved": "https://registry.npmjs.org/firebase/-/firebase-10.14.1.tgz", + "integrity": "sha512-0KZxU+Ela9rUCULqFsUUOYYkjh7OM1EWdIfG6///MtXd0t2/uUIf0iNV5i0KariMhRQ5jve/OY985nrAXFaZeQ==", "dependencies": { "@firebase/analytics": "0.10.8", "@firebase/analytics-compat": "0.2.14", - "@firebase/app": "0.10.12", + "@firebase/app": "0.10.13", "@firebase/app-check": "0.8.8", "@firebase/app-check-compat": "0.3.15", - "@firebase/app-compat": "0.2.42", + "@firebase/app-compat": "0.2.43", "@firebase/app-types": "0.9.2", "@firebase/auth": "1.7.9", "@firebase/auth-compat": "0.5.14", @@ -9367,8 +9469,8 @@ "@firebase/functions-compat": "0.3.14", "@firebase/installations": "0.6.9", "@firebase/installations-compat": "0.2.9", - "@firebase/messaging": "0.12.11", - "@firebase/messaging-compat": "0.2.11", + "@firebase/messaging": "0.12.12", + "@firebase/messaging-compat": "0.2.12", "@firebase/performance": "0.6.9", "@firebase/performance-compat": "0.2.9", "@firebase/remote-config": "0.4.9", @@ -18517,6 +18619,19 @@ "is-typedarray": "^1.0.0" } }, + "node_modules/typescript": { + "version": "4.9.5", + "resolved": "https://registry.npmjs.org/typescript/-/typescript-4.9.5.tgz", + "integrity": "sha512-1FXk9E2Hm+QzZQ7z+McJiHL4NW1F2EzMu9Nq9i3zAaGqibafqYwCVU6WyWAuyQRRzOlxou8xZSyXLEN8oKj24g==", + "peer": true, + "bin": { + "tsc": "bin/tsc", + "tsserver": "bin/tsserver" + }, + "engines": { + "node": ">=4.2.0" + } + }, "node_modules/uglify-js": { "version": "1.3.5", "resolved": "https://registry.npmjs.org/uglify-js/-/uglify-js-1.3.5.tgz", @@ -19843,4 +19958,4 @@ } } } -} \ No newline at end of file +} diff --git a/package.json b/package.json index 79a2f39..50ea28f 100644 --- a/package.json +++ b/package.json @@ -13,7 +13,7 @@ "@testing-library/user-event": "^13.5.0", "build": "^0.1.4", "dotenv": "^16.4.5", - "firebase": "^10.14.0", + "firebase": "^10.14.1", "framer-motion": "^11.3.24", "qr-code-styling": "^1.6.0-rc.1", "qr-scanner": "^1.4.2", diff --git a/src/App.js b/src/App.js index b6dd0f9..ddea5fe 100644 --- a/src/App.js +++ b/src/App.js @@ -26,8 +26,6 @@ import { Toaster } from "react-hot-toast"; import ProtectedRoute from "./components/ProtectedRoute"; import NotFoundPage from "./components/Error404"; -import ScrollButton from "./components/ScrollButton"; // Import the ScrollButton - function BackgroundWrapper({ children }) { const location = useLocation(); @@ -138,7 +136,6 @@ export default function App() { /> } /> - diff --git a/src/components/ScrollButton.css b/src/components/ScrollButton.css deleted file mode 100644 index 551e526..0000000 --- a/src/components/ScrollButton.css +++ /dev/null @@ -1,9 +0,0 @@ -.scroll-button { - transition: opacity 0.3s ease; - opacity: 0.7; - } - - .scroll-button.visible { - opacity: 1; - } - \ No newline at end of file diff --git a/src/components/ScrollButton.js b/src/components/ScrollButton.js deleted file mode 100644 index 481b331..0000000 --- a/src/components/ScrollButton.js +++ /dev/null @@ -1,50 +0,0 @@ -import React, { useEffect, useState } from 'react'; - -const ScrollButton = () => { - const [isVisible, setIsVisible] = useState(false); - - const toggleVisibility = () => { - if (window.scrollY > 300) { - setIsVisible(true); - } else { - setIsVisible(false); - } - }; - - const scrollToTop = () => { - window.scrollTo({ - top: 0, - behavior: 'smooth', // Smooth scrolling - }); - }; - - useEffect(() => { - window.addEventListener('scroll', toggleVisibility); - return () => { - window.removeEventListener('scroll', toggleVisibility); - }; - }, []); - - return ( -
- ↑ -
- ); -}; - -export default ScrollButton; diff --git a/src/firebase.js b/src/firebase.js index 69cfef4..bef68e4 100644 --- a/src/firebase.js +++ b/src/firebase.js @@ -11,8 +11,8 @@ const firebaseConfig = { messagingSenderId: process.env.REACT_APP_FIREBASE_MESSAGING_SENDER_ID, appId: process.env.REACT_APP_FIREBASE_APP_ID, measurementId: process.env.REACT_APP_FIREBASE_MEASUREMENT_ID -}; - + }; + const app = initializeApp(firebaseConfig); const auth = getAuth(app);