From dfdb8678b728e1ac5a5ff5aa539bd0d7c23d757b Mon Sep 17 00:00:00 2001 From: Thomas Camlong Date: Sat, 12 Nov 2022 08:12:54 +0900 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=A7=20fix=20lint=20errors=20and=20bumb?= =?UTF-8?q?=20version?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- data/constants.ts | 2 +- package.json | 2 +- src/components/AppShelf/AddAppShelfItem.tsx | 4 ++- src/components/AppShelf/AppShelf.tsx | 13 ++------- .../SearchNewTabSwitch/SearchNewTabSwitch.tsx | 6 +--- src/components/Settings/AdvancedSettings.tsx | 8 +++--- src/components/layout/Layout.tsx | 4 +-- src/middleware.ts | 18 +++++------- src/modules/ModuleTypes.d.ts | 2 +- src/modules/calendar/CalendarModule.tsx | 6 ++-- src/modules/dashdot/DashdotModule.tsx | 2 +- src/modules/docker/DockerTable.tsx | 10 +------ src/modules/search/SearchModule.tsx | 14 ++++++++-- src/pages/api/modules/usenet/history.ts | 2 +- src/pages/api/modules/usenet/index.ts | 2 +- .../modules/usenet/nzbget/nzbget-client.ts | 26 ++++++++--------- src/pages/api/modules/usenet/nzbget/types.ts | 28 ++++++++++++++----- src/pages/api/modules/usenet/queue.ts | 6 ++-- src/pages/login.tsx | 4 +-- src/tools/translation-namespaces.ts | 4 +-- src/tools/types.ts | 6 ++-- 21 files changed, 82 insertions(+), 87 deletions(-) diff --git a/data/constants.ts b/data/constants.ts index 5cd84638c..6d9a0a462 100644 --- a/data/constants.ts +++ b/data/constants.ts @@ -1,2 +1,2 @@ export const REPO_URL = 'ajnart/homarr'; -export const CURRENT_VERSION = 'v0.10.3'; +export const CURRENT_VERSION = 'v0.10.4'; diff --git a/package.json b/package.json index 650453385..5f5ef0f17 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "homarr", - "version": "0.10.3", + "version": "0.10.4", "description": "Homarr - A homepage for your server.", "license": "MIT", "repository": { diff --git a/src/components/AppShelf/AddAppShelfItem.tsx b/src/components/AppShelf/AddAppShelfItem.tsx index 046955740..01dd3da81 100644 --- a/src/components/AppShelf/AddAppShelfItem.tsx +++ b/src/components/AppShelf/AddAppShelfItem.tsx @@ -308,7 +308,9 @@ export function AddAppShelfItemForm(props: AddAppShelfItemFormProps) { target="_blank" weight="bold" style={{ fontStyle: 'inherit', fontSize: 'inherit' }} - href={`${hostname}/${apiKeyPaths[form.values.type as keyof typeof apiKeyPaths]}`} + href={`${hostname}/${ + apiKeyPaths[form.values.type as keyof typeof apiKeyPaths] + }`} > {t('modal.tabs.options.form.integrations.apiKey.tip.link')} diff --git a/src/components/AppShelf/AppShelf.tsx b/src/components/AppShelf/AppShelf.tsx index 114d98ec4..85a204f0c 100644 --- a/src/components/AppShelf/AppShelf.tsx +++ b/src/components/AppShelf/AppShelf.tsx @@ -1,14 +1,5 @@ import React, { useState } from 'react'; -import { - Accordion, - Divider, - Grid, - Paper, - Stack, - Text, - Title, - useMantineColorScheme, -} from '@mantine/core'; +import { Accordion, Grid, Paper, Stack, Text, useMantineColorScheme } from '@mantine/core'; import { closestCenter, DndContext, @@ -202,7 +193,7 @@ const AppShelf = (props: any) => { {t('accordions.downloads.text')} - {torrentEnabled && ( + {torrentEnabled && ( <> {t('accordions.downloads.torrents')} diff --git a/src/components/SearchNewTabSwitch/SearchNewTabSwitch.tsx b/src/components/SearchNewTabSwitch/SearchNewTabSwitch.tsx index ca759f411..00ebb88f4 100644 --- a/src/components/SearchNewTabSwitch/SearchNewTabSwitch.tsx +++ b/src/components/SearchNewTabSwitch/SearchNewTabSwitch.tsx @@ -49,11 +49,7 @@ export function SearchNewTabSwitch() { return (
- toggleOpenInNewTab()} - size="md" - /> + toggleOpenInNewTab()} size="md" />
{t('searchNewTab.label')}
diff --git a/src/components/Settings/AdvancedSettings.tsx b/src/components/Settings/AdvancedSettings.tsx index d560c0dbf..a3b54cd77 100644 --- a/src/components/Settings/AdvancedSettings.tsx +++ b/src/components/Settings/AdvancedSettings.tsx @@ -47,22 +47,22 @@ export default function TitleChanger() {