mirror of
https://github.com/idanoo/autobrr
synced 2025-07-25 09:49:13 +00:00
feat(macros): add IndexerName
(#1511)
* feat(macros): add IndexerName * fix: tests * fix: tests
This commit is contained in:
parent
c43e2c76d6
commit
3c3b47fa10
37 changed files with 310 additions and 235 deletions
|
@ -207,7 +207,7 @@ export const ActivityTable = () => {
|
|||
},
|
||||
{
|
||||
Header: "Indexer",
|
||||
accessor: "indexer",
|
||||
accessor: "indexer.identifier",
|
||||
Cell: DataTable.TitleCell,
|
||||
Filter: SelectColumnFilter,
|
||||
filter: "includes"
|
||||
|
@ -239,7 +239,11 @@ export const ActivityTable = () => {
|
|||
const newData: Release[] = data.data.map((item, index) => ({
|
||||
...item,
|
||||
name: `${randomNames[index]}.iso`,
|
||||
indexer: index % 2 === 0 ? "distrowatch" : "linuxtracker"
|
||||
indexer: {
|
||||
id: 0,
|
||||
name: index % 2 === 0 ? "distrowatch" : "linuxtracker",
|
||||
identifier: index % 2 === 0 ? "distrowatch" : "linuxtracker",
|
||||
},
|
||||
}));
|
||||
setModifiedData(newData);
|
||||
}
|
||||
|
@ -290,7 +294,7 @@ export const ActivityTableContent = () => {
|
|||
},
|
||||
{
|
||||
Header: "Indexer",
|
||||
accessor: "indexer",
|
||||
accessor: "indexer.identifier",
|
||||
Cell: DataTable.TitleCell,
|
||||
Filter: SelectColumnFilter,
|
||||
filter: "includes"
|
||||
|
@ -315,7 +319,11 @@ export const ActivityTableContent = () => {
|
|||
const newData: Release[] = data.data.map((item, index) => ({
|
||||
...item,
|
||||
name: `${randomNames[index]}.iso`,
|
||||
indexer: index % 2 === 0 ? "distrowatch" : "linuxtracker"
|
||||
indexer: {
|
||||
id: 0,
|
||||
name: index % 2 === 0 ? "distrowatch" : "linuxtracker",
|
||||
identifier: index % 2 === 0 ? "distrowatch" : "linuxtracker",
|
||||
},
|
||||
}));
|
||||
setModifiedData(newData);
|
||||
}
|
||||
|
|
|
@ -122,7 +122,7 @@ export const ReleaseTable = () => {
|
|||
},
|
||||
{
|
||||
Header: "Indexer",
|
||||
accessor: "indexer",
|
||||
accessor: "indexer.identifier",
|
||||
Cell: DataTable.IndexerCell,
|
||||
Filter: IndexerSelectColumnFilter,
|
||||
filter: "equal"
|
||||
|
@ -148,7 +148,11 @@ export const ReleaseTable = () => {
|
|||
const newData: Release[] = data.data.map((item, index) => ({
|
||||
...item,
|
||||
name: `${randomNames[index]}.iso`,
|
||||
indexer: index % 2 === 0 ? "distrowatch" : "linuxtracker",
|
||||
indexer: {
|
||||
id: 0,
|
||||
name: index % 2 === 0 ? "distrowatch" : "linuxtracker",
|
||||
identifier: index % 2 === 0 ? "distrowatch" : "linuxtracker",
|
||||
},
|
||||
category: "Linux ISOs",
|
||||
size: index % 2 === 0 ? 4566784529 : (index % 3 === 0 ? 7427019812 : 2312122455),
|
||||
source: "",
|
||||
|
|
|
@ -179,7 +179,7 @@ function ListItem({ feed }: ListItemProps) {
|
|||
<div className="col-span-9 md:col-span-4 pl-10 sm:pl-12 py-3 flex flex-col">
|
||||
<span className="pr-2 dark:text-white truncate">{feed.name}</span>
|
||||
<span className="pr-3 text-xs truncate">
|
||||
{feed.indexer}
|
||||
{feed.indexer.identifier}
|
||||
</span>
|
||||
</div>
|
||||
<div className="hidden md:flex col-span-2 py-3 items-center">
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue