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
↓ 1 callers
Function
fetchContent
( env: Env, url: string, crawlerType?: string )
functions/lib/crawler.ts:110
↓ 1 callers
Method
fetchContent
(env: Env, url: string)
functions/lib/crawler.ts:13
↓ 1 callers
Function
fetchHrep
()
scripts/fetch-hrep.js:34
↓ 1 callers
Function
fetchProjectGitHubData
( repositoryUrls: string[] )
src/components/ui/ProjectCard.tsx:165
↓ 1 callers
Function
findContractorBySlug
(slug: string)
src/pages/flood-control-projects/contractors/[contractor-name].tsx:507
↓ 1 callers
Function
formatList
(data)
scripts/fetch-hrep.js:3
↓ 1 callers
Function
formatRegionName
(name: string)
src/pages/philippines/regions/index.tsx:20
↓ 1 callers
Function
formatRelativeTime
(date: Date)
src/components/ui/ProjectCard.tsx:30
↓ 1 callers
Function
formatStandardDescription
(subject: string)
src/lib/seoTemplates.ts:7
↓ 1 callers
Function
formatStandardTitle
(subject: string)
src/lib/seoTemplates.ts:3
↓ 1 callers
Function
generateBatchInsertSQL
* Generate SQL for batch insert with UPSERT logic
src/data/flood_control/load_flood_control.js:206
↓ 1 callers
Function
generateBatchInsertSQL
* Generate SQL for batch insert with UPSERT logic
src/data/flood_control/load_flood_control_arcgis.js:284
↓ 1 callers
Function
generateGovernmentDirectory
(governmentData)
scripts/generate-llms-txt.js:135
↓ 1 callers
Function
generateGovernmentUrls
(siteUrl, governmentData)
scripts/generate-sitemap.js:135
↓ 1 callers
Function
generateHistoricalData
(currentRate: number, timeframe: string)
src/pages/data/forex.tsx:122
↓ 1 callers
Function
generateLlmsContent
( mainNavigation, serviceCategories, governmentData )
scripts/generate-llms-txt.js:371
↓ 1 callers
Function
generateServicesDirectory
(serviceCategories)
scripts/generate-llms-txt.js:353
↓ 1 callers
Function
generateSiteUrls
(mainNavigation, governmentData)
scripts/generate-sitemap.js:273
↓ 1 callers
Function
generateSitemap
(mainNavigation, governmentData)
scripts/generate-llms-txt.js:242
↓ 1 callers
Function
generateSitemapXml
(urls)
scripts/generate-sitemap.js:380
↓ 1 callers
Function
generateSlug
scripts/extract-websites.js:8
↓ 1 callers
Function
generateSlug
(record)
scripts/index_flood_control.cjs:92
↓ 1 callers
Function
generateSlug
(name)
scripts/add-directory-slugs.js:46
↓ 1 callers
Function
generateSlug
(name)
scripts/extract-regions.js:39
↓ 1 callers
Function
getCFBrowserContentByUrl
( env: Env, url: string )
functions/lib/cf-browser.ts:247
↓ 1 callers
Function
getCategoryHotlines
(category: string)
src/pages/philippines/Hotlines.tsx:71
↓ 1 callers
Function
getComplexityColor
(complexity: string)
src/pages/Ideas.tsx:89
↓ 1 callers
Function
getConstitutionalSEOData
( officeName?: string )
src/utils/seo-data.ts:142
↓ 1 callers
Function
getContentByUrl
( env: Env, url: string, crawlerType?: string )
functions/lib/crawler.ts:140
↓ 1 callers
Method
getContentByUrl
(env: Env, url: string)
functions/lib/crawler.ts:18
↓ 1 callers
Function
getCountryIso2
(countryName: string)
src/pages/travel/visa/index.tsx:226
↓ 1 callers
Function
getCurrencyFlag
(code: string)
src/pages/data/forex.tsx:44
↓ 1 callers
Function
getCurrencyIcon
(code: string)
src/components/ui/Ticker.tsx:14
↓ 1 callers
Function
getCurrencyIcon
(code: string, size = 'h-6 w-6')
src/pages/data/forex.tsx:30
↓ 1 callers
Function
getExecutiveSEOData
(officeName?: string)
src/utils/seo-data.ts:23
↓ 1 callers
Function
getForexData
()
src/components/home/InfoWidgets.tsx:51
↓ 1 callers
Function
getForexData
()
src/components/ui/Ticker.tsx:43
↓ 1 callers
Function
getForexData
()
src/pages/data/forex.tsx:90
↓ 1 callers
Function
getFormattedDate
()
src/lib/exportData.ts:68
↓ 1 callers
Function
getIcon
(category: string)
src/components/home/ServicesSection.tsx:22
↓ 1 callers
Function
getJinaContentByUrl
( env: Env, url: string )
functions/lib/jina.ts:195
↓ 1 callers
Function
getPriorityColor
(priority: string)
src/pages/Ideas.tsx:76
↓ 1 callers
Function
getSocialIcon
(label: string)
src/components/layout/Footer.tsx:34
↓ 1 callers
Function
getStatusBadge
(type: string, duration?: string)
src/pages/travel/visa/index.tsx:416
↓ 1 callers
Function
getStatusColor
(status: string)
src/pages/accessibility/index.tsx:119
↓ 1 callers
Function
getStatusIcon
(status: string)
src/pages/accessibility/index.tsx:108
↓ 1 callers
Function
getTimeoutByRoute
(pathname: string)
src/pages/government/GovernmentPageContainer.tsx:52
↓ 1 callers
Function
getWeatherBackground
(condition: string)
src/pages/data/weather.tsx:62
↓ 1 callers
Function
getWeatherData
()
src/components/home/InfoWidgets.tsx:27
↓ 1 callers
Function
getWeatherData
()
src/components/ui/Ticker.tsx:71
↓ 1 callers
Function
getWeatherData
()
src/pages/data/weather.tsx:20
↓ 1 callers
Function
getWeatherDescription
(condition: string)
src/pages/data/weather.tsx:53
↓ 1 callers
Function
getWeatherIcon
(iconName: string)
src/components/home/InfoWidgets.tsx:20
↓ 1 callers
Function
ghFetchOnce
( slug: string, path: string, fallback: T )
src/components/ui/ProjectCard.tsx:98
↓ 1 callers
Function
handleCategoryClick
(categoryId: string)
src/pages/travel/visa-types/[type].tsx:44
↓ 1 callers
Function
handleCategoryClick
(categoryId: string)
src/pages/travel/visa-types/index.tsx:31
↓ 1 callers
Function
handleContractorNavigation
(contractorSlug: string)
src/pages/flood-control-projects/contractors.tsx:550
↓ 1 callers
Function
handleDeptSelect
(dept: Department)
src/pages/government/departments/components/DepartmentsSidebar.tsx:32
↓ 1 callers
Function
handleDropdownMouseEnter
(label: string)
src/components/layout/Navbar.tsx:130
↓ 1 callers
Function
handleOfficeSelect
(office: ConstitutionalOffice)
src/pages/government/constitutional/components/ConstitutionalSidebar.tsx:38
↓ 1 callers
Function
handleResetZoom
()
src/pages/philippines/map/index.tsx:239
↓ 1 callers
Function
handleSearch
(val: string)
src/components/ui/CivicAssistant.tsx:22
↓ 1 callers
Function
handleSearch
(query: string)
src/pages/services/index.tsx:123
↓ 1 callers
Function
handleSearchChange
(query: string)
src/pages/flood-control-projects/table.tsx:753
↓ 1 callers
Function
handleSearchChange
(value: string)
src/pages/flood-control-projects/index.tsx:570
↓ 1 callers
Function
handleSelect
(option: SelectPickerOption)
src/components/ui/SelectPicker.tsx:66
↓ 1 callers
Function
handleSort
(field: string)
src/pages/flood-control-projects/contractors.tsx:259
↓ 1 callers
Function
handleSort
(field: string)
src/pages/flood-control-projects/table.tsx:382
↓ 1 callers
Function
handleSort
(field: string)
src/pages/flood-control-projects/contractors/[contractor-name].tsx:267
↓ 1 callers
Function
handleSubcategoryChange
(subcategorySlug: string)
src/pages/services/index.tsx:136
↓ 1 callers
Function
init
()
src/components/ui/CivicAssistant.tsx:15
↓ 1 callers
Method
initialize
()
src/lib/assistant.ts:26
↓ 1 callers
Function
insertBatch
* Insert a batch of contracts using wrangler d1 execute
src/data/flood_control/load_flood_control.js:169
↓ 1 callers
Function
insertBatch
* Insert a batch of projects using wrangler d1 execute
src/data/flood_control/load_flood_control_arcgis.js:247
↓ 1 callers
Function
insertContractsInBatches
* Insert contracts into D1 database using wrangler CLI
src/data/flood_control/load_flood_control.js:141
↓ 1 callers
Function
insertProjectsInBatches
* Insert projects into D1 database using wrangler CLI
src/data/flood_control/load_flood_control_arcgis.js:219
↓ 1 callers
Function
isActive
(path: string)
src/pages/government/executive/components/ExecutiveSidebar.tsx:13
↓ 1 callers
Function
isActive
(path: string)
src/pages/government/legislative/components/LegislativeSidebar.tsx:14
↓ 1 callers
Function
isActive
(path: string)
src/pages/government/diplomatic/components/DiplomaticSidebar.tsx:9
↓ 1 callers
Function
isActiveChildRoute
(href: string)
src/components/layout/Navbar.tsx:104
↓ 1 callers
Function
isValidUrl
* Validate URL to prevent SSRF and other attacks * @param url The URL to validate * @returns Whether the URL is valid
functions/api/crawl.ts:9
↓ 1 callers
Function
lastUpdatedTier
(date: Date)
src/components/ui/ProjectCard.tsx:299
↓ 1 callers
Function
loadData
()
scripts/generate-sitemap.js:95
↓ 1 callers
Function
loadData
()
scripts/generate-llms-txt.js:95
↓ 1 callers
Function
loadRegionLgu
( slug: string | undefined | null )
src/lib/lgu.ts:44
↓ 1 callers
Function
lsGet
(key: string)
src/components/ui/ProjectCard.tsx:75
↓ 1 callers
Function
main
()
manual-security-test.cjs:136
↓ 1 callers
Function
main
* Main execution function
src/data/flood_control/load_flood_control.js:29
↓ 1 callers
Function
main
* Main execution function
src/data/flood_control/load_flood_control_arcgis.js:35
↓ 1 callers
Function
main
()
scripts/split-lgu.cjs:20
↓ 1 callers
Function
main
()
scripts/extract-websites.js:174
↓ 1 callers
Function
main
()
scripts/index_contractors.cjs:170
↓ 1 callers
Function
main
()
scripts/index_flood_control.cjs:121
↓ 1 callers
Function
main
()
scripts/generate-sitemap.js:403
↓ 1 callers
Function
main
()
scripts/index_flood_control_arcgis.js:100
↓ 1 callers
Function
main
()
scripts/index_meilisearch.cjs:90
↓ 1 callers
Function
main
()
scripts/split-services.js:19
↓ 1 callers
Function
main
()
scripts/generate-llms-txt.js:469
↓ 1 callers
Function
mapWeatherIconToLucide
(iconCode: string)
src/lib/weather.ts:9
↓ 1 callers
Function
normalizeQuery
(search: string)
src/components/SEO.tsx:41
← previous
next →
101–200 of 461, ranked by callers