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:
parent
67c7c454bb
commit
658caa774e
@ -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> {
|
||||
|
||||
@ -38,6 +38,9 @@ export interface KubernetesClusterPrometheusMetrics {
|
||||
prefix: string;
|
||||
};
|
||||
type?: string;
|
||||
icon?: {
|
||||
src?: string;
|
||||
};
|
||||
}
|
||||
|
||||
export interface KubernetesClusterSpec extends CatalogEntitySpec {
|
||||
|
||||
@ -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,
|
||||
|
||||
Loading…
Reference in New Issue
Block a user