mirror of
https://github.com/Azure/cosmos-explorer.git
synced 2025-12-20 01:11:25 +00:00
Add support for Schema Analyzer (#411)
* New MongoSchemaTab * Address feedback and updates * Build fixes * Rename to SchemaAnalyzer * Format Co-authored-by: Laurent Nguyen <laurent.nguyen@microsoft.com>
This commit is contained in:
25
src/Explorer/Tabs/SchemaAnalyzerTab.ts
Normal file
25
src/Explorer/Tabs/SchemaAnalyzerTab.ts
Normal file
@@ -0,0 +1,25 @@
|
||||
import { SchemaAnalyzerComponentAdapter } from "../Notebook/SchemaAnalyzerComponent/SchemaAnalyzerComponentAdapter";
|
||||
import NotebookTabBase, { NotebookTabBaseOptions } from "./NotebookTabBase";
|
||||
import template from "./SchemaAnalyzerTab.html";
|
||||
|
||||
export default class SchemaAnalyzerTab extends NotebookTabBase {
|
||||
public static readonly component = { name: "schema-analyzer-tab", template };
|
||||
|
||||
private schemaAnalyzerComponentAdapter: SchemaAnalyzerComponentAdapter;
|
||||
|
||||
constructor(options: NotebookTabBaseOptions) {
|
||||
super(options);
|
||||
this.schemaAnalyzerComponentAdapter = new SchemaAnalyzerComponentAdapter(
|
||||
{
|
||||
contentRef: undefined,
|
||||
notebookClient: NotebookTabBase.clientManager,
|
||||
},
|
||||
options.collection?.databaseId,
|
||||
options.collection?.id()
|
||||
);
|
||||
}
|
||||
|
||||
protected buildCommandBarOptions(): void {
|
||||
this.updateNavbarWithTabsButtons();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user