From 61a7ecbf12043cba6126670f689ff919d4d37a5b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=90=B3=E5=85=83=E7=9A=93?= Date: Sat, 7 Jun 2025 00:04:11 +0800 Subject: [PATCH] Basic translations? --- components/DraggableWindow.vue | 4 +++- components/app/windows/chatbot.vue | 1 + components/app/windows/news.vue | 11 ++++++++++- server/api/news/get/lt/[slug].ts | 3 +++ 4 files changed, 17 insertions(+), 2 deletions(-) diff --git a/components/DraggableWindow.vue b/components/DraggableWindow.vue index c84d210..acccd11 100644 --- a/components/DraggableWindow.vue +++ b/components/DraggableWindow.vue @@ -33,8 +33,10 @@ const titleOrg = computed(() => props.title); const titleMaxRegexDetection = /[a-zA-Z0-9]{,10}/; const title = ref("Draggable Window"); onMounted(() => { - if (!titleMaxRegexPattern.test(titleOrg.value)) { + if (!titleMaxRegexDetection.test(titleOrg)) { console.log("Max Detected!!"); + } else { + title.value = titleOrg; } }); diff --git a/components/app/windows/chatbot.vue b/components/app/windows/chatbot.vue index 7263ef2..37c0edc 100644 --- a/components/app/windows/chatbot.vue +++ b/components/app/windows/chatbot.vue @@ -138,6 +138,7 @@ const formatTime = (timestamp: any) => { minute: "2-digit", }).format(timestamp); }; +const scrollToBottom = () => {};