Skip to content

Commit a2bcabc

Browse files
committed
dependencies: bump (major)
1 parent 1058f0a commit a2bcabc

File tree

30 files changed

+2387
-3383
lines changed

30 files changed

+2387
-3383
lines changed

client/src/javascript/components/general/ListViewport.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@ import {observer} from 'mobx-react';
44
import {OverlayScrollbarsComponent} from 'overlayscrollbars-react';
55
import {useWindowSize} from 'react-use';
66

7-
import type {FixedSizeListProps, ListChildComponentProps} from 'react-window';
8-
97
import ConfigStore from '@client/stores/ConfigStore';
108

9+
import type {FixedSizeListProps, ListChildComponentProps} from 'react-window';
10+
1111
const Overflow = forwardRef<HTMLDivElement, ComponentProps<'div'>>((props: ComponentProps<'div'>, ref) => {
1212
const {children, className, onScroll} = props;
1313
const osRef = useRef<OverlayScrollbarsComponent>(null);
@@ -27,14 +27,14 @@ const Overflow = forwardRef<HTMLDivElement, ComponentProps<'div'>>((props: Compo
2727
refCallback(viewport);
2828

2929
if (onScroll) {
30-
viewport.addEventListener('scroll', (e) => onScroll((e as unknown) as UIEvent<HTMLDivElement>), {
30+
viewport.addEventListener('scroll', (e) => onScroll(e as unknown as UIEvent<HTMLDivElement>), {
3131
passive: true,
3232
});
3333
}
3434

3535
return () => {
3636
if (onScroll) {
37-
viewport.removeEventListener('scroll', (e) => onScroll((e as unknown) as UIEvent<HTMLDivElement>));
37+
viewport.removeEventListener('scroll', (e) => onScroll(e as unknown as UIEvent<HTMLDivElement>));
3838
}
3939
};
4040
}, [onScroll, ref]);

client/src/javascript/components/general/TorrentStatusIcon.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
import {FC, memo} from 'react';
22

3-
import type {TorrentStatus} from '@shared/constants/torrentStatusMap';
4-
53
import {Error, Spinner, Start, Stop} from '@client/ui/icons';
64

5+
import type {TorrentStatus} from '@shared/constants/torrentStatusMap';
6+
77
const STATUS_ICON_MAP: Partial<Record<TorrentStatus, JSX.Element>> = {
88
error: <Error />,
99
checking: <Spinner />,

client/src/javascript/components/general/filesystem/DirectoryTree.tsx

Lines changed: 21 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -25,32 +25,30 @@ const DirectoryTree: FC<DirectoryTreeProps> = (props: DirectoryTreeProps) => {
2525
directories != null
2626
? Object.keys(directories)
2727
.sort((a, b) => a.localeCompare(b))
28-
.map(
29-
(directoryName, index): ReactNode => {
30-
const subSelectedItems = itemsTree.directories && itemsTree.directories[directoryName];
28+
.map((directoryName, index): ReactNode => {
29+
const subSelectedItems = itemsTree.directories && itemsTree.directories[directoryName];
3130

32-
const id = `${index}${childDepth}${directoryName}`;
33-
const isSelected = (subSelectedItems && subSelectedItems.isSelected) || false;
31+
const id = `${index}${childDepth}${directoryName}`;
32+
const isSelected = (subSelectedItems && subSelectedItems.isSelected) || false;
3433

35-
if (subSelectedItems == null) {
36-
return null;
37-
}
34+
if (subSelectedItems == null) {
35+
return null;
36+
}
3837

39-
return (
40-
<DirectoryTreeNode
41-
depth={childDepth}
42-
directoryName={directoryName}
43-
hash={hash}
44-
id={id}
45-
isSelected={isSelected}
46-
key={id}
47-
itemsTree={subSelectedItems}
48-
onItemSelect={onItemSelect}
49-
path={path}
50-
/>
51-
);
52-
},
53-
)
38+
return (
39+
<DirectoryTreeNode
40+
depth={childDepth}
41+
directoryName={directoryName}
42+
hash={hash}
43+
id={id}
44+
isSelected={isSelected}
45+
key={id}
46+
itemsTree={subSelectedItems}
47+
onItemSelect={onItemSelect}
48+
path={path}
49+
/>
50+
);
51+
})
5452
: [];
5553

5654
const fileList: ReactNode =

client/src/javascript/components/general/form-elements/FilesystemBrowserTextbox.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ const FilesystemBrowserTextbox = forwardRef<HTMLInputElement, FilesystemBrowserT
5353
};
5454

5555
const handleDocumentClick = (e: Event): void => {
56-
if (!formRowRef.current?.contains((e.target as unknown) as Node)) {
56+
if (!formRowRef.current?.contains(e.target as unknown as Node)) {
5757
closeDirectoryList();
5858
}
5959
};

client/src/javascript/components/general/form-elements/TagSelect.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ const TagSelect: FC<TagSelectProps> = ({defaultValue, placeholder, id, label, on
3737

3838
useEffect(() => {
3939
const handleDocumentClick = (e: Event) => {
40-
if (!formRowRef.current?.contains((e.target as unknown) as Node)) {
40+
if (!formRowRef.current?.contains(e.target as unknown as Node)) {
4141
setIsOpen(false);
4242
}
4343
};

client/src/javascript/components/modals/Modal.tsx

Lines changed: 2 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -22,19 +22,8 @@ interface ModalProps {
2222
}
2323

2424
const Modal: FC<ModalProps> = (props: ModalProps) => {
25-
const {
26-
alignment,
27-
size,
28-
orientation,
29-
tabsInBody,
30-
inverse,
31-
initialTabId,
32-
className,
33-
content,
34-
heading,
35-
tabs,
36-
actions,
37-
} = props;
25+
const {alignment, size, orientation, tabsInBody, inverse, initialTabId, className, content, heading, tabs, actions} =
26+
props;
3827

3928
const contentWrapperClasses = classnames(
4029
'modal__content__wrapper',

client/src/javascript/components/modals/add-torrents-modal/AddTorrentsByFile.tsx

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -73,14 +73,8 @@ const AddTorrentsByFile: FC = () => {
7373
const formData = formRef.current?.getFormData();
7474
setIsAddingTorrents(true);
7575

76-
const {
77-
destination,
78-
start,
79-
tags,
80-
isBasePath,
81-
isCompleted,
82-
isSequential,
83-
} = formData as Partial<AddTorrentsByFileFormData>;
76+
const {destination, start, tags, isBasePath, isCompleted, isSequential} =
77+
formData as Partial<AddTorrentsByFileFormData>;
8478

8579
const filesData: Array<string> = [];
8680
filesRef.current.forEach((file) => {

client/src/javascript/components/modals/feeds-modal/FeedList.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,10 @@ import {observer} from 'mobx-react';
33
import {Trans, useLingui} from '@lingui/react';
44

55
import {Close, Edit} from '@client/ui/icons';
6+
import FeedStore from '@client/stores/FeedStore';
67

78
import type {Feed} from '@shared/types/Feed';
89

9-
import FeedStore from '@client/stores/FeedStore';
10-
1110
interface FeedListProps {
1211
currentFeed: Feed | null;
1312
intervalMultipliers: Readonly<Array<{message: string; value: number}>>;

client/src/javascript/components/modals/feeds-modal/FeedsTab.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,15 +75,15 @@ const FeedsTab: FC = () => {
7575
className="inverse"
7676
onChange={({event, formData}) => {
7777
const validatedField = (event.target as HTMLInputElement).name as ValidatedField;
78-
const feedForm = (formData as unknown) as FeedFormData;
78+
const feedForm = formData as unknown as FeedFormData;
7979

8080
setErrors({
8181
...errors,
8282
[validatedField]: validateField(validatedField, feedForm[validatedField]),
8383
});
8484
}}
8585
onSubmit={async () => {
86-
const feedForm = (formRef.current?.getFormData() as unknown) as FeedFormData;
86+
const feedForm = formRef.current?.getFormData() as unknown as FeedFormData;
8787
if (formRef.current == null || feedForm == null) {
8888
return;
8989
}

client/src/javascript/components/modals/settings-modal/lists/TorrentContextMenuActionsList.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@ import SettingStore from '@client/stores/SettingStore';
44
import ToggleList from '@client/components/general/ToggleList';
55
import TorrentContextMenuActions from '@client/constants/TorrentContextMenuActions';
66

7-
import type {TorrentContextMenuAction} from '@client/constants/TorrentContextMenuActions';
8-
97
import defaultFloodSettings from '@shared/constants/defaultFloodSettings';
108

9+
import type {TorrentContextMenuAction} from '@client/constants/TorrentContextMenuActions';
10+
1111
import type {FloodSettings} from '@shared/types/FloodSettings';
1212

1313
interface TorrentContextMenuActionsListProps {

0 commit comments

Comments
 (0)