Compare commits
No commits in common. "e80b210c227e237bf97555447e2e70c43669c0a8" and "af44880f59f7fc2823393ce21ce41e12f16dfdfb" have entirely different histories.
e80b210c22
...
af44880f59
4 changed files with 69 additions and 124 deletions
|
@ -1,46 +0,0 @@
|
||||||
<script lang="ts" setup>
|
|
||||||
//const props = defineProps(['show']);
|
|
||||||
const showScroll = ref(false);
|
|
||||||
const updateScrollPosition = () => {
|
|
||||||
showScroll.value = document.documentElement.scrollTop > 1500;
|
|
||||||
};
|
|
||||||
const scrollToTop = () => {
|
|
||||||
window.scrollTo({
|
|
||||||
top: 0,
|
|
||||||
behavior: "smooth",
|
|
||||||
});
|
|
||||||
};
|
|
||||||
|
|
||||||
onMounted(() => {
|
|
||||||
window.addEventListener("scroll", updateScrollPosition);
|
|
||||||
});
|
|
||||||
|
|
||||||
onUnmounted(() => {
|
|
||||||
window.removeEventListener("scroll", updateScrollPosition);
|
|
||||||
});
|
|
||||||
</script>
|
|
||||||
|
|
||||||
<template>
|
|
||||||
<span v-if="showScroll" class="floater overlay-text" @click="scrollToTop">
|
|
||||||
Scroll To Top
|
|
||||||
</span>
|
|
||||||
</template>
|
|
||||||
|
|
||||||
<style scoped>
|
|
||||||
.floater {
|
|
||||||
display: block;
|
|
||||||
position: fixed;
|
|
||||||
right: 10px;
|
|
||||||
bottom: 10px;
|
|
||||||
z-index: 1000;
|
|
||||||
cursor: pointer;
|
|
||||||
background-color: rgba(112, 128, 144, 0.8);
|
|
||||||
padding: 1rem;
|
|
||||||
border-radius: 10px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.overlay-text {
|
|
||||||
color: white;
|
|
||||||
text-shadow: 1px 1px #6f0b51;
|
|
||||||
}
|
|
||||||
</style>
|
|
|
@ -24,7 +24,6 @@
|
||||||
|
|
||||||
<script lang="ts" setup>
|
<script lang="ts" setup>
|
||||||
import { hasToken } from "~/composables/hasToken";
|
import { hasToken } from "~/composables/hasToken";
|
||||||
import ProfileMenu from "~/components/common/menus/ProfileMenu.vue";
|
|
||||||
|
|
||||||
const authenticated = computed(() => hasToken());
|
const authenticated = computed(() => hasToken());
|
||||||
</script>
|
</script>
|
||||||
|
|
|
@ -1,8 +1,6 @@
|
||||||
<template>
|
<template>
|
||||||
<div>
|
|
||||||
<LoadingIcon v-if="loading" show-quote="true" />
|
<LoadingIcon v-if="loading" show-quote="true" />
|
||||||
<div v-else class="p-5 sm:p-0">
|
<div v-else class="p-5 sm:p-0">
|
||||||
<ScrollToTop></ScrollToTop>
|
|
||||||
<Modal ref="movie_modal">
|
<Modal ref="movie_modal">
|
||||||
<ShowMovie
|
<ShowMovie
|
||||||
v-if="modal_movie"
|
v-if="modal_movie"
|
||||||
|
@ -39,10 +37,7 @@
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div
|
<div v-if="movies.length < 1 && !loading" class="mt-10 flex gap-5 flex-col">
|
||||||
v-if="movies.length < 1 && !loading"
|
|
||||||
class="mt-10 flex gap-5 flex-col"
|
|
||||||
>
|
|
||||||
No Movies Found
|
No Movies Found
|
||||||
<MovieQuote />
|
<MovieQuote />
|
||||||
</div>
|
</div>
|
||||||
|
@ -76,7 +71,6 @@
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script lang="ts" setup>
|
<script lang="ts" setup>
|
||||||
|
@ -88,7 +82,6 @@ import Modal from "~/components/common/ui/Modal.vue";
|
||||||
import { useCookie } from "#app";
|
import { useCookie } from "#app";
|
||||||
import { $fetch } from "ofetch";
|
import { $fetch } from "ofetch";
|
||||||
import MoviePoster from "~/components/MoviePoster.vue";
|
import MoviePoster from "~/components/MoviePoster.vue";
|
||||||
import ScrollToTop from "~/components/common/navigation/ScrollToTop.vue";
|
|
||||||
|
|
||||||
const list_id = ref(0);
|
const list_id = ref(0);
|
||||||
const list = defineModel<MovieList>("movie_list", { default: [] });
|
const list = defineModel<MovieList>("movie_list", { default: [] });
|
||||||
|
@ -245,7 +238,6 @@ onMounted(() => {
|
||||||
const route = useRoute();
|
const route = useRoute();
|
||||||
if (typeof route.params.id === "string") {
|
if (typeof route.params.id === "string") {
|
||||||
const list_param: string = route.params.id;
|
const list_param: string = route.params.id;
|
||||||
|
|
||||||
list_id.value = parseInt(list_param);
|
list_id.value = parseInt(list_param);
|
||||||
getList(list_id.value);
|
getList(list_id.value);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue