mirror of
https://github.com/Azure/cosmos-explorer.git
synced 2025-12-26 12:21:23 +00:00
20 lines
509 B
TypeScript
20 lines
509 B
TypeScript
import Explorer from "../../Explorer/Explorer";
|
|
import { NotificationsClient } from "./NotificationsClient";
|
|
|
|
export default class HostedExplorerFactory {
|
|
public createExplorer(): Explorer {
|
|
const explorer = new Explorer({
|
|
notificationsClient: new NotificationsClient(),
|
|
isEmulator: false
|
|
});
|
|
|
|
return explorer;
|
|
}
|
|
|
|
public static reInitializeDocumentClientUtilityForExplorer(explorer: Explorer): void {
|
|
if (!!explorer) {
|
|
explorer.notificationConsoleData([]);
|
|
}
|
|
}
|
|
}
|