mirror of
https://github.com/hpware/news-analyze.git
synced 2025-06-23 15:51:01 +08:00
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:
parent
3abfe46464
commit
028b545374
@ -1,6 +1,6 @@
|
|||||||
# 新聞解析 / News Analyze
|
# 新聞解析 / News Analyze
|
||||||
|
|
||||||
[English Version](README.md) [繁體中文版](README_ZH_TW.md)
|
[English Version](/README.md) [繁體中文版](/README.ZH_TW.md)
|
||||||
|
|
||||||
   
|
   
|
||||||
|
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
# 新聞解析 / News Analyze
|
# 新聞解析 / News Analyze
|
||||||
|
|
||||||
[English Version](README.md) [繁體中文版](README_ZH_TW.md)
|
[English Version](/README.md) [繁體中文版](/README.ZH_TW.md)
|
||||||
|
|
||||||
   
|
   
|
||||||
|
|
||||||
|
@ -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);
|
||||||
|
@ -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>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user