lint: napcat.webui

This commit is contained in:
时瑾 2025-11-03 12:43:52 +08:00
parent d3c3721d8b
commit 78b5f8e234
No known key found for this signature in database
GPG Key ID: 023F70A1B8F8C196
3 changed files with 12 additions and 12 deletions

View File

@ -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<ServerResponse<boolean>>(
'/File/batchMove',

View File

@ -18,8 +18,8 @@ const ChangePasswordCard = () => {
reset,
watch,
} = useForm<{
oldToken: string
newToken: string
oldToken: string;
newToken: string;
}>({
defaultValues: {
oldToken: '',

View File

@ -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',