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 {
|
interface GeneralEntitySpec extends CatalogEntitySpec {
|
||||||
path: string;
|
path: string;
|
||||||
|
icon?: {
|
||||||
|
material?: string;
|
||||||
|
background?: string;
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
export class GeneralEntity extends CatalogEntity<CatalogEntityMetadata, CatalogEntityStatus, GeneralEntitySpec> {
|
export class GeneralEntity extends CatalogEntity<CatalogEntityMetadata, CatalogEntityStatus, GeneralEntitySpec> {
|
||||||
|
|||||||
@ -38,6 +38,9 @@ export interface KubernetesClusterPrometheusMetrics {
|
|||||||
prefix: string;
|
prefix: string;
|
||||||
};
|
};
|
||||||
type?: string;
|
type?: string;
|
||||||
|
icon?: {
|
||||||
|
src?: string;
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface KubernetesClusterSpec extends CatalogEntitySpec {
|
export interface KubernetesClusterSpec extends CatalogEntitySpec {
|
||||||
|
|||||||
@ -147,14 +147,8 @@ export interface CatalogEntityAddMenuContext {
|
|||||||
menuItems: CatalogEntityAddMenu[];
|
menuItems: CatalogEntityAddMenu[];
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface CatalogEntitySpec {
|
export type CatalogEntitySpec = Record<string, any>;
|
||||||
icon?: {
|
|
||||||
src?: string;
|
|
||||||
material?: string;
|
|
||||||
background?: string;
|
|
||||||
};
|
|
||||||
[key: string]: any;
|
|
||||||
}
|
|
||||||
|
|
||||||
export interface CatalogEntityData<
|
export interface CatalogEntityData<
|
||||||
Metadata extends CatalogEntityMetadata = CatalogEntityMetadata,
|
Metadata extends CatalogEntityMetadata = CatalogEntityMetadata,
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user