mirror of
https://github.com/hpware/news-analyze.git
synced 2025-06-23 15:51:01 +08:00
Made the animation working again :)
This commit is contained in:
parent
2faaf3941c
commit
d9c6cec16e
@ -33,12 +33,21 @@ const {
|
|||||||
|
|
||||||
const orgNameAnimation = ref(null);
|
const orgNameAnimation = ref(null);
|
||||||
|
|
||||||
onMounted(() => {
|
watch(
|
||||||
gsap.to(orgNameAnimation.value, {
|
() => fetchNewsOrgInfo.value,
|
||||||
duration: 1,
|
(newValue) => {
|
||||||
scrambleText: fetchNewsOrgInfo.value?.title,
|
if (newValue?.title) {
|
||||||
});
|
nextTick(() => {
|
||||||
});
|
gsap.to(orgNameAnimation.value, {
|
||||||
|
duration: 1,
|
||||||
|
scrambleText: newValue.title,
|
||||||
|
ease: "none",
|
||||||
|
});
|
||||||
|
});
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{ immediate: true },
|
||||||
|
);
|
||||||
</script>
|
</script>
|
||||||
<template>
|
<template>
|
||||||
<div>
|
<div>
|
||||||
@ -52,7 +61,10 @@ onMounted(() => {
|
|||||||
draggable="false"
|
draggable="false"
|
||||||
/>
|
/>
|
||||||
<div class="flex flex-col gap-3 text-left">
|
<div class="flex flex-col gap-3 text-left">
|
||||||
<h1 class="text-4xl font-bold m-3 text-left">
|
<h1
|
||||||
|
class="text-4xl font-bold m-3 text-left"
|
||||||
|
ref="orgNameAnimation"
|
||||||
|
>
|
||||||
{{ fetchNewsOrgInfo?.title }}
|
{{ fetchNewsOrgInfo?.title }}
|
||||||
</h1>
|
</h1>
|
||||||
<span class="text-ms m-1 mt-5 text-left text-wrap">{{
|
<span class="text-ms m-1 mt-5 text-left text-wrap">{{
|
||||||
|
@ -28,9 +28,9 @@ const {
|
|||||||
lang: locale,
|
lang: locale,
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
if (error) {
|
if (error === null) {
|
||||||
eerrrroorr.value = true;
|
eerrrroorr.value = true;
|
||||||
errorMsg.value = error.value.message;
|
errorMsg.value = error.value;
|
||||||
}
|
}
|
||||||
|
|
||||||
async function getImageSource(image: string) {
|
async function getImageSource(image: string) {
|
||||||
|
@ -15,10 +15,15 @@ services:
|
|||||||
newsanalyze-service:
|
newsanalyze-service:
|
||||||
image: ghcr.io/hpware/news-analyze:master
|
image: ghcr.io/hpware/news-analyze:master
|
||||||
healthcheck:
|
healthcheck:
|
||||||
test: ["CMD", "curl", "-f", "http://localhost:3000/api/health"]
|
test:
|
||||||
interval: 1m
|
[
|
||||||
timeout: 10s
|
"CMD-SHELL",
|
||||||
|
"wget --no-verbose --tries=1 --spider http://localhost:3000/ || exit 1",
|
||||||
|
]
|
||||||
|
interval: 10s
|
||||||
|
timeout: 5s
|
||||||
retries: 3
|
retries: 3
|
||||||
|
start_period: 20s
|
||||||
networks:
|
networks:
|
||||||
- web
|
- web
|
||||||
labels:
|
labels:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user