mirror of
https://github.com/Azure/cosmos-explorer.git
synced 2025-12-23 19:01:28 +00:00
Compare commits
3 Commits
postgres_q
...
eslint/fix
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
76abac36a0 | ||
|
|
0b03202844 | ||
|
|
f6f787817b |
@@ -8,9 +8,6 @@ src/Bindings/BindingHandlersRegisterer.ts
|
|||||||
src/Bindings/ReactBindingHandler.ts
|
src/Bindings/ReactBindingHandler.ts
|
||||||
src/Common/Constants.ts
|
src/Common/Constants.ts
|
||||||
src/Common/CosmosClient.test.ts
|
src/Common/CosmosClient.test.ts
|
||||||
src/Common/CosmosClient.ts
|
|
||||||
src/Common/DataAccessUtilityBase.test.ts
|
|
||||||
src/Common/DataAccessUtilityBase.ts
|
|
||||||
src/Common/EditableUtility.ts
|
src/Common/EditableUtility.ts
|
||||||
src/Common/HashMap.test.ts
|
src/Common/HashMap.test.ts
|
||||||
src/Common/Logger.test.ts
|
src/Common/Logger.test.ts
|
||||||
@@ -20,6 +17,7 @@ src/Common/MongoProxyClient.test.ts
|
|||||||
src/Common/MongoUtility.ts
|
src/Common/MongoUtility.ts
|
||||||
src/Common/NotificationsClientBase.ts
|
src/Common/NotificationsClientBase.ts
|
||||||
src/Common/QueriesClient.ts
|
src/Common/QueriesClient.ts
|
||||||
|
src/Common/UrlUtility.ts
|
||||||
src/Common/Splitter.ts
|
src/Common/Splitter.ts
|
||||||
src/Config.ts
|
src/Config.ts
|
||||||
src/Contracts/ActionContracts.ts
|
src/Contracts/ActionContracts.ts
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
|
/* eslint-disable @typescript-eslint/no-explicit-any */
|
||||||
import * as Cosmos from "@azure/cosmos";
|
import * as Cosmos from "@azure/cosmos";
|
||||||
import { RequestInfo, setAuthorizationTokenHeaderUsingMasterKey } from "@azure/cosmos";
|
import { RequestInfo, setAuthorizationTokenHeaderUsingMasterKey } from "@azure/cosmos";
|
||||||
import { configContext, Platform } from "../ConfigContext";
|
import { configContext, Platform } from "../ConfigContext";
|
||||||
@@ -80,7 +81,9 @@ export async function getTokenFromAuthService(verb: string, resourceType: string
|
|||||||
let _client: Cosmos.CosmosClient;
|
let _client: Cosmos.CosmosClient;
|
||||||
|
|
||||||
export function client(): Cosmos.CosmosClient {
|
export function client(): Cosmos.CosmosClient {
|
||||||
if (_client) return _client;
|
if (_client) {
|
||||||
|
return _client;
|
||||||
|
}
|
||||||
const options: Cosmos.CosmosClientOptions = {
|
const options: Cosmos.CosmosClientOptions = {
|
||||||
endpoint: endpoint() || "https://cosmos.azure.com", // CosmosClient gets upset if we pass a bad URL. This should never actually get called
|
endpoint: endpoint() || "https://cosmos.azure.com", // CosmosClient gets upset if we pass a bad URL. This should never actually get called
|
||||||
key: userContext.masterKey,
|
key: userContext.masterKey,
|
||||||
|
|||||||
@@ -36,7 +36,10 @@ export class Splitter {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public initialize() {
|
public initialize() {
|
||||||
if (document.getElementById(this.splitterId) !== null && document.getElementById(this.leftSideId) != null) {
|
if (
|
||||||
|
document.getElementById(this.splitterId) !== undefined &&
|
||||||
|
document.getElementById(this.leftSideId) !== undefined
|
||||||
|
) {
|
||||||
this.splitter = <HTMLElement>document.getElementById(this.splitterId);
|
this.splitter = <HTMLElement>document.getElementById(this.splitterId);
|
||||||
this.leftSide = <HTMLElement>document.getElementById(this.leftSideId);
|
this.leftSide = <HTMLElement>document.getElementById(this.leftSideId);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user