Made a fav system.
Some checks are pending
Build and Push Beta Image / build-and-push (push) Waiting to run

This commit is contained in:
yuanhau 2025-06-22 20:12:12 +08:00
parent 9e921980ed
commit 846c27293d
4 changed files with 16 additions and 5 deletions

View file

@ -8,8 +8,16 @@ const openApp = (link: string) => {
</script>
<template>
<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
class="justify-center text-center align-center flex flex-row flex-wrap"
v-else
>
<div v-for="items in favData.items">
<div

View file

@ -25,10 +25,7 @@ try {
if (sendError.value) {
error.value = true;
}
if (data.requested_action === "LOGOUT_USER") {
logoutUser();
}
if (data.requested_action === "CONTINUE") {
if (data.requested_action === "KEEP_LOGIN") {
if (data.userAccount && data.userAccount.length !== 0) {
allowed.value = true;
} else {

View file

@ -148,5 +148,8 @@
"nosimilararticles": "There aren't any similar articles.",
"articleopenpart1": "This will open a open a new window about this new org",
"articleopenpart2": ""
},
"fav": {
"haventaddedyet": "You haven't added any favorites yet."
}
}

View file

@ -71,7 +71,7 @@
"license": "授權",
"search": "搜尋",
"chatbot": "聊天機器人",
"starred": "收藏",
"starred": "我的最愛",
"terminal": "終端機",
"aboutNewsOrg": "關於這個新聞來源",
"newsview": "新聞",
@ -146,5 +146,8 @@
"nosimilararticles": "找不到類似文章",
"articleopenpart1": "會打開關於媒體",
"articleopenpart2": "的視窗"
},
"fav": {
"haventaddedyet": "你尚未把新聞加入我的最愛"
}
}