mirror of
https://github.com/hpware/news-analyze.git
synced 2025-06-23 07:41:02 +08:00
Made a fav system.
This commit is contained in:
parent
9e921980ed
commit
846c27293d
@ -8,8 +8,16 @@ const openApp = (link: string) => {
|
|||||||
</script>
|
</script>
|
||||||
<template>
|
<template>
|
||||||
<BlurPageBeforeLogin>
|
<BlurPageBeforeLogin>
|
||||||
|
<div v-if="!favData.items">
|
||||||
|
<div
|
||||||
|
class="absolute inset-0 flex flex-col justify-center align-center text-center"
|
||||||
|
>
|
||||||
|
<h2>{{t("fav.haventaddedyet")}}</h2>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
<div
|
<div
|
||||||
class="justify-center text-center align-center flex flex-row flex-wrap"
|
class="justify-center text-center align-center flex flex-row flex-wrap"
|
||||||
|
v-else
|
||||||
>
|
>
|
||||||
<div v-for="items in favData.items">
|
<div v-for="items in favData.items">
|
||||||
<div
|
<div
|
||||||
|
@ -25,10 +25,7 @@ try {
|
|||||||
if (sendError.value) {
|
if (sendError.value) {
|
||||||
error.value = true;
|
error.value = true;
|
||||||
}
|
}
|
||||||
if (data.requested_action === "LOGOUT_USER") {
|
if (data.requested_action === "KEEP_LOGIN") {
|
||||||
logoutUser();
|
|
||||||
}
|
|
||||||
if (data.requested_action === "CONTINUE") {
|
|
||||||
if (data.userAccount && data.userAccount.length !== 0) {
|
if (data.userAccount && data.userAccount.length !== 0) {
|
||||||
allowed.value = true;
|
allowed.value = true;
|
||||||
} else {
|
} else {
|
||||||
|
@ -148,5 +148,8 @@
|
|||||||
"nosimilararticles": "There aren't any similar articles.",
|
"nosimilararticles": "There aren't any similar articles.",
|
||||||
"articleopenpart1": "This will open a open a new window about this new org",
|
"articleopenpart1": "This will open a open a new window about this new org",
|
||||||
"articleopenpart2": ""
|
"articleopenpart2": ""
|
||||||
|
},
|
||||||
|
"fav": {
|
||||||
|
"haventaddedyet": "You haven't added any favorites yet."
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -71,7 +71,7 @@
|
|||||||
"license": "授權",
|
"license": "授權",
|
||||||
"search": "搜尋",
|
"search": "搜尋",
|
||||||
"chatbot": "聊天機器人",
|
"chatbot": "聊天機器人",
|
||||||
"starred": "收藏",
|
"starred": "我的最愛",
|
||||||
"terminal": "終端機",
|
"terminal": "終端機",
|
||||||
"aboutNewsOrg": "關於這個新聞來源",
|
"aboutNewsOrg": "關於這個新聞來源",
|
||||||
"newsview": "新聞",
|
"newsview": "新聞",
|
||||||
@ -146,5 +146,8 @@
|
|||||||
"nosimilararticles": "找不到類似文章",
|
"nosimilararticles": "找不到類似文章",
|
||||||
"articleopenpart1": "會打開關於媒體",
|
"articleopenpart1": "會打開關於媒體",
|
||||||
"articleopenpart2": "的視窗"
|
"articleopenpart2": "的視窗"
|
||||||
|
},
|
||||||
|
"fav": {
|
||||||
|
"haventaddedyet": "你尚未把新聞加入我的最愛"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user