forked from nihonium/nyanimedb
feat: /titles page implementation with cursor pagination
This commit is contained in:
parent
a515769823
commit
397d2bcf70
37 changed files with 797 additions and 1247 deletions
9
modules/frontend/src/api/models/CursorObj.ts
Normal file
9
modules/frontend/src/api/models/CursorObj.ts
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
/* generated using openapi-typescript-codegen -- do not edit */
|
||||
/* istanbul ignore file */
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
export type CursorObj = {
|
||||
id: number;
|
||||
param?: string;
|
||||
};
|
||||
|
||||
|
|
@ -5,9 +5,4 @@
|
|||
/**
|
||||
* Title release season
|
||||
*/
|
||||
export enum ReleaseSeason {
|
||||
WINTER = 'winter',
|
||||
SPRING = 'spring',
|
||||
SUMMER = 'summer',
|
||||
FALL = 'fall',
|
||||
}
|
||||
export type ReleaseSeason = 'winter' | 'spring' | 'summer' | 'fall';
|
||||
|
|
|
|||
8
modules/frontend/src/api/models/TitleSort.ts
Normal file
8
modules/frontend/src/api/models/TitleSort.ts
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
/* generated using openapi-typescript-codegen -- do not edit */
|
||||
/* istanbul ignore file */
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
/**
|
||||
* Title sort order
|
||||
*/
|
||||
export type TitleSort = 'id' | 'year' | 'rating' | 'views';
|
||||
|
|
@ -5,8 +5,4 @@
|
|||
/**
|
||||
* Title status
|
||||
*/
|
||||
export enum TitleStatus {
|
||||
FINISHED = 'finished',
|
||||
ONGOING = 'ongoing',
|
||||
PLANNED = 'planned',
|
||||
}
|
||||
export type TitleStatus = 'finished' | 'ongoing' | 'planned';
|
||||
|
|
|
|||
|
|
@ -6,11 +6,11 @@ export type User = {
|
|||
/**
|
||||
* Unique user ID (primary key)
|
||||
*/
|
||||
id: number;
|
||||
id?: number;
|
||||
/**
|
||||
* ID of the user avatar (references images table)
|
||||
*/
|
||||
avatar_id?: number | null;
|
||||
avatar_id?: number;
|
||||
/**
|
||||
* User email
|
||||
*/
|
||||
|
|
|
|||
|
|
@ -5,9 +5,4 @@
|
|||
/**
|
||||
* User's title status
|
||||
*/
|
||||
export enum UserTitleStatus {
|
||||
FINISHED = 'finished',
|
||||
PLANNED = 'planned',
|
||||
DROPPED = 'dropped',
|
||||
IN_PROGRESS = 'in-progress',
|
||||
}
|
||||
export type UserTitleStatus = 'finished' | 'planned' | 'dropped' | 'in-progress';
|
||||
|
|
|
|||
6
modules/frontend/src/api/models/title_sort.ts
Normal file
6
modules/frontend/src/api/models/title_sort.ts
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
/* generated using openapi-typescript-codegen -- do not edit */
|
||||
/* istanbul ignore file */
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
import type { TitleSort } from './TitleSort';
|
||||
export type title_sort = TitleSort;
|
||||
Loading…
Add table
Add a link
Reference in a new issue