From 78b5f8e2346bd5ce1f695d6128e979f1c691b89f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=97=B6=E7=91=BE?= <74231782+sj817@users.noreply.github.com> Date: Mon, 3 Nov 2025 12:43:52 +0800 Subject: [PATCH] lint: napcat.webui --- napcat.webui/src/controllers/file_manager.ts | 10 +++++----- .../src/pages/dashboard/config/change_password.tsx | 4 ++-- napcat.webui/src/pages/dashboard/config/server.tsx | 10 +++++----- 3 files changed, 12 insertions(+), 12 deletions(-) diff --git a/napcat.webui/src/controllers/file_manager.ts b/napcat.webui/src/controllers/file_manager.ts index 9650294f..3d691761 100644 --- a/napcat.webui/src/controllers/file_manager.ts +++ b/napcat.webui/src/controllers/file_manager.ts @@ -3,10 +3,10 @@ import toast from 'react-hot-toast'; import { serverRequest } from '@/utils/request'; export interface FileInfo { - name: string - isDirectory: boolean - size: number - mtime: Date + name: string; + isDirectory: boolean; + size: number; + mtime: Date; } export default class FileManager { @@ -89,7 +89,7 @@ export default class FileManager { } public static async batchMove ( - items: { sourcePath: string; targetPath: string }[] + items: { sourcePath: string; targetPath: string; }[] ) { const { data } = await serverRequest.post>( '/File/batchMove', diff --git a/napcat.webui/src/pages/dashboard/config/change_password.tsx b/napcat.webui/src/pages/dashboard/config/change_password.tsx index df6d2704..268acfbf 100644 --- a/napcat.webui/src/pages/dashboard/config/change_password.tsx +++ b/napcat.webui/src/pages/dashboard/config/change_password.tsx @@ -18,8 +18,8 @@ const ChangePasswordCard = () => { reset, watch, } = useForm<{ - oldToken: string - newToken: string + oldToken: string; + newToken: string; }>({ defaultValues: { oldToken: '', diff --git a/napcat.webui/src/pages/dashboard/config/server.tsx b/napcat.webui/src/pages/dashboard/config/server.tsx index bbe2bef5..0d00c325 100644 --- a/napcat.webui/src/pages/dashboard/config/server.tsx +++ b/napcat.webui/src/pages/dashboard/config/server.tsx @@ -24,11 +24,11 @@ const ServerConfigCard = () => { formState: { isSubmitting }, setValue: setConfigValue, } = useForm<{ - host: string - port: number - loginRate: number - disableWebUI: boolean - disableNonLANAccess: boolean + host: string; + port: number; + loginRate: number; + disableWebUI: boolean; + disableNonLANAccess: boolean; }>({ defaultValues: { host: '0.0.0.0',