mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
Enforce semicolons in eslint
Signed-off-by: Panu Horsmalahti <phorsmalahti@mirantis.com>
This commit is contained in:
1 parent
0f3f5611ba
commit
1477bb8274
531 files changed
+3979
-3975
No files matched your search
@@ -1,4 +1,4 @@
|
||||
import React from "react"
|
||||
import React from "react";
|
||||
import { Icon, IconProps } from "../icon";
|
||||
import { FilterType } from "./page-filters.store";
|
||||
|
||||
@@ -16,6 +16,6 @@ export function FilterIcon(props: Props) {
|
||||
return <Icon small material="search" {...iconProps}/>;
|
||||
|
||||
default:
|
||||
return <Icon small material="filter_list" {...iconProps}/>
|
||||
return <Icon small material="filter_list" {...iconProps}/>;
|
||||
}
|
||||
}
|
||||
@@ -1 +1 @@
|
||||
export * from "./item-list-layout"
|
||||
export * from "./item-list-layout";
|
||||
@@ -1,5 +1,5 @@
|
||||
import "./item-list-layout.scss"
|
||||
import groupBy from "lodash/groupBy"
|
||||
import "./item-list-layout.scss";
|
||||
import groupBy from "lodash/groupBy";
|
||||
|
||||
import React, { ReactNode } from "react";
|
||||
import { computed, observable, reaction, toJS, when } from "mobx";
|
||||
@@ -120,7 +120,7 @@ export class ItemListLayout extends React.Component<ItemListLayoutProps> {
|
||||
await when(() => this.isUnmounting);
|
||||
subscriptions.forEach(dispose => dispose()); // unsubscribe all
|
||||
} catch (error) {
|
||||
console.log("catched", error)
|
||||
console.log("catched", error);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -141,7 +141,7 @@ export class ItemListLayout extends React.Component<ItemListLayoutProps> {
|
||||
return searchFilters.some(getTexts => {
|
||||
const sourceTexts: string[] = [getTexts(item)].flat().map(normalizeText);
|
||||
return sourceTexts.some(source => searchTexts.some(search => source.includes(search)));
|
||||
})
|
||||
});
|
||||
});
|
||||
}
|
||||
return items;
|
||||
@@ -150,7 +150,7 @@ export class ItemListLayout extends React.Component<ItemListLayoutProps> {
|
||||
[FilterType.NAMESPACE]: items => {
|
||||
const filterValues = pageFilters.getValues(FilterType.NAMESPACE);
|
||||
if (filterValues.length > 0) {
|
||||
return items.filter(item => filterValues.includes(item.getNs()))
|
||||
return items.filter(item => filterValues.includes(item.getNs()));
|
||||
}
|
||||
return items;
|
||||
},
|
||||
@@ -235,7 +235,7 @@ export class ItemListLayout extends React.Component<ItemListLayoutProps> {
|
||||
cellProps.className = cssNames(cellProps.className, headCell.className);
|
||||
}
|
||||
}
|
||||
return <TableCell key={index} {...cellProps} />
|
||||
return <TableCell key={index} {...cellProps} />;
|
||||
})
|
||||
}
|
||||
{renderItemMenu && (
|
||||
@@ -268,7 +268,7 @@ export class ItemListLayout extends React.Component<ItemListLayoutProps> {
|
||||
/>
|
||||
),
|
||||
...dialogCustomProps,
|
||||
})
|
||||
});
|
||||
}
|
||||
|
||||
renderFilters() {
|
||||
@@ -277,7 +277,7 @@ export class ItemListLayout extends React.Component<ItemListLayoutProps> {
|
||||
if (!isReady || !filters.length || hideFilters || !userSettings.showAppliedFilters) {
|
||||
return;
|
||||
}
|
||||
return <PageFiltersList filters={filters} />
|
||||
return <PageFiltersList filters={filters} />;
|
||||
}
|
||||
|
||||
renderNoItems() {
|
||||
@@ -295,9 +295,9 @@ export class ItemListLayout extends React.Component<ItemListLayoutProps> {
|
||||
</a>
|
||||
</p>
|
||||
</NoItems>
|
||||
)
|
||||
);
|
||||
}
|
||||
return <NoItems />
|
||||
return <NoItems />;
|
||||
}
|
||||
|
||||
renderHeaderContent(placeholders: IHeaderPlaceholders): ReactNode {
|
||||
@@ -311,7 +311,7 @@ export class ItemListLayout extends React.Component<ItemListLayoutProps> {
|
||||
{filters}
|
||||
{search}
|
||||
</>
|
||||
)
|
||||
);
|
||||
}
|
||||
|
||||
renderInfo() {
|
||||
@@ -325,7 +325,7 @@ export class ItemListLayout extends React.Component<ItemListLayoutProps> {
|
||||
<Trans>
|
||||
<a onClick={toggleFilters}>Filtered</a>: {itemsCount} / {allItemsCount}
|
||||
</Trans>
|
||||
)
|
||||
);
|
||||
}
|
||||
return (
|
||||
<Plural
|
||||
@@ -350,7 +350,7 @@ export class ItemListLayout extends React.Component<ItemListLayoutProps> {
|
||||
}} />
|
||||
</>,
|
||||
search: <SearchInputUrl />,
|
||||
}
|
||||
};
|
||||
let header = this.renderHeaderContent(placeholders);
|
||||
if (customizeHeader) {
|
||||
const modifiedHeader = customizeHeader(placeholders, header);
|
||||
@@ -367,7 +367,7 @@ export class ItemListLayout extends React.Component<ItemListLayoutProps> {
|
||||
<div className={cssNames("header flex gaps align-center", headerClassName)}>
|
||||
{header}
|
||||
</div>
|
||||
)
|
||||
);
|
||||
}
|
||||
|
||||
renderList() {
|
||||
@@ -421,7 +421,7 @@ export class ItemListLayout extends React.Component<ItemListLayoutProps> {
|
||||
{...addRemoveButtons}
|
||||
/>
|
||||
</div>
|
||||
)
|
||||
);
|
||||
}
|
||||
|
||||
renderFooter() {
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import "./page-filters-list.scss"
|
||||
import React from "react"
|
||||
import "./page-filters-list.scss";
|
||||
import React from "react";
|
||||
import { observer } from "mobx-react";
|
||||
import { Trans } from "@lingui/macro";
|
||||
import { Badge } from "../badge";
|
||||
@@ -56,11 +56,11 @@ export class PageFiltersList extends React.Component<Props> {
|
||||
</>
|
||||
)}
|
||||
/>
|
||||
)
|
||||
);
|
||||
})}
|
||||
</div>
|
||||
</>
|
||||
)
|
||||
);
|
||||
}
|
||||
|
||||
render() {
|
||||
@@ -68,6 +68,6 @@ export class PageFiltersList extends React.Component<Props> {
|
||||
<div className="PageFiltersList">
|
||||
{this.renderContent()}
|
||||
</div>
|
||||
)
|
||||
);
|
||||
}
|
||||
}
|
||||
@@ -1,4 +1,4 @@
|
||||
import React from "react"
|
||||
import React from "react";
|
||||
import { observer } from "mobx-react";
|
||||
import { computed } from "mobx";
|
||||
import { t, Trans } from "@lingui/macro";
|
||||
@@ -42,9 +42,9 @@ export class PageFiltersSelect extends React.Component<Props> {
|
||||
value: name,
|
||||
icon: <Icon small material="layers"/>,
|
||||
selected: selectedValues.includes(name),
|
||||
}
|
||||
};
|
||||
})
|
||||
})
|
||||
});
|
||||
}
|
||||
return options;
|
||||
}
|
||||
@@ -53,7 +53,7 @@ export class PageFiltersSelect extends React.Component<Props> {
|
||||
return this.groupedOptions.reduce((options, optGroup) => {
|
||||
options.push(...optGroup.options);
|
||||
return options;
|
||||
}, [])
|
||||
}, []);
|
||||
}
|
||||
|
||||
private formatLabel = (option: SelectOptionFilter) => {
|
||||
@@ -98,6 +98,6 @@ export class PageFiltersSelect extends React.Component<Props> {
|
||||
formatOptionLabel={formatLabel}
|
||||
onChange={onSelect}
|
||||
/>
|
||||
)
|
||||
);
|
||||
}
|
||||
}
|
||||
@@ -85,7 +85,7 @@ export class PageFiltersStore {
|
||||
getByType(type: FilterType, value?: any): Filter {
|
||||
return this.filters.find(filter => filter.type === type && (
|
||||
arguments.length > 1 ? filter.value === value : true
|
||||
))
|
||||
));
|
||||
}
|
||||
|
||||
getValues(type: FilterType) {
|
||||
|
||||
Reference in new issue
Block a user