-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Added Neon public API host variable with value pulled from server data. * Fixed function name. * Updates for setting public API host through server data. * Updated valid hosts regex pattern. * Reset NEON_SERVER_DATA * Minor cleanup. * Update for web socket host determination. * Added prototype typescript environment module. * Cleanup. * Fixed test and cleanup. * Removed unused variable. * Removed file. * site map: handle maxZoom property propagation * site map: update mapZoom initialization to include bounds * NeonContext final state when core auth, TS context include release * resolve authentication state when silent SSO disabled * pull out route handling to dedicated service * fix host regex validation, update routes * reduce .env usage * fix account route * fix logout redirect path handling * improve auth logout redirection * update login redirect path handling * handle fallback cases for auth redirects * bump typescript, use npx for script execution * prepare v1.8.0 * clean up package, tsconfig * update lib with latest tsc Co-authored-by: Robert Markel <rmarkel@battelleecology.org>
- Loading branch information
1 parent
3f32ce8
commit 7b0b5e6
Showing
104 changed files
with
4,117 additions
and
1,921 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,58 +1,53 @@ | ||
PORT=3010 | ||
REACT_APP_VERSION=$npm_package_version | ||
REACT_APP_NEON_API_NAME="api" | ||
REACT_APP_NEON_API_VERSION="v0" | ||
|
||
#------------------------------------------------------------------------------- | ||
# NEON API root routes | ||
#------------------------------------------------------------------------------- | ||
|
||
REACT_APP_NEON_PATH_API="/api/v0" | ||
REACT_APP_NEON_PATH_PUBLIC_GRAPHQL="/graphql" | ||
REACT_APP_NEON_PATH_LD_API="/ld" | ||
REACT_APP_NEON_PATH_LD_REPO_API="/repository" | ||
REACT_APP_NEON_PATH_MENU_API="/menu" | ||
REACT_APP_NEON_PATH_PRODUCTS_API="/products" | ||
REACT_APP_NEON_PATH_RELEASES_API="/releases" | ||
REACT_APP_NEON_PATH_DOCUMENTS_API="/documents" | ||
REACT_APP_NEON_PATH_SITES_API="/sites" | ||
REACT_APP_NEON_PATH_LOCATIONS_API="/locations" | ||
REACT_APP_NEON_PATH_MANIFEST_API="/api/download/v0" | ||
REACT_APP_NEON_PATH_AUTH_API="/api/auth/v0" | ||
REACT_APP_NEON_PATH_AUTH0_API="/auth0" | ||
REACT_APP_NEON_PATH_DOWNLOAD_API="/api/download/v0" | ||
REACT_APP_NEON_PATH_AOP_DOWNLOAD_API="/browse-data" | ||
REACT_APP_NEON_PATH_DATA_API="/data" | ||
REACT_APP_NEON_PATH_PROTOTYPE_DATA_API="/prototype" | ||
REACT_APP_NEON_PATH_FILE_NAMING_CONVENTIONS="/file-naming-conventions" | ||
|
||
REACT_APP_NEON_PATH_PUBLIC_GRAPHQL="/graphql" | ||
REACT_APP_NEON_USE_GRAPHQL="true" | ||
#------------------------------------------------------------------------------- | ||
# Application routes | ||
#------------------------------------------------------------------------------- | ||
|
||
REACT_APP_NEON_ROUTER_NEON_HOME="/home" | ||
REACT_APP_NEON_ROUTER_NEON_MYACCOUNT="/myaccount" | ||
REACT_APP_NEON_ROUTER_BASE="" | ||
REACT_APP_NEON_ROUTER_BASE_HOME="/core-components" | ||
|
||
REACT_APP_NEON_AUTH_API="/api/auth/v0" | ||
REACT_APP_NEON_AUTH_WS_API="/ws" | ||
REACT_APP_NEON_AUTH_WS_TOPIC_AUTH0_API="/consumer/topic/auth0" | ||
REACT_APP_NEON_AUTH_LOGIN="/auth0/login" | ||
REACT_APP_NEON_AUTH_LOGOUT="/auth0/logout" | ||
REACT_APP_NEON_AUTH_USERINFO="/auth0/userinfo" | ||
#------------------------------------------------------------------------------- | ||
# Feature options | ||
#------------------------------------------------------------------------------- | ||
|
||
# Option to disable attempting to connect to the WS | ||
# Disabled by default in development as to prevent incessant reconnect attempts | ||
REACT_APP_NEON_AUTH_DISABLE_WS="true" | ||
|
||
REACT_APP_NEON_USE_GRAPHQL="true" | ||
REACT_APP_NEON_SHOW_AOP_VIEWER="true" | ||
|
||
#------------------------------------------------------------------------------- | ||
# Third party APIs and options | ||
#------------------------------------------------------------------------------- | ||
|
||
REACT_APP_NEON_VISUS_PRODUCTS_BASE_URL="https://neon.visus.org/neonapi/products/" | ||
REACT_APP_NEON_VISUS_IFRAME_BASE_URL="https://neon.visus.org/visus-frame.html" | ||
REACT_APP_NEON_DEFAULT_DATA_CITE_API_HOST="https://api.datacite.org" | ||
|
||
# API ROOT | ||
# | ||
# By default API calls made by core components use window.location.host for the root. | ||
# | ||
# This can be overridden using REACT_APP_NEON_HOST_OVERRIDE. Note that the override will | ||
# only be applied in a dev environment. To also apply override in production environments | ||
# set REACT_APP_FOREIGN_LOCATION to "true". | ||
#------------------------------------------------------------------------------- | ||
# Host overrides | ||
#------------------------------------------------------------------------------- | ||
|
||
# The API host can be overridden using REACT_APP_NEON_API_HOST_OVERRIDE. | ||
# Note that the override will only be applied in a dev environment. | ||
# | ||
# Using portal-core-components as a dependency hosted outside of data.neonscience.org: | ||
# * Set REACT_APP_NEON_HOST_OVERRIDE to "https://data.neonscience.org" | ||
# * Set REACT_APP_FOREIGN_LOCATION to "true" | ||
# Rate limiting may apply. See https://data.neonscience.org/data-api/rate-limiting/ for details. | ||
# Rate limiting may apply. | ||
# See https://data.neonscience.org/data-api/rate-limiting/ for details. | ||
|
||
REACT_APP_NEON_HOST_OVERRIDE="https://int-data.neonscience.org" | ||
# REACT_APP_FOREIGN_LOCATION="true" | ||
REACT_APP_NEON_API_HOST_OVERRIDE="https://int-data.neonscience.org" | ||
REACT_APP_NEON_WEB_HOST_OVERRIDE="https://www.neonscience.org" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,37 +1,34 @@ | ||
REACT_APP_VERSION=$npm_package_version | ||
REACT_APP_NEON_API_NAME="api" | ||
REACT_APP_NEON_API_VERSION="v0" | ||
|
||
#------------------------------------------------------------------------------- | ||
# NEON API root routes | ||
#------------------------------------------------------------------------------- | ||
|
||
REACT_APP_NEON_PATH_API="/api/v0" | ||
REACT_APP_NEON_PATH_PUBLIC_GRAPHQL="/graphql" | ||
REACT_APP_NEON_PATH_LD_API="/ld" | ||
REACT_APP_NEON_PATH_LD_REPO_API="/repository" | ||
REACT_APP_NEON_PATH_MENU_API="/menu" | ||
REACT_APP_NEON_PATH_PRODUCTS_API="/products" | ||
REACT_APP_NEON_PATH_RELEASES_API="/releases" | ||
REACT_APP_NEON_PATH_DOCUMENTS_API="/documents" | ||
REACT_APP_NEON_PATH_SITES_API="/sites" | ||
REACT_APP_NEON_PATH_LOCATIONS_API="/locations" | ||
REACT_APP_NEON_PATH_MANIFEST_API="/api/download/v0" | ||
REACT_APP_NEON_PATH_AUTH_API="/api/auth/v0" | ||
REACT_APP_NEON_PATH_AUTH0_API="/auth0" | ||
REACT_APP_NEON_PATH_DOWNLOAD_API="/api/download/v0" | ||
REACT_APP_NEON_PATH_AOP_DOWNLOAD_API="/browse-data" | ||
REACT_APP_NEON_PATH_DATA_API="/data" | ||
REACT_APP_NEON_PATH_PROTOTYPE_DATA_API="/prototype" | ||
REACT_APP_NEON_PATH_FILE_NAMING_CONVENTIONS="/file-naming-conventions" | ||
|
||
REACT_APP_NEON_PATH_PUBLIC_GRAPHQL="/graphql" | ||
REACT_APP_NEON_USE_GRAPHQL="true" | ||
#------------------------------------------------------------------------------- | ||
# Application routes | ||
#------------------------------------------------------------------------------- | ||
|
||
REACT_APP_NEON_ROUTER_NEON_HOME="/home" | ||
REACT_APP_NEON_ROUTER_NEON_MYACCOUNT="/myaccount" | ||
REACT_APP_NEON_ROUTER_BASE="" | ||
REACT_APP_NEON_ROUTER_BASE_HOME="/core-components" | ||
|
||
REACT_APP_NEON_AUTH_API="/api/auth/v0" | ||
REACT_APP_NEON_AUTH_WS_API="/ws" | ||
REACT_APP_NEON_AUTH_WS_TOPIC_AUTH0_API="/consumer/topic/auth0" | ||
REACT_APP_NEON_AUTH_LOGIN="/auth0/login" | ||
REACT_APP_NEON_AUTH_LOGOUT="/auth0/logout" | ||
REACT_APP_NEON_AUTH_USERINFO="/auth0/userinfo" | ||
#------------------------------------------------------------------------------- | ||
# Feature options | ||
#------------------------------------------------------------------------------- | ||
|
||
REACT_APP_NEON_USE_GRAPHQL="true" | ||
REACT_APP_NEON_SHOW_AOP_VIEWER="true" | ||
|
||
#------------------------------------------------------------------------------- | ||
# Third party APIs and options | ||
#------------------------------------------------------------------------------- | ||
|
||
REACT_APP_NEON_VISUS_PRODUCTS_BASE_URL="https://neon.visus.org/neonapi/products/" | ||
REACT_APP_NEON_VISUS_IFRAME_BASE_URL="https://neon.visus.org/visus-frame.html" | ||
REACT_APP_NEON_DEFAULT_DATA_CITE_API_HOST="https://api.datacite.org" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 3 additions & 3 deletions
6
lib/components/DataProductAvailability/AvailabilityPending.d.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.