mirror of
https://github.com/hpware/news-analyze.git
synced 2025-06-23 13:04: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>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue