diff --git a/scheduler_app/app/(routes)/dashboard/page.js b/scheduler_app/app/(routes)/dashboard/page.js index 266c5fe..97b08f6 100644 --- a/scheduler_app/app/(routes)/dashboard/page.js +++ b/scheduler_app/app/(routes)/dashboard/page.js @@ -1,8 +1,17 @@ "use client" -import { LogoutLink } from '@kinde-oss/kinde-auth-nextjs' +import { LogoutLink} from '@kinde-oss/kinde-auth-nextjs' import React from 'react' +import { getFirestore } from "firebase/firestore"; +import { app } from '@/config/FirebaseConfig'; + const Dashboard = () => { + + const db = getFirestore(app); + const isBusinessRegistered = () => { + + } + return (
This is a dashboard page diff --git a/scheduler_app/config/FirebaseConfig.js b/scheduler_app/config/FirebaseConfig.js new file mode 100644 index 0000000..c5c9bcc --- /dev/null +++ b/scheduler_app/config/FirebaseConfig.js @@ -0,0 +1,19 @@ +// Import the functions you need from the SDKs you need +import { initializeApp } from "firebase/app"; +// 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: process.env.NEXT_PUBLIC_FIREBASE_API_KEY, + authDomain: "scheduleme-a2570.firebaseapp.com", + projectId: "scheduleme-a2570", + storageBucket: "scheduleme-a2570.appspot.com", + messagingSenderId: "377723089628", + appId: "1:377723089628:web:d590bdd65b7b3ea07e7a19", + measurementId: "G-LL5TKZ1PJ4" +}; + +// Initialize Firebase +export const app = initializeApp(firebaseConfig); \ No newline at end of file diff --git a/scheduler_app/package-lock.json b/scheduler_app/package-lock.json index ff89700..6bd6596 100644 --- a/scheduler_app/package-lock.json +++ b/scheduler_app/package-lock.json @@ -12,7 +12,7 @@ "@radix-ui/react-slot": "^1.0.2", "class-variance-authority": "^0.7.0", "clsx": "^2.1.1", - "firebase": "^10.11.1", + "firebase": "^10.11.0", "lucide-react": "^0.373.0", "next": "14.2.3", "react": "^18", @@ -1669,9 +1669,9 @@ "integrity": "sha512-niv/67/EOkTlGUxyiOYfIkysSMGYxkIUHJzT9pNkeIGt6zOz759oCUXOAwwjJzckh11dMBFjIYBmtWrdSgbmJw==" }, "node_modules/@firebase/app": { - "version": "0.10.2", - "resolved": "https://registry.npmjs.org/@firebase/app/-/app-0.10.2.tgz", - "integrity": "sha512-Sk0lQYG0IRIUXkj6Ovaxu0o1E1OdC+IR+UYEYLjXuddr6YjnpFuZ69rTxVja2Ef4TpidJky9o8OoVIaXNjDJ5A==", + "version": "0.10.1", + "resolved": "https://registry.npmjs.org/@firebase/app/-/app-0.10.1.tgz", + "integrity": "sha512-H8hvbSVxNt+QaUQ1O0Gqidksi5ilj6eL8iMYxUNZgsMwZ1yOTgXc2C9zktbPQKokgcMq+EbF0k/t5iouslSkiA==", "dependencies": { "@firebase/component": "0.6.6", "@firebase/logger": "0.4.1", @@ -1721,11 +1721,11 @@ "integrity": "sha512-NqeIcuGzZjl+khpXV0qsyOoaTqLeiG/K0kIDrebol+gb7xpmfOvXXqPEls+1WFBgHcPGdu+XRLhBA7xLzrVdpA==" }, "node_modules/@firebase/app-compat": { - "version": "0.2.32", - "resolved": "https://registry.npmjs.org/@firebase/app-compat/-/app-compat-0.2.32.tgz", - "integrity": "sha512-xxfAQKwCmpzwwdBHXT1DTnmilwSeSy6Sa1vThL0q0mq5GPHi52onkm5wl1lrOaiP0uQwQutkZBf/Wy4tDW+5WQ==", + "version": "0.2.31", + "resolved": "https://registry.npmjs.org/@firebase/app-compat/-/app-compat-0.2.31.tgz", + "integrity": "sha512-TP9EwOiqDDL4tsP9EyOJn+RYUTkopS0nCg6TZ0PH8XiUgLlgDAF2waAZNha0+18elUkVjbWoXcudCgJ0iVWEVA==", "dependencies": { - "@firebase/app": "0.10.2", + "@firebase/app": "0.10.1", "@firebase/component": "0.6.6", "@firebase/logger": "0.4.1", "@firebase/util": "1.9.5", @@ -1738,9 +1738,9 @@ "integrity": "sha512-nFGqTYsnDFn1oXf1tCwPAc+hQPxyvBT/QB7qDjwK+IDYThOn63nGhzdUTXxVD9Ca8gUY/e5PQMngeo0ZW/E3uQ==" }, "node_modules/@firebase/auth": { - "version": "1.7.2", - "resolved": "https://registry.npmjs.org/@firebase/auth/-/auth-1.7.2.tgz", - "integrity": "sha512-I8rrmhjdSYRokfCdElqm4fjJZdi7hh9NDGhXTRmcxkgUNcWoo82nZ0Ncm66MFlTdeLhNHEPzHqd38Gv6b+zpBg==", + "version": "1.7.1", + "resolved": "https://registry.npmjs.org/@firebase/auth/-/auth-1.7.1.tgz", + "integrity": "sha512-h1nTQ/bKuKmXnwhQP1hi73aSnEp3YQnw+9k8ICwvNB9FhG0XJS5VNtR08cpLUpwl9clSTujg3EP/Hs/chZnq4A==", "dependencies": { "@firebase/component": "0.6.6", "@firebase/logger": "0.4.1", @@ -1759,11 +1759,11 @@ } }, "node_modules/@firebase/auth-compat": { - "version": "0.5.7", - "resolved": "https://registry.npmjs.org/@firebase/auth-compat/-/auth-compat-0.5.7.tgz", - "integrity": "sha512-NcHgTsqrdZxSEElJ+TtUzPT+LELlABVgVpxHEZX1xKY6YG8OIq2PsH5bk/0nzBvYnnYy7bJsKHsiSfS46MbRZA==", + "version": "0.5.6", + "resolved": "https://registry.npmjs.org/@firebase/auth-compat/-/auth-compat-0.5.6.tgz", + "integrity": "sha512-zXo0CnGG8UqFtXW76XfXdKmDaAUW7QEN0BYXYH04VuzdPCmkWaR5Uybjp/Tglh3+UqE4AhYcYe0p2n+mxmkLqA==", "dependencies": { - "@firebase/auth": "1.7.2", + "@firebase/auth": "1.7.1", "@firebase/auth-types": "0.12.1", "@firebase/component": "0.6.6", "@firebase/util": "1.9.5", @@ -1834,9 +1834,9 @@ } }, "node_modules/@firebase/firestore": { - "version": "4.6.1", - "resolved": "https://registry.npmjs.org/@firebase/firestore/-/firestore-4.6.1.tgz", - "integrity": "sha512-MaBOBu+QcZOp6SJzCmigiJ4Dt0HNic91w8GghbTE9L//VW/zdO7ezXrcXRK4TjWWOcazBrJZJSHTIsFdwZyvtQ==", + "version": "4.6.0", + "resolved": "https://registry.npmjs.org/@firebase/firestore/-/firestore-4.6.0.tgz", + "integrity": "sha512-mul4L2Bp+Q5R5mV1nf5Z6OmsHHFid7uSEeR8oTM89p5G0nMam4GKaBAvgLSxwsXQbyy2WW9nNnuAWLfD7HDxFA==", "dependencies": { "@firebase/component": "0.6.6", "@firebase/logger": "0.4.1", @@ -1855,12 +1855,12 @@ } }, "node_modules/@firebase/firestore-compat": { - "version": "0.3.30", - "resolved": "https://registry.npmjs.org/@firebase/firestore-compat/-/firestore-compat-0.3.30.tgz", - "integrity": "sha512-fnNvNBBdPwziYK01tY1J9zrVYAtGUOsLhpNcU1rpfcklKEUPwXfmiJoFdtNqmgk2x5RjggGpurOPAv6aoEl/PQ==", + "version": "0.3.29", + "resolved": "https://registry.npmjs.org/@firebase/firestore-compat/-/firestore-compat-0.3.29.tgz", + "integrity": "sha512-ylBtvIQo2Caj1qXUd7ksj8xcL9l1b/F2Et6rq0smogPvl5CGvrv49xC5wVLJDmkMmH7IBEJb26KKC/RW1XYymg==", "dependencies": { "@firebase/component": "0.6.6", - "@firebase/firestore": "4.6.1", + "@firebase/firestore": "4.6.0", "@firebase/firestore-types": "3.0.1", "@firebase/util": "1.9.5", "tslib": "^2.1.0" @@ -3093,23 +3093,23 @@ } }, "node_modules/firebase": { - "version": "10.11.1", - "resolved": "https://registry.npmjs.org/firebase/-/firebase-10.11.1.tgz", - "integrity": "sha512-7T6FJJb4PBi6IYR1212/a0djjal6nGph9AQazobWaO75+4zeyEvBDlsofWLEawVAEN2PCp8qXvFe4pMdIB5U1w==", + "version": "10.11.0", + "resolved": "https://registry.npmjs.org/firebase/-/firebase-10.11.0.tgz", + "integrity": "sha512-stWqB0cmUBFidaWCgDV6on6uQyAV8jFe9XdOp0Y1GRM/LUn0MjPSgW06Tc3pFlaefQ+WTLR/CNwL+0qGhxDLIA==", "dependencies": { "@firebase/analytics": "0.10.2", "@firebase/analytics-compat": "0.2.8", - "@firebase/app": "0.10.2", + "@firebase/app": "0.10.1", "@firebase/app-check": "0.8.3", "@firebase/app-check-compat": "0.3.10", - "@firebase/app-compat": "0.2.32", + "@firebase/app-compat": "0.2.31", "@firebase/app-types": "0.9.1", - "@firebase/auth": "1.7.2", - "@firebase/auth-compat": "0.5.7", + "@firebase/auth": "1.7.1", + "@firebase/auth-compat": "0.5.6", "@firebase/database": "1.0.4", "@firebase/database-compat": "1.0.4", - "@firebase/firestore": "4.6.1", - "@firebase/firestore-compat": "0.3.30", + "@firebase/firestore": "4.6.0", + "@firebase/firestore-compat": "0.3.29", "@firebase/functions": "0.11.4", "@firebase/functions-compat": "0.3.10", "@firebase/installations": "0.6.6", diff --git a/scheduler_app/package.json b/scheduler_app/package.json index ae30b67..da5a10f 100644 --- a/scheduler_app/package.json +++ b/scheduler_app/package.json @@ -13,7 +13,7 @@ "@radix-ui/react-slot": "^1.0.2", "class-variance-authority": "^0.7.0", "clsx": "^2.1.1", - "firebase": "^10.11.1", + "firebase": "^10.11.0", "lucide-react": "^0.373.0", "next": "14.2.3", "react": "^18",