Spaces:
Paused
Paused
Download node_modules/@plotly/mapbox-gl/src/util/config.js from Leon4gr45/UserSyncFrontend: direct link, hf CLI and curl.
- Browser
- Download file 821 Bytes
-
https://huggingface.co/spaces/Leon4gr45/UserSyncFrontend/resolve/main/node_modules/%40plotly/mapbox-gl/src/util/config.js
- Command line
-
hf download hf://spaces/Leon4gr45/UserSyncFrontend/node_modules/@plotly/mapbox-gl/src/util/config.js
-
curl -L -o config.js https://huggingface.co/spaces/Leon4gr45/UserSyncFrontend/resolve/main/node_modules/%40plotly/mapbox-gl/src/util/config.js
821 Bytes
| // @flow strict | |
| type Config = {| | |
| API_URL: string, | |
| EVENTS_URL: ?string, | |
| FEEDBACK_URL: string, | |
| REQUIRE_ACCESS_TOKEN: boolean, | |
| ACCESS_TOKEN: ?string, | |
| MAX_PARALLEL_IMAGE_REQUESTS: number | |
| |}; | |
| const config: Config = { | |
| API_URL: 'https://api.mapbox.com', | |
| get EVENTS_URL() { | |
| if (!this.API_URL) { return null; } | |
| if (this.API_URL.indexOf('https://api.mapbox.cn') === 0) { | |
| return 'https://events.mapbox.cn/events/v2'; | |
| } else if (this.API_URL.indexOf('https://api.mapbox.com') === 0) { | |
| return 'https://events.mapbox.com/events/v2'; | |
| } else { | |
| return null; | |
| } | |
| }, | |
| FEEDBACK_URL: 'https://apps.mapbox.com/feedback', | |
| REQUIRE_ACCESS_TOKEN: true, | |
| ACCESS_TOKEN: null, | |
| MAX_PARALLEL_IMAGE_REQUESTS: 16 | |
| }; | |
| export default config; | |