Adds real-time visualization of traffic flow between user locations and data centers on the 3D globe: - Implements arc animations for traffic visualization - Adjusts globe colors and atmosphere for better visibility - Adds data center (colo) location mapping - Centers initial view on user's current location - Improves mobile responsiveness and layout - Adds cleanup handling for globe resources Performance and UX improvements: - Optimizes globe rotation speed and controls - Updates time picker layout with logical grouping - Enhances responsive design for dashboard components
7 lines
170 B
TypeScript
7 lines
170 B
TypeScript
export default eventHandler((event) => {
|
|
const { request: { cf } } = event.context.cloudflare
|
|
return {
|
|
latitude: cf.latitude,
|
|
longitude: cf.longitude,
|
|
}
|
|
})
|