Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Bruno Predot
/
tmdb_test
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Authored by
Bruno Predot
2025-04-24 14:41:39 +0200
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
21e5205ce66052fa722e3aeb971cf3b0b34dd5be
21e5205c
1 parent
7d675c51
Création MovieInterface
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
11 deletions
components/MoviesList.vue
interfaces/movie.ts
components/MoviesList.vue
View file @
21e5205
...
...
@@ -4,22 +4,13 @@ import SearchBar from "~/components/SearchBar.vue";
import { ref } from "vue";
import { useTMDB } from "~/composables/tMDB";
import { Movie } from "~/models/movie";
import type { MovieInterface } from "~/interfaces/movie";
//#endregion
//#region --Declaration--.
const { fetchPopularMovies } = useTMDB();
//#endregion
//#region --Type--.
// interface Movie {
// id: number;
// title: string;
// poster_path: string | null;
// vote_average: number;
// release_date: string;
// }
//#endregion
//#region --Data/refs--.
const isInitialLoading = ref(true);
const isLoadingMore = ref(false);
...
...
@@ -29,7 +20,7 @@ const totalPages = ref(0);
//#region --Computed--.
const movies = computed(() => {
return useRepo(Movie).all();
return useRepo(Movie).all()
as unknown as MovieInterface[]
;
});
//#endregion
...
...
interfaces/movie.ts
0 → 100644
View file @
21e5205
export
interface
MovieInterface
{
id
:
number
;
title
:
string
;
poster_path
:
string
|
null
;
vote_average
:
number
;
release_date
:
string
;
}
\ No newline at end of file
...
...
Please
register
or
login
to post a comment