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-05-20 18:29:37 +0200
Browse Files
Options
Browse Files
Download
Plain Diff
Commit
73dd53ab26ac74aac79a6a89bb10d63607b30ed5
73dd53ab
2 parents
a3c3e85d
04951f5b
Merge branch 'hotfix/0.5.3'
Hide whitespace changes
Inline
Side-by-side
Showing
12 changed files
with
25 additions
and
22 deletions
CHANGELOG.md
components/MovieCard.vue
components/MovieCommentList.vue
components/MoviesList.vue
components/form/MovieCommentForm.vue
components/ui-components/Poster.vue
components/ui-components/SearchBar.vue
components/ui-components/TinyMceFieldEditor.vue
package-lock.json
package.json
pages/movies/[id]/index.vue
type/commentForm.ts
CHANGELOG.md
View file @
73dd53a
0.
5.3:
-
Correctif pour uniformisation du casing des template.
0.
5.2:
-
Correctif erreur nommage composant.
-
Changement de nom plus explicite pour interface.
...
...
components/MovieCard.vue
View file @
73dd53a
...
...
@@ -2,7 +2,7 @@
import type { MovieInterface } from "~/interfaces/movie";
// #region --Props--.
import { useDateFormat } from "@vueuse/core";
import { FilmIcon } from "lucide-vue-next";
import { FilmIcon
as film
} from "lucide-vue-next";
// #endregion
// #region --Props--.
...
...
@@ -29,7 +29,7 @@ defineProps<{
v-else
class="absolute inset-0 w-full h-full bg-gray-700 flex items-center justify-center"
>
<
FilmIcon
<
film
:size="48"
class="text-gray-500"
/>
...
...
components/MovieCommentList.vue
View file @
73dd53a
<script lang="ts" setup>
// #region --Import--.
import type { MovieCommentInterface } from "~/interfaces/movieComment";
import { MessageSquareIcon } from "lucide-vue-next";
import { MessageSquareIcon
as message
} from "lucide-vue-next";
// #endregion
// #region --Props--.
...
...
@@ -68,7 +68,7 @@ watch(
v-else
class="text-center py-8 bg-gray-800 rounded-lg mt-10"
>
<
MessageSquareIcon
<
message
:size="48"
class="mx-auto mb-3 text-gray-600"
/>
...
...
components/MoviesList.vue
View file @
73dd53a
<script lang="ts" setup>
import type { MovieInterface } from "~/interfaces/movie";
import { SearchXIcon } from "lucide-vue-next";
import { SearchXIcon
as searchx
} from "lucide-vue-next";
// #region --import--.
import { onBeforeUnmount, ref } from "vue";
import { useTMDB } from "~/composables/tMDB";
...
...
@@ -164,7 +164,7 @@ onBeforeUnmount(() => {
v-else-if="searchQuery && !movies.length"
class="text-center py-12"
>
<
SearchXIcon
<
searchx
:size="64"
class="mx-auto mb-4 text-gray-600"
/>
...
...
components/form/MovieCommentForm.vue
View file @
73dd53a
...
...
@@ -23,7 +23,7 @@ const emit = defineEmits<{
const initialState: Comment = {
username: "",
message: "",
rating:
5
,
rating:
"5"
,
};
// Validation rules
...
...
@@ -85,7 +85,7 @@ function handleMessageEvent(event: string) {
<template>
<section>
<
VF
orm>
<
v-f
orm>
<v-text-field
v-model="formData.username"
:error-messages="v$.username.$errors.map((e) => e.$message) as readonly string[]"
...
...
@@ -137,7 +137,7 @@ function handleMessageEvent(event: string) {
>
effacer
</v-btn>
</
VF
orm>
</
v-f
orm>
</section>
</template>
...
...
components/ui-components/Poster.vue
View file @
73dd53a
<script setup lang="ts">
// #region --Props--.
import { FilmIcon } from "lucide-vue-next";
import { FilmIcon
as film
} from "lucide-vue-next";
defineProps<{
src: string;
...
...
@@ -22,7 +22,7 @@ defineProps<{
v-else
class="aspect-[2/3] bg-gray-700 flex items-center justify-center"
>
<
FilmIcon
<
film
:size="64"
class="text-gray-500"
/>
...
...
components/ui-components/SearchBar.vue
View file @
73dd53a
<script lang="ts" setup>
import { useDebounceFn } from "@vueuse/core";
// #region --import--.
import { SearchIcon
, XI
con } from "lucide-vue-next";
import { SearchIcon
as search, XIcon as xi
con } from "lucide-vue-next";
import { ref } from "vue";
// #endregion
...
...
@@ -55,13 +55,13 @@ function handleClearSearchEvent() {
class="absolute right-3 top-1/2 transform -translate-y-1/2 text-gray-400 hover:text-white"
@click="handleClearSearchEvent"
>
<
XI
con :size="20" />
<
xi
con :size="20" />
</button>
<button
v-else
class="absolute right-3 top-1/2 transform -translate-y-1/2 text-gray-400"
>
<
SearchIcon
:size="20" />
<
search
:size="20" />
</button>
</div>
</section>
...
...
components/ui-components/TinyMceFieldEditor.vue
View file @
73dd53a
<script lang="ts" setup>
// #region --Import--.
import
E
ditor from "@tinymce/tinymce-vue";
import
e
ditor from "@tinymce/tinymce-vue";
import { ref, watch } from "vue";
// #endregion
...
...
@@ -77,7 +77,7 @@ watch(
<template>
<div>
<
E
ditor
<
e
ditor
v-model="content"
:api-key="runtimeConfig.public.apiTinyMceSecret"
:init="init"
...
...
package-lock.json
View file @
73dd53a
{
"name"
:
"nuxt-app"
,
"version"
:
"0.5.
2
"
,
"version"
:
"0.5.
3
"
,
"lockfileVersion"
:
3
,
"requires"
:
true
,
"packages"
:
{
...
...
package.json
View file @
73dd53a
{
"name"
:
"nuxt-app"
,
"version"
:
"0.5.
2
"
,
"version"
:
"0.5.
3
"
,
"private"
:
true
,
"type"
:
"module"
,
"scripts"
:
{
...
...
pages/movies/[id]/index.vue
View file @
73dd53a
...
...
@@ -4,7 +4,7 @@ import type { CreditsResponse } from "~/interfaces/credit";
import type { MovieInterface } from "~/interfaces/movie";
import type { MovieCommentInterface } from "~/interfaces/movieComment";
// #region --import--.
import { AlertTriangleIcon
, ArrowLeftIcon
} from "lucide-vue-next";
import { AlertTriangleIcon
as triangle, ArrowLeftIcon as arrowleft
} from "lucide-vue-next";
import { computed, onMounted, ref } from "vue";
import { useTMDB } from "~/composables/tMDB";
import { Credit } from "~/models/credit";
...
...
@@ -159,7 +159,7 @@ onMounted(() => {
class="flex items-center text-gray-400 hover:text-white mb-8 transition-colors"
@click="navigateTo('/')"
>
<
ArrowLeftIcon
<
arrowleft
:size="20"
class="mr-2"
/>
...
...
@@ -248,7 +248,7 @@ onMounted(() => {
v-else
class="container mx-auto px-4 py-16 text-center"
>
<
AlertTriangleIcon
<
triangle
:size="64"
class="mx-auto mb-4 text-red-500"
/>
...
...
type/commentForm.ts
View file @
73dd53a
export
interface
Comment
{
username
:
string
;
message
:
string
;
rating
:
number
;
rating
:
string
;
}
...
...
Please
register
or
login
to post a comment