diff --git a/components/app/windows/sources.vue b/components/app/windows/sources.vue new file mode 100644 index 0000000..81564a7 --- /dev/null +++ b/components/app/windows/sources.vue @@ -0,0 +1,22 @@ + + \ No newline at end of file diff --git a/i18n/locales/en.json b/i18n/locales/en.json index 33f878f..56926f6 100644 --- a/i18n/locales/en.json +++ b/i18n/locales/en.json @@ -16,9 +16,21 @@ "newsComparePlatform": "news comparison platform" }, "startusing": "Let's Start!", - "learnmore": "Learn more" + "learnmore": "Learn more", + "whydes": "Taiwan news mostly came from China-controlled media or from reporters who uses inappropriate content to farm clicks.", + "howdes": "We use web scraping to search for the latest news, and store it into a postgres database." }, "dailybriefing": "Daily Briefing", "Welcome": "Welcome", - "loading": "Loading..." + "loading": "Loading...", + "app": { + "hotnews": "Hot News", + "news": "News", + "sources": "Sources", + "about": "About this website", + "settings": "settings", + "leave": "Leave", + "login": "Login", + "license": "License" + } } diff --git a/i18n/locales/zh-tw.json b/i18n/locales/zh-tw.json index d5007aa..b7b5e28 100644 --- a/i18n/locales/zh-tw.json +++ b/i18n/locales/zh-tw.json @@ -16,9 +16,21 @@ "newsComparePlatform": "新聞觀點比對平台" }, "startusing": "開始使用!", - "learnmore": "了解更多" + "learnmore": "了解更多", + "whydes": "台灣的新聞是要痲是來自中國控制的媒體,或是來自只想獲得點閱的記者。", + "howdes":" 我們使用使用 Python 寫的網頁爬蟲來搜尋最新的新聞,並將其存入Postgres資料庫中。" }, "dailybriefing": "今日報導", "Welcome": "歡迎", - "loading": "載入中..." + "loading": "載入中...", + "app": { + "hotnews": "熱門新聞", + "news": "新聞", + "sources": "資料來源", + "about": "關於我們", + "settings": "設定", + "leave": "離開", + "login": "登入", + "license": "授權" + } } diff --git a/pages/app/desktop/index.vue b/pages/app/desktop/index.vue index c6d0f9e..dda8f1c 100644 --- a/pages/app/desktop/index.vue +++ b/pages/app/desktop/index.vue @@ -29,6 +29,7 @@ gsap.registerPlugin(TextPlugin); // Import Windows import LoginWindow from "~/components/app/windows/login.vue"; import HotNewsWindow from "~/components/app/windows/hotnews.vue"; +import SourcesWindow from "~/components/app/windows/sources.vue"; // Import Shadcn/UI components import AlertComponent from "~/components/ui/alert/Alert.vue"; @@ -122,6 +123,7 @@ const toggleLangMenu = () => { // values const activeWindows = ref([]); +const currentApplication = ref(); // ?opemapp= component const openApp = ref(false); @@ -146,7 +148,8 @@ const associAppWindow = [ width: "700px", height: "500px", }, - { name: "login", id: "2", title: "Login", component: LoginWindow }, + { name: "login", id: "2", title: t("app.login") , component: LoginWindow }, + { name: "sources", id: "3", title: t("app.sources"), component: SourcesWindow }, ]; const findAndOpenWindow = (windowName: string) => { @@ -179,6 +182,10 @@ const closeWindow = (windowId: string) => { ); console.log("activeWindows.value", activeWindows.value); }; + +useSeoMeta({ + title: currentApplication.value.title + " - " + t("app.title"), +})