mirror of
https://github.com/Azure/cosmos-explorer.git
synced 2024-11-25 23:16:56 +00:00
Run npm format
This commit is contained in:
parent
89a3a040d8
commit
7e5c6420ad
@ -256,4 +256,3 @@ export async function initializeConfiguration(): Promise<ConfigContext> {
|
|||||||
}
|
}
|
||||||
|
|
||||||
export { configContext };
|
export { configContext };
|
||||||
|
|
||||||
|
@ -52,9 +52,10 @@ export const defaultAllowedArmEndpoints: ReadonlyArray<string> = [
|
|||||||
"https://management.chinacloudapi.cn",
|
"https://management.chinacloudapi.cn",
|
||||||
];
|
];
|
||||||
|
|
||||||
export const allowedAadEndpoints: ReadonlyArray<string> = ["https://login.microsoftonline.com/",
|
export const allowedAadEndpoints: ReadonlyArray<string> = [
|
||||||
|
"https://login.microsoftonline.com/",
|
||||||
"https://login.microsoftonline.us/",
|
"https://login.microsoftonline.us/",
|
||||||
"https://login.partner.microsoftonline.cn/"
|
"https://login.partner.microsoftonline.cn/",
|
||||||
];
|
];
|
||||||
|
|
||||||
export const defaultAllowedBackendEndpoints: ReadonlyArray<string> = [
|
export const defaultAllowedBackendEndpoints: ReadonlyArray<string> = [
|
||||||
|
@ -624,17 +624,17 @@ function updateAADEndpoints(portalEnv: PortalEnv) {
|
|||||||
case "prod1":
|
case "prod1":
|
||||||
case "prod":
|
case "prod":
|
||||||
updateConfigContext({
|
updateConfigContext({
|
||||||
AAD_ENDPOINT: Constants.AadEndpoints.Prod
|
AAD_ENDPOINT: Constants.AadEndpoints.Prod,
|
||||||
});
|
});
|
||||||
break;
|
break;
|
||||||
case "fairfax":
|
case "fairfax":
|
||||||
updateConfigContext({
|
updateConfigContext({
|
||||||
AAD_ENDPOINT: Constants.AadEndpoints.Fairfax
|
AAD_ENDPOINT: Constants.AadEndpoints.Fairfax,
|
||||||
});
|
});
|
||||||
break;
|
break;
|
||||||
case "mooncake":
|
case "mooncake":
|
||||||
updateConfigContext({
|
updateConfigContext({
|
||||||
AAD_ENDPOINT: Constants.AadEndpoints.Mooncake
|
AAD_ENDPOINT: Constants.AadEndpoints.Mooncake,
|
||||||
});
|
});
|
||||||
break;
|
break;
|
||||||
|
|
||||||
@ -665,7 +665,7 @@ function updateContextsFromPortalMessage(inputs: DataExplorerInputsFrame) {
|
|||||||
});
|
});
|
||||||
|
|
||||||
updateAADEndpoints(inputs.serverId as PortalEnv);
|
updateAADEndpoints(inputs.serverId as PortalEnv);
|
||||||
|
|
||||||
updateUserContext({
|
updateUserContext({
|
||||||
authorizationToken,
|
authorizationToken,
|
||||||
databaseAccount,
|
databaseAccount,
|
||||||
|
Loading…
Reference in New Issue
Block a user