mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
1 parent
08acddf4e2
commit
ad31d3e8a2
3 files changed
+3
-5
No files matched your search
@@ -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: {
|
||||
|
||||
+1
-2
@@ -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",
|
||||
},
|
||||
],
|
||||
|
||||
Reference in new issue
Block a user