mirror of
https://github.com/komodorio/helm-dashboard.git
synced 2026-03-26 06:18:04 +00:00
Bumped vite, eslint, typescript, prettier and related plugins versions to latest (#623)
* Bumped vite, eslint, typescript, prettier and related plugins * Fixed unused arg * Fixed prettier warnings
This commit is contained in:
@@ -143,7 +143,7 @@ class ApiService {
|
||||
}: {
|
||||
queryKey: [
|
||||
string,
|
||||
{ namespace: string; chart: { name: string }; version: number }
|
||||
{ namespace: string; chart: { name: string }; version: number },
|
||||
];
|
||||
}) => {
|
||||
const [, params] = queryKey;
|
||||
|
||||
@@ -14,7 +14,7 @@
|
||||
* @see https://storybook.js.org/docs/react/writing-stories/introduction
|
||||
*/
|
||||
|
||||
import { Meta } from "@storybook/react";
|
||||
import { Meta } from "@storybook/react-vite";
|
||||
import Badge from "./Badge";
|
||||
|
||||
// We set the metadata for the story.
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { Meta, StoryObj } from "@storybook/react";
|
||||
import { Meta, StoryObj } from "@storybook/react-vite";
|
||||
import Button from "./Button";
|
||||
|
||||
const meta = {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { Meta, StoryObj } from "@storybook/react";
|
||||
import { Meta, StoryObj } from "@storybook/react-vite";
|
||||
import ClustersList from "./ClustersList";
|
||||
|
||||
const meta = {
|
||||
|
||||
@@ -11,10 +11,9 @@ const HealthStatus = ({ statusData }: Props) => {
|
||||
return item.status?.conditions
|
||||
?.filter((cond) => cond.type === HD_RESOURCE_CONDITION_TYPE)
|
||||
.map((cond) => {
|
||||
const stableKey =
|
||||
item.metadata?.uid
|
||||
? `${item.metadata.uid}-${item.metadata.namespace ?? "default"}`
|
||||
: `${item.kind}-${item.metadata?.namespace ?? "default"}-${item.metadata?.name}`;
|
||||
const stableKey = item.metadata?.uid
|
||||
? `${item.metadata.uid}-${item.metadata.namespace ?? "default"}`
|
||||
: `${item.kind}-${item.metadata?.namespace ?? "default"}-${item.metadata?.name}`;
|
||||
|
||||
return (
|
||||
<Tooltip
|
||||
@@ -26,20 +25,20 @@ const HealthStatus = ({ statusData }: Props) => {
|
||||
cond.status === "Healthy"
|
||||
? "bg-success"
|
||||
: cond.status === "Progressing"
|
||||
? "bg-warning"
|
||||
: "bg-danger"
|
||||
? "bg-warning"
|
||||
: "bg-danger"
|
||||
} w-2.5 h-2.5 rounded-sm`}
|
||||
></span>
|
||||
</Tooltip>
|
||||
);
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
if (statuses.length === 0) {
|
||||
return <div>No health statuses available</div>;
|
||||
}
|
||||
|
||||
|
||||
return <div className="flex flex-wrap gap-1">{statuses}</div>;
|
||||
};
|
||||
|
||||
export default HealthStatus;
|
||||
export default HealthStatus;
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { Meta } from "@storybook/react";
|
||||
import { Meta } from "@storybook/react-vite";
|
||||
import InstalledPackageCard from "./InstalledPackageCard";
|
||||
|
||||
const meta = {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { Meta } from "@storybook/react";
|
||||
import { Meta } from "@storybook/react-vite";
|
||||
import InstalledPackagesHeader from "./InstalledPackagesHeader";
|
||||
|
||||
const meta = {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { Meta } from "@storybook/react";
|
||||
import { Meta } from "@storybook/react-vite";
|
||||
import InstalledPackagesList from "./InstalledPackagesList";
|
||||
|
||||
const meta = {
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
* The default story renders the component with the default props.
|
||||
*/
|
||||
|
||||
import { Meta, StoryObj } from "@storybook/react";
|
||||
import { Meta, StoryObj } from "@storybook/react-vite";
|
||||
import { action } from "@storybook/addon-actions";
|
||||
import SelectMenu, { SelectMenuItem } from "./SelectMenu";
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { StoryFn, Meta } from "@storybook/react";
|
||||
import { StoryFn, Meta } from "@storybook/react-vite";
|
||||
import ShutDownButton from "./ShutDownButton";
|
||||
|
||||
const meta = {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { Meta } from "@storybook/react";
|
||||
import { Meta } from "@storybook/react-vite";
|
||||
import Tabs from "./Tabs";
|
||||
|
||||
const meta = {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { Meta } from "@storybook/react";
|
||||
import { Meta } from "@storybook/react-vite";
|
||||
import TabsBar from "./TabsBar";
|
||||
|
||||
const meta = {
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
* the first story simply renders the component with the default props.
|
||||
*/
|
||||
|
||||
import { Meta } from "@storybook/react";
|
||||
import { Meta } from "@storybook/react-vite";
|
||||
import TextInput from "./TextInput";
|
||||
|
||||
const meta = {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { Meta, StoryFn } from "@storybook/react";
|
||||
import { Meta, StoryFn } from "@storybook/react-vite";
|
||||
import { Troubleshoot } from "./Troubleshoot";
|
||||
|
||||
const meta = {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { Meta } from "@storybook/react";
|
||||
import { Meta } from "@storybook/react-vite";
|
||||
|
||||
import { Button } from "./Button";
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { Meta } from "@storybook/react";
|
||||
import { Meta } from "@storybook/react-vite";
|
||||
import { action } from "@storybook/addon-actions";
|
||||
import DropDown from "./DropDown";
|
||||
import { BsSlack, BsGithub } from "react-icons/bs";
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { Meta } from "@storybook/react";
|
||||
import { Meta } from "@storybook/react-vite";
|
||||
|
||||
import { Header } from "./Header";
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { Meta, StoryObj } from "@storybook/react";
|
||||
import { Meta, StoryObj } from "@storybook/react-vite";
|
||||
import { within, userEvent } from "@storybook/testing-library";
|
||||
import { Page } from "./Page";
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { Meta } from "@storybook/react";
|
||||
import { Meta } from "@storybook/react-vite";
|
||||
import StatusLabel, { DeploymentStatus } from "./StatusLabel";
|
||||
|
||||
const meta = {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { StoryFn, Meta } from "@storybook/react";
|
||||
import { StoryFn, Meta } from "@storybook/react-vite";
|
||||
import AddRepositoryModal from "./AddRepositoryModal";
|
||||
|
||||
const meta = {
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { action } from "@storybook/addon-actions";
|
||||
import { Meta } from "@storybook/react";
|
||||
import { Meta } from "@storybook/react-vite";
|
||||
import ErrorModal from "./ErrorModal";
|
||||
|
||||
const meta = {
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { action } from "@storybook/addon-actions";
|
||||
import { StoryObj, StoryFn, Meta } from "@storybook/react";
|
||||
import { StoryObj, StoryFn, Meta } from "@storybook/react-vite";
|
||||
import Modal, { ModalAction, ModalButtonStyle } from "./Modal";
|
||||
|
||||
const meta = {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { Meta } from "@storybook/react";
|
||||
import { Meta } from "@storybook/react-vite";
|
||||
import ChartViewer from "./ChartViewer";
|
||||
|
||||
//👇 This default export determines where your story goes in the story list
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { StoryFn, Meta } from "@storybook/react";
|
||||
import { StoryFn, Meta } from "@storybook/react-vite";
|
||||
import RepositoriesList from "./RepositoriesList";
|
||||
|
||||
const meta = {
|
||||
@@ -17,7 +17,6 @@ const Template: StoryFn<typeof RepositoriesList> = () => (
|
||||
<RepositoriesList
|
||||
selectedRepository={undefined}
|
||||
// in this case we allow Unexpected empty method
|
||||
//eslint-disable-next-line @typescript-eslint/no-empty-function
|
||||
onRepositoryChanged={() => {}}
|
||||
repositories={[]}
|
||||
/>
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { StoryFn, Meta } from "@storybook/react";
|
||||
import { StoryFn, Meta } from "@storybook/react-vite";
|
||||
import RepositoryViewer from "./RepositoryViewer";
|
||||
|
||||
const meta = {
|
||||
|
||||
@@ -12,6 +12,5 @@ export const ErrorModalContext = createContext<{
|
||||
}>({
|
||||
shouldShowErrorModal: undefined,
|
||||
// in this case we allow Unexpected empty method
|
||||
//eslint-disable-next-line @typescript-eslint/no-empty-function
|
||||
setShowErrorModal: (toggle?: ErrorAlert) => {},
|
||||
setShowErrorModal: () => {},
|
||||
});
|
||||
|
||||
@@ -66,7 +66,7 @@ export type ReleaseHealthStatus = {
|
||||
lastProbeTime: string;
|
||||
lastTransitionTime?: string;
|
||||
reason: string;
|
||||
}
|
||||
},
|
||||
];
|
||||
};
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user