feat: major rewrite

the application is now rewritten in next.js. this commit also adds the ability to see trailers, did you know, more like this, etc. on title page.

BREAKING CHANGE: the whole application is rewritten from scratch.
This commit is contained in:
zyachel
2022-09-11 19:37:24 +05:30
committed by zyachel
parent 620ddf348a
commit 9891204f5a
129 changed files with 6314 additions and 4671 deletions

View File

@ -0,0 +1,5 @@
export type AppError = {
message: string;
statusCode: number;
stack?: any;
};

View File

@ -0,0 +1,25 @@
import cleanTitle from '../../utils/cleaners/title';
import title from '../../utils/fetchers/title';
export type AxiosTitleRes = Awaited<ReturnType<typeof title>>;
// for full title
type Title = ReturnType<typeof cleanTitle>;
export type { Title as default };
export type Basic = Title['basic'];
export type Media = Title['media'];
export type Cast = Title['cast'];
export type DidYouKnow = Title['didYouKnow'];
export type Info = Pick<
Title,
'meta' | 'accolades' | 'keywords' | 'details' | 'boxOffice' | 'technicalSpecs'
>;
export type Reviews = Title['reviews'];
export type MoreLikeThis = Title['moreLikeThis'];