Skip to content

Commit 44e44ba

Browse files
authored
Additional Functionality for Firestore Quickstart Angular Rewrite (#723)
* Added updated angular rewrite from other branch * Deleted unneccesary export * Add license header to functions * Addressed comments * small readme change and delete functions dir * Delete functions from Git * Addresses comments
1 parent 2516374 commit 44e44ba

62 files changed

Lines changed: 537 additions & 159 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"globals": {
3+
"Navigo": true,
4+
"mdc": true,
5+
"importScripts": true,
6+
"FriendlyEats": true
7+
}
8+
}
4.4 MB
Lines changed: 40 additions & 14 deletions
Binary file not shown.

firestore/angular-rewrite/firestore.rules

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,17 +2,13 @@ service cloud.firestore {
22
match /databases/{database}/documents {
33
match /restaurants/{restaurant} {
44
match /ratings/{rating} {
5-
allow read: if request.auth != null;
6-
allow write: if request.auth.uid == request.resource.data.userId;
5+
// Allow anyone to read, but only auth'd users to write
6+
allow read: if true;
7+
allow write: if request.auth != null;
78
}
89

9-
allow read: if request.auth != null;
10+
allow read: if true;
1011
allow create: if request.auth != null;
11-
allow update: if request.auth != null
12-
&& request.resource.data.name == resource.data.name
13-
&& request.resource.data.city == resource.data.city
14-
&& request.resource.data.price == resource.data.price
15-
&& request.resource.data.category == resource.data.category;
1612
}
1713
}
1814
}

firestore/angular-rewrite/gitignore

Lines changed: 0 additions & 51 deletions
This file was deleted.
4.4 MB
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{"kind":"identitytoolkit#DownloadAccountResponse","users":[{"localId":"2w9ioyELLrM07qAN2xQ7llasABrE","createdAt":"1690224215704","lastLoginAt":"1690224215704","validSince":"1690307281","emailVerified":false,"disabled":false},{"localId":"ifwf7sJ5poxnuQXJxCwIfZC6qcS4","createdAt":"1690288103956","lastLoginAt":"1690288103956","validSince":"1690307281","emailVerified":false,"disabled":false},{"localId":"qINbS6vJRUTbW576F71yibff4giX","createdAt":"1690292037987","lastLoginAt":"1690292037987","validSince":"1690307281","emailVerified":false,"disabled":false},{"localId":"v16HNkgsm7fprqu4RfflYODk7G6U","createdAt":"1690224390892","lastLoginAt":"1690224390892","validSince":"1690307281","emailVerified":false,"disabled":false},{"localId":"ybMRmo7lhcA39U48ktmTVvfJNa0n","createdAt":"1690292340327","lastLoginAt":"1690292340327","validSince":"1690307281","emailVerified":false,"disabled":false}]}
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{"signIn":{"allowDuplicateEmails":false}}

0 commit comments

Comments
 (0)