mirror of
https://github.com/Radiquum/AniX.git
synced 2025-09-06 06:23:53 +05:00
anix/refactor: change Filter Fetch Function
This commit is contained in:
parent
56334893b4
commit
fd0ce8cb94
5 changed files with 536 additions and 73 deletions
26
app/pages/IndexFilters.tsx
Normal file
26
app/pages/IndexFilters.tsx
Normal file
|
@ -0,0 +1,26 @@
|
|||
import { Filter, FilterDefault } from "#/api/utils";
|
||||
|
||||
export const ListLast = {
|
||||
name: "Последнее",
|
||||
filter: FilterDefault,
|
||||
};
|
||||
|
||||
export const ListOngoing = {
|
||||
name: "Онгоинги",
|
||||
filter: { ...FilterDefault, status_id: 2 },
|
||||
};
|
||||
|
||||
export const ListAnnounce = {
|
||||
name: "Анонсы",
|
||||
filter: { ...FilterDefault, status_id: 3 },
|
||||
};
|
||||
|
||||
export const ListFinished = {
|
||||
name: "Завершённые",
|
||||
filter: { ...FilterDefault, status_id: 1 },
|
||||
};
|
||||
|
||||
export const ListFilms = {
|
||||
name: "Фильмы",
|
||||
filter: { ...FilterDefault, category_id: 2, status_id: null },
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue