Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/YeShengDe/AddressGeneratorFe
/ functions
Functions
143 in github.com/YeShengDe/AddressGeneratorFe
⨍
Functions
143
◇
Types & classes
35
↓ 60 callers
Function
cn
(...inputs: ClassValue[])
src/lib/utils.ts:163
↓ 17 callers
Function
pickFirst
(...values: Array<string | undefined>)
src/lib/user-profile.ts:271
↓ 10 callers
Function
withFakerFallback
( primary: () => T, fallback: () => T, finalValue: T )
src/lib/utils.ts:119
↓ 9 callers
Function
copyToClipboard
( text: string | null | undefined, label: string )
src/app/(mian)/_components/user-generator.tsx:100
↓ 9 callers
Method
get
( url: string, params?: Record<string, string | number | boolean>, options?: Omit<RequestOptions,
src/lib/request.ts:123
↓ 9 callers
Function
normalizeLocalizedAddressValue
( value: string | undefined, countryCode?: string )
src/lib/user-profile.ts:160
↓ 8 callers
Function
getPerson
(country_code: string)
src/lib/utils.ts:212
↓ 8 callers
Function
normalizeCountryCode
(countryCode?: string)
src/lib/user-profile.ts:142
↓ 7 callers
Function
useResponsiveDialogContext
()
src/components/ui/responsive-dialog.tsx:18
↓ 6 callers
Method
request
( url: string, options: RequestOptions = {} )
src/lib/request.ts:56
↓ 5 callers
Function
sanitizeEmailLocalPart
(value: string)
src/lib/user-profile.ts:150
↓ 4 callers
Function
formatPersonName
( user: Pick<IUser.asObject, 'firstname' | 'lastname' | 'address'> )
src/lib/user-profile.ts:391
↓ 4 callers
Function
getGeneratedAt
(user: IUser.asObject)
src/app/(mian)/_store.ts:27
↓ 4 callers
Function
getRandomCoor
( target?: string | RandomCoordinateTarget, radiusScale = 1 )
src/lib/utils.ts:173
↓ 4 callers
Function
toRadians
(value: number)
src/app/(mian)/_lib/random-address.ts:123
↓ 4 callers
Function
uniqueParts
(values: Array<string | undefined>)
src/lib/user-profile.ts:283
↓ 3 callers
Function
getReverseQueryKey
( coord: [number, number], countryCode?: string )
src/app/(mian)/_lib/random-address.ts:108
↓ 3 callers
Function
hydrateUserWithReverseGeocode
( user: IUser.asObject, result: IUser.getCoorAddressResponse )
src/app/(mian)/_lib/random-address.ts:219
↓ 2 callers
Function
adapterLocalFromCnCode
(countryCode: string)
src/app/(mian)/_api.ts:11
↓ 2 callers
Function
capitalizeWord
(value: string)
src/lib/user-profile.ts:138
↓ 2 callers
Function
containsEastAsianScript
(value: string)
src/lib/user-profile.ts:146
↓ 2 callers
Function
generateValidatedRandomAddress
( queryClient: QueryClient, target?: string | RandomCoordinateTarget, onProgress?: (progress: RandomAddr
src/app/(mian)/_lib/random-address.ts:235
↓ 2 callers
Function
getCoorAddress
(params: IUser.getCoorAddressRequest)
src/app/(mian)/_api.ts:15
↓ 2 callers
Function
getCountryLocale
(countryCode: string)
src/lib/population/index.ts:76
↓ 2 callers
Function
getLocaleFaker
(countryCode: string)
src/lib/utils.ts:158
↓ 2 callers
Function
getPopulationCentersByCountry
(countryCode: string)
src/lib/population/index.ts:80
↓ 2 callers
Function
handleLocationSelect
(lat: number, lng: number)
src/app/(mian)/_components/map-component.tsx:266
↓ 2 callers
Function
normalizeCountryCode
(countryCode?: string)
src/app/(mian)/_lib/random-address.ts:119
↓ 2 callers
Function
print
(key: string, value: string)
src/components/build-info.tsx:6
↓ 2 callers
Function
useDebounce
(value: T, delay = 300)
src/hooks/use-debounce.ts:3
↓ 2 callers
Function
useMobile
()
src/hooks/use-mobile.ts:5
↓ 1 callers
Function
buildStreetLine
(address: Address)
src/lib/user-profile.ts:249
↓ 1 callers
Method
buildURL
(url: string, params?: Record<string, unknown>)
src/lib/request.ts:37
↓ 1 callers
Function
checkDevice
()
src/hooks/use-mobile.ts:9
↓ 1 callers
Function
fallbackPhoneGrouping
(value: string)
src/lib/user-profile.ts:221
↓ 1 callers
Function
formatAddressPrimaryLine
(address: Address)
src/lib/user-profile.ts:411
↓ 1 callers
Function
formatGeneratedTime
(value?: string)
src/app/(mian)/_components/history-drawer.tsx:34
↓ 1 callers
Function
generateLocalizedSurname
(faker: Faker, countryCode?: string)
src/lib/localized-name.ts:102
↓ 1 callers
Function
generateMemorableStrongPassword
()
src/lib/user-profile.ts:335
↓ 1 callers
Function
generatePreferredEmail
( localFaker: Faker, firstName: string, lastName: string, birthday: string )
src/lib/user-profile.ts:305
↓ 1 callers
Function
generateReadablePhoneNumber
( localFaker: Faker, countryCode: string )
src/lib/user-profile.ts:349
↓ 1 callers
Function
getAddressMetaItems
(address: Address)
src/lib/user-profile.ts:451
↓ 1 callers
Function
getAvatarDownloadName
( user: Pick<IUser.asObject, 'firstname' | 'lastname' | 'address'> )
src/lib/user-profile.ts:675
↓ 1 callers
Function
getBirthdayDisplay
(value?: string)
src/lib/user-profile.ts:612
↓ 1 callers
Function
getCurrentLayerOption
()
src/app/(mian)/_components/map-layer-control.tsx:82
↓ 1 callers
Function
getDistanceMeters
(start: [number, number], end: [number, number])
src/app/(mian)/_lib/random-address.ts:131
↓ 1 callers
Function
getGenderDisplay
(value?: string)
src/lib/user-profile.ts:635
↓ 1 callers
Function
getGeoAcceptLanguage
(countryCode: string)
src/lib/utils.ts:139
↓ 1 callers
Function
getLocalfromCountryCode
(countryCode: string)
src/lib/utils.ts:135
↓ 1 callers
Function
getNameFaker
(countryCode: string)
src/lib/utils.ts:196
↓ 1 callers
Function
getPopulationBoundsByCountry
(countryCode: string)
src/lib/population/index.ts:84
↓ 1 callers
Function
getPopulationCountry
(countryCode: string)
src/lib/population/index.ts:72
↓ 1 callers
Function
getRandomPopulationCenter
(countryCode?: string)
src/lib/population/index.ts:120
↓ 1 callers
Function
getResolvedReverseCoord
(result: IUser.getCoorAddressResponse)
src/app/(mian)/_lib/random-address.ts:172
↓ 1 callers
Function
getSearchAddress
(params: IUser.getSearchAddressRequest)
src/app/(mian)/_api.ts:25
↓ 1 callers
Function
getTargetCountryCode
(target?: string | RandomCoordinateTarget)
src/app/(mian)/_lib/random-address.ts:115
↓ 1 callers
Function
groupDigits
(value: string, groups: number[])
src/lib/user-profile.ts:199
↓ 1 callers
Function
handleLayerChange
(layer: LayerOption)
src/app/(mian)/_components/map-layer-control.tsx:77
↓ 1 callers
Function
handleSelectUser
(user: IUser.asObject)
src/app/(mian)/_components/history-drawer.tsx:68
↓ 1 callers
Function
hasLocalityContext
(address: IUser.getCoorAddressResponse['address'])
src/app/(mian)/_lib/random-address.ts:145
↓ 1 callers
Function
hasStreetLevelAddress
( address: IUser.getCoorAddressResponse['address'] )
src/app/(mian)/_lib/random-address.ts:152
↓ 1 callers
Function
initializeAddress
()
src/app/(mian)/page.tsx:44
↓ 1 callers
Function
isCoarseAreaResult
(result: IUser.getCoorAddressResponse)
src/app/(mian)/_lib/random-address.ts:166
↓ 1 callers
Function
isEastAsianName
( user: Pick<IUser.asObject, 'firstname' | 'lastname' | 'address'> )
src/lib/user-profile.ts:239
↓ 1 callers
Function
isWaterLike
(result: IUser.getCoorAddressResponse)
src/app/(mian)/_lib/random-address.ts:158
↓ 1 callers
Function
normalizeCountryCode
(countryCode?: string)
src/lib/localized-name.ts:98
↓ 1 callers
Function
normalizeReverseGeocodeAddress
( osmAddress: ReverseAddress, fallbackAddress: Address )
src/lib/user-profile.ts:500
↓ 1 callers
Function
pickAddressMetaConfig
(countryCode?: string)
src/lib/user-profile.ts:298
↓ 1 callers
Method
put
( url: string, data?: B, options?: Omit<RequestOptions, 'data'> )
src/lib/request.ts:141
↓ 1 callers
Function
resolveValidatedCoord
( requestedCoord: [number, number], result: IUser.getCoorAddressResponse, expectedCountryCode?: string )
src/app/(mian)/_lib/random-address.ts:176
↓ 1 callers
Function
sleep
(ms: number)
src/app/(mian)/_lib/random-address.ts:127
↓ 1 callers
Function
sortHistoryByGeneratedAt
(users: IUser.asObject[])
src/app/(mian)/_store.ts:31
↓ 1 callers
Function
trimOrPadDigits
(value: string, length: number)
src/lib/user-profile.ts:191
↓ 1 callers
Function
useShare
()
src/hooks/use-share.ts:5
Function
Badge
({ className, variant, ...props }: BadgeProps)
src/components/ui/badge.tsx:30
Function
DialogFooter
({ className, ...props }: React.HTMLAttributes<HTMLDivElement>)
src/components/ui/dialog.tsx:70
Function
DialogHeader
({ className, ...props }: React.HTMLAttributes<HTMLDivElement>)
src/components/ui/dialog.tsx:56
Function
Drawer
({ shouldScaleBackground = true, ...props }: React.ComponentProps<typeof DrawerPrimitive.Root>)
src/components/ui/drawer.tsx:8
Function
DrawerFooter
({ className, ...props }: React.HTMLAttributes<HTMLDivElement>)
src/components/ui/drawer.tsx:69
Function
DrawerHeader
({ className, ...props }: React.HTMLAttributes<HTMLDivElement>)
src/components/ui/drawer.tsx:58
Function
Footer
()
src/components/footer.tsx:5
Function
Header
()
src/components/header.tsx:3
Function
HistoryDrawer
()
src/app/(mian)/_components/history-drawer.tsx:51
Function
HoverHint
({ text }: { text: string })
src/app/(mian)/_components/user-generator.tsx:47
Function
HoverTooltip
({ text, children }: HoverTooltipProps)
src/app/(mian)/_components/map-search.tsx:138
Function
MapAlert
()
src/app/(mian)/_components/map-tips.tsx:5
Function
MapClickHandler
()
src/app/(mian)/_components/map-component.tsx:286
Function
MapComponent
({ lat, lon, }: { lat?: number; lon?: number; })
src/app/(mian)/_components/map-component.tsx:59
Function
MapLayerControl
({ onLayerChange, currentLayer, }: MapLayerControlProps)
src/app/(mian)/_components/map-layer-control.tsx:61
Function
MapRefHandler
()
src/app/(mian)/_components/map-component.tsx:279
Function
MapSearch
({ onLocationSelect, onGenerateAddress, disabled = false, }: MapSearchProps)
src/app/(mian)/_components/map-search.tsx:153
Function
Page
({ loading = false, overlay = false, subtitle, title = '一个野生的地址生成器', }: LogoPageProps)
src/components/logo-page.tsx:11
Function
Page
()
src/components/build-info.tsx:4
Function
Page
({ children }: React.PropsWithChildren)
src/components/providers/index.tsx:3
Function
Page
()
src/app/(mian)/page.tsx:26
Function
Page
({ children }: { children: React.ReactNode })
src/app/(mian)/layout.tsx:3
Function
QueryProvider
({ children }: React.PropsWithChildren)
src/components/providers/query.tsx:6
Function
ResponsiveDialog
({ children, ...props }: React.ComponentProps<typeof DialogPrimitive.Root>)
src/components/ui/responsive-dialog.tsx:30
Function
ResponsiveDialogClose
({ children, ...props }: React.ComponentProps<typeof DialogPrimitive.Close>)
src/components/ui/responsive-dialog.tsx:54
Function
ResponsiveDialogContent
({ className, children, ...props }: React.ComponentPropsWithoutRef<typeof DialogPrimitive.Content>)
src/components/ui/responsive-dialog.tsx:64
next →
1–100 of 143, ranked by callers