da4ce99755
* Add dev target for TheoremOne * Restrict signups to theoremone.co emails * Add new indices * Forbid reads from unauthenticated users * Client-side render pages that need auth These pages are now client-side rendered: - /home - /leaderboards - /market/... - /fold/... * Hide 404 for private Manifolds * Brand instance for TheoremOne * Hide "Add Funds" and "Personalize your feed" * "M$" => "T$" * Hide Discord & About Page too * Update placeholders for teams * Update firestore.indexes.json * Switch /analytics to propz * Migrate per-env code into common/ * More migrations to PROJECT_ID * Conditionally use SSG depending on public vs private instance * Fix props to be empty object * Move more logic into access * Spin out config files for each environment * Generify most of the customizable brand stuff * Move IS_PRIVATE_MANIFOLD to access.ts * Rename access.ts to envs/constants.ts * Add "dev:dev" alias * Rever firestore rules to existing settings * Fixes according to James's review
301 lines
6.2 KiB
JSON
301 lines
6.2 KiB
JSON
{
|
|
"indexes": [
|
|
{
|
|
"collectionGroup": "contracts",
|
|
"queryScope": "COLLECTION",
|
|
"fields": [
|
|
{
|
|
"fieldPath": "creatorId",
|
|
"order": "ASCENDING"
|
|
},
|
|
{
|
|
"fieldPath": "createdTime",
|
|
"order": "DESCENDING"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"collectionGroup": "contracts",
|
|
"queryScope": "COLLECTION",
|
|
"fields": [
|
|
{
|
|
"fieldPath": "isResolved",
|
|
"order": "ASCENDING"
|
|
},
|
|
{
|
|
"fieldPath": "closeTime",
|
|
"order": "ASCENDING"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"collectionGroup": "contracts",
|
|
"queryScope": "COLLECTION",
|
|
"fields": [
|
|
{
|
|
"fieldPath": "isResolved",
|
|
"order": "ASCENDING"
|
|
},
|
|
{
|
|
"fieldPath": "visibility",
|
|
"order": "ASCENDING"
|
|
},
|
|
{
|
|
"fieldPath": "closeTime",
|
|
"order": "ASCENDING"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"collectionGroup": "contracts",
|
|
"queryScope": "COLLECTION",
|
|
"fields": [
|
|
{
|
|
"fieldPath": "isResolved",
|
|
"order": "ASCENDING"
|
|
},
|
|
{
|
|
"fieldPath": "visibility",
|
|
"order": "ASCENDING"
|
|
},
|
|
{
|
|
"fieldPath": "volume24Hours",
|
|
"order": "ASCENDING"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"collectionGroup": "contracts",
|
|
"queryScope": "COLLECTION",
|
|
"fields": [
|
|
{
|
|
"fieldPath": "isResolved",
|
|
"order": "ASCENDING"
|
|
},
|
|
{
|
|
"fieldPath": "visibility",
|
|
"order": "ASCENDING"
|
|
},
|
|
{
|
|
"fieldPath": "volume24Hours",
|
|
"order": "ASCENDING"
|
|
},
|
|
{
|
|
"fieldPath": "closeTime",
|
|
"order": "ASCENDING"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"collectionGroup": "contracts",
|
|
"queryScope": "COLLECTION",
|
|
"fields": [
|
|
{
|
|
"fieldPath": "isResolved",
|
|
"order": "ASCENDING"
|
|
},
|
|
{
|
|
"fieldPath": "visibility",
|
|
"order": "ASCENDING"
|
|
},
|
|
{
|
|
"fieldPath": "volume24Hours",
|
|
"order": "DESCENDING"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"collectionGroup": "contracts",
|
|
"queryScope": "COLLECTION",
|
|
"fields": [
|
|
{
|
|
"fieldPath": "isResolved",
|
|
"order": "ASCENDING"
|
|
},
|
|
{
|
|
"fieldPath": "volume24Hours",
|
|
"order": "DESCENDING"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"collectionGroup": "contracts",
|
|
"queryScope": "COLLECTION",
|
|
"fields": [
|
|
{
|
|
"fieldPath": "slug",
|
|
"order": "ASCENDING"
|
|
},
|
|
{
|
|
"fieldPath": "createdTime",
|
|
"order": "DESCENDING"
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"fieldOverrides": [
|
|
{
|
|
"collectionGroup": "answers",
|
|
"fieldPath": "isAnte",
|
|
"indexes": [
|
|
{
|
|
"order": "ASCENDING",
|
|
"queryScope": "COLLECTION"
|
|
},
|
|
{
|
|
"order": "DESCENDING",
|
|
"queryScope": "COLLECTION"
|
|
},
|
|
{
|
|
"arrayConfig": "CONTAINS",
|
|
"queryScope": "COLLECTION"
|
|
},
|
|
{
|
|
"order": "ASCENDING",
|
|
"queryScope": "COLLECTION_GROUP"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"collectionGroup": "answers",
|
|
"fieldPath": "username",
|
|
"indexes": [
|
|
{
|
|
"order": "ASCENDING",
|
|
"queryScope": "COLLECTION"
|
|
},
|
|
{
|
|
"order": "DESCENDING",
|
|
"queryScope": "COLLECTION"
|
|
},
|
|
{
|
|
"arrayConfig": "CONTAINS",
|
|
"queryScope": "COLLECTION"
|
|
},
|
|
{
|
|
"order": "ASCENDING",
|
|
"queryScope": "COLLECTION_GROUP"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"collectionGroup": "bets",
|
|
"fieldPath": "createdTime",
|
|
"indexes": [
|
|
{
|
|
"order": "ASCENDING",
|
|
"queryScope": "COLLECTION"
|
|
},
|
|
{
|
|
"order": "DESCENDING",
|
|
"queryScope": "COLLECTION"
|
|
},
|
|
{
|
|
"arrayConfig": "CONTAINS",
|
|
"queryScope": "COLLECTION"
|
|
},
|
|
{
|
|
"order": "ASCENDING",
|
|
"queryScope": "COLLECTION_GROUP"
|
|
},
|
|
{
|
|
"order": "DESCENDING",
|
|
"queryScope": "COLLECTION_GROUP"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"collectionGroup": "bets",
|
|
"fieldPath": "userId",
|
|
"indexes": [
|
|
{
|
|
"order": "ASCENDING",
|
|
"queryScope": "COLLECTION"
|
|
},
|
|
{
|
|
"order": "DESCENDING",
|
|
"queryScope": "COLLECTION"
|
|
},
|
|
{
|
|
"arrayConfig": "CONTAINS",
|
|
"queryScope": "COLLECTION"
|
|
},
|
|
{
|
|
"order": "ASCENDING",
|
|
"queryScope": "COLLECTION_GROUP"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"collectionGroup": "comments",
|
|
"fieldPath": "createdTime",
|
|
"indexes": [
|
|
{
|
|
"order": "ASCENDING",
|
|
"queryScope": "COLLECTION"
|
|
},
|
|
{
|
|
"order": "DESCENDING",
|
|
"queryScope": "COLLECTION"
|
|
},
|
|
{
|
|
"arrayConfig": "CONTAINS",
|
|
"queryScope": "COLLECTION"
|
|
},
|
|
{
|
|
"order": "ASCENDING",
|
|
"queryScope": "COLLECTION_GROUP"
|
|
},
|
|
{
|
|
"order": "DESCENDING",
|
|
"queryScope": "COLLECTION_GROUP"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"collectionGroup": "comments",
|
|
"fieldPath": "userUsername",
|
|
"indexes": [
|
|
{
|
|
"order": "ASCENDING",
|
|
"queryScope": "COLLECTION"
|
|
},
|
|
{
|
|
"order": "DESCENDING",
|
|
"queryScope": "COLLECTION"
|
|
},
|
|
{
|
|
"arrayConfig": "CONTAINS",
|
|
"queryScope": "COLLECTION"
|
|
},
|
|
{
|
|
"order": "ASCENDING",
|
|
"queryScope": "COLLECTION_GROUP"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"collectionGroup": "followers",
|
|
"fieldPath": "userId",
|
|
"indexes": [
|
|
{
|
|
"order": "ASCENDING",
|
|
"queryScope": "COLLECTION"
|
|
},
|
|
{
|
|
"order": "DESCENDING",
|
|
"queryScope": "COLLECTION"
|
|
},
|
|
{
|
|
"arrayConfig": "CONTAINS",
|
|
"queryScope": "COLLECTION"
|
|
},
|
|
{
|
|
"order": "ASCENDING",
|
|
"queryScope": "COLLECTION_GROUP"
|
|
}
|
|
]
|
|
}
|
|
]
|
|
}
|