mirror of
https://github.com/fosrl/pangolin.git
synced 2026-06-07 08:08:55 +00:00
Fix eslint errors
This commit is contained in:
@@ -665,7 +665,7 @@ export async function generateSubnetProxyTargetV2(
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
let targets: SubnetProxyTargetV2[] = [];
|
const targets: SubnetProxyTargetV2[] = [];
|
||||||
|
|
||||||
const portRange = [
|
const portRange = [
|
||||||
...parsePortRangeString(siteResource.tcpPortRangeString, "tcp"),
|
...parsePortRangeString(siteResource.tcpPortRangeString, "tcp"),
|
||||||
|
|||||||
@@ -103,7 +103,7 @@ export function ProxyResourceTargetsForm({
|
|||||||
// Notify parent of changes (create mode)
|
// Notify parent of changes (create mode)
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
onChange?.(targets);
|
onChange?.(targets);
|
||||||
}, [targets]); // eslint-disable-line react-hooks/exhaustive-deps
|
}, [targets]);
|
||||||
|
|
||||||
// Poll health status only in edit mode
|
// Poll health status only in edit mode
|
||||||
const { data: polledTargets } = useQuery({
|
const { data: polledTargets } = useQuery({
|
||||||
|
|||||||
@@ -86,7 +86,7 @@ export default async function Page(props: {
|
|||||||
targetOrgId = lastOrgCookie;
|
targetOrgId = lastOrgCookie;
|
||||||
} else {
|
} else {
|
||||||
let ownedOrg = orgs.find((org) => org.isOwner);
|
let ownedOrg = orgs.find((org) => org.isOwner);
|
||||||
let primaryOrg = orgs.find((org) => org.isPrimaryOrg);
|
const primaryOrg = orgs.find((org) => org.isPrimaryOrg);
|
||||||
if (!ownedOrg) {
|
if (!ownedOrg) {
|
||||||
if (primaryOrg) {
|
if (primaryOrg) {
|
||||||
ownedOrg = primaryOrg;
|
ownedOrg = primaryOrg;
|
||||||
|
|||||||
@@ -16,9 +16,9 @@ export const metadata: Metadata = {
|
|||||||
export default async function MaintenanceScreen() {
|
export default async function MaintenanceScreen() {
|
||||||
const t = await getTranslations();
|
const t = await getTranslations();
|
||||||
|
|
||||||
let title = t("privateMaintenanceScreenTitle");
|
const title = t("privateMaintenanceScreenTitle");
|
||||||
let message = t("privateMaintenanceScreenMessage");
|
const message = t("privateMaintenanceScreenMessage");
|
||||||
let steps = t("privateMaintenanceScreenSteps");
|
const steps = t("privateMaintenanceScreenSteps");
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div className="min-h-screen flex items-center justify-center p-4">
|
<div className="min-h-screen flex items-center justify-center p-4">
|
||||||
|
|||||||
@@ -17,7 +17,7 @@ export default async function RdpPage() {
|
|||||||
const hostname = host.split(":")[0];
|
const hostname = host.split(":")[0];
|
||||||
|
|
||||||
let target: GetBrowserTargetResponse | null = null;
|
let target: GetBrowserTargetResponse | null = null;
|
||||||
let error: string | null = null;
|
const error: string | null = null;
|
||||||
|
|
||||||
try {
|
try {
|
||||||
const res = await priv.get<AxiosResponse<GetBrowserTargetResponse>>(
|
const res = await priv.get<AxiosResponse<GetBrowserTargetResponse>>(
|
||||||
|
|||||||
@@ -180,7 +180,6 @@ export default function SshClient({
|
|||||||
certificate: signedKeyData.certificate
|
certificate: signedKeyData.certificate
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
||||||
}, []);
|
}, []);
|
||||||
|
|
||||||
function connect(override?: ConnectCredentials) {
|
function connect(override?: ConnectCredentials) {
|
||||||
|
|||||||
@@ -39,7 +39,6 @@ export default function VncClient({
|
|||||||
});
|
});
|
||||||
|
|
||||||
const [connected, setConnected] = useState(false);
|
const [connected, setConnected] = useState(false);
|
||||||
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
||||||
const rfbRef = useRef<any>(null);
|
const rfbRef = useRef<any>(null);
|
||||||
const screenRef = useRef<HTMLDivElement>(null);
|
const screenRef = useRef<HTMLDivElement>(null);
|
||||||
|
|
||||||
@@ -59,7 +58,7 @@ export default function VncClient({
|
|||||||
// Clean up on unmount.
|
// Clean up on unmount.
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
return () => disconnect();
|
return () => disconnect();
|
||||||
}, []); // eslint-disable-line react-hooks/exhaustive-deps
|
}, []);
|
||||||
|
|
||||||
const connect = async () => {
|
const connect = async () => {
|
||||||
if (!target) {
|
if (!target) {
|
||||||
@@ -115,7 +114,6 @@ export default function VncClient({
|
|||||||
options.credentials = { password: form.password };
|
options.credentials = { password: form.password };
|
||||||
}
|
}
|
||||||
|
|
||||||
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
||||||
const rfb: any = new RFB(screenRef.current, wsUrl, options);
|
const rfb: any = new RFB(screenRef.current, wsUrl, options);
|
||||||
|
|
||||||
rfb.scaleViewport = true;
|
rfb.scaleViewport = true;
|
||||||
|
|||||||
@@ -17,7 +17,7 @@ export default async function VncPage() {
|
|||||||
const hostname = host.split(":")[0];
|
const hostname = host.split(":")[0];
|
||||||
|
|
||||||
let target: GetBrowserTargetResponse | null = null;
|
let target: GetBrowserTargetResponse | null = null;
|
||||||
let error: string | null = null;
|
const error: string | null = null;
|
||||||
|
|
||||||
try {
|
try {
|
||||||
const res = await priv.get<AxiosResponse<GetBrowserTargetResponse>>(
|
const res = await priv.get<AxiosResponse<GetBrowserTargetResponse>>(
|
||||||
|
|||||||
Reference in New Issue
Block a user