1
0
mirror of https://github.com/lensapp/lens.git synced 2025-05-20 05:10:56 +00:00

Removing icon refs from CatalogEntitySpec

Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
This commit is contained in:
Alex Andreev 2021-06-21 09:40:36 +03:00
parent 67c7c454bb
commit 658caa774e
3 changed files with 9 additions and 8 deletions

View File

@ -25,6 +25,10 @@ import { catalogCategoryRegistry } from "../catalog/catalog-category-registry";
interface GeneralEntitySpec extends CatalogEntitySpec {
path: string;
icon?: {
material?: string;
background?: string;
};
}
export class GeneralEntity extends CatalogEntity<CatalogEntityMetadata, CatalogEntityStatus, GeneralEntitySpec> {

View File

@ -38,6 +38,9 @@ export interface KubernetesClusterPrometheusMetrics {
prefix: string;
};
type?: string;
icon?: {
src?: string;
};
}
export interface KubernetesClusterSpec extends CatalogEntitySpec {

View File

@ -147,14 +147,8 @@ export interface CatalogEntityAddMenuContext {
menuItems: CatalogEntityAddMenu[];
}
export interface CatalogEntitySpec {
icon?: {
src?: string;
material?: string;
background?: string;
};
[key: string]: any;
}
export type CatalogEntitySpec = Record<string, any>;
export interface CatalogEntityData<
Metadata extends CatalogEntityMetadata = CatalogEntityMetadata,