-
Notifications
You must be signed in to change notification settings - Fork 181
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
f9fe702
commit beba28b
Showing
43 changed files
with
3,691 additions
and
4,273 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -34,3 +34,6 @@ src/**/*.js | |
.rts* | ||
TEST.config.ts | ||
FIREBASE_CONFIG.js | ||
|
||
database-debug.log | ||
firestore-debug.log |
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,4 +1,7 @@ | ||
{ | ||
"storage": { | ||
"rules": "storage.rules" | ||
}, | ||
"emulators": { | ||
"firestore": { | ||
"port": 8080 | ||
|
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
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,34 +1,51 @@ | ||
import firebase from 'firebase/compat/app'; | ||
import 'firebase/compat/storage'; | ||
import { FirebaseApp } from 'firebase/app'; | ||
import { Auth, User, UserCredential } from 'firebase/auth'; | ||
import { | ||
CollectionReference, | ||
DocumentData, | ||
DocumentReference, | ||
DocumentSnapshot, | ||
FieldValue, | ||
Firestore, | ||
OrderByDirection, | ||
Query, | ||
QueryDocumentSnapshot, | ||
WriteBatch, | ||
} from 'firebase/firestore'; | ||
import { | ||
FirebaseStorage, | ||
StorageReference, | ||
TaskState, | ||
UploadTask, | ||
UploadTaskSnapshot, | ||
} from 'firebase/storage'; | ||
|
||
export type FireUser = firebase.User; | ||
export type FireApp = firebase.app.App; | ||
export type FireUser = User; | ||
export type FireApp = FirebaseApp; | ||
|
||
export type FireStorage = firebase.storage.Storage; | ||
export type FireStorageReference = firebase.storage.Reference; | ||
export type FireUploadTaskSnapshot = firebase.storage.UploadTaskSnapshot; | ||
export type FireUploadTask = firebase.storage.UploadTask; | ||
export type FireStorage = FirebaseStorage; | ||
export type FireStorageReference = StorageReference; | ||
export type FireUploadTaskSnapshot = UploadTaskSnapshot; | ||
export type FireUploadTask = UploadTask; | ||
export type FireStoragePutFileResult = { | ||
task: FireUploadTask; | ||
taskResult: Promise<FireUploadTaskSnapshot>; | ||
downloadUrl: Promise<string>; | ||
}; | ||
|
||
export type FireAuth = firebase.auth.Auth; | ||
export type FireAuthUserCredentials = firebase.auth.UserCredential; | ||
export type FireAuth = Auth; | ||
export type FireAuthUserCredentials = UserCredential; | ||
|
||
export type FireStore = firebase.firestore.Firestore; | ||
export type FireStoreBatch = firebase.firestore.WriteBatch; | ||
export type FireStoreTimeStamp = firebase.firestore.FieldValue; | ||
export type FireStoreDocumentRef = firebase.firestore.DocumentReference; | ||
export type FireStoreDocumentSnapshot = | ||
firebase.firestore.DocumentSnapshot<firebase.firestore.DocumentData>; | ||
export type FireStoreCollectionRef = firebase.firestore.CollectionReference; | ||
export type FireStoreQueryDocumentSnapshot = | ||
firebase.firestore.QueryDocumentSnapshot; | ||
export type FireStoreQuery = firebase.firestore.Query; | ||
export type FireStoreQueryOrder = firebase.firestore.OrderByDirection; | ||
export type FireStore = Firestore; | ||
export type FireStoreBatch = WriteBatch; | ||
export type FireStoreTimeStamp = FieldValue; | ||
export type FireStoreDocumentRef = DocumentReference; | ||
export type FireStoreDocumentSnapshot = DocumentSnapshot<DocumentData>; | ||
export type FireStoreCollectionRef = CollectionReference; | ||
export type FireStoreQueryDocumentSnapshot = QueryDocumentSnapshot; | ||
export type FireStoreQuery = Query; | ||
export type FireStoreQueryOrder = OrderByDirection; | ||
|
||
export const TASK_PAUSED = firebase.storage.TaskState.PAUSED; | ||
export const TASK_RUNNING = firebase.storage.TaskState.RUNNING; | ||
export const TASK_CANCELED = firebase.storage.TaskState.CANCELED; | ||
export const TASK_PAUSED = 'paused' as TaskState; | ||
export const TASK_RUNNING = 'running' as TaskState; | ||
export const TASK_CANCELED = 'cancelled' as TaskState; |
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
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
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
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
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
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
Oops, something went wrong.