mirror of
https://github.com/Azure/cosmos-explorer.git
synced 2025-03-29 05:00:20 +00:00
Fixed lint issue and remove unused code (#491)
This commit is contained in:
parent
588c1d3ec3
commit
f192310697
@ -161,7 +161,6 @@ src/Explorer/Tables/DataTable/DataTableBuilder.ts
|
|||||||
src/Explorer/Tables/DataTable/DataTableContextMenu.ts
|
src/Explorer/Tables/DataTable/DataTableContextMenu.ts
|
||||||
src/Explorer/Tables/DataTable/DataTableOperationManager.ts
|
src/Explorer/Tables/DataTable/DataTableOperationManager.ts
|
||||||
src/Explorer/Tables/DataTable/DataTableOperations.ts
|
src/Explorer/Tables/DataTable/DataTableOperations.ts
|
||||||
src/Explorer/Tables/DataTable/DataTableUtilities.ts
|
|
||||||
src/Explorer/Tables/DataTable/DataTableViewModel.ts
|
src/Explorer/Tables/DataTable/DataTableViewModel.ts
|
||||||
src/Explorer/Tables/DataTable/TableCommands.ts
|
src/Explorer/Tables/DataTable/TableCommands.ts
|
||||||
src/Explorer/Tables/DataTable/TableEntityCache.ts
|
src/Explorer/Tables/DataTable/TableEntityCache.ts
|
||||||
|
@ -37,23 +37,6 @@ export function containItems<T>(items: T[]): boolean {
|
|||||||
return items && items.length > 0;
|
return items && items.length > 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
// export function setTargetIcon(idToIconHandlerMap: CloudHub.Common.IToolbarElementIdIconMap, $sourceElement: JQuery, toIconState: IconState): void {
|
|
||||||
// if (idToIconHandlerMap) {
|
|
||||||
// var iconId: string = $sourceElement.attr("id");
|
|
||||||
// var iconHandler = idToIconHandlerMap[iconId];
|
|
||||||
// switch (toIconState) {
|
|
||||||
// case IconState.default:
|
|
||||||
// iconHandler.observable(iconHandler.default);
|
|
||||||
// break;
|
|
||||||
// case IconState.hoverState:
|
|
||||||
// iconHandler.observable(iconHandler.hoverState);
|
|
||||||
// break;
|
|
||||||
// default:
|
|
||||||
// window.console.log("error");
|
|
||||||
// }
|
|
||||||
// }
|
|
||||||
// }
|
|
||||||
|
|
||||||
export function addCssClass($sourceElement: JQuery, cssClassName: string): void {
|
export function addCssClass($sourceElement: JQuery, cssClassName: string): void {
|
||||||
if (!$sourceElement.hasClass(cssClassName)) {
|
if (!$sourceElement.hasClass(cssClassName)) {
|
||||||
$sourceElement.addClass(cssClassName);
|
$sourceElement.addClass(cssClassName);
|
||||||
@ -78,8 +61,9 @@ export function getPropertyIntersectionFromTableEntities(
|
|||||||
entities: Entities.ITableEntity[],
|
entities: Entities.ITableEntity[],
|
||||||
isCassandraApi: boolean
|
isCassandraApi: boolean
|
||||||
): string[] {
|
): string[] {
|
||||||
var headerUnion: string[] = [];
|
const headerUnion: string[] = [];
|
||||||
entities &&
|
entities &&
|
||||||
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
||||||
entities.forEach((row: any) => {
|
entities.forEach((row: any) => {
|
||||||
const keys = Object.keys(row);
|
const keys = Object.keys(row);
|
||||||
keys &&
|
keys &&
|
||||||
|
Loading…
x
Reference in New Issue
Block a user