MCPcopy Create free account

hub / github.com/act-now-coalition/covid-act-now-website / functions

Functions1,307 in github.com/act-now-coalition/covid-act-now-website

↓ 257 callersMethodmap
(fn: (x: ProjectionsPair) => T)
src/common/models/ProjectionsSet.ts:61
↓ 58 callersMethodfindByFipsCodeStrict
(fipsCode: FipsCode)
src/common/regions/region_db.ts:44
↓ 49 callersFunctionassert
(exp, message)
scripts/what-the-fips/index.js:240
↓ 37 callersFunctionformatPercent
(num: number, places = 0)
src/common/utils/index.ts:61
↓ 33 callersFunctiontrackEvent
( category: EventCategory, action: EventAction, label: string, value?: number, nonInteraction?: bool
src/components/Analytics/utils.ts:84
↓ 30 callersMethodfindByFipsCode
(fipsCode: FipsCode)
src/common/regions/region_db.ts:40
↓ 27 callersFunctionformatDecimal
(num: number, places = 2)
src/common/utils/index.ts:39
↓ 24 callersMethodgetDataset
(dataset: DatasetId)
src/common/models/Projection.ts:626
↓ 23 callersFunctiongetColumnDate
({ x }: Column)
src/components/Charts/utils.ts:210
↓ 18 callersFunctionuseBreakpoint
(breakpointWidth: number)
src/common/hooks/useBreakpoint.ts:6
↓ 15 callersFunctionpalette
Gets the chart palette based on the current theme.
src/components/Charts/Charts.style.ts:22
↓ 14 callersMethodcontains
(subregion: Region)
src/common/regions/types.ts:172
↓ 14 callersFunctionlast
(list: any[])
src/components/Charts/utils.ts:19
↓ 12 callersFunctionsnapshotUrl
(snapshotNum: string | number)
src/common/utils/snapshots.ts:23
↓ 12 callersFunctiontrackOpenTooltip
(label: string)
src/components/InfoTooltip/index.tsx:27
↓ 11 callersFunctionrenderTooltipContent
(body: string)
src/components/InfoTooltip/index.tsx:15
↓ 10 callersMethodfindByStateCodeStrict
(stateCode: string)
src/common/regions/region_db.ts:54
↓ 10 callersFunctionformatMetatagDate
()
src/common/utils/index.ts:26
↓ 10 callersFunctiongetDataset
(projection: Projection, metric: Metric)
src/common/models/ProjectionsPair.ts:109
↓ 10 callersFunctiongetRegionMetricOverride
( region: Region, metric: Metric, )
src/cms-content/region-overrides/index.ts:30
↓ 10 callersFunctionuseProjectionsFromRegion
(region: Region | null)
src/common/utils/model.ts:225
↓ 9 callersMethodall
()
src/common/regions/region_db.ts:115
↓ 9 callersFunctionfindPointByDate
(data: Column[], date: Date)
src/components/Explore/utils.ts:620
↓ 9 callersFunctionformatTooltipColumnDate
(data: Column)
src/components/Charts/utils.ts:214
↓ 9 callersFunctiongetCcviLevelColor
(level: CcviLevel)
src/common/ccvi/index.ts:55
↓ 9 callersFunctiongetYFormat
(dataMeasure: DataMeasure, places: number)
src/components/Explore/utils.ts:210
↓ 9 callersFunctionisEmpty
(timeseries: Column[])
src/common/models/ProjectionsPair.ts:134
↓ 8 callersFunctionfetchRegionProjections
( snapshotNumber: number, regions: Region[], )
src/screens/internal/CompareSnapshots/utils.ts:204
↓ 8 callersFunctiongetMetricMapById
(id: string)
src/cms-content/tooltips/index.ts:33
↓ 8 callersFunctiongetMetricName
(metric: Metric)
src/common/metric.tsx:88
↓ 8 callersMethodgetMetricValue
(metric: Metric)
src/common/models/Projection.ts:358
↓ 8 callersFunctiongetZoneByValue
(value: number, zones: LevelInfoMap)
src/components/Charts/utils.ts:96
↓ 8 callersFunctionnumberize
(x: any)
scripts/ccvi/parse_ccvi.ts:46
↓ 8 callersFunctiontrackCompareEvent
( action: EventAction, label: string, value?: number, )
src/common/utils/compare.ts:14
↓ 8 callersFunctionuseCcviForFips
(fips: string)
src/common/hooks/useCcviForFips.ts:5
↓ 7 callersFunctionfetch
()
src/common/utils/model.ts:37
↓ 7 callersMethodfromProjections
( leftProjections: Projections[], rightProjections: Projections[], )
src/common/models/ProjectionsSet.ts:9
↓ 7 callersMethodgetAlarmLevel
()
src/common/models/Projections.ts:137
↓ 7 callersFunctiongetCcviThemeInfoById
(id: CcviThemeId)
src/cms-content/tooltips/index.ts:101
↓ 7 callersFunctiongetMetricDefinition
(metric: Metric)
src/common/metric.tsx:76
↓ 7 callersFunctiongetY
(d: Point)
src/components/Charts/ChartZones.tsx:38
↓ 7 callersFunctionpalette
Gets the chart palette based on the current theme.
src/components/Charts/Tooltip.style.ts:4
↓ 7 callersFunctionpalette
Gets the chart palette based on the current theme.
src/components/Explore/Explore.style.ts:12
↓ 7 callersFunctionsanitizeID
(sectionId: string)
src/cms-content/utils.ts:5
↓ 6 callersFunctioncmsOriginalPath
(inputRelativePath: string)
scripts/optimize_images/utils.ts:29
↓ 6 callersFunctionfetchProjectionsRegion
( region: Region, snapshotUrl: string | null = null, cache: boolean = true, )
src/common/utils/model.ts:31
↓ 6 callersFunctionformat
(value: number)
src/common/metrics/hospitalizations.tsx:140
↓ 6 callersFunctionformat
(value: number)
src/common/metrics/positive_rate.tsx:127
↓ 6 callersFunctiongetAdmissionsPer100k
(d: Point)
src/components/Charts/ChartAdmissionsPer100k.tsx:38
↓ 6 callersFunctiongetCcviLevel
(score: number)
src/common/ccvi/index.ts:63
↓ 6 callersMethodgetMetricLevel
(metric: Metric)
src/common/models/Projections.ts:115
↓ 6 callersFunctiongetNumericParamValue
( params: QueryString.ParsedQuery, param: string, defaultValue: number, )
src/screens/internal/CompareSnapshots/OptionsSelector.tsx:266
↓ 6 callersFunctiongetSnapshotUrlOverride
()
src/common/utils/snapshots.ts:47
↓ 6 callersFunctiongetTimeAxisTicks
( from: Date, to: Date, timeUnit: TimeUnit = TimeUnit.MONTHS, )
src/components/Charts/utils.ts:198
↓ 6 callersFunctiongetUtcScale
( dateFrom: Date, dateTo: Date, minX: number, maxX: number, zoneLabelsWidth = 15, )
src/components/Charts/utils.ts:159
↓ 6 callersFunctiongetWeeklyNewCasesPer100k
(d: Point)
src/components/Charts/ChartWeeklyNewCasesPer100k.tsx:39
↓ 6 callersFunctiongetYCaseDensity
(d: Point)
src/components/Charts/ChartCaseDensity.tsx:37
↓ 6 callersFunctionuseModelLastUpdatedDate
()
src/common/utils/model.ts:242
↓ 6 callersFunctionuseRegionFromParams
()
src/common/regions/region_hooks.ts:17
↓ 5 callersFunctionbutton
(styles: ButtonsTheme)
src/components/ButtonSystem/MainButtons.style.tsx:5
↓ 5 callersFunctioncomputeTickPositions
( minY: number, maxY: number, zones: LevelInfoMap, )
src/components/Charts/utils.ts:116
↓ 5 callersFunctionfetchAllStateProjections
( snapshotUrl: string | null = null, cache: boolean = true, )
src/common/utils/model.ts:82
↓ 5 callersFunctionfetchCountyProjectionsForState
( state: State, snapshotUrl: string | null = null, cache: boolean = true, )
src/common/utils/model.ts:163
↓ 5 callersMethodfindCountyByUrlParams
( stateUrlSegment: string, countyUrlSegment: string, )
src/common/regions/region_db.ts:97
↓ 5 callersMethodfindStateByUrlParams
(stateUrlSegment: string)
src/common/regions/region_db.ts:79
↓ 5 callersFunctionformatValue
( metric: Metric, value: number | null, nullValueCopy: string, )
src/common/metric.tsx:137
↓ 5 callersFunctiongetChartRegions
( minY: number, maxY: number, zones: LevelInfoMap, )
src/components/Charts/utils.ts:44
↓ 5 callersFunctiongetLocationNames
( locations: Region[], limit = Number.POSITIVE_INFINITY, )
src/components/Explore/utils.ts:756
↓ 5 callersFunctionimportJson
* Helper for importing JSON dynamically that handles caching the import() promise and * extracting the default export where the JSON lives. * * Usa
src/common/data/index.ts:46
↓ 5 callersFunctionjoinPublicFolder
(imagePath: string)
scripts/optimize_images/utils.ts:21
↓ 5 callersFunctionrenderMetricThermometer
(metric: Metric)
src/components/Thermometer/Thermometer.stories.tsx:48
↓ 5 callersFunctionscrollWithOffset
(element: HTMLElement, offset: number)
src/components/TableOfContents/utils.ts:1
↓ 5 callersFunctionsetQueryParams
(newParams: { left?: number; right?: number; sort?: number; metric?: number; locations?: n
src/screens/internal/CompareSnapshots/OptionsSelector.tsx:122
↓ 4 callersFunctionfetch
()
src/common/sharing.ts:94
↓ 4 callersFunctionfilterNull
(points: Column[])
src/components/Charts/MetricChart.tsx:177
↓ 4 callersMethodfindByStateCode
(stateCode: string)
src/common/regions/region_db.ts:50
↓ 4 callersMethodfromLoadingText
(loadingText: string)
src/common/models/ProjectionsSet.ts:33
↓ 4 callersMethodfullImageUrl
(relImageUrl: string)
scripts/generate_index_pages.ts:221
↓ 4 callersFunctiongetDateRange
(period: Period)
src/components/Explore/utils.ts:79
↓ 4 callersFunctiongetLevelInfo
(metric: Metric, value: number | null)
src/common/metric.tsx:42
↓ 4 callersFunctiongetMaxYFromDefinition
(metric: ExploreMetric)
src/components/Explore/utils.ts:576
↓ 4 callersFunctiongetMetricDataMeasure
(metric: ExploreMetric)
src/components/Explore/utils.ts:568
↓ 4 callersFunctiongetMetricName
(metric: ExploreMetric)
src/components/Explore/utils.ts:581
↓ 4 callersFunctiongetMetricNameExtended
(metric: Metric)
src/common/metric.tsx:93
↓ 4 callersMethodgetMetricValue
(metric: Metric)
src/common/models/Projections.ts:103
↓ 4 callersMethodgetMetricValues
()
src/common/models/Projections.ts:107
↓ 4 callersFunctiongetProjectionForRegion
( region: Region, )
src/components/NewLocationPage/SparkLineBlock/utils.ts:132
↓ 4 callersFunctiongetRt
(d: PointRt)
src/components/Charts/ChartRt.tsx:40
↓ 4 callersFunctiongetSplitRegionName
(region: Region, condensed?: boolean)
src/components/NewLocationPage/LocationName/utils.ts:24
↓ 4 callersFunctionindexOfLastValue
(data: Array<T | null>)
src/common/models/utils.ts:9
↓ 4 callersFunctiononClick
(label: string)
src/components/Footer/Footer.tsx:15
↓ 4 callersFunctionrecord
(results, state, fips, countyName)
scripts/what-the-fips/index.js:174
↓ 4 callersFunctiontrackMobileMenuOpen
()
src/components/NavBar/utils.ts:12
↓ 4 callersFunctionuseDialog
( initialIsOpen: boolean, trackingCategory: EventCategory, trackingLabel: string, )
src/common/hooks/useDialog.ts:4
↓ 4 callersFunctionuseIsEmbed
()
src/common/utils/hooks.tsx:53
↓ 4 callersFunctionusePromise
(promise: Promise<T>)
src/common/hooks/usePromise.ts:22
↓ 4 callersFunctionuseShowPastPosition
(y: number)
src/common/hooks/useShowPastPosition.ts:5
↓ 4 callersMethodwriteTemplatedPage
( relHtmlUrl: string, tags: { [tag: string]: string }, )
scripts/generate_index_pages.ts:209
↓ 3 callersFunctionabsolutePath
(relativePath: string)
scripts/optimize_images/utils.ts:25
↓ 3 callersFunctionbuildLocationPages
( builder: IndexPageBuilder, relativeSiteUrl: string, relativeImageUrl: string, locationName: string,
scripts/generate_index_pages.ts:82
next →1–100 of 1,307, ranked by callers