mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
fix lint
Signed-off-by: Roman <ixrock@gmail.com>
This commit is contained in:
parent
08acddf4e2
commit
ad31d3e8a2
@ -11,7 +11,6 @@ import { app } from "electron";
|
||||
import type { CatalogEntitySpec } from "../catalog/catalog-entity";
|
||||
import { IpcRendererNavigationEvents } from "../../renderer/navigation/events";
|
||||
import { requestClusterActivation, requestClusterDisconnection } from "../../renderer/ipc";
|
||||
import KubeClusterCategoryIcon from "./icons/kubernetes.svg?raw";
|
||||
|
||||
export interface KubernetesClusterPrometheusMetrics {
|
||||
address?: {
|
||||
@ -135,7 +134,7 @@ class KubernetesClusterCategory extends CatalogCategory {
|
||||
public readonly kind = "CatalogCategory";
|
||||
public metadata = {
|
||||
name: "Clusters",
|
||||
icon: KubeClusterCategoryIcon,
|
||||
icon: require("./icons/kubernetes.svg?raw"),
|
||||
};
|
||||
public spec: CatalogCategorySpec = {
|
||||
group: "entity.k8slens.dev",
|
||||
|
||||
@ -61,7 +61,7 @@ export default function generateExtensionTypes(): webpack.Configuration {
|
||||
fontsLoaderWebpackRule(),
|
||||
filesAndIconsWebpackRule(),
|
||||
cssModulesWebpackRule({ styleLoader: "style-loader" }),
|
||||
{ resourceQuery: /raw/, type: "asset/source" }, // import with "?raw"
|
||||
{ resourceQuery: /raw/, type: "asset/source" },
|
||||
],
|
||||
},
|
||||
resolve: {
|
||||
|
||||
@ -44,8 +44,7 @@ configs.push((): webpack.Configuration => {
|
||||
},
|
||||
getTSLoader({}, /\.ts$/),
|
||||
{
|
||||
// import SvgRawTextFile from "./some-file.svg?raw"
|
||||
resourceQuery: /raw/,
|
||||
resourceQuery: /raw/, // embed file as plain-text, e.g. require("./some-file.svg?raw")
|
||||
type: "asset/source",
|
||||
},
|
||||
],
|
||||
|
||||
Loading…
Reference in New Issue
Block a user