Skip to content

Commit

Permalink
chore: update something
Browse files Browse the repository at this point in the history
  • Loading branch information
MeewMeew committed Oct 8, 2023
1 parent b85f0c6 commit c9d31cc
Show file tree
Hide file tree
Showing 18 changed files with 126 additions and 22 deletions.
3 changes: 2 additions & 1 deletion .firebaserc
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
{
"projects": {
"default": "mew-book",
"mew-book": "mew-book"
"mew-book": "mew-book",
"mewbook": "mew-book"
},
"targets": {},
"etags": {}
Expand Down
6 changes: 5 additions & 1 deletion firebase.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,9 @@
"source": "**",
"destination": "/index.html"
}
]
],
"firestore": {
"rules": "firestore.rules",
"indexes": "firestore.indexes.json"
}
}
97 changes: 97 additions & 0 deletions firestore.indexes.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,97 @@
{
"indexes": [
{
"collectionGroup": "comments",
"queryScope": "COLLECTION",
"fields": [
{
"fieldPath": "pid",
"order": "ASCENDING"
},
{
"fieldPath": "created_at",
"order": "DESCENDING"
}
]
},
{
"collectionGroup": "notifications",
"queryScope": "COLLECTION",
"fields": [
{
"fieldPath": "aid",
"order": "ASCENDING"
},
{
"fieldPath": "created_at",
"order": "DESCENDING"
}
]
},
{
"collectionGroup": "posts",
"queryScope": "COLLECTION",
"fields": [
{
"fieldPath": "privacy",
"order": "ASCENDING"
},
{
"fieldPath": "created_at",
"order": "DESCENDING"
}
]
},
{
"collectionGroup": "posts",
"queryScope": "COLLECTION",
"fields": [
{
"fieldPath": "privacy",
"order": "ASCENDING"
},
{
"fieldPath": "uid",
"order": "ASCENDING"
},
{
"fieldPath": "attachment",
"order": "ASCENDING"
},
{
"fieldPath": "created_at",
"order": "DESCENDING"
}
]
},
{
"collectionGroup": "posts",
"queryScope": "COLLECTION",
"fields": [
{
"fieldPath": "uid",
"order": "ASCENDING"
},
{
"fieldPath": "created_at",
"order": "DESCENDING"
}
]
},
{
"collectionGroup": "users",
"queryScope": "COLLECTION",
"fields": [
{
"fieldPath": "isOnline",
"order": "ASCENDING"
},
{
"fieldPath": "id",
"order": "ASCENDING"
}
]
}
],
"fieldOverrides": []
}
9 changes: 9 additions & 0 deletions firestore.rules
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
rules_version = '2';

service cloud.firestore {
match /databases/{database}/documents {
match /{document=**} {
allow read, write: if true;
}
}
}
1 change: 0 additions & 1 deletion public/reactions-new/angry.svg

This file was deleted.

1 change: 0 additions & 1 deletion public/reactions-new/care.svg

This file was deleted.

Loading

0 comments on commit c9d31cc

Please sign in to comment.