mirror of
https://github.com/Azure/cosmos-explorer.git
synced 2026-01-09 04:25:57 +00:00
Remove unused SparkMasterTab
This commit is contained in:
@@ -206,7 +206,6 @@ src/Explorer/Tabs/QueryTablesTab.ts
|
|||||||
src/Explorer/Tabs/ScriptTabBase.ts
|
src/Explorer/Tabs/ScriptTabBase.ts
|
||||||
src/Explorer/Tabs/SettingsTab.test.ts
|
src/Explorer/Tabs/SettingsTab.test.ts
|
||||||
src/Explorer/Tabs/SettingsTab.ts
|
src/Explorer/Tabs/SettingsTab.ts
|
||||||
src/Explorer/Tabs/SparkMasterTab.ts
|
|
||||||
src/Explorer/Tabs/StoredProcedureTab.ts
|
src/Explorer/Tabs/StoredProcedureTab.ts
|
||||||
src/Explorer/Tabs/TabComponents.ts
|
src/Explorer/Tabs/TabComponents.ts
|
||||||
src/Explorer/Tabs/TabsBase.ts
|
src/Explorer/Tabs/TabsBase.ts
|
||||||
|
|||||||
@@ -355,7 +355,6 @@ export enum CollectionTabKind {
|
|||||||
Notebook = 13 /* Deprecated */,
|
Notebook = 13 /* Deprecated */,
|
||||||
Terminal = 14,
|
Terminal = 14,
|
||||||
NotebookV2 = 15,
|
NotebookV2 = 15,
|
||||||
SparkMasterTab = 16,
|
|
||||||
Gallery = 17,
|
Gallery = 17,
|
||||||
NotebookViewer = 18,
|
NotebookViewer = 18,
|
||||||
SettingsV2 = 19
|
SettingsV2 = 19
|
||||||
|
|||||||
@@ -42,7 +42,6 @@ ko.components.register("mongo-shell-tab", new TabComponents.MongoShellTab());
|
|||||||
ko.components.register("conflicts-tab", new TabComponents.ConflictsTab());
|
ko.components.register("conflicts-tab", new TabComponents.ConflictsTab());
|
||||||
ko.components.register("notebookv2-tab", new TabComponents.NotebookV2Tab());
|
ko.components.register("notebookv2-tab", new TabComponents.NotebookV2Tab());
|
||||||
ko.components.register("terminal-tab", new TabComponents.TerminalTab());
|
ko.components.register("terminal-tab", new TabComponents.TerminalTab());
|
||||||
ko.components.register("spark-master-tab", new TabComponents.SparkMasterTab());
|
|
||||||
ko.components.register("gallery-tab", new TabComponents.GalleryTab());
|
ko.components.register("gallery-tab", new TabComponents.GalleryTab());
|
||||||
ko.components.register("notebook-viewer-tab", new TabComponents.NotebookViewerTab());
|
ko.components.register("notebook-viewer-tab", new TabComponents.NotebookViewerTab());
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +0,0 @@
|
|||||||
<div style="width: 100%; height: 100%; margin-left: 3px;" data-bind="attr: { id: tabId }">
|
|
||||||
<!-- This runs the NotebookApp hosted by DataExplorer -->
|
|
||||||
<iframe
|
|
||||||
style="width:100%; height: 100%; border:none"
|
|
||||||
data-bind="setTemplateReady: true, attr: { src: sparkMasterSrc }, visible: !!sparkMasterSrc()"
|
|
||||||
></iframe>
|
|
||||||
</div>
|
|
||||||
@@ -1,35 +0,0 @@
|
|||||||
import * as ko from "knockout";
|
|
||||||
import * as DataModels from "../../Contracts/DataModels";
|
|
||||||
import * as ViewModels from "../../Contracts/ViewModels";
|
|
||||||
import TabsBase from "./TabsBase";
|
|
||||||
import Explorer from "../Explorer";
|
|
||||||
|
|
||||||
interface SparkMasterTabOptions extends ViewModels.TabOptions {
|
|
||||||
clusterConnectionInfo: DataModels.SparkClusterConnectionInfo;
|
|
||||||
container: Explorer;
|
|
||||||
}
|
|
||||||
|
|
||||||
export default class SparkMasterTab extends TabsBase {
|
|
||||||
public sparkMasterSrc: ko.Observable<string>;
|
|
||||||
|
|
||||||
private _clusterConnectionInfo: DataModels.SparkClusterConnectionInfo;
|
|
||||||
private _container: Explorer;
|
|
||||||
|
|
||||||
constructor(options: SparkMasterTabOptions) {
|
|
||||||
super(options);
|
|
||||||
super.onActivate.bind(this);
|
|
||||||
this._container = options.container;
|
|
||||||
this._clusterConnectionInfo = options.clusterConnectionInfo;
|
|
||||||
const sparkMasterEndpoint =
|
|
||||||
this._clusterConnectionInfo &&
|
|
||||||
this._clusterConnectionInfo.endpoints &&
|
|
||||||
this._clusterConnectionInfo.endpoints.find(
|
|
||||||
endpoint => endpoint.kind === DataModels.SparkClusterEndpointKind.SparkUI
|
|
||||||
);
|
|
||||||
this.sparkMasterSrc = ko.observable<string>(sparkMasterEndpoint && sparkMasterEndpoint.endpoint);
|
|
||||||
}
|
|
||||||
|
|
||||||
protected getContainer() {
|
|
||||||
return this._container;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,7 +1,6 @@
|
|||||||
import DocumentsTabTemplate from "./DocumentsTab.html";
|
import DocumentsTabTemplate from "./DocumentsTab.html";
|
||||||
import ConflictsTabTemplate from "./ConflictsTab.html";
|
import ConflictsTabTemplate from "./ConflictsTab.html";
|
||||||
import GraphTabTemplate from "./GraphTab.html";
|
import GraphTabTemplate from "./GraphTab.html";
|
||||||
import SparkMasterTabTemplate from "./SparkMasterTab.html";
|
|
||||||
import NotebookV2TabTemplate from "./NotebookV2Tab.html";
|
import NotebookV2TabTemplate from "./NotebookV2Tab.html";
|
||||||
import TerminalTabTemplate from "./TerminalTab.html";
|
import TerminalTabTemplate from "./TerminalTab.html";
|
||||||
import MongoDocumentsTabTemplate from "./MongoDocumentsTab.html";
|
import MongoDocumentsTabTemplate from "./MongoDocumentsTab.html";
|
||||||
@@ -61,15 +60,6 @@ export class GraphTab {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
export class SparkMasterTab {
|
|
||||||
constructor() {
|
|
||||||
return {
|
|
||||||
viewModel: TabComponent,
|
|
||||||
template: SparkMasterTabTemplate
|
|
||||||
};
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
export class NotebookV2Tab {
|
export class NotebookV2Tab {
|
||||||
constructor() {
|
constructor() {
|
||||||
return {
|
return {
|
||||||
|
|||||||
Reference in New Issue
Block a user