Upgraded dependencies, bumped to Node 24.
This commit is contained in:
@@ -1,3 +1,32 @@
|
||||
<script setup>
|
||||
import { format } from 'date-fns';
|
||||
import { inject, ref } from 'vue';
|
||||
|
||||
import Heart from '#/components/stashes/heart.vue';
|
||||
|
||||
import getPath from '#/src/get-path.js';
|
||||
|
||||
const props = defineProps({
|
||||
movie: {
|
||||
type: Object,
|
||||
default: null,
|
||||
},
|
||||
showDetails: {
|
||||
type: Boolean,
|
||||
default: true,
|
||||
},
|
||||
});
|
||||
|
||||
const pageContext = inject('pageContext');
|
||||
const user = pageContext.user;
|
||||
const pageStash = pageContext.pageProps.stash;
|
||||
const currentStash = pageStash || pageContext.assets?.primaryStash;
|
||||
|
||||
const currentYear = new Date().getFullYear();
|
||||
|
||||
const favorited = ref(props.movie.stashes?.some((movieStash) => movieStash.id === currentStash?.id));
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<div
|
||||
class="movie-tile"
|
||||
@@ -118,35 +147,6 @@
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script setup>
|
||||
import { ref, inject } from 'vue';
|
||||
import { format } from 'date-fns';
|
||||
|
||||
import getPath from '#/src/get-path.js';
|
||||
|
||||
import Heart from '#/components/stashes/heart.vue';
|
||||
|
||||
const props = defineProps({
|
||||
movie: {
|
||||
type: Object,
|
||||
default: null,
|
||||
},
|
||||
showDetails: {
|
||||
type: Boolean,
|
||||
default: true,
|
||||
},
|
||||
});
|
||||
|
||||
const pageContext = inject('pageContext');
|
||||
const user = pageContext.user;
|
||||
const pageStash = pageContext.pageProps.stash;
|
||||
const currentStash = pageStash || pageContext.assets?.primaryStash;
|
||||
|
||||
const currentYear = new Date().getFullYear();
|
||||
|
||||
const favorited = ref(props.movie.stashes?.some((movieStash) => movieStash.id === currentStash?.id));
|
||||
</script>
|
||||
|
||||
<style scoped>
|
||||
.movie-tile {
|
||||
display: flex;
|
||||
|
||||
Reference in New Issue
Block a user