Skip to content
This repository has been archived by the owner on Oct 12, 2023. It is now read-only.

Commit

Permalink
finish app for live system
Browse files Browse the repository at this point in the history
  • Loading branch information
sarunint committed Dec 24, 2017
1 parent 3ba090d commit 11538b1
Show file tree
Hide file tree
Showing 70 changed files with 5,864 additions and 525 deletions.
3 changes: 3 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"prettier.singleQuote": true
}
12 changes: 12 additions & 0 deletions database.rules.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@
"users": {
".read":
"root.child('config').child('admins').child(auth.uid).exists()",
".write":
"root.child('config').child('admins').child(auth.uid).exists()",
"$uid": {
".read": "auth.uid === $uid",
".write": "auth.uid === $uid",
Expand All @@ -27,6 +29,16 @@
"root.child('config').child('admins').child(auth.uid).exists()"
}
}
},
"live": {
"$dayId": {
"users": {
".indexOn": "uid",
".read": true,
".write":
"root.child('config').child('admins').child(auth.uid).exists()"
}
}
}
}
}
Expand Down
329 changes: 307 additions & 22 deletions functions/index.js

Large diffs are not rendered by default.

Loading

0 comments on commit 11538b1

Please sign in to comment.