mirror of
https://github.com/Azure/cosmos-explorer.git
synced 2025-02-26 22:17:30 +00:00
build cont ....
This commit is contained in:
parent
0ffebc14ca
commit
0fc5f070cc
15273
package-lock.json
generated
15273
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@ -339,7 +339,10 @@ export function createMongoCollectionWithProxy(
|
||||
export function getFeatureEndpointOrDefault(feature: string): string {
|
||||
const endpoint =
|
||||
hasFlag(userContext.features.mongoProxyAPIs, feature) &&
|
||||
validateEndpoint(userContext.features.mongoProxyEndpoint, allowedMongoProxyEndpoints)
|
||||
validateEndpoint(
|
||||
userContext.features.mongoProxyEndpoint,
|
||||
allowedMongoProxyEndpoints.map((endpoint) => endpoint)
|
||||
)
|
||||
? userContext.features.mongoProxyEndpoint
|
||||
: configContext.MONGO_BACKEND_ENDPOINT || configContext.BACKEND_ENDPOINT;
|
||||
|
||||
|
@ -181,7 +181,10 @@ export default class Explorer {
|
||||
// Override notebook server parameters from URL parameters
|
||||
if (
|
||||
userContext.features.notebookServerUrl &&
|
||||
validateEndpoint(userContext.features.notebookServerUrl, allowedNotebookServerUrls) &&
|
||||
validateEndpoint(
|
||||
userContext.features.notebookServerUrl,
|
||||
allowedNotebookServerUrls.map((endpoint) => endpoint)
|
||||
) &&
|
||||
userContext.features.notebookServerToken
|
||||
) {
|
||||
useNotebook.getState().setNotebookServerInfo({
|
||||
@ -415,7 +418,10 @@ export default class Explorer {
|
||||
useNotebook.getState().setConnectionInfo(connectionStatus);
|
||||
useNotebook.getState().setNotebookServerInfo({
|
||||
notebookServerEndpoint:
|
||||
(validateEndpoint(userContext.features.notebookServerUrl, allowedNotebookServerUrls) &&
|
||||
(validateEndpoint(
|
||||
userContext.features.notebookServerUrl,
|
||||
allowedNotebookServerUrls.map((endpoint) => endpoint)
|
||||
) &&
|
||||
userContext.features.notebookServerUrl) ||
|
||||
connectionInfo.data.notebookServerUrl,
|
||||
authToken: userContext.features.notebookServerToken || connectionInfo.data.notebookAuthToken,
|
||||
|
Loading…
x
Reference in New Issue
Block a user