mirror of
https://github.com/Azure/cosmos-explorer.git
synced 2025-12-24 19:31:36 +00:00
Compare commits
3 Commits
cloudshell
...
users/nish
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
c89901eb2c | ||
|
|
692a852194 | ||
|
|
7395fd9780 |
22
configs/emulator.json
Normal file
22
configs/emulator.json
Normal file
@@ -0,0 +1,22 @@
|
||||
{
|
||||
"EmulatorMasterKey": "C2y6yDjf5/R+ob0N8A7Cgv30VRDJIWEHLM+4QDU5DE2nQ9nDuVTqobD4b8mGGyPMbIZnqyMsEcaGQy67XIw/Jw==",
|
||||
"Account": {
|
||||
"name": "",
|
||||
"id": "",
|
||||
"location": "",
|
||||
"type": "",
|
||||
"kind": "DocumentDB",
|
||||
"properties": {
|
||||
"documentEndpoint": "",
|
||||
"tableEndpoint": "",
|
||||
"gremlinEndpoint": "",
|
||||
"cassandraEndpoint": "",
|
||||
"capabilities": [
|
||||
{
|
||||
"name": "EnableNoSQLVectorSearch",
|
||||
"description": "Enable Vector Search on NoSQL account"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -446,10 +446,6 @@ export enum PoolIdType {
|
||||
QueryCopilot = "query-copilot",
|
||||
}
|
||||
|
||||
export const EmulatorMasterKey =
|
||||
//[SuppressMessage("Microsoft.Security", "CS002:SecretInNextLine", Justification="Well known public masterKey for emulator")]
|
||||
"C2y6yDjf5/R+ob0N8A7Cgv30VRDJIWEHLM+4QDU5DE2nQ9nDuVTqobD4b8mGGyPMbIZnqyMsEcaGQy67XIw/Jw==";
|
||||
|
||||
export class Notebook {
|
||||
public static readonly defaultBasePath = "./notebooks";
|
||||
public static readonly heartbeatDelayMs = 60000;
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
import * as Cosmos from "@azure/cosmos";
|
||||
import { getAuthorizationTokenUsingResourceTokens } from "Common/getAuthorizationTokenUsingResourceTokens";
|
||||
import { AuthorizationToken } from "Contracts/FabricMessageTypes";
|
||||
import { EmulatorMasterKey } from "Platform/Emulator/emulatorAccount";
|
||||
import { checkDatabaseResourceTokensValidity } from "Platform/Fabric/FabricUtil";
|
||||
import { LocalStorageUtility, StorageKey } from "Shared/StorageUtility";
|
||||
import { useNewPortalBackendEndpoint } from "Utils/EndpointUtils";
|
||||
@@ -11,7 +12,7 @@ import { Platform, configContext } from "../ConfigContext";
|
||||
import { updateUserContext, userContext } from "../UserContext";
|
||||
import { logConsoleError } from "../Utils/NotificationConsoleUtils";
|
||||
import * as PriorityBasedExecutionUtils from "../Utils/PriorityBasedExecutionUtils";
|
||||
import { EmulatorMasterKey, HttpHeaders } from "./Constants";
|
||||
import { HttpHeaders } from "./Constants";
|
||||
import { getErrorMessage } from "./ErrorHandlingUtils";
|
||||
|
||||
const _global = typeof self === "undefined" ? window : self;
|
||||
|
||||
@@ -1,21 +1,4 @@
|
||||
import { AccountKind } from "../../Common/Constants";
|
||||
import emulatorConfig from "../../../configs/emulator.json";
|
||||
|
||||
export const emulatorAccount = {
|
||||
name: "",
|
||||
id: "",
|
||||
location: "",
|
||||
type: "",
|
||||
kind: AccountKind.DocumentDB,
|
||||
properties: {
|
||||
documentEndpoint: "",
|
||||
tableEndpoint: "",
|
||||
gremlinEndpoint: "",
|
||||
cassandraEndpoint: "",
|
||||
capabilities: [
|
||||
{
|
||||
name: "EnableNoSQLVectorSearch",
|
||||
description: "Enable Vector Search on NoSQL account",
|
||||
},
|
||||
],
|
||||
},
|
||||
};
|
||||
export const EmulatorMasterKey = emulatorConfig.EmulatorMasterKey || "";
|
||||
export const emulatorAccount = emulatorConfig.Account || {};
|
||||
|
||||
Reference in New Issue
Block a user