3b3717d307
* Folds=>groups * Show groups on user profile * Allow group creation from /create * Refactoring to groups * Convert folds to groups * Add new add to group notification * Fix user profile tab bug * Add groups nav and tab for my groups * Remove bad profile pages * remove comments * Add group list dropdown to sidebar * remove unused * group cards ui * Messages=>Comments, v2, groupDetails * Discussion time * Cleaning up some code * Remove follow count * Fix pool scoring for cpmm * Fix imports * Simplify rules, add GroupUser collection * Fix group cards * Refactor * Refactor * Small fixes * Remove string * Add api error detail handling * Clear name field * Componentize * Spacing * Undo userpage memo * Member groups are already in my tab * Remove active contracts reference for now * Remove unused * Refactoring * Allow adding old questions to a group * Rename * Wording * Throw standard v2 APIError * Hide input for non-members, add about under title * Multiple names to & # more * Move comments firestore rules to appropriate subpaths * Group membership, pool=>volume * Cleanup, useEvent * Raise state to parent * Eliminate unused * Cleaning up * Clean code * Revert tags input deletion * Cleaning code * Stylling * Limit members to display * Array cleanup * Add categories back in * Private=>closed * Unused vars
77 lines
2.2 KiB
TypeScript
77 lines
2.2 KiB
TypeScript
export type V2CloudFunction =
|
|
| 'placebet'
|
|
| 'sellbet'
|
|
| 'sellshares'
|
|
| 'createmarket'
|
|
| 'creategroup'
|
|
|
|
export type EnvConfig = {
|
|
domain: string
|
|
firebaseConfig: FirebaseConfig
|
|
functionEndpoints: Record<V2CloudFunction, string>
|
|
amplitudeApiKey?: string
|
|
|
|
// Access controls
|
|
adminEmails: string[]
|
|
whitelistEmail?: string // e.g. '@theoremone.co'. If not provided, all emails are whitelisted
|
|
visibility: 'PRIVATE' | 'PUBLIC'
|
|
|
|
// Branding
|
|
moneyMoniker: string // e.g. 'M$'
|
|
faviconPath?: string // Should be a file in /public
|
|
navbarLogoPath?: string
|
|
newQuestionPlaceholders: string[]
|
|
}
|
|
|
|
type FirebaseConfig = {
|
|
apiKey: string
|
|
authDomain: string
|
|
projectId: string
|
|
region: string
|
|
storageBucket: string
|
|
messagingSenderId: string
|
|
appId: string
|
|
measurementId: string
|
|
}
|
|
|
|
export const PROD_CONFIG: EnvConfig = {
|
|
domain: 'manifold.markets',
|
|
amplitudeApiKey: '2d6509fd4185ebb8be29709842752a15',
|
|
|
|
firebaseConfig: {
|
|
apiKey: 'AIzaSyDp3J57vLeAZCzxLD-vcPaGIkAmBoGOSYw',
|
|
authDomain: 'mantic-markets.firebaseapp.com',
|
|
projectId: 'mantic-markets',
|
|
region: 'us-central1',
|
|
storageBucket: 'mantic-markets.appspot.com',
|
|
messagingSenderId: '128925704902',
|
|
appId: '1:128925704902:web:f61f86944d8ffa2a642dc7',
|
|
measurementId: 'G-SSFK1Q138D',
|
|
},
|
|
functionEndpoints: {
|
|
placebet: 'https://placebet-nggbo3neva-uc.a.run.app',
|
|
sellshares: 'https://sellshares-nggbo3neva-uc.a.run.app',
|
|
sellbet: 'https://sellbet-nggbo3neva-uc.a.run.app',
|
|
createmarket: 'https://createmarket-nggbo3neva-uc.a.run.app',
|
|
creategroup: 'https://creategroup-nggbo3neva-uc.a.run.app',
|
|
},
|
|
adminEmails: [
|
|
'akrolsmir@gmail.com', // Austin
|
|
'jahooma@gmail.com', // James
|
|
'taowell@gmail.com', // Stephen
|
|
'abc.sinclair@gmail.com', // Sinclair
|
|
'manticmarkets@gmail.com', // Manifold
|
|
],
|
|
visibility: 'PUBLIC',
|
|
|
|
moneyMoniker: 'M$',
|
|
navbarLogoPath: '',
|
|
faviconPath: '/favicon.ico',
|
|
newQuestionPlaceholders: [
|
|
'Will anyone I know get engaged this year?',
|
|
'Will humans set foot on Mars by the end of 2030?',
|
|
'Will any cryptocurrency eclipse Bitcoin by market cap this year?',
|
|
'Will the Democrats win the 2024 presidential election?',
|
|
],
|
|
}
|