60f68b178d
* Fold type, fold page, query for fold contracts * Tsconfig: target esnext, nounused locals: false * Store tags in field on contract. Script to update contract tags * Show tags on fold page * Load all fold comments server-side to serve better feed * Fix the annoying firebase already initialized error! * Add links to /edit and /leaderboards for fold * Page with list of folds * UI for creating a fold * Create a fold * Edit fold page
18 lines
368 B
TypeScript
18 lines
368 B
TypeScript
export type Fold = {
|
|
id: string
|
|
slug: string
|
|
name: string
|
|
curatorId: string // User id
|
|
createdTime: number
|
|
|
|
tags: string[]
|
|
|
|
contractIds: string[]
|
|
excludedContractIds: string[]
|
|
|
|
// Invariant: exactly one of the following is defined.
|
|
// Default: creatorIds: undefined, excludedCreatorIds: []
|
|
creatorIds?: string[]
|
|
excludedCreatorIds?: string[]
|
|
}
|