mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-10 20:28:54 +00:00
lint
This commit is contained in:
@@ -48,8 +48,8 @@ import { usePopUp } from "@app/hooks";
|
|||||||
import { gatewaysQueryKeys, useDeleteGatewayById } from "@app/hooks/api/gateways";
|
import { gatewaysQueryKeys, useDeleteGatewayById } from "@app/hooks/api/gateways";
|
||||||
import { useDeleteGatewayV2ById } from "@app/hooks/api/gateways-v2";
|
import { useDeleteGatewayV2ById } from "@app/hooks/api/gateways-v2";
|
||||||
|
|
||||||
import { EditGatewayDetailsModal } from "./components/EditGatewayDetailsModal";
|
|
||||||
import { DeployGatewayModal } from "./components/DeployGatewayModal";
|
import { DeployGatewayModal } from "./components/DeployGatewayModal";
|
||||||
|
import { EditGatewayDetailsModal } from "./components/EditGatewayDetailsModal";
|
||||||
|
|
||||||
const GatewayHealthStatus = ({ heartbeat }: { heartbeat?: string }) => {
|
const GatewayHealthStatus = ({ heartbeat }: { heartbeat?: string }) => {
|
||||||
const heartbeatDate = heartbeat ? new Date(heartbeat) : null;
|
const heartbeatDate = heartbeat ? new Date(heartbeat) : null;
|
||||||
|
|||||||
+9
-7
@@ -1,3 +1,10 @@
|
|||||||
|
import { useEffect, useMemo, useState } from "react";
|
||||||
|
import { SingleValue } from "react-select";
|
||||||
|
import { faCopy, faUpRightFromSquare } from "@fortawesome/free-solid-svg-icons";
|
||||||
|
import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";
|
||||||
|
import { useNavigate } from "@tanstack/react-router";
|
||||||
|
import { twMerge } from "tailwind-merge";
|
||||||
|
|
||||||
import { createNotification } from "@app/components/notifications";
|
import { createNotification } from "@app/components/notifications";
|
||||||
import {
|
import {
|
||||||
FilterableSelect,
|
FilterableSelect,
|
||||||
@@ -7,6 +14,7 @@ import {
|
|||||||
Modal,
|
Modal,
|
||||||
ModalContent
|
ModalContent
|
||||||
} from "@app/components/v2";
|
} from "@app/components/v2";
|
||||||
|
import { ROUTE_PATHS } from "@app/const/routes";
|
||||||
import { useOrganization } from "@app/context";
|
import { useOrganization } from "@app/context";
|
||||||
import {
|
import {
|
||||||
useAddIdentityTokenAuth,
|
useAddIdentityTokenAuth,
|
||||||
@@ -16,14 +24,8 @@ import {
|
|||||||
} from "@app/hooks/api";
|
} from "@app/hooks/api";
|
||||||
import { useGetRelays } from "@app/hooks/api/relays";
|
import { useGetRelays } from "@app/hooks/api/relays";
|
||||||
import { slugSchema } from "@app/lib/schemas";
|
import { slugSchema } from "@app/lib/schemas";
|
||||||
import { faCopy, faUpRightFromSquare } from "@fortawesome/free-solid-svg-icons";
|
|
||||||
import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";
|
|
||||||
import { useEffect, useMemo, useState } from "react";
|
|
||||||
import { SingleValue } from "react-select";
|
|
||||||
import { RelayOption } from "./RelayOption";
|
import { RelayOption } from "./RelayOption";
|
||||||
import { useNavigate } from "@tanstack/react-router";
|
|
||||||
import { ROUTE_PATHS } from "@app/const/routes";
|
|
||||||
import { twMerge } from "tailwind-merge";
|
|
||||||
|
|
||||||
type Props = {
|
type Props = {
|
||||||
isOpen: boolean;
|
isOpen: boolean;
|
||||||
|
|||||||
+6
-5
@@ -1,3 +1,9 @@
|
|||||||
|
import { useEffect, useMemo, useState } from "react";
|
||||||
|
import { SingleValue } from "react-select";
|
||||||
|
import { faCopy, faUpRightFromSquare } from "@fortawesome/free-solid-svg-icons";
|
||||||
|
import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";
|
||||||
|
import { twMerge } from "tailwind-merge";
|
||||||
|
|
||||||
import { createNotification } from "@app/components/notifications";
|
import { createNotification } from "@app/components/notifications";
|
||||||
import {
|
import {
|
||||||
FilterableSelect,
|
FilterableSelect,
|
||||||
@@ -15,11 +21,6 @@ import {
|
|||||||
useGetIdentityTokenAuth
|
useGetIdentityTokenAuth
|
||||||
} from "@app/hooks/api";
|
} from "@app/hooks/api";
|
||||||
import { slugSchema } from "@app/lib/schemas";
|
import { slugSchema } from "@app/lib/schemas";
|
||||||
import { faCopy, faUpRightFromSquare } from "@fortawesome/free-solid-svg-icons";
|
|
||||||
import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";
|
|
||||||
import { useEffect, useMemo, useState } from "react";
|
|
||||||
import { SingleValue } from "react-select";
|
|
||||||
import { twMerge } from "tailwind-merge";
|
|
||||||
|
|
||||||
type Props = {
|
type Props = {
|
||||||
isOpen: boolean;
|
isOpen: boolean;
|
||||||
|
|||||||
+1
-1
@@ -1,10 +1,10 @@
|
|||||||
import { useNavigate, useSearch } from "@tanstack/react-router";
|
import { useNavigate, useSearch } from "@tanstack/react-router";
|
||||||
|
|
||||||
import { Tab, TabList, TabPanel, Tabs } from "@app/components/v2";
|
import { Tab, TabList, TabPanel, Tabs } from "@app/components/v2";
|
||||||
|
import { ROUTE_PATHS } from "@app/const/routes";
|
||||||
|
|
||||||
import { GatewayTab } from "../GatewayTab/GatewayTab";
|
import { GatewayTab } from "../GatewayTab/GatewayTab";
|
||||||
import { RelayTab } from "../RelayTab/RelayTab";
|
import { RelayTab } from "../RelayTab/RelayTab";
|
||||||
import { ROUTE_PATHS } from "@app/const/routes";
|
|
||||||
|
|
||||||
export const NetworkingTabGroup = () => {
|
export const NetworkingTabGroup = () => {
|
||||||
const navigate = useNavigate({
|
const navigate = useNavigate({
|
||||||
|
|||||||
@@ -43,6 +43,7 @@ import {
|
|||||||
import { withPermission } from "@app/hoc";
|
import { withPermission } from "@app/hoc";
|
||||||
import { usePopUp } from "@app/hooks";
|
import { usePopUp } from "@app/hooks";
|
||||||
import { useDeleteRelayById, useGetRelays } from "@app/hooks/api/relays";
|
import { useDeleteRelayById, useGetRelays } from "@app/hooks/api/relays";
|
||||||
|
|
||||||
import { DeployRelayModal } from "../GatewayTab/components/DeployRelayModal";
|
import { DeployRelayModal } from "../GatewayTab/components/DeployRelayModal";
|
||||||
|
|
||||||
const RelayHealthStatus = ({ heartbeat }: { heartbeat?: string }) => {
|
const RelayHealthStatus = ({ heartbeat }: { heartbeat?: string }) => {
|
||||||
|
|||||||
Reference in New Issue
Block a user