build cont ....

This commit is contained in:
artrejo 2022-01-20 18:07:42 -08:00
parent 0ffebc14ca
commit 0fc5f070cc
3 changed files with 7401 additions and 7887 deletions

15273
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -339,7 +339,10 @@ export function createMongoCollectionWithProxy(
export function getFeatureEndpointOrDefault(feature: string): string { export function getFeatureEndpointOrDefault(feature: string): string {
const endpoint = const endpoint =
hasFlag(userContext.features.mongoProxyAPIs, feature) && hasFlag(userContext.features.mongoProxyAPIs, feature) &&
validateEndpoint(userContext.features.mongoProxyEndpoint, allowedMongoProxyEndpoints) validateEndpoint(
userContext.features.mongoProxyEndpoint,
allowedMongoProxyEndpoints.map((endpoint) => endpoint)
)
? userContext.features.mongoProxyEndpoint ? userContext.features.mongoProxyEndpoint
: configContext.MONGO_BACKEND_ENDPOINT || configContext.BACKEND_ENDPOINT; : configContext.MONGO_BACKEND_ENDPOINT || configContext.BACKEND_ENDPOINT;

View File

@ -181,7 +181,10 @@ export default class Explorer {
// Override notebook server parameters from URL parameters // Override notebook server parameters from URL parameters
if ( if (
userContext.features.notebookServerUrl && userContext.features.notebookServerUrl &&
validateEndpoint(userContext.features.notebookServerUrl, allowedNotebookServerUrls) && validateEndpoint(
userContext.features.notebookServerUrl,
allowedNotebookServerUrls.map((endpoint) => endpoint)
) &&
userContext.features.notebookServerToken userContext.features.notebookServerToken
) { ) {
useNotebook.getState().setNotebookServerInfo({ useNotebook.getState().setNotebookServerInfo({
@ -415,7 +418,10 @@ export default class Explorer {
useNotebook.getState().setConnectionInfo(connectionStatus); useNotebook.getState().setConnectionInfo(connectionStatus);
useNotebook.getState().setNotebookServerInfo({ useNotebook.getState().setNotebookServerInfo({
notebookServerEndpoint: notebookServerEndpoint:
(validateEndpoint(userContext.features.notebookServerUrl, allowedNotebookServerUrls) && (validateEndpoint(
userContext.features.notebookServerUrl,
allowedNotebookServerUrls.map((endpoint) => endpoint)
) &&
userContext.features.notebookServerUrl) || userContext.features.notebookServerUrl) ||
connectionInfo.data.notebookServerUrl, connectionInfo.data.notebookServerUrl,
authToken: userContext.features.notebookServerToken || connectionInfo.data.notebookAuthToken, authToken: userContext.features.notebookServerToken || connectionInfo.data.notebookAuthToken,