mirror of
https://github.com/BewlyBewly/BewlyBewly.git
synced 2025-04-14 13:15:29 +00:00
refactor: #204
This commit is contained in:
@@ -195,7 +195,6 @@ function handleUnfavorite(favoriteResource: FavoriteResource) {
|
||||
<TransitionGroup name="list">
|
||||
<VideoCard
|
||||
v-for="item in favoriteResources" :id="item.id" :key="item.id"
|
||||
:item="item"
|
||||
:duration="item.duration"
|
||||
:title="item.title"
|
||||
:cover="item.cover"
|
||||
@@ -214,7 +213,7 @@ function handleUnfavorite(favoriteResource: FavoriteResource) {
|
||||
rounded="$bew-radius"
|
||||
text="!white xl"
|
||||
bg="black opacity-60 hover:$bew-error-color-80"
|
||||
@click.stop="handleUnfavorite(item)"
|
||||
@click.prevent="handleUnfavorite(item)"
|
||||
>
|
||||
<Tooltip :content="$t('favorites.unfavorite')" placement="bottom" type="dark">
|
||||
<ic-baseline-clear />
|
||||
|
||||
@@ -261,12 +261,12 @@ function jumpToLoginPage() {
|
||||
<transition-group name="list">
|
||||
<a
|
||||
v-for="(historyItem, index) in historyList"
|
||||
:key="historyItem.kid"
|
||||
:key="historyItem.kid" :href="getHistoryUrl(historyItem)"
|
||||
target="_blank"
|
||||
block
|
||||
class="group"
|
||||
flex
|
||||
cursor-pointer
|
||||
@click="openLinkToNewTab(`${getHistoryUrl(historyItem)}`)"
|
||||
>
|
||||
<!-- time slot -->
|
||||
<div
|
||||
@@ -396,24 +396,22 @@ function jumpToLoginPage() {
|
||||
<!-- Description -->
|
||||
<div flex justify-between w-full>
|
||||
<div flex="~ col">
|
||||
<a :href="`${getHistoryUrl(historyItem)}`" target="_blank" @click.stop="">
|
||||
<a
|
||||
:href="`${getHistoryUrl(historyItem)}`" target="_blank" rel="noopener noreferrer"
|
||||
:title="historyItem.show_title ? historyItem.show_title : historyItem.title"
|
||||
>
|
||||
<h3
|
||||
class="keep-two-lines"
|
||||
overflow="hidden"
|
||||
text="lg overflow-ellipsis"
|
||||
>
|
||||
{{
|
||||
historyItem.show_title
|
||||
? historyItem.show_title
|
||||
: historyItem.title
|
||||
}}
|
||||
{{ historyItem.show_title ? historyItem.show_title : historyItem.title }}
|
||||
</h3>
|
||||
</a>
|
||||
<a
|
||||
un-text="$bew-text-2 sm"
|
||||
m="t-4 b-2"
|
||||
flex="~"
|
||||
items-center
|
||||
flex="~ items-center"
|
||||
cursor-pointer
|
||||
w-fit
|
||||
rounded="$bew-radius"
|
||||
@@ -421,13 +419,7 @@ function jumpToLoginPage() {
|
||||
hover:bg="$bew-theme-color-10"
|
||||
duration-300
|
||||
pr-2
|
||||
:href="
|
||||
historyItem.author_mid
|
||||
? `https://space.bilibili.com/${historyItem.author_mid}`
|
||||
: historyItem.uri
|
||||
"
|
||||
target="_blank"
|
||||
@click.stop=""
|
||||
:href="historyItem.author_mid ? `https://space.bilibili.com/${historyItem.author_mid}` : historyItem.uri" target="_blank" rel="noopener noreferrer"
|
||||
>
|
||||
<img
|
||||
:src="
|
||||
@@ -472,7 +464,7 @@ function jumpToLoginPage() {
|
||||
opacity-0 group-hover:opacity-100
|
||||
p-2
|
||||
duration-300
|
||||
@click.stop="deleteHistoryItem(index, historyItem)"
|
||||
@click.prevent="deleteHistoryItem(index, historyItem)"
|
||||
>
|
||||
<tabler:trash />
|
||||
</button>
|
||||
|
||||
@@ -117,11 +117,9 @@ function jumpToLoginPage() {
|
||||
<a
|
||||
v-for="(item, index) in watchLaterList"
|
||||
:key="item.aid"
|
||||
block
|
||||
:href="`https://www.bilibili.com/video/${item.bvid}`" target="_blank" rel="noopener noreferrer"
|
||||
class="group"
|
||||
flex
|
||||
cursor-pointer
|
||||
@click="openLinkToNewTab(`https://www.bilibili.com/list/watchlater?bvid=${item.bvid}`)"
|
||||
block flex cursor-pointer
|
||||
>
|
||||
<section
|
||||
rounded="$bew-radius"
|
||||
@@ -197,8 +195,7 @@ function jumpToLoginPage() {
|
||||
class="keep-two-lines"
|
||||
overflow="hidden"
|
||||
un-text="lg overflow-ellipsis"
|
||||
:href="removeHttpFromUrl(`https://www.bilibili.com/list/watchlater?bvid=${item.bvid}`)" target="_blank"
|
||||
@click.stop=""
|
||||
:href="removeHttpFromUrl(`https://www.bilibili.com/list/watchlater?bvid=${item.bvid}`)" target="_blank" rel="noopener noreferrer"
|
||||
>
|
||||
{{ item.title }}
|
||||
</a>
|
||||
@@ -214,8 +211,7 @@ function jumpToLoginPage() {
|
||||
hover:bg="$bew-theme-color-10"
|
||||
duration-300
|
||||
pr-2
|
||||
:href="`//space.bilibili.com/${item.owner.mid}`" target="_blank"
|
||||
@click.stop=""
|
||||
:href="`//space.bilibili.com/${item.owner.mid}`" target="_blank" rel="noopener noreferrer"
|
||||
>
|
||||
<img
|
||||
:src="removeHttpFromUrl(`${item.owner.face}@40w_40h_1c`)"
|
||||
@@ -245,7 +241,7 @@ function jumpToLoginPage() {
|
||||
opacity-0 group-hover:opacity-100
|
||||
p-2
|
||||
duration-300
|
||||
@click.stop="deleteWatchLaterItem(index, item.aid)"
|
||||
@click.prevent="deleteWatchLaterItem(index, item.aid)"
|
||||
>
|
||||
<tabler:trash />
|
||||
</button>
|
||||
|
||||
Reference in New Issue
Block a user