From edf10adf5a1c748102c1fffd5b1e0a289f7cf9c7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=90=B3=E5=85=83=E7=9A=93?= Date: Sun, 11 May 2025 09:39:21 +0800 Subject: [PATCH] Update requirements and enhance CSS styles - Added new dependencies to requirements.txt: psycopg2-binary, pandas, and dotenv for improved functionality. - Enhanced main.css by adding 'scroll-smooth' to the html element for better scrolling experience. --- components/footer.vue | 3 - components/navigation.vue | 17 - i18n/locales/en.json | 3 +- i18n/locales/zh-tw.json | 3 +- layouts/default.vue | 2 +- pages/dailybriefing.vue | 1 - pages/home.vue | 17 +- pages/topic/view/[slug].vue | 16 - scraping/main.py | 17 +- scraping/news.json | 982 +++++++++++++----------------------- scraping/requirements.txt | 5 +- styles/main.css | 2 +- 12 files changed, 390 insertions(+), 678 deletions(-) delete mode 100644 pages/dailybriefing.vue delete mode 100644 pages/topic/view/[slug].vue diff --git a/components/footer.vue b/components/footer.vue index 04d3ec6..9e0a5bb 100644 --- a/components/footer.vue +++ b/components/footer.vue @@ -11,8 +11,5 @@ const localeLink = useLocalePath(); Inspired by Ground.News - - Sources - diff --git a/components/navigation.vue b/components/navigation.vue index 4ecfd76..99f8d12 100644 --- a/components/navigation.vue +++ b/components/navigation.vue @@ -30,15 +30,8 @@ const toggleDropdown = () => { class="hover:text-blue-500 cursor-pointer transiton-all duration-100" >{{ t("nav.home") }} -   - {{ t("nav.dailybriefing") }}
-
-
-
- - - -
diff --git a/i18n/locales/en.json b/i18n/locales/en.json index f81748c..0672b3b 100644 --- a/i18n/locales/en.json +++ b/i18n/locales/en.json @@ -13,7 +13,8 @@ "miniWikipedia": "Mini Wikipedia", "newsComparePlatform": "news comparison platform" }, - "startusing": "Let's Start!" + "startusing": "Let's Start!", + "learnmore": "Learn More", }, "dailybriefing": "Daily Briefing", "Welcome": "Welcome", diff --git a/i18n/locales/zh-tw.json b/i18n/locales/zh-tw.json index f4f52a2..78c71e5 100644 --- a/i18n/locales/zh-tw.json +++ b/i18n/locales/zh-tw.json @@ -13,7 +13,8 @@ "miniWikipedia": "米你維基百科", "newsComparePlatform": "新聞觀點比對平台" }, - "startusing": "開始使用!" + "startusing": "開始使用!", + "learnmore": "了解更多" }, "dailybriefing": "今日報導", "Welcome": "歡迎", diff --git a/layouts/default.vue b/layouts/default.vue index 3be07b1..29034ff 100644 --- a/layouts/default.vue +++ b/layouts/default.vue @@ -12,4 +12,4 @@ import Footer from "~/components/footer.vue";