Refactor code structure for improved readability and maintainability

This commit is contained in:
吳元皓 2025-05-13 20:43:39 +08:00
parent 157713ed24
commit 5803207451
8 changed files with 18 additions and 6 deletions

View File

@ -2,7 +2,7 @@
![](https://hackatime-badge.hackclub.com/U087ATD163V/news-analyize) ![](https://hackatime-badge.hackclub.com/U087ATD163V/news-analyize)
App Design: [Freeform](https://www.icloud.com/freeform/026AxB798cViZ9jJ2DkNsXUCQ#Untitled_5) App Design: [PDF Document](/design.pdf)
## Why? ## Why?

View File

@ -66,7 +66,7 @@ const stopDrag = () => {
width: props.width || '400px', width: props.width || '400px',
height: props.height || '300px', height: props.height || '300px',
}" }"
class="fixed bg-white dark:bg-gray-800 rounded-md shadow-lg overflow-hidden flex flex-col shadow-lg shadow-xl/30" class="fixed bg-white dark:bg-gray-800 rounded-xl shadow-lg overflow-hidden flex flex-col shadow-lg shadow-xl/30"
> >
<div <div
@mousedown="startDrag" @mousedown="startDrag"

View File

@ -1,3 +1,6 @@
<script setup lang="ts">
import copyrightInfo from "~/components/app/info/copyright.vue";
</script>
<template> <template>
<div class="justify-center align-center text-center flex flex-col"> <div class="justify-center align-center text-center flex flex-col">
<div class="flex flex-col"> <div class="flex flex-col">
@ -21,5 +24,10 @@
></span ></span
> >
</div> </div>
<hr/>
<div class="flex flex-col">
<span class="text-xl">版權資訊</span>
<copyrightInfo />
</div>
</div> </div>
</template> </template>

View File

@ -44,9 +44,9 @@ onMounted(() => {
<div <div
class="flex flex-row bg-[#AAACAAFF] rounded-3xl p-3 gap-3 m-3 scale-5" class="flex flex-row bg-[#AAACAAFF] rounded-3xl p-3 gap-3 m-3 scale-5"
> >
<NuxtImg <img
:src="fetchNewsOrgInfo?.logoUrl" :src="fetchNewsOrgInfo?.logoUrl"
class="w-48 h-48 rounded-[10px]" class="w-48 h-48 rounded-l-3xl object-cover p-0 m-0"
/> />
<div class="flex flex-col gap-3 text-left"> <div class="flex flex-col gap-3 text-left">
<h1 class="text-4xl font-bold m-3 text-left"> <h1 class="text-4xl font-bold m-3 text-left">

BIN
design.pdf Normal file

Binary file not shown.

View File

@ -60,6 +60,7 @@
"search": "Search", "search": "Search",
"chatbot": "Chatbot", "chatbot": "Chatbot",
"starred": "Starred", "starred": "Starred",
"terminal": "Terminal" "terminal": "Terminal",
"aboutNewsOrg": "About this news organization",
} }
} }

View File

@ -60,6 +60,7 @@
"search": "搜尋", "search": "搜尋",
"chatbot": "聊天機器人", "chatbot": "聊天機器人",
"starred": "收藏", "starred": "收藏",
"terminal": "終端機" "terminal": "終端機",
"aboutNewsOrg": "關於這個新聞來源"
} }
} }

View File

@ -149,6 +149,8 @@ const associAppWindow = [
id: "10", id: "10",
title: t("app.aboutNewsOrg"), title: t("app.aboutNewsOrg"),
component: AboutNewsOrgWindow, component: AboutNewsOrgWindow,
width: "600px",
height: "400px",
}, },
{ {
name: "tty", name: "tty",