diff --git a/firebase-network.js b/firebase-network.js index f857274b..301bb600 100644 --- a/firebase-network.js +++ b/firebase-network.js @@ -40,14 +40,14 @@ export async function getRoom(room) { return doc.data(); } -export async function listRooms() { +export async function listRooms(limit = 20, publicRoom = true) { const db = firebase.firestore(); const docs = await db .collection(COLLECTION) - .where('public', '==', true) + .where('public', '==', publicRoom) .orderBy('lastUpdateTime', 'desc') // TODO: limit to last 7 days instead. - .limit(20) + .limit(limit) .get(); const rooms = []; diff --git a/incrypt.html b/incrypt.html index da6a122f..9aaa0ee8 100644 --- a/incrypt.html +++ b/incrypt.html @@ -110,6 +110,7 @@

Now Playing

>, with {{ allPlayers(openRoom) }} ({{ moment(openRoom.lastUpdateTime).fromNow() }})

+




diff --git a/index.html b/index.html index f0fdd235..00f2c60f 100644 --- a/index.html +++ b/index.html @@ -80,17 +80,38 @@
- -
@@ -135,7 +163,7 @@

{{ room.name }}

Round {{ room.history.length + 1 }} - + +

+ + +

Pick your secret partner

+
+ +
+ + + +

Not-so-secret partners

+
{{ player }} picked {{ value.target }}
+
+ + +

Second Chat

+ +

+ + +
+

Mod tools

+ +
+
+ + + + + + + + + + + +