From 1d9f8a626a5346e28faa6a7ef56500c1c7029b78 Mon Sep 17 00:00:00 2001 From: Sambit_Sankalp Date: Sat, 11 Sep 2021 23:10:02 +0530 Subject: [PATCH 1/3] init:firebase init --- src/config/firebase.js | 24 ++++++++++++++++++++++++ src/hooks/useFirebase.js | 11 +++++++++++ src/index.js | 12 ++++++++++++ src/pages/{index.js => App.js} | 4 ++-- 4 files changed, 49 insertions(+), 2 deletions(-) create mode 100644 src/config/firebase.js create mode 100644 src/hooks/useFirebase.js create mode 100644 src/index.js rename src/pages/{index.js => App.js} (61%) diff --git a/src/config/firebase.js b/src/config/firebase.js new file mode 100644 index 0000000..9b726b0 --- /dev/null +++ b/src/config/firebase.js @@ -0,0 +1,24 @@ +import firebase from 'firebase/app'; +import 'firebase/firestore'; +import 'firebase/auth'; + +const firebaseConfig = { + apiKey: process.env.APIKEY, + authDomain: process.env.AUTHDOMAIN, + projectId: process.env.PROJECTID, + storageBucket: process.env.STORAGEBUCKET, + messagingSenderId: process.env.MESSAGINGSENDERID, + appId: process.env.APPID, + measurementId: process.env.MEASUREMENTID, +}; + +let instance = null; + +export default function getFirebase() { + if (typeof window !== 'undefined') { + if (instance) + return instance; + instance = firebase.initializeApp(firebaseConfig); + return instance; + } +} diff --git a/src/hooks/useFirebase.js b/src/hooks/useFirebase.js new file mode 100644 index 0000000..dd748b4 --- /dev/null +++ b/src/hooks/useFirebase.js @@ -0,0 +1,11 @@ +import { useEffect, useState } from 'react'; +import getFirebase from './firebase'; + + +export default function useFirebase() { + const [instance, setInstance] = useState(null); + useEffect(() => { + setInstance(getFirebase()); + }, []); + return instance; +} diff --git a/src/index.js b/src/index.js new file mode 100644 index 0000000..e31646a --- /dev/null +++ b/src/index.js @@ -0,0 +1,12 @@ +import React from 'react'; +import App from './pages/App'; + +const Home = () => { + return ( +
+ +
+ ); +}; + +export default Home; diff --git a/src/pages/index.js b/src/pages/App.js similarity index 61% rename from src/pages/index.js rename to src/pages/App.js index 7168f1c..9228087 100644 --- a/src/pages/index.js +++ b/src/pages/App.js @@ -1,7 +1,7 @@ import React from 'react'; -const Home = () => { +const App = () => { return
Project Kiwi
; }; -export default Home; +export default App; From 7b8ec1cea7ee416cc2c2c10536ece28ba0a11dab Mon Sep 17 00:00:00 2001 From: Sambit_Sankalp Date: Tue, 14 Sep 2021 12:44:27 +0530 Subject: [PATCH 2/3] feat:SetUp Google OAuth --- package.json | 2 +- src/UserReducers.js | 51 +++ src/components/SignInButton.js | 40 +++ src/components/index.js | 1 + src/config/firebase.js | 2 + src/contexts/AuthContext.js | 104 ++++++ src/hooks/useFirebase.js | 3 +- src/pages/App.js | 10 +- src/{ => pages}/index.js | 2 +- src/store/constants/AuthConstants.js | 4 + src/store/reducers/AuthReducers.js | 32 ++ yarn.lock | 467 +++++++++------------------ 12 files changed, 393 insertions(+), 325 deletions(-) create mode 100644 src/UserReducers.js create mode 100644 src/components/SignInButton.js create mode 100644 src/components/index.js create mode 100644 src/contexts/AuthContext.js rename src/{ => pages}/index.js (80%) create mode 100644 src/store/constants/AuthConstants.js create mode 100644 src/store/reducers/AuthReducers.js diff --git a/package.json b/package.json index 3099618..0cfd60d 100644 --- a/package.json +++ b/package.json @@ -33,7 +33,7 @@ "@material-ui/core": "^4.12.3", "@material-ui/icons": "^4.11.2", "@material-ui/styles": "^4.11.4", - "firebase": "^9.0.2", + "firebase": "8.10.0", "gatsby": "^3.12.1", "gatsby-plugin-robots-txt": "^1.6.10", "gatsby-plugin-styled-components": "^4.13.0", diff --git a/src/UserReducers.js b/src/UserReducers.js new file mode 100644 index 0000000..bc76594 --- /dev/null +++ b/src/UserReducers.js @@ -0,0 +1,51 @@ +import { + ADD_CODE_FAIL, + ADD_CODE_REQUEST, + ADD_CODE_SUCCESS, + ALL_USER_FAIL, + ALL_USER_REQUEST, + ALL_USER_SUCCESS, +} from '../constants/UserConstants'; + +export const addCodeToUserReducer = (state = {}, action) => { + switch (action.type) { + case ADD_CODE_REQUEST: + return { + loading: true, + }; + case ADD_CODE_SUCCESS: + return { + loading: false, + success: true, + }; + case ADD_CODE_FAIL: + return { + loading: false, + error: action.payload, + }; + default: + return state; + } +}; + + +export const allUserReducer = (state = {}, action) => { + switch (action.type) { + case ALL_USER_REQUEST: + return { + loading: true, + }; + case ALL_USER_SUCCESS: + return { + loading: false, + users: action.payload, + }; + case ALL_USER_FAIL: + return { + loading: false, + error: action.payload, + }; + default: + return state; + } +}; diff --git a/src/components/SignInButton.js b/src/components/SignInButton.js new file mode 100644 index 0000000..a968fec --- /dev/null +++ b/src/components/SignInButton.js @@ -0,0 +1,40 @@ +import React, { useContext } from 'react'; + +// Context +import { AuthContext } from '../contexts/AuthContext'; + +// Components +import { Button, Typography } from '@material-ui/core'; + +const SignInButton = () => { + const { signIn, signOut, userName, state } = useContext(AuthContext); + const { loading, loginSuccess, error } = state; + return ( +
+ {loading ? ( +

Loading...

+ ) : error ? ( +

{error}

+ ) : ( +
+ {!loginSuccess ? ( +
+ +
+ ) : ( +
+ Hello ,{userName} + +
+ )} +
+ )} +
+ ); +}; + +export default SignInButton; diff --git a/src/components/index.js b/src/components/index.js new file mode 100644 index 0000000..167e570 --- /dev/null +++ b/src/components/index.js @@ -0,0 +1 @@ +export { default as SignInButton } from './SignInButton'; diff --git a/src/config/firebase.js b/src/config/firebase.js index 9b726b0..6443fed 100644 --- a/src/config/firebase.js +++ b/src/config/firebase.js @@ -12,6 +12,8 @@ const firebaseConfig = { measurementId: process.env.MEASUREMENTID, }; +export const provider = new firebase.auth.GoogleAuthProvider(); + let instance = null; export default function getFirebase() { diff --git a/src/contexts/AuthContext.js b/src/contexts/AuthContext.js new file mode 100644 index 0000000..b5b941e --- /dev/null +++ b/src/contexts/AuthContext.js @@ -0,0 +1,104 @@ +import React, { createContext, useReducer, useEffect, useState } from 'react'; + +// Reducers +import { authReducer } from '../store/reducers/AuthReducers'; + +// Constants +import { + AUTH_FAIL, + AUTH_REQUEST, + LOGIN_SUCCESS, + LOGOUT_SUCCESS, +} from '../store/constants/AuthConstants'; + +//Firebase +import useFirebase from '../hooks/useFirebase'; +import { provider } from '../config/firebase'; + +// Context Created +export const AuthContext = createContext(); + +//Context Provider +const AuthContextProvider = ({ children }) => { + const [userName, setuserName] = useState('Hacker'); + const [state, dispatch] = useReducer(authReducer, {}); + + const firebase = useFirebase(); + + useEffect(() => { + if (!firebase) return; + firebase.auth().onAuthStateChanged((user) => { + if (user) { + setuserName(user.displayName); + } + }); + }, [dispatch,state]); + + const signIn = async (e) => { + e.preventDefault(); + dispatch({ type: AUTH_REQUEST }); + + await firebase + .auth() + .signInWithPopup(provider) + .then((result) => { + dispatch({ type: LOGIN_SUCCESS }); + var user = result.user; + + firebase + .firestore() + .collection('users') + .doc(user.uid) + .set({ + name: user.displayName, + email: user.email, + imageUrl: user.providerData[0].photoURL, + points: 0, + codeIDs: [], + }) + .then(() => { + console.log('login success'); + dispatch({ + type: LOGIN_SUCCESS, + }); + }) + .catch((error) => { + console.error(error); + }); + }) + .catch((error) => { + var errorMessage = error.message; + dispatch({ + type: AUTH_FAIL, + payload: errorMessage, + }); + }); + }; + + const signOut = async (e) => { + e.preventDefault(); + try { + dispatch({ type: AUTH_REQUEST }); + + await firebase + .auth() + .signOut() + .then(() => { + dispatch({ type: LOGOUT_SUCCESS }); + }); + } catch (error) { + dispatch({ + type: AUTH_FAIL, + payload: error, + }); + } + }; + + return ( + + {children} + + ); +}; + +export default AuthContextProvider; diff --git a/src/hooks/useFirebase.js b/src/hooks/useFirebase.js index dd748b4..a613ea5 100644 --- a/src/hooks/useFirebase.js +++ b/src/hooks/useFirebase.js @@ -1,6 +1,5 @@ import { useEffect, useState } from 'react'; -import getFirebase from './firebase'; - +import getFirebase from '../config/firebase'; export default function useFirebase() { const [instance, setInstance] = useState(null); diff --git a/src/pages/App.js b/src/pages/App.js index 9228087..350d024 100644 --- a/src/pages/App.js +++ b/src/pages/App.js @@ -1,7 +1,15 @@ import React from 'react'; +import AuthContextProvider from '../contexts/AuthContext'; + +import { SignInButton } from '../components'; + const App = () => { - return
Project Kiwi
; + return ( + + + + ); }; export default App; diff --git a/src/index.js b/src/pages/index.js similarity index 80% rename from src/index.js rename to src/pages/index.js index e31646a..f291f57 100644 --- a/src/index.js +++ b/src/pages/index.js @@ -1,5 +1,5 @@ import React from 'react'; -import App from './pages/App'; +import App from './App'; const Home = () => { return ( diff --git a/src/store/constants/AuthConstants.js b/src/store/constants/AuthConstants.js new file mode 100644 index 0000000..467152e --- /dev/null +++ b/src/store/constants/AuthConstants.js @@ -0,0 +1,4 @@ +export const AUTH_REQUEST = "AUTH_REQUEST"; +export const LOGIN_SUCCESS = "LOGIN_SUCCESS"; +export const AUTH_FAIL = "LOGINAUTH"; +export const LOGOUT_SUCCESS = "LOGOUT_SUCCESS"; diff --git a/src/store/reducers/AuthReducers.js b/src/store/reducers/AuthReducers.js new file mode 100644 index 0000000..c3636ac --- /dev/null +++ b/src/store/reducers/AuthReducers.js @@ -0,0 +1,32 @@ +import { + AUTH_FAIL, + AUTH_REQUEST, + LOGIN_SUCCESS, + LOGOUT_SUCCESS, +} from '../constants/AuthConstants'; + +export const authReducer = (state = {}, action) => { + switch (action.type) { + case AUTH_REQUEST: + return { + loading: true, + }; + case LOGIN_SUCCESS: + return { + loading: false, + loginSuccess: true, + }; + case LOGOUT_SUCCESS: + return { + loading: false, + loginSuccess: false, + }; + case AUTH_FAIL: + return { + loading: false, + error: action.payload, + }; + default: + return state; + } +}; diff --git a/yarn.lock b/yarn.lock index b4f4c38..6cd7e0f 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1192,40 +1192,19 @@ minimatch "^3.0.4" strip-json-comments "^3.1.1" -"@firebase/analytics-compat@0.1.1": - version "0.1.1" - resolved "https://registry.yarnpkg.com/@firebase/analytics-compat/-/analytics-compat-0.1.1.tgz#77a3e5d28f15df303c3836db4740a43955fcfcac" - integrity sha512-pMTrA8cxMXFRv7bwZEXXz0NCepnyH2Jay/32RZ7xAufij2VJhF5S1BtfCO0wuri3FB94rlM8SmSEbwxxHcAtVg== - dependencies: - "@firebase/analytics" "0.7.0" - "@firebase/analytics-types" "0.7.0" - "@firebase/component" "0.5.6" - "@firebase/util" "1.3.0" - tslib "^2.1.0" - -"@firebase/analytics-types@0.7.0": - version "0.7.0" - resolved "https://registry.yarnpkg.com/@firebase/analytics-types/-/analytics-types-0.7.0.tgz#91960e7c87ce8bf18cf8dd9e55ccbf5dc3989b5d" - integrity sha512-DNE2Waiwy5+zZnCfintkDtBfaW6MjIG883474v6Z0K1XZIvl76cLND4iv0YUb48leyF+PJK1KO2XrgHb/KpmhQ== - -"@firebase/analytics@0.7.0": - version "0.7.0" - resolved "https://registry.yarnpkg.com/@firebase/analytics/-/analytics-0.7.0.tgz#7f4450936a2cac3227cc6439130c09b9a0a7d83e" - integrity sha512-YEPyeW6CV8xbIvWaJMvfRdWUPKe/xchJ1bjV6GpLfkYRX+ZE1/YSNU14pX292M4bZ6Qg+bbu2DuWp8fEpa/YQg== - dependencies: - "@firebase/component" "0.5.6" - "@firebase/installations" "0.5.0" - "@firebase/logger" "0.2.6" - "@firebase/util" "1.3.0" - tslib "^2.1.0" +"@firebase/analytics-types@0.6.0": + version "0.6.0" + resolved "https://registry.yarnpkg.com/@firebase/analytics-types/-/analytics-types-0.6.0.tgz#164116ebe8d3b338272acc7f9904cac38556d6cd" + integrity sha512-kbMawY0WRPyL/lbknBkme4CNLl+Gw+E9G4OpNeXAauqoQiNkBgpIvZYy7BRT4sNGhZbxdxXxXbruqUwDzLmvTw== -"@firebase/app-check-compat@0.1.1": - version "0.1.1" - resolved "https://registry.yarnpkg.com/@firebase/app-check-compat/-/app-check-compat-0.1.1.tgz#84c7ef29bb683fd3dea66a66f82b799474c904ee" - integrity sha512-XTV5Ns0Lpwn5GgXV5T0soOkoOGACaw9xiNvAXcISQYFBIse0k7fKo8V5J9VUS1ppzGpyTRCg0m9efz4CNrwPyQ== +"@firebase/analytics@0.6.18": + version "0.6.18" + resolved "https://registry.yarnpkg.com/@firebase/analytics/-/analytics-0.6.18.tgz#0dd36861d9ded60038687f1b03cb0e4b77dd72ce" + integrity sha512-FXNtYDxbs9ynPbzUVuG94BjFPOPpgJ7156660uvCBuKgoBCIVcNqKkJQQ7TH8384fqvGjbjdcgARY9jgAHbtog== dependencies: - "@firebase/app-check" "0.4.0" + "@firebase/analytics-types" "0.6.0" "@firebase/component" "0.5.6" + "@firebase/installations" "0.4.32" "@firebase/logger" "0.2.6" "@firebase/util" "1.3.0" tslib "^2.1.0" @@ -1235,76 +1214,57 @@ resolved "https://registry.yarnpkg.com/@firebase/app-check-interop-types/-/app-check-interop-types-0.1.0.tgz#83afd9d41f99166c2bdb2d824e5032e9edd8fe53" integrity sha512-uZfn9s4uuRsaX5Lwx+gFP3B6YsyOKUE+Rqa6z9ojT4VSRAsZFko9FRn6OxQUA1z5t5d08fY4pf+/+Dkd5wbdbA== -"@firebase/app-check@0.4.0": - version "0.4.0" - resolved "https://registry.yarnpkg.com/@firebase/app-check/-/app-check-0.4.0.tgz#a048fc396b2a97ef8eba77fe909efbff07a5c75c" - integrity sha512-KQ/k8cukzZbH/LC9Iu5/Dbhr7w6byu8bYjfCA38B6v8aISgASYfP/nirxRD+hSuDoxXtAnPGEuv+v0YU3D1R2w== - dependencies: - "@firebase/component" "0.5.6" - "@firebase/logger" "0.2.6" - "@firebase/util" "1.3.0" - tslib "^2.1.0" +"@firebase/app-check-types@0.3.1": + version "0.3.1" + resolved "https://registry.yarnpkg.com/@firebase/app-check-types/-/app-check-types-0.3.1.tgz#1084723debad3ad9e7997d3b356165d275c25fcc" + integrity sha512-KJ+BqJbdNsx4QT/JIT1yDj5p6D+QN97iJs3GuHnORrqL+DU3RWc9nSYQsrY6Tv9jVWcOkMENXAgDT484vzsm2w== -"@firebase/app-compat@0.1.1": - version "0.1.1" - resolved "https://registry.yarnpkg.com/@firebase/app-compat/-/app-compat-0.1.1.tgz#47d5f5ac350f59ea4b721f17e01b1e46a1a3154a" - integrity sha512-AoUO7PnQlDPyMAvAE972kBhrwXRZRLGdHM8obyIeTzPNqIiEoULD4Rdq5TBB4UmV2HYAlYdrS+dk4nuWx67w6A== +"@firebase/app-check@0.3.2": + version "0.3.2" + resolved "https://registry.yarnpkg.com/@firebase/app-check/-/app-check-0.3.2.tgz#a8fa98bf35ea309458feb12739fcbf00c70ee5ef" + integrity sha512-YjpsnV1xVTO1B836IKijRcDeceLgHQNJ/DWa+Vky9UHkm1Mi4qosddX8LZzldaWRTWKX7BN1MbZOLY8r7M/MZQ== dependencies: - "@firebase/app" "0.7.0" + "@firebase/app-check-interop-types" "0.1.0" + "@firebase/app-check-types" "0.3.1" "@firebase/component" "0.5.6" "@firebase/logger" "0.2.6" "@firebase/util" "1.3.0" tslib "^2.1.0" -"@firebase/app-types@0.7.0": - version "0.7.0" - resolved "https://registry.yarnpkg.com/@firebase/app-types/-/app-types-0.7.0.tgz#c9e16d1b8bed1a991840b8d2a725fb58d0b5899f" - integrity sha512-6fbHQwDv2jp/v6bXhBw2eSRbNBpxHcd1NBF864UksSMVIqIyri9qpJB1Mn6sGZE+bnDsSQBC5j2TbMxYsJQkQg== +"@firebase/app-types@0.6.3": + version "0.6.3" + resolved "https://registry.yarnpkg.com/@firebase/app-types/-/app-types-0.6.3.tgz#3f10514786aad846d74cd63cb693556309918f4b" + integrity sha512-/M13DPPati7FQHEQ9Minjk1HGLm/4K4gs9bR4rzLCWJg64yGtVC0zNg9gDpkw9yc2cvol/mNFxqTtd4geGrwdw== -"@firebase/app@0.7.0": - version "0.7.0" - resolved "https://registry.yarnpkg.com/@firebase/app/-/app-0.7.0.tgz#989e9f354951de2a8ac806f6e3fa0afd9f80b470" - integrity sha512-l4Pd69re6JyjumQrl719dnY5JSKROSYda/0N2wzOhSzqg8DsZOIErr8+xj6QAE6BtNsoIEk7ma9WMS/2r02MhA== +"@firebase/app@0.6.30": + version "0.6.30" + resolved "https://registry.yarnpkg.com/@firebase/app/-/app-0.6.30.tgz#c7ff8c9c341e344366f510fcce7498d2e0fd5373" + integrity sha512-uAYEDXyK0mmpZ8hWQj5TNd7WVvfsU8PgsqKpGljbFBG/HhsH8KbcykWAAA+c1PqL7dt/dbt0Reh1y9zEdYzMhg== dependencies: + "@firebase/app-types" "0.6.3" "@firebase/component" "0.5.6" "@firebase/logger" "0.2.6" "@firebase/util" "1.3.0" + dom-storage "2.1.0" tslib "^2.1.0" - -"@firebase/auth-compat@0.1.2": - version "0.1.2" - resolved "https://registry.yarnpkg.com/@firebase/auth-compat/-/auth-compat-0.1.2.tgz#a971cb7859eb4d45c233043bea102993376d9fca" - integrity sha512-0eqWSV4XoyOltT4HVJUzh8hBFNO5f78ZGDplRQImQ97/6wR45x6Q/9R19KTWOd109+3Axw6Orfq2cSNY0opgEA== - dependencies: - "@firebase/auth" "0.17.2" - "@firebase/auth-types" "0.11.0" - "@firebase/component" "0.5.6" - "@firebase/util" "1.3.0" - node-fetch "2.6.1" - selenium-webdriver "^4.0.0-beta.2" - tslib "^2.1.0" + xmlhttprequest "1.8.0" "@firebase/auth-interop-types@0.1.6": version "0.1.6" resolved "https://registry.yarnpkg.com/@firebase/auth-interop-types/-/auth-interop-types-0.1.6.tgz#5ce13fc1c527ad36f1bb1322c4492680a6cf4964" integrity sha512-etIi92fW3CctsmR9e3sYM3Uqnoq861M0Id9mdOPF6PWIg38BXL5k4upCNBggGUpLIS0H1grMOvy/wn1xymwe2g== -"@firebase/auth-types@0.11.0": - version "0.11.0" - resolved "https://registry.yarnpkg.com/@firebase/auth-types/-/auth-types-0.11.0.tgz#b9c73c60ca07945b3bbd7a097633e5f78fa9e886" - integrity sha512-q7Bt6cx+ySj9elQHTsKulwk3+qDezhzRBFC9zlQ1BjgMueUOnGMcvqmU0zuKlQ4RhLSH7MNAdBV2znVaoN3Vxw== +"@firebase/auth-types@0.10.3": + version "0.10.3" + resolved "https://registry.yarnpkg.com/@firebase/auth-types/-/auth-types-0.10.3.tgz#2be7dd93959c8f5304c63e09e98718e103464d8c" + integrity sha512-zExrThRqyqGUbXOFrH/sowuh2rRtfKHp9SBVY2vOqKWdCX1Ztn682n9WLtlUDsiYVIbBcwautYWk2HyCGFv0OA== -"@firebase/auth@0.17.2": - version "0.17.2" - resolved "https://registry.yarnpkg.com/@firebase/auth/-/auth-0.17.2.tgz#54ad76cfdc2f6d1201fb780365cf7d362586f3c6" - integrity sha512-t1iHB5Eg7vAbyOEzMMarsyJNGiO2xP8Zag0hLRVXWVaWymXZnyVKp62sXqyonvz4eVT8+iGBjDySB9zKIb5Pqg== +"@firebase/auth@0.16.8": + version "0.16.8" + resolved "https://registry.yarnpkg.com/@firebase/auth/-/auth-0.16.8.tgz#4edd44673d3711e94cfa1e6b03883214ae1f2255" + integrity sha512-mR0UXG4LirWIfOiCWxVmvz1o23BuKGxeItQ2cCUgXLTjNtWJXdcky/356iTUsd7ZV5A78s2NHeN5tIDDG6H4rg== dependencies: - "@firebase/component" "0.5.6" - "@firebase/logger" "0.2.6" - "@firebase/util" "1.3.0" - node-fetch "2.6.1" - selenium-webdriver "4.0.0-beta.1" - tslib "^2.1.0" + "@firebase/auth-types" "0.10.3" "@firebase/component@0.5.6": version "0.5.6" @@ -1314,60 +1274,39 @@ "@firebase/util" "1.3.0" tslib "^2.1.0" -"@firebase/database-compat@0.1.0": - version "0.1.0" - resolved "https://registry.yarnpkg.com/@firebase/database-compat/-/database-compat-0.1.0.tgz#f02abaa9f493fd14aaae6e2b34262bafc5d033c7" - integrity sha512-jLN0JMYnYijg8f3QFtSuPGNuKAt3yYVRsHHlR8sADgx8MptByRRwVmMOk7QPc/DY7qscZIJow3hXFwvbeApFLA== - dependencies: - "@firebase/component" "0.5.6" - "@firebase/database" "0.12.0" - "@firebase/database-types" "0.9.0" - "@firebase/logger" "0.2.6" - "@firebase/util" "1.3.0" - tslib "^2.1.0" - -"@firebase/database-types@0.9.0": - version "0.9.0" - resolved "https://registry.yarnpkg.com/@firebase/database-types/-/database-types-0.9.0.tgz#dad3db745531f40b60f7726a76b2bf6bbf6c6471" - integrity sha512-x2TeTVnMZGPvT3y4Nayio4WprQA/zGwqMrPMQwSdF+PFnaFJAhA/eLgUB6cmWFzFYO9VvmuRkFzDzo6ezTo1Zw== +"@firebase/database-types@0.8.0": + version "0.8.0" + resolved "https://registry.yarnpkg.com/@firebase/database-types/-/database-types-0.8.0.tgz#3cc8b292795ed268cd40a521f45a957b951189a5" + integrity sha512-7IdjAFRfPWyG3b4wcXyghb3Y1CLCSJFZIg1xl5GbTVMttSQFT4B5NYdhsfA34JwAsv5pMzPpjOaS3/K9XJ2KiA== dependencies: - "@firebase/app-types" "0.7.0" + "@firebase/app-types" "0.6.3" "@firebase/util" "1.3.0" -"@firebase/database@0.12.0": - version "0.12.0" - resolved "https://registry.yarnpkg.com/@firebase/database/-/database-0.12.0.tgz#2aa33138128cfcaf74388efe13e0eda10825d564" - integrity sha512-/gl6z6fAxAAFAdDllzidzweGpuXJu0b9AusSLrdW4LpP6KCuxJbhonMJuSGpHLzAHzx6Q9uitbvqHqBb17sttQ== +"@firebase/database@0.11.0": + version "0.11.0" + resolved "https://registry.yarnpkg.com/@firebase/database/-/database-0.11.0.tgz#c0f6a9dd9549d0ecd2b71a3a71db487854895bfc" + integrity sha512-b/kwvCubr6G9coPlo48PbieBDln7ViFBHOGeVt/bt82yuv5jYZBEYAac/mtOVSxpf14aMo/tAN+Edl6SWqXApw== dependencies: "@firebase/auth-interop-types" "0.1.6" "@firebase/component" "0.5.6" + "@firebase/database-types" "0.8.0" "@firebase/logger" "0.2.6" "@firebase/util" "1.3.0" faye-websocket "0.11.3" tslib "^2.1.0" -"@firebase/firestore-compat@0.1.2": - version "0.1.2" - resolved "https://registry.yarnpkg.com/@firebase/firestore-compat/-/firestore-compat-0.1.2.tgz#af9e28735376ee04c147ea3ac11b592b3f7a68ac" - integrity sha512-xtjj2qOBN0+S5KlXmWa5UozGmYJ1OAGBNT0qkCSvzQitHED5/B2fNwKnpy7Em+Zu3Yc3r/eM94OGx93USFXifg== - dependencies: - "@firebase/component" "0.5.6" - "@firebase/firestore" "3.0.2" - "@firebase/firestore-types" "2.5.0" - "@firebase/util" "1.3.0" - tslib "^2.1.0" - -"@firebase/firestore-types@2.5.0": - version "2.5.0" - resolved "https://registry.yarnpkg.com/@firebase/firestore-types/-/firestore-types-2.5.0.tgz#16fca40b6980fdb000de86042d7a96635f2bcdd7" - integrity sha512-I6c2m1zUhZ5SH0cWPmINabDyH5w0PPFHk2UHsjBpKdZllzJZ2TwTkXbDtpHUZNmnc/zAa0WNMNMvcvbb/xJLKA== +"@firebase/firestore-types@2.4.0": + version "2.4.0" + resolved "https://registry.yarnpkg.com/@firebase/firestore-types/-/firestore-types-2.4.0.tgz#6e6501e953a9a7fc00a7dfd7de5bb7a248b89d7c" + integrity sha512-0dgwfuNP7EN6/OlK2HSNSQiQNGLGaRBH0gvgr1ngtKKJuJFuq0Z48RBMeJX9CGjV4TP9h2KaB+KrUKJ5kh1hMg== -"@firebase/firestore@3.0.2": - version "3.0.2" - resolved "https://registry.yarnpkg.com/@firebase/firestore/-/firestore-3.0.2.tgz#594130bb125803b6e28611075c2f396f59ba8186" - integrity sha512-AWh1pugDifwCXHaQalZHp+Hr/3o+cxYvlbgQrPB35bh1A3do4I1xim/8Pba7gtpTzlClDryd5pK/XbK0TC/2kg== +"@firebase/firestore@2.4.0": + version "2.4.0" + resolved "https://registry.yarnpkg.com/@firebase/firestore/-/firestore-2.4.0.tgz#f48282f70c36e43e8f8782f368972515efef5177" + integrity sha512-PQ6+lWNrvh74GvFTHT4gCutFipDmtu8D1tNNawKe+/SyL6XFgeuMYgZIpKQgkTSezVDogC7EGQTJBFnewF9pOg== dependencies: "@firebase/component" "0.5.6" + "@firebase/firestore-types" "2.4.0" "@firebase/logger" "0.2.6" "@firebase/util" "1.3.0" "@firebase/webchannel-wrapper" "0.5.1" @@ -1376,41 +1315,34 @@ node-fetch "2.6.1" tslib "^2.1.0" -"@firebase/functions-compat@0.1.2": - version "0.1.2" - resolved "https://registry.yarnpkg.com/@firebase/functions-compat/-/functions-compat-0.1.2.tgz#557461ed4f2928747461c6b2d246ac328aea3248" - integrity sha512-eisJazUrqOL/pAZJPqamYiaAyV3ch6GQMx8Sso792tvRr8SFsNCFbN9eVun0U0ubWAON5qdLoruoc6npXg6FIg== - dependencies: - "@firebase/component" "0.5.6" - "@firebase/functions" "0.7.1" - "@firebase/functions-types" "0.5.0" - "@firebase/util" "1.3.0" - tslib "^2.1.0" - -"@firebase/functions-types@0.5.0": - version "0.5.0" - resolved "https://registry.yarnpkg.com/@firebase/functions-types/-/functions-types-0.5.0.tgz#b50ba95ccce9e96f7cda453228ffe1684645625b" - integrity sha512-qza0M5EwX+Ocrl1cYI14zoipUX4gI/Shwqv0C1nB864INAD42Dgv4v94BCyxGHBg2kzlWy8PNafdP7zPO8aJQA== +"@firebase/functions-types@0.4.0": + version "0.4.0" + resolved "https://registry.yarnpkg.com/@firebase/functions-types/-/functions-types-0.4.0.tgz#0b789f4fe9a9c0b987606c4da10139345b40f6b9" + integrity sha512-3KElyO3887HNxtxNF1ytGFrNmqD+hheqjwmT3sI09FaDCuaxGbOnsXAXH2eQ049XRXw9YQpHMgYws/aUNgXVyQ== -"@firebase/functions@0.7.1": - version "0.7.1" - resolved "https://registry.yarnpkg.com/@firebase/functions/-/functions-0.7.1.tgz#aa95aaed34649d0656d50df0ed21802f117cca88" - integrity sha512-F6XZVVBpqupCX7/YXpdzyXKYCeLVmHO/jxAKbN9I4B+c8doDqVtGkO23DPzf4ppzR4FuXDiKEEU9ZZ85kqZ1QA== +"@firebase/functions@0.6.15": + version "0.6.15" + resolved "https://registry.yarnpkg.com/@firebase/functions/-/functions-0.6.15.tgz#8b0b1b11947e61e55522af07ee4aa7f5d9954bab" + integrity sha512-b7RpLwFXi0N+HgkfK8cmkarSOoBeSrc1jNdadkCacQt+vIePkKM3E9EJXF4roWSa8GwTruodpBsvH+lK9iCAKQ== dependencies: - "@firebase/app-check-interop-types" "0.1.0" - "@firebase/auth-interop-types" "0.1.6" "@firebase/component" "0.5.6" - "@firebase/messaging-interop-types" "0.1.0" - "@firebase/util" "1.3.0" + "@firebase/functions-types" "0.4.0" + "@firebase/messaging-types" "0.5.0" node-fetch "2.6.1" tslib "^2.1.0" -"@firebase/installations@0.5.0": - version "0.5.0" - resolved "https://registry.yarnpkg.com/@firebase/installations/-/installations-0.5.0.tgz#4a21e1c7467795802b031af413df2555b17cf1b1" - integrity sha512-wF1CKIx+SoiEbtNdutulxW4z80B5lGXW+8JdAtcKQwgKxF0VtlCaDFsd9AEB3aTtzIve5UkGak8hQOMvvOpydg== +"@firebase/installations-types@0.3.4": + version "0.3.4" + resolved "https://registry.yarnpkg.com/@firebase/installations-types/-/installations-types-0.3.4.tgz#589a941d713f4f64bf9f4feb7f463505bab1afa2" + integrity sha512-RfePJFovmdIXb6rYwtngyxuEcWnOrzdZd9m7xAW0gRxDIjBT20n3BOhjpmgRWXo/DAxRmS7bRjWAyTHY9cqN7Q== + +"@firebase/installations@0.4.32": + version "0.4.32" + resolved "https://registry.yarnpkg.com/@firebase/installations/-/installations-0.4.32.tgz#aefc27710b2386de39355293021ca94bd545ae0a" + integrity sha512-K4UlED1Vrhd2rFQQJih+OgEj8OTtrtH4+Izkx7ip2bhXSc+unk8ZhnF69D0kmh7zjXAqEDJrmHs9O5fI3rV6Tw== dependencies: "@firebase/component" "0.5.6" + "@firebase/installations-types" "0.3.4" "@firebase/util" "1.3.0" idb "3.0.2" tslib "^2.1.0" @@ -1420,58 +1352,37 @@ resolved "https://registry.yarnpkg.com/@firebase/logger/-/logger-0.2.6.tgz#3aa2ca4fe10327cabf7808bd3994e88db26d7989" integrity sha512-KIxcUvW/cRGWlzK9Vd2KB864HlUnCfdTH0taHE0sXW5Xl7+W68suaeau1oKNEqmc3l45azkd4NzXTCWZRZdXrw== -"@firebase/messaging-compat@0.1.0": - version "0.1.0" - resolved "https://registry.yarnpkg.com/@firebase/messaging-compat/-/messaging-compat-0.1.0.tgz#ab164540f6ba954c8d150b2e96dc6bf8c1536eb4" - integrity sha512-58qQmKwOiXhxZwrRwwjQDbjlRx1uMVVuV/DNbDzqilDJDdoYXMdK6RBTF9Bs51qy/Z1BI2Q9B1JX01QYlgZpxQ== - dependencies: - "@firebase/component" "0.5.6" - "@firebase/messaging" "0.9.0" - "@firebase/util" "1.3.0" - tslib "^2.1.0" - -"@firebase/messaging-interop-types@0.1.0": - version "0.1.0" - resolved "https://registry.yarnpkg.com/@firebase/messaging-interop-types/-/messaging-interop-types-0.1.0.tgz#bdac02dd31edd5cb9eec37b1db698ea5e2c1a631" - integrity sha512-DbvUl/rXAZpQeKBnwz0NYY5OCqr2nFA0Bj28Fmr3NXGqR4PAkfTOHuQlVtLO1Nudo3q0HxAYLa68ZDAcuv2uKQ== +"@firebase/messaging-types@0.5.0": + version "0.5.0" + resolved "https://registry.yarnpkg.com/@firebase/messaging-types/-/messaging-types-0.5.0.tgz#c5d0ef309ced1758fda93ef3ac70a786de2e73c4" + integrity sha512-QaaBswrU6umJYb/ZYvjR5JDSslCGOH6D9P136PhabFAHLTR4TWjsaACvbBXuvwrfCXu10DtcjMxqfhdNIB1Xfg== -"@firebase/messaging@0.9.0": - version "0.9.0" - resolved "https://registry.yarnpkg.com/@firebase/messaging/-/messaging-0.9.0.tgz#a868bea75d0c26210903178cf22d31c47bc84584" - integrity sha512-NTUB+gVJsgL/f6wqwUlgadaNuLZvyk1IlTcRvR3391t8jDSWOT2efwzNqcI7Xv4nhzaiPhzAQ4ncH/m8kfUUXQ== +"@firebase/messaging@0.8.0": + version "0.8.0" + resolved "https://registry.yarnpkg.com/@firebase/messaging/-/messaging-0.8.0.tgz#ab188bf25659e1bc048164fdcc99caa3ba820d22" + integrity sha512-hkFHDyVe1kMcY9KEG+prjCbvS6MtLUgVFUbbQqq7JQfiv58E07YCzRUcMrJolbNi/1QHH6Jv16DxNWjJB9+/qA== dependencies: "@firebase/component" "0.5.6" - "@firebase/installations" "0.5.0" - "@firebase/messaging-interop-types" "0.1.0" + "@firebase/installations" "0.4.32" + "@firebase/messaging-types" "0.5.0" "@firebase/util" "1.3.0" idb "3.0.2" tslib "^2.1.0" -"@firebase/performance-compat@0.1.0": - version "0.1.0" - resolved "https://registry.yarnpkg.com/@firebase/performance-compat/-/performance-compat-0.1.0.tgz#c1edeccd9b60d83de26d8e645e0d2ddd64e9a2d7" - integrity sha512-H+/A5+y/15hFn5FHRP8lcogDzO6qm9YoACNEXn71UN4PiGQ+/BbHkQafDEXxD6wLfqfqR8u8oclHPFIYxMBF7Q== - dependencies: - "@firebase/component" "0.5.6" - "@firebase/logger" "0.2.6" - "@firebase/performance" "0.5.0" - "@firebase/performance-types" "0.1.0" - "@firebase/util" "1.3.0" - tslib "^2.1.0" +"@firebase/performance-types@0.0.13": + version "0.0.13" + resolved "https://registry.yarnpkg.com/@firebase/performance-types/-/performance-types-0.0.13.tgz#58ce5453f57e34b18186f74ef11550dfc558ede6" + integrity sha512-6fZfIGjQpwo9S5OzMpPyqgYAUZcFzZxHFqOyNtorDIgNXq33nlldTL/vtaUZA8iT9TT5cJlCrF/jthKU7X21EA== -"@firebase/performance-types@0.1.0": - version "0.1.0" - resolved "https://registry.yarnpkg.com/@firebase/performance-types/-/performance-types-0.1.0.tgz#5e6efa9dc81860aee2cb7121b39ae8fa137e69fc" - integrity sha512-6p1HxrH0mpx+622Ql6fcxFxfkYSBpE3LSuwM7iTtYU2nw91Hj6THC8Bc8z4nboIq7WvgsT/kOTYVVZzCSlXl8w== - -"@firebase/performance@0.5.0": - version "0.5.0" - resolved "https://registry.yarnpkg.com/@firebase/performance/-/performance-0.5.0.tgz#cc237e65791c75dba856ace8971b94d7adcbc60b" - integrity sha512-E+L18eJKshr/ijnWZMexEEddwkp2T4Ye2dJSK4TcOKRYfrmfZJ95RRZ+MPNp1ES7RH2JYiyym1NIQKPcNNvhug== +"@firebase/performance@0.4.18": + version "0.4.18" + resolved "https://registry.yarnpkg.com/@firebase/performance/-/performance-0.4.18.tgz#d9cd2311b5af2968c8a580cdc869a0ed6fb9cb1f" + integrity sha512-lvZW/TVDne2TyOpWbv++zjRn277HZpbjxbIPfwtnmKjVY1gJ+H77Qi1c2avVIc9hg80uGX/5tNf4pOApNDJLVg== dependencies: "@firebase/component" "0.5.6" - "@firebase/installations" "0.5.0" + "@firebase/installations" "0.4.32" "@firebase/logger" "0.2.6" + "@firebase/performance-types" "0.0.13" "@firebase/util" "1.3.0" tslib "^2.1.0" @@ -1484,56 +1395,35 @@ promise-polyfill "8.1.3" whatwg-fetch "2.0.4" -"@firebase/remote-config-compat@0.1.0": - version "0.1.0" - resolved "https://registry.yarnpkg.com/@firebase/remote-config-compat/-/remote-config-compat-0.1.0.tgz#8eb2582d1909dd4d5023383e43d73ad605d56daa" - integrity sha512-PpCh5f5hUUaDCmiJsuu/u9a0g0G5WH3YSbfH1jPejVOaJ1lS82615E7WOzco4zMllLYfX62VaUYD2vvcLyXE/w== - dependencies: - "@firebase/component" "0.5.6" - "@firebase/logger" "0.2.6" - "@firebase/remote-config" "0.2.0" - "@firebase/remote-config-types" "0.2.0" - "@firebase/util" "1.3.0" - tslib "^2.1.0" +"@firebase/remote-config-types@0.1.9": + version "0.1.9" + resolved "https://registry.yarnpkg.com/@firebase/remote-config-types/-/remote-config-types-0.1.9.tgz#fe6bbe4d08f3b6e92fce30e4b7a9f4d6a96d6965" + integrity sha512-G96qnF3RYGbZsTRut7NBX0sxyczxt1uyCgXQuH/eAfUCngxjEGcZQnBdy6mvSdqdJh5mC31rWPO4v9/s7HwtzA== -"@firebase/remote-config-types@0.2.0": - version "0.2.0" - resolved "https://registry.yarnpkg.com/@firebase/remote-config-types/-/remote-config-types-0.2.0.tgz#1e2759fc01f20b58c564db42196f075844c3d1fd" - integrity sha512-hqK5sCPeZvcHQ1D6VjJZdW6EexLTXNMJfPdTwbD8NrXUw6UjWC4KWhLK/TSlL0QPsQtcKRkaaoP+9QCgKfMFPw== - -"@firebase/remote-config@0.2.0": - version "0.2.0" - resolved "https://registry.yarnpkg.com/@firebase/remote-config/-/remote-config-0.2.0.tgz#aa2bd7b34e0e40a259c3f0409a5084864f234f0f" - integrity sha512-hNZ+BqsTmfe8ogpeow95NSwQmKIeetKdPxKpyC6RZBeFUae782+2HrUx4/Quep6OZjOHQF6xZ5d3VOxu2ZKEfg== +"@firebase/remote-config@0.1.43": + version "0.1.43" + resolved "https://registry.yarnpkg.com/@firebase/remote-config/-/remote-config-0.1.43.tgz#c49587fcb6a90d2675071cf2b8ad46eff1c89053" + integrity sha512-laNM4MN0CfeSp7XCVNjYOC4DdV6mj0l2rzUh42x4v2wLTweCoJ/kc1i4oWMX9TI7Jw8Am5Wl71Awn1J2pVe5xA== dependencies: "@firebase/component" "0.5.6" - "@firebase/installations" "0.5.0" + "@firebase/installations" "0.4.32" "@firebase/logger" "0.2.6" + "@firebase/remote-config-types" "0.1.9" "@firebase/util" "1.3.0" tslib "^2.1.0" -"@firebase/storage-compat@0.1.2": - version "0.1.2" - resolved "https://registry.yarnpkg.com/@firebase/storage-compat/-/storage-compat-0.1.2.tgz#98e6b3516a70799935618c32e6b8937370587929" - integrity sha512-eff0e2qcDX188mqr7aKrqr4TIS25/cE6E7Xo9WRLe3c17nqGgmrYM4DDS3VDttNbf1j5XaoEnZVZafE9/BR3Rg== - dependencies: - "@firebase/component" "0.5.6" - "@firebase/storage" "0.8.2" - "@firebase/storage-types" "0.6.0" - "@firebase/util" "1.3.0" - tslib "^2.1.0" - -"@firebase/storage-types@0.6.0": - version "0.6.0" - resolved "https://registry.yarnpkg.com/@firebase/storage-types/-/storage-types-0.6.0.tgz#0b1af64a2965af46fca138e5b70700e9b7e6312a" - integrity sha512-1LpWhcCb1ftpkP/akhzjzeFxgVefs6eMD2QeKiJJUGH1qOiows2w5o0sKCUSQrvrRQS1lz3SFGvNR1Ck/gqxeA== +"@firebase/storage-types@0.5.0": + version "0.5.0" + resolved "https://registry.yarnpkg.com/@firebase/storage-types/-/storage-types-0.5.0.tgz#5108afc0df4b1d20c27f2a7f68af2ec2827619c2" + integrity sha512-6Wv3Lu7s18hsgW7HG4BFwycTquZ3m/C8bjBoOsmPu0TD6M1GKwCzOC7qBdN7L6tRYPh8ipTj5+rPFrmhGfUVKA== -"@firebase/storage@0.8.2": - version "0.8.2" - resolved "https://registry.yarnpkg.com/@firebase/storage/-/storage-0.8.2.tgz#e08c05d070a468f0976a3d0cd32318655f0ae3b7" - integrity sha512-I9mVYhQ/DkWI1MKHhYvI4dnguXdXC50S5ryehOcR/JmSwyYjh1+T+IFQp0hHb1VWTixShzWoSGo1PhbrolFmIA== +"@firebase/storage@0.7.0": + version "0.7.0" + resolved "https://registry.yarnpkg.com/@firebase/storage/-/storage-0.7.0.tgz#7f9d10ce0b86a3dd9604ea287f8e75dddc369fbf" + integrity sha512-ebDFKJbM5HOxVtZV+RhVEBVtlWHK+Z5L3kA5uDBA2jMYcn+8NV/crozJnEE+iRsGEco6dLK5JS+Er4qtKLpH5A== dependencies: "@firebase/component" "0.5.6" + "@firebase/storage-types" "0.5.0" "@firebase/util" "1.3.0" node-fetch "2.6.1" tslib "^2.1.0" @@ -4573,6 +4463,11 @@ dom-serializer@^1.0.1: domhandler "^4.2.0" entities "^2.0.0" +dom-storage@2.1.0: + version "2.1.0" + resolved "https://registry.yarnpkg.com/dom-storage/-/dom-storage-2.1.0.tgz#00fb868bc9201357ea243c7bcfd3304c1e34ea39" + integrity sha512-g6RpyWXzl0RR6OTElHKBl7nwnK87GUyZMYC7JWsB/IA73vpqK2K6LT39x4VepLxlSsWBFrPVLnsSR5Jyty0+2Q== + domelementtype@^2.0.1, domelementtype@^2.2.0: version "2.2.0" resolved "https://registry.yarnpkg.com/domelementtype/-/domelementtype-2.2.0.tgz#9a0b6c2782ed6a1c7323d42267183df9bd8b1d57" @@ -5629,36 +5524,25 @@ find-up@^3.0.0: dependencies: locate-path "^3.0.0" -firebase@^9.0.2: - version "9.0.2" - resolved "https://registry.yarnpkg.com/firebase/-/firebase-9.0.2.tgz#092019326f1c9a67ec00ec78d50f80244581c705" - integrity sha512-+wdsD3Sk3fOgplzv4yzBmJ3Pdr01QiFF38Zq+8hzd+Dv6ZKMrgiq5CRljCaWenhZ/j8nuvHlq82u64ZARaXC+w== - dependencies: - "@firebase/analytics" "0.7.0" - "@firebase/analytics-compat" "0.1.1" - "@firebase/app" "0.7.0" - "@firebase/app-check" "0.4.0" - "@firebase/app-check-compat" "0.1.1" - "@firebase/app-compat" "0.1.1" - "@firebase/app-types" "0.7.0" - "@firebase/auth" "0.17.2" - "@firebase/auth-compat" "0.1.2" - "@firebase/database" "0.12.0" - "@firebase/database-compat" "0.1.0" - "@firebase/firestore" "3.0.2" - "@firebase/firestore-compat" "0.1.2" - "@firebase/functions" "0.7.1" - "@firebase/functions-compat" "0.1.2" - "@firebase/installations" "0.5.0" - "@firebase/messaging" "0.9.0" - "@firebase/messaging-compat" "0.1.0" - "@firebase/performance" "0.5.0" - "@firebase/performance-compat" "0.1.0" +firebase@8.10.0: + version "8.10.0" + resolved "https://registry.yarnpkg.com/firebase/-/firebase-8.10.0.tgz#1794148de8f865b5e7f32c582fb343a4e2c68ca7" + integrity sha512-GCABTbJdo88QgzX5OH/vsfKBWvTRbLUylGlYXtO7uYo1VErfGd2BWW9ATlJP5Gxx+ClDfyvVTvcs2rcNWn3uUA== + dependencies: + "@firebase/analytics" "0.6.18" + "@firebase/app" "0.6.30" + "@firebase/app-check" "0.3.2" + "@firebase/app-types" "0.6.3" + "@firebase/auth" "0.16.8" + "@firebase/database" "0.11.0" + "@firebase/firestore" "2.4.0" + "@firebase/functions" "0.6.15" + "@firebase/installations" "0.4.32" + "@firebase/messaging" "0.8.0" + "@firebase/performance" "0.4.18" "@firebase/polyfill" "0.3.36" - "@firebase/remote-config" "0.2.0" - "@firebase/remote-config-compat" "0.1.0" - "@firebase/storage" "0.8.2" - "@firebase/storage-compat" "0.1.2" + "@firebase/remote-config" "0.1.43" + "@firebase/storage" "0.7.0" "@firebase/util" "1.3.0" flat-cache@^1.2.1: @@ -6907,11 +6791,6 @@ ignore@^5.1.1, ignore@^5.1.4: resolved "https://registry.yarnpkg.com/ignore/-/ignore-5.1.8.tgz#f150a8b50a34289b33e22f5889abd4d8016f0e57" integrity sha512-BMpfD7PpiETpBl/A6S498BaIJ6Y/ABT93ETbby2fP00v4EbvPBXWEoaR1UBPKs3iR53pJY7EtZk5KACI57i1Uw== -immediate@~3.0.5: - version "3.0.6" - resolved "https://registry.yarnpkg.com/immediate/-/immediate-3.0.6.tgz#9db1dbd0faf8de6fbe0f5dd5e56bb606280de69b" - integrity sha1-nbHb0Pr43m++D13V5Wu2BigN5ps= - immer@8.0.1: version "8.0.1" resolved "https://registry.yarnpkg.com/immer/-/immer-8.0.1.tgz#9c73db683e2b3975c424fb0572af5889877ae656" @@ -7837,16 +7716,6 @@ jss@10.7.1, jss@^10.5.1: array-includes "^3.1.2" object.assign "^4.1.2" -jszip@^3.5.0, jszip@^3.6.0: - version "3.7.1" - resolved "https://registry.yarnpkg.com/jszip/-/jszip-3.7.1.tgz#bd63401221c15625a1228c556ca8a68da6fda3d9" - integrity sha512-ghL0tz1XG9ZEmRMcEN2vt7xabrDdqHHeykgARpmZ0BiIctWxM47Vt63ZO2dnp4QYt/xJVLLy5Zv1l/xRdh2byg== - dependencies: - lie "~3.3.0" - pako "~1.0.2" - readable-stream "~2.3.6" - set-immediate-shim "~1.0.1" - keyv@3.0.0: version "3.0.0" resolved "https://registry.yarnpkg.com/keyv/-/keyv-3.0.0.tgz#44923ba39e68b12a7cec7df6c3268c031f2ef373" @@ -7935,13 +7804,6 @@ levn@^0.4.1: prelude-ls "^1.2.1" type-check "~0.4.0" -lie@~3.3.0: - version "3.3.0" - resolved "https://registry.yarnpkg.com/lie/-/lie-3.3.0.tgz#dcf82dee545f46074daf200c7c1c5a08e0f40f6a" - integrity sha512-UaiMJzeWRlEujzAuw5LokY1L5ecNQYZKfmyZ9L7wDHb/p5etKaxXhohBcrw0EYby+G/NA52vRSN4N39dxHAIwQ== - dependencies: - immediate "~3.0.5" - lilconfig@^2.0.3: version "2.0.3" resolved "https://registry.yarnpkg.com/lilconfig/-/lilconfig-2.0.3.tgz#68f3005e921dafbd2a2afb48379986aa6d2579fd" @@ -9255,11 +9117,6 @@ package-json@^6.3.0: registry-url "^5.0.0" semver "^6.2.0" -pako@~1.0.2: - version "1.0.11" - resolved "https://registry.yarnpkg.com/pako/-/pako-1.0.11.tgz#6c9599d340d54dfd3946380252a35705a6b992bf" - integrity sha512-4hLB8Py4zZce5s4yd9XzopqwVv/yGNhV1Bl8NTmCq1763HeK2+EwVTv+leGeL13Dnh2wfbqowVPXCIO0z4taYw== - parent-module@^1.0.0: version "1.0.1" resolved "https://registry.yarnpkg.com/parent-module/-/parent-module-1.0.1.tgz#691d2709e78c79fae3a156622452d00762caaaa2" @@ -10604,7 +10461,7 @@ reusify@^1.0.4: resolved "https://registry.yarnpkg.com/reusify/-/reusify-1.0.4.tgz#90da382b1e126efc02146e90845a88db12925d76" integrity sha512-U9nH88a3fc/ekCF1l0/UP1IosiuIjyTh7hBvXVMHYgVcfGvt897Xguj2UOLDeI5BG2m7/uwyaLVT6fbtCwTyzw== -rimraf@^2.6.2, rimraf@^2.6.3, rimraf@^2.7.1: +rimraf@^2.6.2, rimraf@^2.6.3: version "2.7.1" resolved "https://registry.yarnpkg.com/rimraf/-/rimraf-2.7.1.tgz#35797f13a7fdadc566142c29d4f07ccad483e3ec" integrity sha512-uWjbaKIK3T1OSVptzX7Nl6PvQ3qAGtKEtVRjRuazjfL3Bx5eI409VZSqgND+4UNnmzLVdPj9FqFJNPqBZFve4w== @@ -10718,26 +10575,6 @@ select-hose@^2.0.0: resolved "https://registry.yarnpkg.com/select-hose/-/select-hose-2.0.0.tgz#625d8658f865af43ec962bfc376a37359a4994ca" integrity sha1-Yl2GWPhlr0Psliv8N2o3NZpJlMo= -selenium-webdriver@4.0.0-beta.1: - version "4.0.0-beta.1" - resolved "https://registry.yarnpkg.com/selenium-webdriver/-/selenium-webdriver-4.0.0-beta.1.tgz#db645b0d775f26e4e12235db05796a1bc1e7efda" - integrity sha512-DJ10z6Yk+ZBaLrt1CLElytQ/FOayx29ANKDtmtyW1A6kCJx3+dsc5fFMOZxwzukDniyYsC3OObT5pUAsgkjpxQ== - dependencies: - jszip "^3.5.0" - rimraf "^2.7.1" - tmp "^0.2.1" - ws "^7.3.1" - -selenium-webdriver@^4.0.0-beta.2: - version "4.0.0-rc-1" - resolved "https://registry.yarnpkg.com/selenium-webdriver/-/selenium-webdriver-4.0.0-rc-1.tgz#b1e7e5821298c8a071e988518dd6b759f0c41281" - integrity sha512-bcrwFPRax8fifRP60p7xkWDGSJJoMkPAzufMlk5K2NyLPht/YZzR2WcIk1+3gR8VOCLlst1P2PI+MXACaFzpIw== - dependencies: - jszip "^3.6.0" - rimraf "^3.0.2" - tmp "^0.2.1" - ws ">=7.4.6" - selfsigned@^1.10.8: version "1.10.11" resolved "https://registry.yarnpkg.com/selfsigned/-/selfsigned-1.10.11.tgz#24929cd906fe0f44b6d01fb23999a739537acbe9" @@ -10835,11 +10672,6 @@ set-blocking@^2.0.0: resolved "https://registry.yarnpkg.com/set-blocking/-/set-blocking-2.0.0.tgz#045f9782d011ae9a6803ddd382b24392b3d890f7" integrity sha1-BF+XgtARrppoA93TgrJDkrPYkPc= -set-immediate-shim@~1.0.1: - version "1.0.1" - resolved "https://registry.yarnpkg.com/set-immediate-shim/-/set-immediate-shim-1.0.1.tgz#4b2b1b27eb808a9f8dcc481a58e5e56f599f3f61" - integrity sha1-SysbJ+uAip+NzEgaWOXlb1mfP2E= - set-value@^2.0.0, set-value@^2.0.1: version "2.0.1" resolved "https://registry.yarnpkg.com/set-value/-/set-value-2.0.1.tgz#a18d40530e6f07de4228c7defe4227af8cad005b" @@ -12526,11 +12358,6 @@ ws@7.4.5, "ws@^5.2.0 || ^6.0.0 || ^7.0.0", ws@^7.3.0, ws@~7.4.2: resolved "https://registry.yarnpkg.com/ws/-/ws-7.4.5.tgz#a484dd851e9beb6fdb420027e3885e8ce48986c1" integrity sha512-xzyu3hFvomRfXKH8vOFMU3OguG6oOvhXMo3xsGy3xWExqaM2dxBbVxuD99O7m3ZUFMvvscsZDqxfgMaRr/Nr1g== -ws@>=7.4.6: - version "8.2.2" - resolved "https://registry.yarnpkg.com/ws/-/ws-8.2.2.tgz#ca684330c6dd6076a737250ed81ac1606cb0a63e" - integrity sha512-Q6B6H2oc8QY3llc3cB8kVmQ6pnJWVQbP7Q5algTcIxx7YEpc0oU4NBVHlztA7Ekzfhw2r0rPducMUiCGWKQRzw== - ws@^6.2.1: version "6.2.2" resolved "https://registry.yarnpkg.com/ws/-/ws-6.2.2.tgz#dd5cdbd57a9979916097652d78f1cc5faea0c32e" @@ -12538,11 +12365,6 @@ ws@^6.2.1: dependencies: async-limiter "~1.0.0" -ws@^7.3.1: - version "7.5.5" - resolved "https://registry.yarnpkg.com/ws/-/ws-7.5.5.tgz#8b4bc4af518cfabd0473ae4f99144287b33eb881" - integrity sha512-BAkMFcAzl8as1G/hArkxOxq3G7pjUqQ3gzYbLL0/5zNkph70e+lCoxBGnm6AW1+/aiNeV4fnKqZ8m4GZewmH2w== - xdg-basedir@^4.0.0: version "4.0.0" resolved "https://registry.yarnpkg.com/xdg-basedir/-/xdg-basedir-4.0.0.tgz#4bc8d9984403696225ef83a1573cbbcb4e79db13" @@ -12553,6 +12375,11 @@ xmlhttprequest-ssl@~1.6.2: resolved "https://registry.yarnpkg.com/xmlhttprequest-ssl/-/xmlhttprequest-ssl-1.6.3.tgz#03b713873b01659dfa2c1c5d056065b27ddc2de6" integrity sha512-3XfeQE/wNkvrIktn2Kf0869fC0BN6UpydVasGIeSm2B1Llihf7/0UfZM+eCkOw3P7bP4+qPgqhm7ZoxuJtFU0Q== +xmlhttprequest@1.8.0: + version "1.8.0" + resolved "https://registry.yarnpkg.com/xmlhttprequest/-/xmlhttprequest-1.8.0.tgz#67fe075c5c24fef39f9d65f5f7b7fe75171968fc" + integrity sha1-Z/4HXFwk/vOfnWX197f+dRcZaPw= + xss@^1.0.6: version "1.0.9" resolved "https://registry.yarnpkg.com/xss/-/xss-1.0.9.tgz#3ffd565571ff60d2e40db7f3b80b4677bec770d2" From fb5d681d49d9ebebcca9bacc496b05af0c7e08c7 Mon Sep 17 00:00:00 2001 From: Sambit_Sankalp Date: Tue, 14 Sep 2021 13:04:39 +0530 Subject: [PATCH 3/3] fix:minor change --- src/UserReducers.js | 51 --------------------------------------------- 1 file changed, 51 deletions(-) delete mode 100644 src/UserReducers.js diff --git a/src/UserReducers.js b/src/UserReducers.js deleted file mode 100644 index bc76594..0000000 --- a/src/UserReducers.js +++ /dev/null @@ -1,51 +0,0 @@ -import { - ADD_CODE_FAIL, - ADD_CODE_REQUEST, - ADD_CODE_SUCCESS, - ALL_USER_FAIL, - ALL_USER_REQUEST, - ALL_USER_SUCCESS, -} from '../constants/UserConstants'; - -export const addCodeToUserReducer = (state = {}, action) => { - switch (action.type) { - case ADD_CODE_REQUEST: - return { - loading: true, - }; - case ADD_CODE_SUCCESS: - return { - loading: false, - success: true, - }; - case ADD_CODE_FAIL: - return { - loading: false, - error: action.payload, - }; - default: - return state; - } -}; - - -export const allUserReducer = (state = {}, action) => { - switch (action.type) { - case ALL_USER_REQUEST: - return { - loading: true, - }; - case ALL_USER_SUCCESS: - return { - loading: false, - users: action.payload, - }; - case ALL_USER_FAIL: - return { - loading: false, - error: action.payload, - }; - default: - return state; - } -};