-
Notifications
You must be signed in to change notification settings - Fork 497
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'v3' of https://github.com/notsidney/xtable into data-la…
…yer-rewrite
- Loading branch information
Showing
490 changed files
with
10,174 additions
and
42,904 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 |
---|---|---|
@@ -0,0 +1 @@ | ||
yarn lint-staged |
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,2 +1,3 @@ | ||
node_modules/ | ||
.yarn | ||
emulators/ |
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 |
---|---|---|
@@ -0,0 +1 @@ | ||
{"kind":"identitytoolkit#DownloadAccountResponse","users":[{"localId":"26CJMrwlouNRwkiLofNK07DNgKhw","createdAt":"1651022832613","lastLoginAt":"1651630548960","displayName":"Admin User","photoUrl":"","customAttributes":"{\"roles\": [\"ADMIN\"]}","providerUserInfo":[{"providerId":"google.com","rawId":"abc123","federatedId":"abc123","displayName":"Admin User","email":"[email protected]"}],"validSince":"1651630530","email":"[email protected]","emailVerified":true,"disabled":false,"lastRefreshAt":"2022-05-04T02:15:48.960Z"},{"localId":"3xTRVPnJGT2GE6lkiWKZp1jShuXj","createdAt":"1651023059442","lastLoginAt":"1651223181908","displayName":"Editor User","providerUserInfo":[{"providerId":"google.com","rawId":"1535779573397289142795231390488730790451","federatedId":"1535779573397289142795231390488730790451","displayName":"Editor User","email":"[email protected]"}],"validSince":"1651630530","email":"[email protected]","emailVerified":true,"disabled":false}]} |
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 |
---|---|---|
@@ -0,0 +1 @@ | ||
{"signIn":{"allowDuplicateEmails":false},"usageMode":"DEFAULT"} |
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 |
---|---|---|
@@ -0,0 +1,12 @@ | ||
{ | ||
"version": "10.6.0", | ||
"firestore": { | ||
"version": "1.14.1", | ||
"path": "firestore_export", | ||
"metadata_file": "firestore_export/firestore_export.overall_export_metadata" | ||
}, | ||
"auth": { | ||
"version": "10.6.0", | ||
"path": "auth_export" | ||
} | ||
} |
Binary file added
BIN
+52 Bytes
emulators/firestore_export/all_namespaces/all_kinds/all_namespaces_all_kinds.export_metadata
Binary file not shown.
Binary file not shown.
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
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 |
---|---|---|
@@ -0,0 +1,4 @@ | ||
{ | ||
"indexes": [], | ||
"fieldOverrides": [] | ||
} |
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 |
---|---|---|
@@ -0,0 +1,36 @@ | ||
rules_version = '2'; | ||
service cloud.firestore { | ||
match /databases/{database}/documents { | ||
// Allow admins to read and write all documents | ||
match /{document=**} { | ||
allow read, write: if hasAnyRole(["ADMIN", "OWNER"]); | ||
} | ||
|
||
// Rowy: Allow signed in users to read Rowy configuration and admins to write | ||
match /_rowy_/{docId} { | ||
allow read: if request.auth.token.roles.size() > 0; | ||
allow write: if hasAnyRole(["ADMIN", "OWNER"]); | ||
match /{document=**} { | ||
allow read: if request.auth.token.roles.size() > 0; | ||
allow write: if hasAnyRole(["ADMIN", "OWNER"]); | ||
} | ||
} | ||
// Rowy: Allow users to edit their settings | ||
match /_rowy_/userManagement/users/{userId} { | ||
allow get, update, delete: if isDocOwner(userId); | ||
allow create: if request.auth != null; | ||
} | ||
// Rowy: Allow public to read public Rowy configuration | ||
match /_rowy_/publicSettings { | ||
allow get: if true; | ||
} | ||
|
||
// Rowy: Utility functions | ||
function isDocOwner(docId) { | ||
return request.auth != null && (request.auth.uid == resource.id || request.auth.uid == docId); | ||
} | ||
function hasAnyRole(roles) { | ||
return request.auth != null && request.auth.token.roles.hasAny(roles); | ||
} | ||
} | ||
} |
Oops, something went wrong.