Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/bettergovph/bettergov
/ functions
Functions
461 in github.com/bettergovph/bettergov
⨍
Functions
461
◇
Types & classes
162
↓ 42 callers
Function
logTest
* Log test result
security-test.cjs:73
↓ 36 callers
Function
cn
(...inputs: ClassValue[])
src/lib/utils.ts:4
↓ 24 callers
Function
escapeSQL
* Escape SQL values to prevent injection and handle nulls
src/data/flood_control/load_flood_control_arcgis.js:379
↓ 20 callers
Function
fetch
( request: Request, env: Env, ctx: ExecutionContext )
functions/index.ts:44
↓ 19 callers
Function
buildValidateCommand
.lintstagedrc.js:8
↓ 14 callers
Function
navigate
( page: Page, option: | 'Philippines' | 'Services' | 'Travel' | 'Government' | 'Flood
e2e/utils/navbar.ts:10
↓ 11 callers
Function
processEntry
( entry, type, allWebsiteEntries, parentDepartment = null )
scripts/extract-websites.js:44
↓ 10 callers
Function
fetchWithTimeout
* Helper function to make HTTP requests with timeout
security-test.cjs:53
↓ 8 callers
Function
addCorsHeaders
( response: Response, corsHeaders: Record<string, string> )
functions/index.ts:21
↓ 8 callers
Function
escapeSQL
* Escape SQL values to prevent injection and handle nulls
src/data/flood_control/load_flood_control.js:247
↓ 7 callers
Function
buildFilterString
(filters: FilterState)
src/pages/flood-control-projects/utils.ts:12
↓ 7 callers
Function
findCategorySlug
(categoryName: string)
src/components/home/Hero.tsx:22
↓ 7 callers
Function
getEffectiveSearchTerm
()
src/pages/flood-control-projects/index.tsx:578
↓ 6 callers
Function
handleDropdownToggle
(dropdownName: string)
src/pages/flood-control-projects/index.tsx:491
↓ 6 callers
Function
handleFilterChange
(filterName: string, value: string)
src/pages/flood-control-projects/table.tsx:640
↓ 6 callers
Function
handleFilterChange
(filterName: keyof FilterState, value: string)
src/pages/flood-control-projects/index.tsx:551
↓ 5 callers
Function
exportMeilisearchData
( options: ExportMeilisearchOptions )
src/lib/exportData.ts:103
↓ 5 callers
Function
onChange
()
src/hooks/use-mobile.ts:10
↓ 5 callers
Function
scrollToTop
()
src/lib/scrollUtils.ts:18
↓ 4 callers
Function
createSlug
(str)
scripts/split-services.js:10
↓ 4 callers
Function
formatAbsoluteDate
(date: Date)
src/components/ui/ProjectCard.tsx:55
↓ 4 callers
Function
formatPeso
(amount: number | null)
src/pages/government/salary-grade/index.tsx:25
↓ 4 callers
Function
normalizePath
(path: string)
src/components/layout/Navbar.tsx:63
↓ 4 callers
Function
truncateText
(text: string, maxLength: number)
src/lib/utils.ts:16
↓ 3 callers
Function
buildFilterString
()
src/pages/flood-control-projects/contractors/[contractor-name].tsx:589
↓ 3 callers
Function
checkDropdownPosition
()
src/components/ui/SelectPicker.tsx:81
↓ 3 callers
Function
checkIfFiltersApplied
( filters: FilterState, searchTerm: string )
src/pages/flood-control-projects/index.tsx:471
↓ 3 callers
Function
fetchForexData
()
functions/api/forex.ts:47
↓ 3 callers
Function
fetchForexData
( filterSymbols?: string[] )
src/lib/forex.ts:9
↓ 3 callers
Function
fetchWeatherData
( env: Env, specificCity: string | null = null )
functions/api/weather.ts:92
↓ 3 callers
Function
fetchWeatherData
()
src/lib/weather.ts:38
↓ 3 callers
Function
findSubcategorySlug
( categoryName: string, subcategoryName: string )
src/components/home/Hero.tsx:30
↓ 3 callers
Function
formatCurrencyName
(name: string)
src/pages/data/forex.tsx:167
↓ 3 callers
Function
getCrawler
(type?: string)
functions/lib/crawler.ts:76
↓ 3 callers
Function
getLocalGovSEOData
(regionName?: string)
src/utils/seo-data.ts:291
↓ 3 callers
Function
getWeatherIcon
(iconName: string, size = 'h-8 w-8')
src/pages/data/weather.tsx:13
↓ 3 callers
Function
handleCategoryChange
(categorySlug: string)
src/pages/services/index.tsx:128
↓ 3 callers
Function
handlePageChange
(selectedPage: number)
src/pages/flood-control-projects/contractors.tsx:326
↓ 3 callers
Function
handlePageChange
(selectedPage: number)
src/pages/flood-control-projects/table.tsx:447
↓ 3 callers
Function
handlePageChange
(selectedPage: number)
src/pages/flood-control-projects/contractors/[contractor-name].tsx:332
↓ 3 callers
Function
mobileCheck
()
e2e/utils/device.ts:6
↓ 3 callers
Function
orgFromUrl
(url: string)
src/components/ui/ProjectCard.tsx:8
↓ 3 callers
Function
readMeta
( source: unknown )
src/components/SEO.tsx:51
↓ 3 callers
Function
repoFromUrl
(url: string)
src/components/ui/ProjectCard.tsx:16
↓ 3 callers
Function
slugify
(input: string)
src/utils/seo-data.ts:296
↓ 2 callers
Function
buildFilterString
()
src/pages/flood-control-projects/contractors.tsx:562
↓ 2 callers
Function
buildFilterString
()
src/pages/flood-control-projects/table.tsx:656
↓ 2 callers
Function
changeLanguage
(newLanguage: LanguageType)
src/components/layout/Navbar.tsx:40
↓ 2 callers
Function
createSlug
(name: string)
src/pages/flood-control-projects/contractors.tsx:37
↓ 2 callers
Function
createSlug
(name: string)
src/pages/flood-control-projects/contractors/[contractor-name].tsx:497
↓ 2 callers
Function
fetchCFBrowserContent
( env: Env, url: string )
functions/lib/cf-browser.ts:9
↓ 2 callers
Function
fetchJinaContent
( env: Env, url: string )
functions/lib/jina.ts:9
↓ 2 callers
Function
fetchWithCache
( url: string, cacheDuration = 60 * 60 * 1000 )
src/lib/api.ts:17
↓ 2 callers
Function
formatDate
(date: Date)
src/lib/utils.ts:8
↓ 2 callers
Function
formatDate
* Format date string to YYYY-MM-DD format
src/data/flood_control/load_flood_control.js:125
↓ 2 callers
Function
formatDate
* Format date string to YYYY-MM-DD format
src/data/flood_control/load_flood_control_arcgis.js:188
↓ 2 callers
Function
formatUrl
(url: string | null)
src/pages/services/websites/index.tsx:69
↓ 2 callers
Function
generateUrlParams
(newFilters: FilterState)
src/pages/flood-control-projects/utils.ts:53
↓ 2 callers
Function
getBestName
scripts/extract-websites.js:17
↓ 2 callers
Function
getCategoryIcon
(categoryId: string)
src/pages/travel/visa-types/visa.util.ts:13
↓ 2 callers
Function
getCurrencyIconName
(code: string)
src/lib/forex.ts:38
↓ 2 callers
Function
getDepartmentsSEOData
( departmentName?: string )
src/utils/seo-data.ts:84
↓ 2 callers
Function
getEffectiveSearchTerm
()
src/pages/flood-control-projects/table.tsx:758
↓ 2 callers
Function
getHolidayWithDynamicDay
( holiday: Holiday, currentYear: number )
src/pages/philippines/holidays/PublicHolidays.tsx:39
↓ 2 callers
Function
getLanguageLabel
()
src/pages/travel/communicating/print.tsx:22
↓ 2 callers
Function
getRegionName
( feature: GeoJSON.Feature<GeoJSON.Geometry, RegionProperties> )
src/pages/philippines/map/index.tsx:167
↓ 2 callers
Function
getRegionName
( feature: GeoJSON.Feature<GeoJSON.Geometry, RegionProperties> )
src/pages/flood-control-projects/map.tsx:176
↓ 2 callers
Function
ghFetch
(slug: string, path: string, fallback: T)
src/components/ui/ProjectCard.tsx:133
↓ 2 callers
Function
isActive
(path: string)
src/pages/government/constitutional/components/ConstitutionalSidebar.tsx:48
↓ 2 callers
Function
isActiveRoute
(href: string)
src/components/layout/Navbar.tsx:88
↓ 2 callers
Function
logResult
(index, slug, companyName, status, errorMessage = '')
scripts/fetch_contractor_profiles.cjs:93
↓ 2 callers
Function
lsSet
(key: string, entry: StoredEntry<T>)
src/components/ui/ProjectCard.tsx:84
↓ 2 callers
Function
parseNumericCost
* Parse numeric cost, handling currency symbols and formatting
src/data/flood_control/load_flood_control_arcgis.js:175
↓ 2 callers
Function
saveCFBrowserContent
( env: Env, data: JinaResponse )
functions/lib/cf-browser.ts:128
↓ 2 callers
Function
saveJinaContent
( env: Env, data: JinaResponse )
functions/lib/jina.ts:78
↓ 2 callers
Function
selectCountry
(country: string)
src/pages/travel/visa/index.tsx:384
↓ 2 callers
Function
toggleSort
(field: 'name' | 'type')
src/pages/services/websites/index.tsx:75
↓ 1 callers
Function
addSlugsToAllFiles
()
scripts/add-directory-slugs.js:128
↓ 1 callers
Function
bannerBg
(slug: string)
src/components/ui/Banner.tsx:3
↓ 1 callers
Function
buildFilterString
()
src/pages/flood-control-projects/map.tsx:161
↓ 1 callers
Function
buildFullPath
(href: string)
src/components/layout/Navbar.tsx:67
↓ 1 callers
Function
buildGeoSearchParams
()
src/pages/flood-control-projects/map.tsx:166
↓ 1 callers
Function
calculateBounds
( projects: FloodControlProject[] )
src/pages/flood-control-projects/contractors/[contractor-name].tsx:535
↓ 1 callers
Function
checkForHardcodedIds
security-test.cjs:254
↓ 1 callers
Function
checkRateLimit
* Simple rate limiting using KV storage * @param env Environment variables * @param clientIP Client IP address * @returns Whether request is allowe
functions/api/crawl.ts:50
↓ 1 callers
Function
checkVisaRequirement
(country: string)
src/pages/travel/visa/index.tsx:392
↓ 1 callers
Function
closeDetailsDialog
()
src/pages/travel/visa/index.tsx:402
↓ 1 callers
Function
createExportFilename
(baseName: string)
src/lib/exportData.ts:82
↓ 1 callers
Function
createSearchKey
()
scripts/create_search_key.cjs:26
↓ 1 callers
Function
createSlug
(text)
scripts/add-lgu-slugs.js:11
↓ 1 callers
Function
createSlug
scripts/process_contractors.cjs:5
↓ 1 callers
Function
delay
scripts/fetch_contractor_profiles.cjs:79
↓ 1 callers
Function
ensureDir
(p)
scripts/split-lgu.cjs:12
↓ 1 callers
Function
exportToCSV
( data: Record<string, unknown>[], filename: string )
src/lib/exportData.ts:10
↓ 1 callers
Function
extractContactInfo
scripts/extract-websites.js:29
↓ 1 callers
Function
extractEmail
scripts/extract-websites.js:35
↓ 1 callers
Function
extractFeatures
(arcgisData)
scripts/index_flood_control_arcgis.js:53
↓ 1 callers
Function
extractRegions
()
scripts/extract-regions.js:14
↓ 1 callers
Function
fetchAndSaveContent
( env: Env, url: string, crawlerType?: string )
functions/lib/crawler.ts:155
↓ 1 callers
Function
fetchAndSaveProfile
(contractor, jsonSchema, index)
scripts/fetch_contractor_profiles.cjs:111
next →
1–100 of 461, ranked by callers