mirror of
https://github.com/Radiquum/AniX.git
synced 2025-09-06 06:23:53 +05:00
anix/feat: add popular modal to discovery
This commit is contained in:
parent
28b7ea2d6c
commit
e067336605
4 changed files with 128 additions and 2 deletions
34
app/pages/IndexFilters.ts
Normal file
34
app/pages/IndexFilters.ts
Normal file
|
@ -0,0 +1,34 @@
|
|||
import { 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 },
|
||||
};
|
||||
|
||||
export const slugToFilter = {
|
||||
last: ListLast,
|
||||
ongoing: ListOngoing,
|
||||
announce: ListAnnounce,
|
||||
finished: ListFinished,
|
||||
films: ListFilms,
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue