Change readme links & update news to NOT use the translated Hi as a test

& updated the draggable window to remove the testing state. (I know
testing in prod is bad.)
This commit is contained in:
吳元皓 2025-06-07 01:25:45 +08:00
parent 3abfe46464
commit 028b545374
4 changed files with 5 additions and 5 deletions

View File

@ -1,6 +1,6 @@
# 新聞解析 / News Analyze # 新聞解析 / News Analyze
[English Version](README.md) [繁體中文版](README_ZH_TW.md) [English Version](/README.md) [繁體中文版](/README.ZH_TW.md)
![](https://hackatime-badge.hackclub.com/U087ATD163V/news-analyize) ![CodeRabbit Pull Request Reviews](https://img.shields.io/coderabbit/prs/github/hpware/news-analyze?utm_source=oss&utm_medium=github&utm_campaign=hpware%2Fnews-analyze&labelColor=171717&color=FF570A&link=https%3A%2F%2Fcoderabbit.ai&label=CodeRabbit+Reviews) ![LICENSE](https://img.shields.io/github/license/hpware/news-analyze?style=flat) ![GitHub Actions Workflow Status](https://img.shields.io/github/actions/workflow/status/hpware/news-analyze/build_docker_image.yml) ![](https://hackatime-badge.hackclub.com/U087ATD163V/news-analyize) ![CodeRabbit Pull Request Reviews](https://img.shields.io/coderabbit/prs/github/hpware/news-analyze?utm_source=oss&utm_medium=github&utm_campaign=hpware%2Fnews-analyze&labelColor=171717&color=FF570A&link=https%3A%2F%2Fcoderabbit.ai&label=CodeRabbit+Reviews) ![LICENSE](https://img.shields.io/github/license/hpware/news-analyze?style=flat) ![GitHub Actions Workflow Status](https://img.shields.io/github/actions/workflow/status/hpware/news-analyze/build_docker_image.yml)

View File

@ -1,6 +1,6 @@
# 新聞解析 / News Analyze # 新聞解析 / News Analyze
[English Version](README.md) [繁體中文版](README_ZH_TW.md) [English Version](/README.md) [繁體中文版](/README.ZH_TW.md)
![](https://hackatime-badge.hackclub.com/U087ATD163V/news-analyize) ![CodeRabbit Pull Request Reviews](https://img.shields.io/coderabbit/prs/github/hpware/news-analyze?utm_source=oss&utm_medium=github&utm_campaign=hpware%2Fnews-analyze&labelColor=171717&color=FF570A&link=https%3A%2F%2Fcoderabbit.ai&label=CodeRabbit+Reviews) ![LICENSE](https://img.shields.io/github/license/hpware/news-analyze?style=flat) ![GitHub Actions Workflow Status](https://img.shields.io/github/actions/workflow/status/hpware/news-analyze/build_docker_image.yml) ![](https://hackatime-badge.hackclub.com/U087ATD163V/news-analyize) ![CodeRabbit Pull Request Reviews](https://img.shields.io/coderabbit/prs/github/hpware/news-analyze?utm_source=oss&utm_medium=github&utm_campaign=hpware%2Fnews-analyze&labelColor=171717&color=FF570A&link=https%3A%2F%2Fcoderabbit.ai&label=CodeRabbit+Reviews) ![LICENSE](https://img.shields.io/github/license/hpware/news-analyze?style=flat) ![GitHub Actions Workflow Status](https://img.shields.io/github/actions/workflow/status/hpware/news-analyze/build_docker_image.yml)

View File

@ -33,11 +33,11 @@ const titleOrg = computed(() => props.title);
const titleMaxRegexDetection = /[a-zA-Z0-9]{,10}/; const titleMaxRegexDetection = /[a-zA-Z0-9]{,10}/;
const title = ref("Draggable Window"); const title = ref("Draggable Window");
onMounted(() => { onMounted(() => {
if (!titleMaxRegexDetection.test(titleOrg)) { if (!titleMaxRegexDetection.test(titleOrg.value)) {
console.log("Max Detected!!"); console.log("Max Detected!!");
} else { } else {
title.value = titleOrg;
} }
title.value = titleOrg.value;
}); });
const isDragging = ref(false); const isDragging = ref(false);

View File

@ -246,7 +246,7 @@ const testmessage = await translate("嗨", { from: "zh", to: "en" });
class="disabled:cursor-not-allowed" class="disabled:cursor-not-allowed"
:disabled="isPrimary(item.url, true) || switchTabs" :disabled="isPrimary(item.url, true) || switchTabs"
> >
<span>{{ locale === "en" ? item.text : testmessage }}</span> <span>{{ true ? item.text : testmessage }}</span>
</button> </button>
</template> </template>
<button v-if="canNotLoadTabUI"><RefreshCcwIcon /></button> <button v-if="canNotLoadTabUI"><RefreshCcwIcon /></button>