From 5f3a721339bf7117a38ac902c65c6c4f6ad62851 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=90=B3=E5=85=83=E7=9A=93?= Date: Mon, 9 Jun 2025 14:24:42 +0800 Subject: [PATCH] Remove legacy and/or code that is not used. --- .dev.env | 29 ----------- .env.example | 3 +- README.md | 6 +-- components/app/windows/hotnews.vue | 70 -------------------------- components/blurPageBeforeLogin.vue | 1 - components/loadUserInfo.ts | 14 ------ components/logoutuser.ts | 3 -- components/newsAnalyzer.ts | 20 -------- pages/botcheck.vue | 4 -- pages/desktop.vue | 11 ---- public/agents.txt | 2 - public/fun-bg.jpg | Bin 1884009 -> 0 bytes public/geterrorassets/noImageLogo.svg | 1 - public/logos/GitHub-dark.svg | 1 - server/api/cached/rss/google.ts | 30 ----------- server/api/translate/google.ts | 0 server/api/user/validateUserToken.ts | 1 - server/components/s3.ts | 11 ---- 18 files changed, 4 insertions(+), 203 deletions(-) delete mode 100644 .dev.env delete mode 100644 components/app/windows/hotnews.vue delete mode 100644 components/loadUserInfo.ts delete mode 100644 components/logoutuser.ts delete mode 100644 components/newsAnalyzer.ts delete mode 100644 pages/botcheck.vue delete mode 100644 public/agents.txt delete mode 100644 public/fun-bg.jpg delete mode 100644 public/geterrorassets/noImageLogo.svg delete mode 100644 public/logos/GitHub-dark.svg delete mode 100644 server/api/cached/rss/google.ts delete mode 100644 server/api/translate/google.ts delete mode 100644 server/components/s3.ts diff --git a/.dev.env b/.dev.env deleted file mode 100644 index c7fb410..0000000 --- a/.dev.env +++ /dev/null @@ -1,29 +0,0 @@ -# For prod use please use the .env.example file. -# Please use .dev.env as an starting point. Rename it to .env and fill in the values, the application needs it. - -# This is the developmemnt use .env file. - -# S3 INFO -S3_ACCESS_KEY="" -S3_SECRET_KEY="" -S3_BUCKETNAME="" -S3_ENDPOINT="" - -# GITHUB OAUTH (NOT WORKING 4n) -NUXT_GITHUB_CLIENT_ID="" -NUXT_GITHUB_CLIENT_SECRET="" - -# GLOBAL DATABASE -POSTGRES_URL="" - -# GROQ API KEY -GROQ_API_KEY="" - -# PASSWORD SALT -PASSWORD_HASH_SALT="" - -# CF TURNSTILE -NUXT_CF_TURNSTILE_SITE_KEY="" -NUXT_CF_TURNSTILE_SECRET_KEY="" - -NUXT_DEV_ENV=true diff --git a/.env.example b/.env.example index 49bbe1c..c597a30 100644 --- a/.env.example +++ b/.env.example @@ -1,5 +1,4 @@ -# For development use, please use the .dev.env file. -# Please use .env.exmaple as an starting point. Rename it to .env and fill in the values, the application needs it. +# Please use .env.exmaple as an starting point. Rename it to .env and fill in the values, the application requrires it. # This is the default .env file. diff --git a/README.md b/README.md index 0cb006e..cacd868 100644 --- a/README.md +++ b/README.md @@ -19,7 +19,7 @@ https://yhw.tw/news ## Issues: ### Onboarding: -Onboarding is a must for most people that are using the app for the first time, but I want to do to via a non-video like system, however implemnting the function in a already large repo is kinda hard. So later this week, I will just add a basic video onboading system. +Onboarding is a must for most people that are using the app for the first time, but I want to do to via a non-video like system, however implementing the function in a already large repo is kinda hard. So later this week, I will just add a basic video onboarding system. ### User actions via the API: Currently, user actions are broken. @@ -36,7 +36,7 @@ Chatbot, which is chatbot for chatting about news articles, is currently not ava ### Server Downtime Use https://status.yhw.tw/ for checking down time, most of the time it will be up, but sometimes it just won't updated to the latest feature & update. -Archive: +#### Archive: I fixed most issues of the server, including the nameserver stuff, if you want to know how I fixed it, you can view how I fixed it [here](/server_fixes.md) or on [My broken blog](https://4-1-2.yuanhau.com/posts/) ### Scraping restrictions: @@ -53,7 +53,7 @@ This code is absolutly NOT designed to be spinned up at Vercel or Netlify, it ha ## Why? -We'll use this news article as an example: +We'll use this news article from May 7th 2025 as an example: ``` Zhu Lilun criticizes the government for being like Hitler German Institute in Taiwan: History should not be distorted for politics | Politics - CNA diff --git a/components/app/windows/hotnews.vue b/components/app/windows/hotnews.vue deleted file mode 100644 index 6fe8534..0000000 --- a/components/app/windows/hotnews.vue +++ /dev/null @@ -1,70 +0,0 @@ - - diff --git a/components/blurPageBeforeLogin.vue b/components/blurPageBeforeLogin.vue index 07bcaa7..ceaa20d 100644 --- a/components/blurPageBeforeLogin.vue +++ b/components/blurPageBeforeLogin.vue @@ -1,5 +1,4 @@