Provide geo-gated users optional GPS fallback for precise location data (#8973)

This commit is contained in:
Eric Bailey
2025-09-04 11:07:12 -05:00
committed by GitHub
parent 625b4e61db
commit f8ae0540a0
31 changed files with 1076 additions and 299 deletions
+23 -2
View File
@@ -7,11 +7,32 @@ export type Device = {
fontScale: '-2' | '-1' | '0' | '1' | '2'
fontFamily: 'system' | 'theme'
lastNuxDialog: string | undefined
/**
* Geolocation config, fetched from the IP service. This previously did
* double duty as the "status" for geolocation state, but that has since
* moved here to the client.
*/
geolocation?: {
countryCode: string | undefined
isAgeRestrictedGeo: boolean | undefined
isAgeBlockedGeo: boolean | undefined
regionCode: string | undefined
ageRestrictedGeos: {
countryCode: string
regionCode: string | undefined
}[]
ageBlockedGeos: {
countryCode: string
regionCode: string | undefined
}[]
}
/**
* The GPS-based geolocation, if the user has granted permission.
*/
deviceGeolocation?: {
countryCode: string | undefined
regionCode: string | undefined
}
trendingBetaEnabled: boolean
devMode: boolean
demoMode: boolean