From 5ee15b93b961309cda56179abbaf01019c77db72 Mon Sep 17 00:00:00 2001 From: Gallay Lajos Date: Fri, 3 Nov 2023 12:30:35 +0100 Subject: [PATCH] fixes --- frontend/src/installer/create-admin-step.tsx | 6 +++--- service/src/drives/create-dirent-list-from-files.ts | 2 +- service/src/webtorrent/actions/post-torrent-action.ts | 2 +- tsconfig-base.json | 4 ++-- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/frontend/src/installer/create-admin-step.tsx b/frontend/src/installer/create-admin-step.tsx index 365c05bf..dce0c916 100644 --- a/frontend/src/installer/create-admin-step.tsx +++ b/frontend/src/installer/create-admin-step.tsx @@ -34,7 +34,7 @@ export const CreateAdminStep = Shade({ name="userName" variant="outlined" autofocus - autocomplete="false" + autocomplete="off" labelTitle="E-mail address" type="email" required @@ -45,7 +45,7 @@ export const CreateAdminStep = Shade({ variant="outlined" type="password" labelTitle="Password" - autocomplete="false" + autocomplete="off" minLength={5} pattern="[a-zA-Z0-9]{3,}" required @@ -62,7 +62,7 @@ export const CreateAdminStep = Shade({ type="password" labelTitle="Confirm Password" required - autocomplete="false" + autocomplete="off" /> diff --git a/service/src/drives/create-dirent-list-from-files.ts b/service/src/drives/create-dirent-list-from-files.ts index 3203f20e..435c6f37 100644 --- a/service/src/drives/create-dirent-list-from-files.ts +++ b/service/src/drives/create-dirent-list-from-files.ts @@ -2,7 +2,7 @@ import type { DirectoryEntry } from 'common' import type { File, Files } from 'formidable' export const createDirentListFromFiles = (files: Files): DirectoryEntry[] => { - const fileArray: File[] = Object.values(files).flatMap((value) => value) + const fileArray = Object.values(files).flatMap((value) => value) as File[] return fileArray.map((file) => ({ name: file.newFilename, isFile: true, diff --git a/service/src/webtorrent/actions/post-torrent-action.ts b/service/src/webtorrent/actions/post-torrent-action.ts index 567132f0..66a0abef 100644 --- a/service/src/webtorrent/actions/post-torrent-action.ts +++ b/service/src/webtorrent/actions/post-torrent-action.ts @@ -47,7 +47,7 @@ export const PostTorrentAction: RequestAction = async ({ logger.debug({ message: 'Upload finished', data: parseResult }) - const fileArray: File[] = Object.values(parseResult.files).flatMap((value) => value) + const fileArray = Object.values(parseResult.files).flatMap((value) => value) as File[] const entries = fileArray .filter((file) => file.mimetype === 'application/x-bittorrent') diff --git a/tsconfig-base.json b/tsconfig-base.json index cac57b15..65527660 100644 --- a/tsconfig-base.json +++ b/tsconfig-base.json @@ -2,8 +2,8 @@ "compilerOptions": { "pretty": true, "target": "ES2021", - "module": "ESNext", - "moduleResolution": "node16", + "module": "NodeNext", + "moduleResolution": "NodeNext", "declaration": true, "sourceMap": true, "strict": true,