From 0e085f6f0691db6b4aafe44b2259e5643f1681ef Mon Sep 17 00:00:00 2001 From: Rishi Ghan Date: Fri, 10 Sep 2021 00:15:12 -0700 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=A7=20Tweaks=20to=20TPB=20utils?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/client/assets/scss/App.scss | 2 +- src/client/components/Settings.tsx | 9 +++------ src/client/reducers/airdcpp.reducer.ts | 1 - src/client/shared/utils/tradepaperback.utils.ts | 3 ++- 4 files changed, 6 insertions(+), 9 deletions(-) diff --git a/src/client/assets/scss/App.scss b/src/client/assets/scss/App.scss index c746186..b4f96bb 100644 --- a/src/client/assets/scss/App.scss +++ b/src/client/assets/scss/App.scss @@ -77,7 +77,7 @@ $border-color: red; } .card-content { .card-title { - margin-bottom: 0.2rem; + margin-bottom: 0.4rem; } .cv-icon, i { margin: 4px 4px 4px 0; diff --git a/src/client/components/Settings.tsx b/src/client/components/Settings.tsx index b824010..fec4c1c 100644 --- a/src/client/components/Settings.tsx +++ b/src/client/components/Settings.tsx @@ -15,7 +15,7 @@ export const Settings = (props: ISettingsProps): ReactElement => { Dashboard
  • - Customers + Global Search
  • Acquisition

    @@ -38,13 +38,10 @@ export const Settings = (props: ISettingsProps): ReactElement => {

    ComicVine

    diff --git a/src/client/reducers/airdcpp.reducer.ts b/src/client/reducers/airdcpp.reducer.ts index 151d91f..a7c245b 100644 --- a/src/client/reducers/airdcpp.reducer.ts +++ b/src/client/reducers/airdcpp.reducer.ts @@ -39,7 +39,6 @@ function airdcppReducer(state = initialState, action) { searchInstance: action.instance, }; case AIRDCPP_RESULT_DOWNLOAD_INITIATED: - console.log(action) return { ...state, downloadResult: action.downloadResult, diff --git a/src/client/shared/utils/tradepaperback.utils.ts b/src/client/shared/utils/tradepaperback.utils.ts index 7ac3103..ee7aa54 100644 --- a/src/client/shared/utils/tradepaperback.utils.ts +++ b/src/client/shared/utils/tradepaperback.utils.ts @@ -1,10 +1,11 @@ -import { compact, isNil } from "lodash"; +import { compact } from "lodash"; export const detectTradePaperbacks = (deck): any => { const paperback = [ /((trade)?\s?(paperback)|(tpb))/gim, // https://regex101.com/r/FhuowT/1 /(hard\s?cover)\s?(collect((ion)|(ed)|(ing)))/gim, //https://regex101.com/r/eFJVRM/1 /(collected\s?editions)/gim, // https://regex101.com/r/40pAm5/1 + /(?:collects|issues|issue)/gim, ]; const matches = paperback .map((regex) => {