Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/act-now-coalition/covid-act-now-website
/ functions
Functions
1,307 in github.com/act-now-coalition/covid-act-now-website
⨍
Functions
1,307
◇
Types & classes
339
↓ 257 callers
Method
map
(fn: (x: ProjectionsPair) => T)
src/common/models/ProjectionsSet.ts:61
↓ 58 callers
Method
findByFipsCodeStrict
(fipsCode: FipsCode)
src/common/regions/region_db.ts:44
↓ 49 callers
Function
assert
(exp, message)
scripts/what-the-fips/index.js:240
↓ 37 callers
Function
formatPercent
(num: number, places = 0)
src/common/utils/index.ts:61
↓ 33 callers
Function
trackEvent
( category: EventCategory, action: EventAction, label: string, value?: number, nonInteraction?: bool
src/components/Analytics/utils.ts:84
↓ 30 callers
Method
findByFipsCode
(fipsCode: FipsCode)
src/common/regions/region_db.ts:40
↓ 27 callers
Function
formatDecimal
(num: number, places = 2)
src/common/utils/index.ts:39
↓ 24 callers
Method
getDataset
(dataset: DatasetId)
src/common/models/Projection.ts:626
↓ 23 callers
Function
getColumnDate
({ x }: Column)
src/components/Charts/utils.ts:210
↓ 18 callers
Function
useBreakpoint
(breakpointWidth: number)
src/common/hooks/useBreakpoint.ts:6
↓ 15 callers
Function
palette
Gets the chart palette based on the current theme.
src/components/Charts/Charts.style.ts:22
↓ 14 callers
Method
contains
(subregion: Region)
src/common/regions/types.ts:172
↓ 14 callers
Function
last
(list: any[])
src/components/Charts/utils.ts:19
↓ 12 callers
Function
snapshotUrl
(snapshotNum: string | number)
src/common/utils/snapshots.ts:23
↓ 12 callers
Function
trackOpenTooltip
(label: string)
src/components/InfoTooltip/index.tsx:27
↓ 11 callers
Function
renderTooltipContent
(body: string)
src/components/InfoTooltip/index.tsx:15
↓ 10 callers
Method
findByStateCodeStrict
(stateCode: string)
src/common/regions/region_db.ts:54
↓ 10 callers
Function
formatMetatagDate
()
src/common/utils/index.ts:26
↓ 10 callers
Function
getDataset
(projection: Projection, metric: Metric)
src/common/models/ProjectionsPair.ts:109
↓ 10 callers
Function
getRegionMetricOverride
( region: Region, metric: Metric, )
src/cms-content/region-overrides/index.ts:30
↓ 10 callers
Function
useProjectionsFromRegion
(region: Region | null)
src/common/utils/model.ts:225
↓ 9 callers
Method
all
()
src/common/regions/region_db.ts:115
↓ 9 callers
Function
findPointByDate
(data: Column[], date: Date)
src/components/Explore/utils.ts:620
↓ 9 callers
Function
formatTooltipColumnDate
(data: Column)
src/components/Charts/utils.ts:214
↓ 9 callers
Function
getCcviLevelColor
(level: CcviLevel)
src/common/ccvi/index.ts:55
↓ 9 callers
Function
getYFormat
(dataMeasure: DataMeasure, places: number)
src/components/Explore/utils.ts:210
↓ 9 callers
Function
isEmpty
(timeseries: Column[])
src/common/models/ProjectionsPair.ts:134
↓ 8 callers
Function
fetchRegionProjections
( snapshotNumber: number, regions: Region[], )
src/screens/internal/CompareSnapshots/utils.ts:204
↓ 8 callers
Function
getMetricMapById
(id: string)
src/cms-content/tooltips/index.ts:33
↓ 8 callers
Function
getMetricName
(metric: Metric)
src/common/metric.tsx:88
↓ 8 callers
Method
getMetricValue
(metric: Metric)
src/common/models/Projection.ts:358
↓ 8 callers
Function
getZoneByValue
(value: number, zones: LevelInfoMap)
src/components/Charts/utils.ts:96
↓ 8 callers
Function
numberize
(x: any)
scripts/ccvi/parse_ccvi.ts:46
↓ 8 callers
Function
trackCompareEvent
( action: EventAction, label: string, value?: number, )
src/common/utils/compare.ts:14
↓ 8 callers
Function
useCcviForFips
(fips: string)
src/common/hooks/useCcviForFips.ts:5
↓ 7 callers
Function
fetch
()
src/common/utils/model.ts:37
↓ 7 callers
Method
fromProjections
( leftProjections: Projections[], rightProjections: Projections[], )
src/common/models/ProjectionsSet.ts:9
↓ 7 callers
Method
getAlarmLevel
()
src/common/models/Projections.ts:137
↓ 7 callers
Function
getCcviThemeInfoById
(id: CcviThemeId)
src/cms-content/tooltips/index.ts:101
↓ 7 callers
Function
getMetricDefinition
(metric: Metric)
src/common/metric.tsx:76
↓ 7 callers
Function
getY
(d: Point)
src/components/Charts/ChartZones.tsx:38
↓ 7 callers
Function
palette
Gets the chart palette based on the current theme.
src/components/Charts/Tooltip.style.ts:4
↓ 7 callers
Function
palette
Gets the chart palette based on the current theme.
src/components/Explore/Explore.style.ts:12
↓ 7 callers
Function
sanitizeID
(sectionId: string)
src/cms-content/utils.ts:5
↓ 6 callers
Function
cmsOriginalPath
(inputRelativePath: string)
scripts/optimize_images/utils.ts:29
↓ 6 callers
Function
fetchProjectionsRegion
( region: Region, snapshotUrl: string | null = null, cache: boolean = true, )
src/common/utils/model.ts:31
↓ 6 callers
Function
format
(value: number)
src/common/metrics/hospitalizations.tsx:140
↓ 6 callers
Function
format
(value: number)
src/common/metrics/positive_rate.tsx:127
↓ 6 callers
Function
getAdmissionsPer100k
(d: Point)
src/components/Charts/ChartAdmissionsPer100k.tsx:38
↓ 6 callers
Function
getCcviLevel
(score: number)
src/common/ccvi/index.ts:63
↓ 6 callers
Method
getMetricLevel
(metric: Metric)
src/common/models/Projections.ts:115
↓ 6 callers
Function
getNumericParamValue
( params: QueryString.ParsedQuery, param: string, defaultValue: number, )
src/screens/internal/CompareSnapshots/OptionsSelector.tsx:266
↓ 6 callers
Function
getSnapshotUrlOverride
()
src/common/utils/snapshots.ts:47
↓ 6 callers
Function
getTimeAxisTicks
( from: Date, to: Date, timeUnit: TimeUnit = TimeUnit.MONTHS, )
src/components/Charts/utils.ts:198
↓ 6 callers
Function
getUtcScale
( dateFrom: Date, dateTo: Date, minX: number, maxX: number, zoneLabelsWidth = 15, )
src/components/Charts/utils.ts:159
↓ 6 callers
Function
getWeeklyNewCasesPer100k
(d: Point)
src/components/Charts/ChartWeeklyNewCasesPer100k.tsx:39
↓ 6 callers
Function
getYCaseDensity
(d: Point)
src/components/Charts/ChartCaseDensity.tsx:37
↓ 6 callers
Function
useModelLastUpdatedDate
()
src/common/utils/model.ts:242
↓ 6 callers
Function
useRegionFromParams
()
src/common/regions/region_hooks.ts:17
↓ 5 callers
Function
button
(styles: ButtonsTheme)
src/components/ButtonSystem/MainButtons.style.tsx:5
↓ 5 callers
Function
computeTickPositions
( minY: number, maxY: number, zones: LevelInfoMap, )
src/components/Charts/utils.ts:116
↓ 5 callers
Function
fetchAllStateProjections
( snapshotUrl: string | null = null, cache: boolean = true, )
src/common/utils/model.ts:82
↓ 5 callers
Function
fetchCountyProjectionsForState
( state: State, snapshotUrl: string | null = null, cache: boolean = true, )
src/common/utils/model.ts:163
↓ 5 callers
Method
findCountyByUrlParams
( stateUrlSegment: string, countyUrlSegment: string, )
src/common/regions/region_db.ts:97
↓ 5 callers
Method
findStateByUrlParams
(stateUrlSegment: string)
src/common/regions/region_db.ts:79
↓ 5 callers
Function
formatValue
( metric: Metric, value: number | null, nullValueCopy: string, )
src/common/metric.tsx:137
↓ 5 callers
Function
getChartRegions
( minY: number, maxY: number, zones: LevelInfoMap, )
src/components/Charts/utils.ts:44
↓ 5 callers
Function
getLocationNames
( locations: Region[], limit = Number.POSITIVE_INFINITY, )
src/components/Explore/utils.ts:756
↓ 5 callers
Function
importJson
* 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 callers
Function
joinPublicFolder
(imagePath: string)
scripts/optimize_images/utils.ts:21
↓ 5 callers
Function
renderMetricThermometer
(metric: Metric)
src/components/Thermometer/Thermometer.stories.tsx:48
↓ 5 callers
Function
scrollWithOffset
(element: HTMLElement, offset: number)
src/components/TableOfContents/utils.ts:1
↓ 5 callers
Function
setQueryParams
(newParams: { left?: number; right?: number; sort?: number; metric?: number; locations?: n
src/screens/internal/CompareSnapshots/OptionsSelector.tsx:122
↓ 4 callers
Function
fetch
()
src/common/sharing.ts:94
↓ 4 callers
Function
filterNull
(points: Column[])
src/components/Charts/MetricChart.tsx:177
↓ 4 callers
Method
findByStateCode
(stateCode: string)
src/common/regions/region_db.ts:50
↓ 4 callers
Method
fromLoadingText
(loadingText: string)
src/common/models/ProjectionsSet.ts:33
↓ 4 callers
Method
fullImageUrl
(relImageUrl: string)
scripts/generate_index_pages.ts:221
↓ 4 callers
Function
getDateRange
(period: Period)
src/components/Explore/utils.ts:79
↓ 4 callers
Function
getLevelInfo
(metric: Metric, value: number | null)
src/common/metric.tsx:42
↓ 4 callers
Function
getMaxYFromDefinition
(metric: ExploreMetric)
src/components/Explore/utils.ts:576
↓ 4 callers
Function
getMetricDataMeasure
(metric: ExploreMetric)
src/components/Explore/utils.ts:568
↓ 4 callers
Function
getMetricName
(metric: ExploreMetric)
src/components/Explore/utils.ts:581
↓ 4 callers
Function
getMetricNameExtended
(metric: Metric)
src/common/metric.tsx:93
↓ 4 callers
Method
getMetricValue
(metric: Metric)
src/common/models/Projections.ts:103
↓ 4 callers
Method
getMetricValues
()
src/common/models/Projections.ts:107
↓ 4 callers
Function
getProjectionForRegion
( region: Region, )
src/components/NewLocationPage/SparkLineBlock/utils.ts:132
↓ 4 callers
Function
getRt
(d: PointRt)
src/components/Charts/ChartRt.tsx:40
↓ 4 callers
Function
getSplitRegionName
(region: Region, condensed?: boolean)
src/components/NewLocationPage/LocationName/utils.ts:24
↓ 4 callers
Function
indexOfLastValue
(data: Array<T | null>)
src/common/models/utils.ts:9
↓ 4 callers
Function
onClick
(label: string)
src/components/Footer/Footer.tsx:15
↓ 4 callers
Function
record
(results, state, fips, countyName)
scripts/what-the-fips/index.js:174
↓ 4 callers
Function
trackMobileMenuOpen
()
src/components/NavBar/utils.ts:12
↓ 4 callers
Function
useDialog
( initialIsOpen: boolean, trackingCategory: EventCategory, trackingLabel: string, )
src/common/hooks/useDialog.ts:4
↓ 4 callers
Function
useIsEmbed
()
src/common/utils/hooks.tsx:53
↓ 4 callers
Function
usePromise
(promise: Promise<T>)
src/common/hooks/usePromise.ts:22
↓ 4 callers
Function
useShowPastPosition
(y: number)
src/common/hooks/useShowPastPosition.ts:5
↓ 4 callers
Method
writeTemplatedPage
( relHtmlUrl: string, tags: { [tag: string]: string }, )
scripts/generate_index_pages.ts:209
↓ 3 callers
Function
absolutePath
(relativePath: string)
scripts/optimize_images/utils.ts:25
↓ 3 callers
Function
buildLocationPages
( builder: IndexPageBuilder, relativeSiteUrl: string, relativeImageUrl: string, locationName: string,
scripts/generate_index_pages.ts:82
next →
1–100 of 1,307, ranked by callers