refactor: relocate constants in screen stores

This commit is contained in:
2026-01-31 00:52:56 +01:00
parent 742e6363a4
commit 630b399088
13 changed files with 74 additions and 90 deletions

View File

@@ -1,7 +1,7 @@
<script setup lang="ts">
import { LazyGalleryModal } from "#components";
import type { InternalApi } from "nitropack/types";
import { useElementSize } from "@vueuse/core";
import { promiseTimeout, useElementSize } from "@vueuse/core";
import gsap from "gsap";
const { data: images } = await useAsyncData(
@@ -156,7 +156,7 @@ const animateOutro = async () => {
typeText(descriptionText, description.value, DESCRIPTION_DURATION, true, {
onComplete: async () => {
await sleep(ANIMATION_SLEEP * 1000);
await promiseTimeout(ANIMATION_SLEEP * 1000);
galleryStore.shouldAnimateOutro = true;
router.push("/");
},