-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added Firestore Emulator and Refactored Local Data
- Loading branch information
1 parent
28cf372
commit 9b13d49
Showing
6 changed files
with
23 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
{"kind":"identitytoolkit#DownloadAccountResponse","users":[{"localId":"2nrlZe6RlIf3kKLaxVUOiHAOBqTm","createdAt":"1732310835799","lastLoginAt":"1732310835799","displayName":"Bob Joe ","photoUrl":"","passwordHash":"fakeHash:salt=fakeSaltwrmSCs55aYph22PIBFpS:password=bobjoe","salt":"fakeSaltwrmSCs55aYph22PIBFpS","passwordUpdatedAt":1732310948695,"providerUserInfo":[{"providerId":"password","email":"[email protected]","federatedId":"[email protected]","rawId":"[email protected]","displayName":"Bob Joe ","photoUrl":""}],"validSince":"1732310948","email":"[email protected]","emailVerified":false,"disabled":false}]} | ||
{"kind":"identitytoolkit#DownloadAccountResponse","users":[{"localId":"2nrlZe6RlIf3kKLaxVUOiHAOBqTm","createdAt":"1732310835799","lastLoginAt":"1732310835799","displayName":"Bob Joe ","photoUrl":"","passwordHash":"fakeHash:salt=fakeSaltQ4BqqcgSy9Nr2urvaB04:password=bobjoe","salt":"fakeSaltQ4BqqcgSy9Nr2urvaB04","passwordUpdatedAt":1732311933870,"providerUserInfo":[{"providerId":"password","email":"[email protected]","federatedId":"[email protected]","rawId":"[email protected]","displayName":"Bob Joe ","photoUrl":""}],"validSince":"1732311933","email":"[email protected]","emailVerified":true,"disabled":false,"customAttributes":"","lastRefreshAt":"2024-11-22T21:45:33.870Z"}]} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
{"roommateInfo":{"Anya Bardach":{"bedTime":"Late","clean":"Clean","desc":"ladeedah","fullName":"Anya Bardach","gender":"Female","guests":"Yes","location":"South","major":"Computer Science","noise":"Fine with noises","number":"34201922854","profilePhoto":"https://firebasestorage.googleapis.com/v0/b/wildquarters-nu.appspot.com/o/profilePhotos%2FAnya%20Bardach?alt=media&token=59c8b7a4-668f-4fc7-99e1-42dd5ad9aad2","roommateGender":["Female","Non-binary","Male","Any"],"size":["Double","Suite"],"wakeUpTime":"8-10 AM"},"Chris Riesbeck":{"bedTime":"Early","clean":"Clean","desc":"I'm an agile type of guy","fullName":"Chris Riesbeck","gender":"Male","guests":"No","location":"North","major":"Computer Science","noise":"Quiet","number":"1234567890","profilePhoto":"","roommateGender":["Any"],"size":["Double","Triple","Suite"],"wakeUpTime":"6-8 AM"},"Finn Hagerty":{"bedTime":"Early","clean":"Clean","desc":"Looking for a roommate","fullName":"Finn Hagerty","gender":"Male","guests":"Yes","location":"North","major":"MechE","noise":"Quiet","number":"2349313902","profilePhoto":"https://firebasestorage.googleapis.com/v0/b/wildquarters-nu.appspot.com/o/profilePhotos%2FFinn%20Hagerty?alt=media&token=59d76f6b-a367-4626-9434-dfebea672fb2","roommateGender":["Any","Female","Male","Non-binary"],"size":["Double","Triple"],"wakeUpTime":"6-8 AM"},"Levy Deckard":{"bedTime":"Early","clean":"Clean","desc":"Hehehe clickin buttons","fullName":"Levy Deckard","gender":"Male","guests":"Yes","location":"North","major":"Computer Whatever","noise":"Occasional","number":"1234567890","profilePhoto":"https://img.freepik.com/free-photo/portrait-man-laughing_23-2148859448.jpg?size=338&ext=jpg&ga=GA1.1.2113030492.1728950400&semt=ais_hybrid","roommateGender":["Male"],"size":["Double"],"wakeUpTime":"8-10 AM"},"Patrick Jiang":{"bedTime":"Late","clean":"Messy","desc":"A really fun and chill laidback dude","fullName":"Patrick Jiang","gender":"Male","guests":"Yes","location":"South","major":"Computer Science","noise":"Occasional","number":"4252474099","profilePhoto":"https://firebasestorage.googleapis.com/v0/b/wildquarters-nu.appspot.com/o/profilePhotos%2FPatrick%20Jiang?alt=media&token=8fc70962-99bd-457d-afca-6d6731a6af6f","roommateGender":["Any"],"size":["Double","Triple","Suite"],"wakeUpTime":"10AM-12PM"},"Seeley McGillis":{"bedTime":"Early","clean":"Clean","desc":"lalalalalal ocean lalalalala pumpkin","fullName":"Seeley McGillis","gender":"Female","guests":"Yes","location":"North","major":"Environmental Engineer","noise":"Occasional","number":"9178373064","profilePhoto":"https://firebasestorage.googleapis.com/v0/b/wildquarters-nu.appspot.com/o/profilePhotos%2FSeeley%20McGillis?alt=media&token=b84966a3-0a85-4f95-ad5d-29a515e36a62","roommateGender":["Female","Non-binary"],"size":["Double","Suite"],"wakeUpTime":"8-10 AM"},"sdfjskadfdsaf ":{"bedTime":"Late","clean":"Clean","desc":"asfhjdsafjkldsfhjksdahfksdaf","fullName":"sdfjskadfdsaf ","gender":"Female","guests":"Yes","location":"North","major":"df djsakf hsdajkf sdaf ","noise":"Quiet","number":"324287468453","profilePhoto":"https://firebasestorage.googleapis.com/v0/b/wildquarters-nu.appspot.com/o/profilePhotos%2Fsdfjskadfdsaf%20?alt=media&token=178e7731-92c6-4b46-b963-fa25b73bcfac","roommateGender":["Female"],"size":["Suite"],"wakeUpTime":"8-10 AM"}}} | ||
{"roommateInfo":{"Anya Bardach":{"bedTime":"Late","clean":"Clean","desc":"ladeedah","fullName":"Anya Bardach","gender":"Female","guests":"Yes","location":"South","major":"Computer Science","noise":"Fine with noises","number":"34201922854","profilePhoto":"https://firebasestorage.googleapis.com/v0/b/wildquarters-nu.appspot.com/o/profilePhotos%2FAnya%20Bardach?alt=media&token=59c8b7a4-668f-4fc7-99e1-42dd5ad9aad2","roommateGender":["Female","Non-binary","Male","Any"],"size":["Double","Suite"],"wakeUpTime":"8-10 AM"},"Chris Riesbeck":{"bedTime":"Early","clean":"Clean","desc":"I'm an agile type of guy","fullName":"Chris Riesbeck","gender":"Male","guests":"No","location":"North","major":"Computer Science","noise":"Quiet","number":"1234567890","profilePhoto":"","roommateGender":["Any"],"size":["Double","Triple","Suite"],"wakeUpTime":"6-8 AM"}}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file added
BIN
+15 Bytes
saved-data/firestore_export/firestore_export.overall_export_metadata
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -26,6 +26,18 @@ const database = getDatabase(firebase); | |
const storage = getStorage(firebase); | ||
const auth = getAuth(firebase); // AUTH STUFF | ||
|
||
if (!globalThis.EMULATION && import.meta.env.MODE === 'development') { | ||
connectAuthEmulator(auth, "http://127.0.0.1:9099"); | ||
connectDatabaseEmulator(database, "127.0.0.1", 9000); | ||
|
||
signInWithCredential(auth, GoogleAuthProvider.credential( | ||
'{"sub": "2nrlZe6RlIf3kKLaxVUOiHAOBqTm", "email": "[email protected]", "displayName":"Bob Joe", "email_verified": true}' | ||
)); | ||
|
||
// set flag to avoid connecting twice, e.g., because of an editor hot-reload | ||
globalThis.EMULATION = true; | ||
} | ||
|
||
export const signInWithGoogle = async (navigate) => { | ||
const provider = new GoogleAuthProvider(); | ||
|
||
|