Changeset View
Changeset View
Standalone View
Standalone View
landing/competitor-data.js
// @flow | // @flow | ||||
const competitors = Object.freeze({ | const competitors = Object.freeze({ | ||||
DISCORD: 'discord', | DISCORD: 'discord', | ||||
KEYBASE: 'keybase', | KEYBASE: 'keybase', | ||||
MATRIX: 'matrix', | MATRIX: 'matrix', | ||||
SIGNAL: 'signal', | SIGNAL: 'signal', | ||||
SLACK: 'slack', | SLACK: 'slack', | ||||
TELEGRAM: 'telegram', | TELEGRAM: 'telegram', | ||||
}); | }); | ||||
export type Competitors = $Values<typeof competitors>; | export type Competitors = $Values<typeof competitors>; | ||||
type FeatureComparison = { | export type FeatureComparison = { | ||||
+title: string, | +title: string, | ||||
+comingSoon: boolean, | +comingSoon: boolean, | ||||
+competitorDescriptionShort: string, | +competitorDescriptionShort: string, | ||||
+commDescriptionShort: string, | +commDescriptionShort: string, | ||||
+competitorDescriptionLong: $ReadOnlyArray<string>, | +competitorDescriptionLong: $ReadOnlyArray<string>, | ||||
+commDescriptionLong: $ReadOnlyArray<string>, | +commDescriptionLong: $ReadOnlyArray<string>, | ||||
+furtherReadingLinks?: $ReadOnlyArray<string>, | +furtherReadingLinks?: $ReadOnlyArray<string>, | ||||
}; | }; | ||||
type Competitor = { | export type Competitor = { | ||||
+id: Competitors, | +id: Competitors, | ||||
+name: string, | +name: string, | ||||
+featureComparison: $ReadOnlyArray<FeatureComparison>, | +featureComparison: $ReadOnlyArray<FeatureComparison>, | ||||
}; | }; | ||||
const competitorData: $ReadOnlyArray<Competitor> = [ | const competitorData: $ReadOnlyArray<Competitor> = [ | ||||
{ | { | ||||
id: 'signal', | id: 'signal', | ||||
▲ Show 20 Lines • Show All 83 Lines • Show Last 20 Lines |