From 9c759ba99bfac3e2971b041db8a2c7b586dc3eb7 Mon Sep 17 00:00:00 2001 From: CanbiZ <47820557+MickLesk@users.noreply.github.com> Date: Fri, 28 Nov 2025 11:53:04 +0100 Subject: [PATCH] fix: ESLint/TypeScript fixes - nullish coalescing, regexp-exec, optional-chain, unescaped-entities, unused-vars, type-safety --- src/app/_components/BackupWarningModal.tsx | 47 +- src/app/_components/BackupsTab.tsx | 244 +- src/app/_components/DownloadedScriptsTab.tsx | 377 +-- src/app/_components/FilterBar.tsx | 649 ++--- src/app/_components/GeneralSettingsModal.tsx | 1390 +++++++---- src/app/_components/HelpModal.tsx | 2220 ++++++++++++----- src/app/_components/InstalledScriptsTab.tsx | 2046 +++++++++------ src/app/_components/LoadingModal.tsx | 71 +- src/app/_components/PBSCredentialsModal.tsx | 217 +- src/app/_components/ScriptCard.tsx | 108 +- src/app/_components/ScriptCardList.tsx | 209 +- src/app/_components/ScriptDetailModal.tsx | 565 +++-- src/app/_components/ScriptVersionModal.tsx | 163 +- src/app/_components/ServerForm.tsx | 737 +++--- src/app/_components/ServerStoragesModal.tsx | 190 +- src/app/_components/TextViewer.tsx | 294 ++- .../_components/UpdateConfirmationModal.tsx | 174 +- src/app/page.tsx | 278 ++- 18 files changed, 6229 insertions(+), 3750 deletions(-) diff --git a/src/app/_components/BackupWarningModal.tsx b/src/app/_components/BackupWarningModal.tsx index d93f5c9..d5e3f5f 100644 --- a/src/app/_components/BackupWarningModal.tsx +++ b/src/app/_components/BackupWarningModal.tsx @@ -1,8 +1,8 @@ -'use client'; +"use client"; -import { Button } from './ui/button'; -import { AlertTriangle } from 'lucide-react'; -import { useRegisterModal } from './modal/ModalStackProvider'; +import { Button } from "./ui/button"; +import { AlertTriangle } from "lucide-react"; +import { useRegisterModal } from "./modal/ModalStackProvider"; interface BackupWarningModalProps { isOpen: boolean; @@ -13,33 +13,43 @@ interface BackupWarningModalProps { export function BackupWarningModal({ isOpen, onClose, - onProceed + onProceed, }: BackupWarningModalProps) { - useRegisterModal(isOpen, { id: 'backup-warning-modal', allowEscape: true, onClose }); + useRegisterModal(isOpen, { + id: "backup-warning-modal", + allowEscape: true, + onClose, + }); if (!isOpen) return null; return ( -
- The backup failed, but you can still proceed with the update if you wish.
-
- Warning: Proceeding without a backup means you won't be able to restore the container if something goes wrong during the update.
+
+ The backup failed, but you can still proceed with the update if you
+ wish.
+
+
+ Warning: Proceeding
+ without a backup means you won't be able to restore the
+ container if something goes wrong during the update.
+
Discovered backups grouped by container ID
- {isDiscovering ? 'Discovering backups...' : 'Loading backups...'} + {isDiscovering ? "Discovering backups..." : "Loading backups..."}
- Click "Discover Backups" to scan for backups on your servers. + Click "Discover Backups" to scan for backups on your + servers.