From 81012f50611e9a9ad9eaf30c3065c173c6bab69d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=90=B3=E5=85=83=E7=9A=93?= Date: Sat, 17 May 2025 23:31:55 +0800 Subject: [PATCH] Made the line_today.py kinda work ig. But I have no idea how can I run this without issues in prod tho. and the "BlurPageBeforeLogin" thing works just file, oh and checkCookie is now working (but without the database part just yet) --- .gitignore | 1 + components/app/windows/chatbot.vue | 10 +++++--- components/blurPageBeforeLogin.vue | 32 ++++++++++++------------- scraping/platforms/line_today.py | 26 +++++++++++++------- server/api/news/get/lt/[slug].ts | 20 ++++++++++++++++ server/api/user/checkcookie.ts | 38 +++++++++++++++++++++++------- 6 files changed, 91 insertions(+), 36 deletions(-) create mode 100644 server/api/news/get/lt/[slug].ts diff --git a/.gitignore b/.gitignore index b24c934..dc591ea 100644 --- a/.gitignore +++ b/.gitignore @@ -32,3 +32,4 @@ __pycache__ *.sql !database/*.sql +_dt_*.py diff --git a/components/app/windows/chatbot.vue b/components/app/windows/chatbot.vue index 4d6a4f9..63e9945 100644 --- a/components/app/windows/chatbot.vue +++ b/components/app/windows/chatbot.vue @@ -48,7 +48,11 @@ const sendChatData = (event?: KeyboardEvent) => { }, 3000); }; -onMounted(async () => { +const stopChatGenerate = () => { + aiGenerating.value = false; +}; + +/*onMounted(async () => { console.log(cookieChatId); if (cookieChatId) { } else { @@ -63,7 +67,7 @@ onMounted(async () => { ); cookieChatId.value = checkUserChatId.value; } -}); +});*/ onMounted(async () => { /*const { data: getData, @@ -136,7 +140,7 @@ onMounted(async () => {