MCPcopy Create free account

hub / github.com/bettergovph/bettergov / functions

Functions461 in github.com/bettergovph/bettergov

↓ 42 callersFunctionlogTest
* Log test result
security-test.cjs:73
↓ 36 callersFunctioncn
(...inputs: ClassValue[])
src/lib/utils.ts:4
↓ 24 callersFunctionescapeSQL
* Escape SQL values to prevent injection and handle nulls
src/data/flood_control/load_flood_control_arcgis.js:379
↓ 20 callersFunctionfetch
( request: Request, env: Env, ctx: ExecutionContext )
functions/index.ts:44
↓ 19 callersFunctionbuildValidateCommand
.lintstagedrc.js:8
↓ 14 callersFunctionnavigate
( page: Page, option: | 'Philippines' | 'Services' | 'Travel' | 'Government' | 'Flood
e2e/utils/navbar.ts:10
↓ 11 callersFunctionprocessEntry
( entry, type, allWebsiteEntries, parentDepartment = null )
scripts/extract-websites.js:44
↓ 10 callersFunctionfetchWithTimeout
* Helper function to make HTTP requests with timeout
security-test.cjs:53
↓ 8 callersFunctionaddCorsHeaders
( response: Response, corsHeaders: Record<string, string> )
functions/index.ts:21
↓ 8 callersFunctionescapeSQL
* Escape SQL values to prevent injection and handle nulls
src/data/flood_control/load_flood_control.js:247
↓ 7 callersFunctionbuildFilterString
(filters: FilterState)
src/pages/flood-control-projects/utils.ts:12
↓ 7 callersFunctionfindCategorySlug
(categoryName: string)
src/components/home/Hero.tsx:22
↓ 7 callersFunctiongetEffectiveSearchTerm
()
src/pages/flood-control-projects/index.tsx:578
↓ 6 callersFunctionhandleDropdownToggle
(dropdownName: string)
src/pages/flood-control-projects/index.tsx:491
↓ 6 callersFunctionhandleFilterChange
(filterName: string, value: string)
src/pages/flood-control-projects/table.tsx:640
↓ 6 callersFunctionhandleFilterChange
(filterName: keyof FilterState, value: string)
src/pages/flood-control-projects/index.tsx:551
↓ 5 callersFunctionexportMeilisearchData
( options: ExportMeilisearchOptions )
src/lib/exportData.ts:103
↓ 5 callersFunctiononChange
()
src/hooks/use-mobile.ts:10
↓ 5 callersFunctionscrollToTop
()
src/lib/scrollUtils.ts:18
↓ 4 callersFunctioncreateSlug
(str)
scripts/split-services.js:10
↓ 4 callersFunctionformatAbsoluteDate
(date: Date)
src/components/ui/ProjectCard.tsx:55
↓ 4 callersFunctionformatPeso
(amount: number | null)
src/pages/government/salary-grade/index.tsx:25
↓ 4 callersFunctionnormalizePath
(path: string)
src/components/layout/Navbar.tsx:63
↓ 4 callersFunctiontruncateText
(text: string, maxLength: number)
src/lib/utils.ts:16
↓ 3 callersFunctionbuildFilterString
()
src/pages/flood-control-projects/contractors/[contractor-name].tsx:589
↓ 3 callersFunctioncheckDropdownPosition
()
src/components/ui/SelectPicker.tsx:81
↓ 3 callersFunctioncheckIfFiltersApplied
( filters: FilterState, searchTerm: string )
src/pages/flood-control-projects/index.tsx:471
↓ 3 callersFunctionfetchForexData
()
functions/api/forex.ts:47
↓ 3 callersFunctionfetchForexData
( filterSymbols?: string[] )
src/lib/forex.ts:9
↓ 3 callersFunctionfetchWeatherData
( env: Env, specificCity: string | null = null )
functions/api/weather.ts:92
↓ 3 callersFunctionfetchWeatherData
()
src/lib/weather.ts:38
↓ 3 callersFunctionfindSubcategorySlug
( categoryName: string, subcategoryName: string )
src/components/home/Hero.tsx:30
↓ 3 callersFunctionformatCurrencyName
(name: string)
src/pages/data/forex.tsx:167
↓ 3 callersFunctiongetCrawler
(type?: string)
functions/lib/crawler.ts:76
↓ 3 callersFunctiongetLocalGovSEOData
(regionName?: string)
src/utils/seo-data.ts:291
↓ 3 callersFunctiongetWeatherIcon
(iconName: string, size = 'h-8 w-8')
src/pages/data/weather.tsx:13
↓ 3 callersFunctionhandleCategoryChange
(categorySlug: string)
src/pages/services/index.tsx:128
↓ 3 callersFunctionhandlePageChange
(selectedPage: number)
src/pages/flood-control-projects/contractors.tsx:326
↓ 3 callersFunctionhandlePageChange
(selectedPage: number)
src/pages/flood-control-projects/table.tsx:447
↓ 3 callersFunctionhandlePageChange
(selectedPage: number)
src/pages/flood-control-projects/contractors/[contractor-name].tsx:332
↓ 3 callersFunctionmobileCheck
()
e2e/utils/device.ts:6
↓ 3 callersFunctionorgFromUrl
(url: string)
src/components/ui/ProjectCard.tsx:8
↓ 3 callersFunctionreadMeta
( source: unknown )
src/components/SEO.tsx:51
↓ 3 callersFunctionrepoFromUrl
(url: string)
src/components/ui/ProjectCard.tsx:16
↓ 3 callersFunctionslugify
(input: string)
src/utils/seo-data.ts:296
↓ 2 callersFunctionbuildFilterString
()
src/pages/flood-control-projects/contractors.tsx:562
↓ 2 callersFunctionbuildFilterString
()
src/pages/flood-control-projects/table.tsx:656
↓ 2 callersFunctionchangeLanguage
(newLanguage: LanguageType)
src/components/layout/Navbar.tsx:40
↓ 2 callersFunctioncreateSlug
(name: string)
src/pages/flood-control-projects/contractors.tsx:37
↓ 2 callersFunctioncreateSlug
(name: string)
src/pages/flood-control-projects/contractors/[contractor-name].tsx:497
↓ 2 callersFunctionfetchCFBrowserContent
( env: Env, url: string )
functions/lib/cf-browser.ts:9
↓ 2 callersFunctionfetchJinaContent
( env: Env, url: string )
functions/lib/jina.ts:9
↓ 2 callersFunctionfetchWithCache
( url: string, cacheDuration = 60 * 60 * 1000 )
src/lib/api.ts:17
↓ 2 callersFunctionformatDate
(date: Date)
src/lib/utils.ts:8
↓ 2 callersFunctionformatDate
* Format date string to YYYY-MM-DD format
src/data/flood_control/load_flood_control.js:125
↓ 2 callersFunctionformatDate
* Format date string to YYYY-MM-DD format
src/data/flood_control/load_flood_control_arcgis.js:188
↓ 2 callersFunctionformatUrl
(url: string | null)
src/pages/services/websites/index.tsx:69
↓ 2 callersFunctiongenerateUrlParams
(newFilters: FilterState)
src/pages/flood-control-projects/utils.ts:53
↓ 2 callersFunctiongetBestName
scripts/extract-websites.js:17
↓ 2 callersFunctiongetCategoryIcon
(categoryId: string)
src/pages/travel/visa-types/visa.util.ts:13
↓ 2 callersFunctiongetCurrencyIconName
(code: string)
src/lib/forex.ts:38
↓ 2 callersFunctiongetDepartmentsSEOData
( departmentName?: string )
src/utils/seo-data.ts:84
↓ 2 callersFunctiongetEffectiveSearchTerm
()
src/pages/flood-control-projects/table.tsx:758
↓ 2 callersFunctiongetHolidayWithDynamicDay
( holiday: Holiday, currentYear: number )
src/pages/philippines/holidays/PublicHolidays.tsx:39
↓ 2 callersFunctiongetLanguageLabel
()
src/pages/travel/communicating/print.tsx:22
↓ 2 callersFunctiongetRegionName
( feature: GeoJSON.Feature<GeoJSON.Geometry, RegionProperties> )
src/pages/philippines/map/index.tsx:167
↓ 2 callersFunctiongetRegionName
( feature: GeoJSON.Feature<GeoJSON.Geometry, RegionProperties> )
src/pages/flood-control-projects/map.tsx:176
↓ 2 callersFunctionghFetch
(slug: string, path: string, fallback: T)
src/components/ui/ProjectCard.tsx:133
↓ 2 callersFunctionisActive
(path: string)
src/pages/government/constitutional/components/ConstitutionalSidebar.tsx:48
↓ 2 callersFunctionisActiveRoute
(href: string)
src/components/layout/Navbar.tsx:88
↓ 2 callersFunctionlogResult
(index, slug, companyName, status, errorMessage = '')
scripts/fetch_contractor_profiles.cjs:93
↓ 2 callersFunctionlsSet
(key: string, entry: StoredEntry<T>)
src/components/ui/ProjectCard.tsx:84
↓ 2 callersFunctionparseNumericCost
* Parse numeric cost, handling currency symbols and formatting
src/data/flood_control/load_flood_control_arcgis.js:175
↓ 2 callersFunctionsaveCFBrowserContent
( env: Env, data: JinaResponse )
functions/lib/cf-browser.ts:128
↓ 2 callersFunctionsaveJinaContent
( env: Env, data: JinaResponse )
functions/lib/jina.ts:78
↓ 2 callersFunctionselectCountry
(country: string)
src/pages/travel/visa/index.tsx:384
↓ 2 callersFunctiontoggleSort
(field: 'name' | 'type')
src/pages/services/websites/index.tsx:75
↓ 1 callersFunctionaddSlugsToAllFiles
()
scripts/add-directory-slugs.js:128
↓ 1 callersFunctionbannerBg
(slug: string)
src/components/ui/Banner.tsx:3
↓ 1 callersFunctionbuildFilterString
()
src/pages/flood-control-projects/map.tsx:161
↓ 1 callersFunctionbuildFullPath
(href: string)
src/components/layout/Navbar.tsx:67
↓ 1 callersFunctionbuildGeoSearchParams
()
src/pages/flood-control-projects/map.tsx:166
↓ 1 callersFunctioncalculateBounds
( projects: FloodControlProject[] )
src/pages/flood-control-projects/contractors/[contractor-name].tsx:535
↓ 1 callersFunctioncheckForHardcodedIds
security-test.cjs:254
↓ 1 callersFunctioncheckRateLimit
* 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 callersFunctioncheckVisaRequirement
(country: string)
src/pages/travel/visa/index.tsx:392
↓ 1 callersFunctioncloseDetailsDialog
()
src/pages/travel/visa/index.tsx:402
↓ 1 callersFunctioncreateExportFilename
(baseName: string)
src/lib/exportData.ts:82
↓ 1 callersFunctioncreateSearchKey
()
scripts/create_search_key.cjs:26
↓ 1 callersFunctioncreateSlug
(text)
scripts/add-lgu-slugs.js:11
↓ 1 callersFunctioncreateSlug
scripts/process_contractors.cjs:5
↓ 1 callersFunctiondelay
scripts/fetch_contractor_profiles.cjs:79
↓ 1 callersFunctionensureDir
(p)
scripts/split-lgu.cjs:12
↓ 1 callersFunctionexportToCSV
( data: Record<string, unknown>[], filename: string )
src/lib/exportData.ts:10
↓ 1 callersFunctionextractContactInfo
scripts/extract-websites.js:29
↓ 1 callersFunctionextractEmail
scripts/extract-websites.js:35
↓ 1 callersFunctionextractFeatures
(arcgisData)
scripts/index_flood_control_arcgis.js:53
↓ 1 callersFunctionextractRegions
()
scripts/extract-regions.js:14
↓ 1 callersFunctionfetchAndSaveContent
( env: Env, url: string, crawlerType?: string )
functions/lib/crawler.ts:155
↓ 1 callersFunctionfetchAndSaveProfile
(contractor, jsonSchema, index)
scripts/fetch_contractor_profiles.cjs:111
next →1–100 of 461, ranked by callers