diff --git a/src/components/Config/LoadConfig.tsx b/src/components/Config/LoadConfig.tsx
index e653a19ba..0f40c62ff 100644
--- a/src/components/Config/LoadConfig.tsx
+++ b/src/components/Config/LoadConfig.tsx
@@ -36,7 +36,9 @@ export const LoadConfigComponent = () => {
let newConfig: ConfigType = JSON.parse(fileText);
if (!newConfig.schemaVersion) {
- console.warn('a legacy configuration schema was deteced and migrated to the current schema');
+ console.warn(
+ 'a legacy configuration schema was deteced and migrated to the current schema'
+ );
const oldConfig = JSON.parse(fileText) as Config;
newConfig = migrateConfig(oldConfig);
}
diff --git a/src/components/Dashboard/Modals/EditAppModal/Tabs/IntegrationTab/Components/InputElements/GenericSecretInput.tsx b/src/components/Dashboard/Modals/EditAppModal/Tabs/IntegrationTab/Components/InputElements/GenericSecretInput.tsx
index a1627ceff..ad8cca248 100644
--- a/src/components/Dashboard/Modals/EditAppModal/Tabs/IntegrationTab/Components/InputElements/GenericSecretInput.tsx
+++ b/src/components/Dashboard/Modals/EditAppModal/Tabs/IntegrationTab/Components/InputElements/GenericSecretInput.tsx
@@ -13,7 +13,7 @@ import {
Badge,
Tooltip,
} from '@mantine/core';
-import { IconLock, TablerIcon } from '@tabler/icons';
+import { TablerIcon } from '@tabler/icons';
import { useTranslation } from 'next-i18next';
import { useState } from 'react';
import { AppIntegrationPropertyAccessabilityType } from '../../../../../../../../types/app';
@@ -76,7 +76,7 @@ export const GenericSecretInput = ({
withArrow
>
- {t('integration.type.private')}
+ {t('integration.type.private')}
) : (
@@ -88,7 +88,7 @@ export const GenericSecretInput = ({
withArrow
>
- {t('integration.type.public')}
+ {t('integration.type.public')}
)}
diff --git a/src/components/Dashboard/Wrappers/gridstack/init-gridstack.ts b/src/components/Dashboard/Wrappers/gridstack/init-gridstack.ts
index aa3bb769f..ba8d2d413 100644
--- a/src/components/Dashboard/Wrappers/gridstack/init-gridstack.ts
+++ b/src/components/Dashboard/Wrappers/gridstack/init-gridstack.ts
@@ -20,7 +20,8 @@ export const initializeGridstack = (
) => {
if (!wrapperRef.current) return;
// calculates the currently available count of columns
- const columnCount = areaType === 'sidebar' ? 1 : isLargerThanSm || typeof isLargerThanSm === 'undefined' ? 12 : 6;
+ const columnCount =
+ areaType === 'sidebar' ? 1 : isLargerThanSm || typeof isLargerThanSm === 'undefined' ? 12 : 6;
const minRow = areaType !== 'sidebar' ? 1 : Math.floor(wrapperRef.current.offsetHeight / 64);
// initialize gridstack
const newGrid = gridRef;
diff --git a/src/components/Settings/Common/CommonSettings.tsx b/src/components/Settings/Common/CommonSettings.tsx
index 438644e30..e404bd9bb 100644
--- a/src/components/Settings/Common/CommonSettings.tsx
+++ b/src/components/Settings/Common/CommonSettings.tsx
@@ -1,5 +1,5 @@
import { ScrollArea, Space, Stack, Text } from '@mantine/core';
-import { useElementSize, useViewportSize } from '@mantine/hooks';
+import { useViewportSize } from '@mantine/hooks';
import { useConfigContext } from '../../../config/provider';
import ConfigChanger from '../../Config/ConfigChanger';
import ConfigActions from './Config/ConfigActions';
diff --git a/src/components/Settings/Common/Credits.tsx b/src/components/Settings/Common/Credits.tsx
index 704fa2fc9..9a1fac1a4 100644
--- a/src/components/Settings/Common/Credits.tsx
+++ b/src/components/Settings/Common/Credits.tsx
@@ -1,9 +1,6 @@
-import { Group, ActionIcon, Anchor, Text } from '@mantine/core';
-import { IconBrandDiscord, IconBrandGithub } from '@tabler/icons';
+import { Group, Anchor, Text } from '@mantine/core';
import { useTranslation } from 'next-i18next';
-import { CURRENT_VERSION } from '../../../../data/constants';
-
export default function Credits() {
const { t } = useTranslation('settings/common');
@@ -22,8 +19,8 @@ export default function Credits() {
style={{ color: 'inherit', fontStyle: 'inherit', fontSize: 'inherit' }}
>
ajnart
-
- {' '}and you !
+ {' '}
+ and you !
);
diff --git a/src/components/Settings/Customization/CustomizationSettings.tsx b/src/components/Settings/Customization/CustomizationSettings.tsx
index bc95fc785..8265ac4a6 100644
--- a/src/components/Settings/Customization/CustomizationSettings.tsx
+++ b/src/components/Settings/Customization/CustomizationSettings.tsx
@@ -1,4 +1,4 @@
-import { Button, ScrollArea, Stack } from '@mantine/core';
+import { ScrollArea, Stack } from '@mantine/core';
import { useViewportSize } from '@mantine/hooks';
import { useTranslation } from 'next-i18next';
import { useConfigContext } from '../../../config/provider';
diff --git a/src/components/Settings/SettingsDrawer.tsx b/src/components/Settings/SettingsDrawer.tsx
index c1eea6857..ab8a792b7 100644
--- a/src/components/Settings/SettingsDrawer.tsx
+++ b/src/components/Settings/SettingsDrawer.tsx
@@ -1,4 +1,4 @@
-import { Drawer, ScrollArea, Tabs, Title } from '@mantine/core';
+import { Drawer, Tabs, Title } from '@mantine/core';
import { useTranslation } from 'next-i18next';
import { useConfigContext } from '../../config/provider';
import { useConfigStore } from '../../config/store';
diff --git a/src/config/store.ts b/src/config/store.ts
index 0839aee60..9f2fc9633 100644
--- a/src/config/store.ts
+++ b/src/config/store.ts
@@ -70,7 +70,7 @@ interface UseConfigStoreType {
addConfig: (
name: string,
config: ConfigType,
- shouldSaveConfigToFileSystem: boolean,
+ shouldSaveConfigToFileSystem: boolean
) => Promise;
updateConfig: (
name: string,
diff --git a/src/hooks/widgets/dashDot/api.ts b/src/hooks/widgets/dashDot/api.ts
index 6e8496c85..4032469e5 100644
--- a/src/hooks/widgets/dashDot/api.ts
+++ b/src/hooks/widgets/dashDot/api.ts
@@ -1,7 +1,10 @@
import { useMutation, useQuery } from '@tanstack/react-query';
import axios from 'axios';
import { Results } from 'sabnzbd-api';
-import { UsenetQueueRequestParams, UsenetQueueResponse } from '../../../pages/api/modules/usenet/queue';
+import {
+ UsenetQueueRequestParams,
+ UsenetQueueResponse,
+} from '../../../pages/api/modules/usenet/queue';
import {
UsenetHistoryRequestParams,
UsenetHistoryResponse,
diff --git a/src/pages/api/modules/torrents.ts b/src/pages/api/modules/torrents.ts
index f47a80191..81600cace 100644
--- a/src/pages/api/modules/torrents.ts
+++ b/src/pages/api/modules/torrents.ts
@@ -40,7 +40,8 @@ async function Post(req: NextApiRequest, res: NextApiResponse) {
);
await Promise.all(
delugeApp.map((app) => {
- const password = app.integration?.properties.find((x) => x.field === 'password')?.value ?? undefined;
+ const password =
+ app.integration?.properties.find((x) => x.field === 'password')?.value ?? undefined;
const test = new Deluge({
baseUrl: app.url,
password,
diff --git a/src/widgets/WidgetWrapper.tsx b/src/widgets/WidgetWrapper.tsx
index c321cbc12..da0837307 100644
--- a/src/widgets/WidgetWrapper.tsx
+++ b/src/widgets/WidgetWrapper.tsx
@@ -11,8 +11,8 @@ interface WidgetWrapperProps {
}
export const WidgetWrapper = ({ widgetId, widget, className, children }: WidgetWrapperProps) => (
-
-
- {children}
-
- );
+
+
+ {children}
+
+);
diff --git a/src/widgets/helper.ts b/src/widgets/helper.ts
index 1344584bb..238fd88a4 100644
--- a/src/widgets/helper.ts
+++ b/src/widgets/helper.ts
@@ -5,6 +5,4 @@ import { IWidgetDefinition } from './widgets';
// The options of IWidgetDefinition are so heavily typed that it even used 'true' as type
export const defineWidget = >(
options: TOptions
-) => {
- return options;
-};
+) => options;