implemented individual list functionality
This commit is contained in:
parent
3373380f34
commit
c5f74f134d
24 changed files with 592 additions and 109 deletions
|
|
@ -1,9 +0,0 @@
|
|||
import {type ListSettings} from "~/types/list-settings";
|
||||
|
||||
export type List = {
|
||||
id: number,
|
||||
name: string
|
||||
isPublic: boolean
|
||||
listSettings: ListSettings
|
||||
}
|
||||
|
||||
5
app/types/movie-critic-score.ts
Normal file
5
app/types/movie-critic-score.ts
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
export type MovieCriticScore = {
|
||||
Source: string
|
||||
Value: string
|
||||
}
|
||||
|
||||
|
|
@ -1,7 +1,7 @@
|
|||
import type {Collaborator} from "~/types/collaborator";
|
||||
import type {Role} from "~/types/role";
|
||||
|
||||
export type ListSettings = {
|
||||
export type MovieListSettings = {
|
||||
listName: string,
|
||||
isPublic: boolean,
|
||||
collaborators: Collaborator[],
|
||||
11
app/types/movie-list.ts
Normal file
11
app/types/movie-list.ts
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
import {type MovieListSettings} from "~/types/movie-list-settings";
|
||||
import type {Movie} from "~/types/movie";
|
||||
|
||||
export type MovieList = {
|
||||
id: number,
|
||||
name: string
|
||||
is_public: boolean
|
||||
movieListSettings: MovieListSettings
|
||||
movies: Movie[]
|
||||
}
|
||||
|
||||
8
app/types/movie-search-results.ts
Normal file
8
app/types/movie-search-results.ts
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
export type MovieSearchResult = {
|
||||
title: string
|
||||
year: number
|
||||
imdbId: string
|
||||
type: string
|
||||
poster: string
|
||||
}
|
||||
|
||||
|
|
@ -1,6 +1,7 @@
|
|||
export type Movie = {
|
||||
id: number,
|
||||
title: string
|
||||
year: number
|
||||
imdb_id: string
|
||||
director: string
|
||||
actors: string
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue