mirror of
https://github.com/hpware/news-analyze.git
synced 2025-06-23 04:54:23 +00:00
Refactor code structure for improved readability and maintainability
This commit is contained in:
parent
157713ed24
commit
5803207451
8 changed files with 18 additions and 6 deletions
|
@ -2,7 +2,7 @@
|
||||||
|
|
||||||

|

|
||||||
|
|
||||||
App Design: [Freeform](https://www.icloud.com/freeform/026AxB798cViZ9jJ2DkNsXUCQ#Untitled_5)
|
App Design: [PDF Document](/design.pdf)
|
||||||
|
|
||||||
## Why?
|
## Why?
|
||||||
|
|
||||||
|
|
|
@ -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"
|
||||||
|
|
|
@ -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>
|
||||||
|
|
|
@ -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
BIN
design.pdf
Normal file
Binary file not shown.
|
@ -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",
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -60,6 +60,7 @@
|
||||||
"search": "搜尋",
|
"search": "搜尋",
|
||||||
"chatbot": "聊天機器人",
|
"chatbot": "聊天機器人",
|
||||||
"starred": "收藏",
|
"starred": "收藏",
|
||||||
"terminal": "終端機"
|
"terminal": "終端機",
|
||||||
|
"aboutNewsOrg": "關於這個新聞來源"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -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",
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue