🔧 Tweaks to TPB utils
This commit is contained in:
@@ -77,7 +77,7 @@ $border-color: red;
|
|||||||
}
|
}
|
||||||
.card-content {
|
.card-content {
|
||||||
.card-title {
|
.card-title {
|
||||||
margin-bottom: 0.2rem;
|
margin-bottom: 0.4rem;
|
||||||
}
|
}
|
||||||
.cv-icon, i {
|
.cv-icon, i {
|
||||||
margin: 4px 4px 4px 0;
|
margin: 4px 4px 4px 0;
|
||||||
|
|||||||
@@ -15,7 +15,7 @@ export const Settings = (props: ISettingsProps): ReactElement => {
|
|||||||
<a>Dashboard</a>
|
<a>Dashboard</a>
|
||||||
</li>
|
</li>
|
||||||
<li>
|
<li>
|
||||||
<a>Customers</a>
|
<a>Global Search</a>
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
<p className="menu-label">Acquisition</p>
|
<p className="menu-label">Acquisition</p>
|
||||||
@@ -38,13 +38,10 @@ export const Settings = (props: ISettingsProps): ReactElement => {
|
|||||||
<p className="menu-label">ComicVine</p>
|
<p className="menu-label">ComicVine</p>
|
||||||
<ul className="menu-list">
|
<ul className="menu-list">
|
||||||
<li>
|
<li>
|
||||||
<a>Payments</a>
|
<a>API</a>
|
||||||
</li>
|
</li>
|
||||||
<li>
|
<li>
|
||||||
<a>Transfers</a>
|
<a>Configuration</a>
|
||||||
</li>
|
|
||||||
<li>
|
|
||||||
<a>Balance</a>
|
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
</aside>
|
</aside>
|
||||||
|
|||||||
@@ -39,7 +39,6 @@ function airdcppReducer(state = initialState, action) {
|
|||||||
searchInstance: action.instance,
|
searchInstance: action.instance,
|
||||||
};
|
};
|
||||||
case AIRDCPP_RESULT_DOWNLOAD_INITIATED:
|
case AIRDCPP_RESULT_DOWNLOAD_INITIATED:
|
||||||
console.log(action)
|
|
||||||
return {
|
return {
|
||||||
...state,
|
...state,
|
||||||
downloadResult: action.downloadResult,
|
downloadResult: action.downloadResult,
|
||||||
|
|||||||
@@ -1,10 +1,11 @@
|
|||||||
import { compact, isNil } from "lodash";
|
import { compact } from "lodash";
|
||||||
|
|
||||||
export const detectTradePaperbacks = (deck): any => {
|
export const detectTradePaperbacks = (deck): any => {
|
||||||
const paperback = [
|
const paperback = [
|
||||||
/((trade)?\s?(paperback)|(tpb))/gim, // https://regex101.com/r/FhuowT/1
|
/((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
|
/(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
|
/(collected\s?editions)/gim, // https://regex101.com/r/40pAm5/1
|
||||||
|
/(?:collects|issues|issue)/gim,
|
||||||
];
|
];
|
||||||
const matches = paperback
|
const matches = paperback
|
||||||
.map((regex) => {
|
.map((regex) => {
|
||||||
|
|||||||
Reference in New Issue
Block a user