Skip to content

Commit

Permalink
New: Option to override release and grab
Browse files Browse the repository at this point in the history
(cherry picked from commit 07f0fbf9a51d54e44681fd0f74df4e048bff561a)
  • Loading branch information
markus101 authored and mynameisbogdan committed Feb 11, 2024
1 parent 6c90ac7 commit 94e3620
Show file tree
Hide file tree
Showing 48 changed files with 2,325 additions and 295 deletions.
3 changes: 2 additions & 1 deletion frontend/.eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,8 @@ module.exports = {
globals: {
expect: false,
chai: false,
sinon: false
sinon: false,
JSX: true
},

parserOptions: {
Expand Down
4 changes: 4 additions & 0 deletions frontend/src/Components/Table/VirtualTableRowButton.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
.row {
composes: link from '~Components/Link/Link.css';
composes: row from '~./VirtualTableRow.css';
}
7 changes: 7 additions & 0 deletions frontend/src/Components/Table/VirtualTableRowButton.css.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
// This file is automatically generated.
// Please do not change this file!
interface CssExports {
'row': string;
}
export const cssExports: CssExports;
export default cssExports;
16 changes: 16 additions & 0 deletions frontend/src/Components/Table/VirtualTableRowButton.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
import React from 'react';
import Link from 'Components/Link/Link';
import VirtualTableRow from './VirtualTableRow';
import styles from './VirtualTableRowButton.css';

function VirtualTableRowButton(props) {
return (
<Link
className={styles.row}
component={VirtualTableRow}
{...props}
/>
);
}

export default VirtualTableRowButton;
7 changes: 7 additions & 0 deletions frontend/src/DownloadClient/DownloadProtocol.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
enum DownloadProtocol {
Unknown = 'unknown',
Usenet = 'usenet',
Torrent = 'torrent',
}

export default DownloadProtocol;
2 changes: 2 additions & 0 deletions frontend/src/Helpers/Props/icons.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ import {
faChevronCircleRight as fasChevronCircleRight,
faChevronCircleUp as fasChevronCircleUp,
faCircle as fasCircle,
faCircleDown as fasCircleDown,
faCloud as fasCloud,
faCloudDownloadAlt as fasCloudDownloadAlt,
faCog as fasCog,
Expand Down Expand Up @@ -134,6 +135,7 @@ export const CHECK_INDETERMINATE = fasMinus;
export const CHECK_CIRCLE = fasCheckCircle;
export const CHECK_SQUARE = fasSquareCheck;
export const CIRCLE = fasCircle;
export const CIRCLE_DOWN = fasCircleDown;
export const CIRCLE_OUTLINE = farCircle;
export const CLEAR = fasTrashAlt;
export const CLIPBOARD = fasCopy;
Expand Down
46 changes: 41 additions & 5 deletions frontend/src/InteractiveSearch/InteractiveSearchRow.css
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,10 @@
width: 80px;
}

.title {
composes: cell from '~Components/Table/Cells/TableRowCell.css';

.titleContent {
display: flex;
align-items: center;
justify-content: space-between;
word-break: break-all;
}

Expand Down Expand Up @@ -34,8 +35,7 @@
cursor: default;
}

.rejected,
.download {
.rejected {
composes: cell from '~Components/Table/Cells/TableRowCell.css';

width: 50px;
Expand All @@ -53,3 +53,39 @@

width: 75px;
}

.download {
composes: cell from '~Components/Table/Cells/TableRowCell.css';

width: 80px;
}

.manualDownloadContent {
position: relative;
display: inline-block;
margin: 0 2px;
width: 22px;
height: 20.39px;
vertical-align: middle;
line-height: 20.39px;

&:hover {
color: var(--iconButtonHoverColor);
}
}

.interactiveIcon {
position: absolute;
top: 4px;
left: 0;
/* width: 100%; */
text-align: center;
}

.downloadIcon {
position: absolute;
top: 7px;
left: 8px;
/* width: 100%; */
text-align: center;
}
5 changes: 4 additions & 1 deletion frontend/src/InteractiveSearch/InteractiveSearchRow.css.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,16 @@ interface CssExports {
'age': string;
'customFormatScore': string;
'download': string;
'downloadIcon': string;
'indexer': string;
'interactiveIcon': string;
'manualDownloadContent': string;
'peers': string;
'protocol': string;
'quality': string;
'rejected': string;
'size': string;
'title': string;
'titleContent': string;
}
export const cssExports: CssExports;
export default cssExports;

0 comments on commit 94e3620

Please sign in to comment.