-
+
+
-
\ No newline at end of file
+
+
diff --git a/i18n/locales/zh-tw.json b/i18n/locales/zh-tw.json
index b7b5e28..f746871 100644
--- a/i18n/locales/zh-tw.json
+++ b/i18n/locales/zh-tw.json
@@ -18,7 +18,7 @@
"startusing": "開始使用!",
"learnmore": "了解更多",
"whydes": "台灣的新聞是要痲是來自中國控制的媒體,或是來自只想獲得點閱的記者。",
- "howdes":" 我們使用使用 Python 寫的網頁爬蟲來搜尋最新的新聞,並將其存入Postgres資料庫中。"
+ "howdes": " 我們使用使用 Python 寫的網頁爬蟲來搜尋最新的新聞,並將其存入Postgres資料庫中。"
},
"dailybriefing": "今日報導",
"Welcome": "歡迎",
diff --git a/pages/app/desktop/index.vue b/pages/app/desktop/index.vue
index ad4bfb0..f7db6ea 100644
--- a/pages/app/desktop/index.vue
+++ b/pages/app/desktop/index.vue
@@ -135,7 +135,7 @@ onMounted(async () => {
if (openApp.value) {
openWindow(openApp.value);
}
-})
+});
const associAppWindow = [
{
@@ -146,25 +146,32 @@ const associAppWindow = [
width: "700px",
height: "500px",
},
- { name: "login", id: "2", title: t("app.login") , component: LoginWindow },
- { name: "sources", id: "3", title: t("app.sources"), component: SourcesWindow }
+ { name: "login", id: "2", title: t("app.login"), component: LoginWindow },
+ {
+ name: "sources",
+ id: "3",
+ title: t("app.sources"),
+ component: SourcesWindow,
+ },
];
const currentOpenAppId = ref(0);
const findAndOpenWindow = (windowName: string) => {
- const app = associAppWindow.find((app) => app.name === windowName)
-
+ const app = associAppWindow.find((app) => app.name === windowName);
+
// Prevent dual logins
- if (windowName === "login" &&
- activeWindows.value.some((window) => window.name === "login")) {
- return
+ if (
+ windowName === "login" &&
+ activeWindows.value.some((window) => window.name === "login")
+ ) {
+ return;
}
if (app) {
// Use shallowRef for better performance with components
- const windowComponent = shallowRef(app.component)
-
+ const windowComponent = shallowRef(app.component);
+
activeWindows.value.push({
id: currentOpenAppId.value,
component: windowComponent,
@@ -172,10 +179,10 @@ const findAndOpenWindow = (windowName: string) => {
title: app.title,
width: app.width || "400px",
height: app.height || "300px",
- })
+ });
currentOpenAppId.value++;
}
-}
+};
const closeWindow = (windowId: string) => {
activeWindows.value = activeWindows.value.filter(
@@ -196,7 +203,7 @@ const topWindow = (windowId: string) => {
useSeoMeta({
title: "hi" + " - Desktop",
-})
+});
-
-
-
+
+
+
-
-
-
-
-
+
+
+
+
+
-