mirror of
https://github.com/hpware/news-analyze.git
synced 2025-06-23 21:14:23 +00:00
feat: enhance localization by adding new app strings and descriptions; implement sources window for news sources display
This commit is contained in:
parent
3f60015b82
commit
26d3998a70
6 changed files with 86 additions and 9 deletions
|
@ -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<associAppWindowInterface>([]);
|
||||
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"),
|
||||
})
|
||||
</script>
|
||||
<template>
|
||||
<div
|
||||
|
@ -282,7 +289,7 @@ const closeWindow = (windowId: string) => {
|
|||
<!--版權資訊-->
|
||||
<span class="text-sm">1.0.0</span>
|
||||
<span class="text-sm">|</span>
|
||||
<span class="text-sm">MIT License</span>
|
||||
<span class="text-sm">MIT {{ t("app.license") }}</span>
|
||||
<span class="text-sm">|</span>
|
||||
<span class="text-sm">{{ new Date().getFullYear() }} © yh</span>
|
||||
</div>
|
||||
|
|
|
@ -79,7 +79,7 @@ onMounted(() => {
|
|||
<h1 class="text-8xl mt-0">🤔</h1>
|
||||
<h2 class="text-xl font-bold">Why?</h2>
|
||||
<span class="text-sm"
|
||||
>台灣的新聞是要痲是來自中國控制的媒體,或是來自只想獲得點閱的記者。</span
|
||||
>{{ t("home.whydes")}}</span
|
||||
>
|
||||
</div>
|
||||
<div
|
||||
|
@ -88,8 +88,7 @@ onMounted(() => {
|
|||
<h1 class="text-8xl mt-0">🧐</h1>
|
||||
<h2 class="text-xl font-bold">How?</h2>
|
||||
<span class="text-sm"
|
||||
>We use web scraping to search for the latest news, and store it into
|
||||
a postgres database.</span
|
||||
>{{ t("home.howdes")}}</span
|
||||
>
|
||||
</div>
|
||||
</div>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue