diff --git a/src/_locales/cmn-CN.yml b/src/_locales/cmn-CN.yml index f8a502a1..f6db17fa 100644 --- a/src/_locales/cmn-CN.yml +++ b/src/_locales/cmn-CN.yml @@ -262,8 +262,10 @@ settings: 重置设置? 该操作无法撤销。你确定要重置你的设置吗? contributors: 贡献者 + auth: auth_access_key_first: 在这之前请先授权 BewlyBewly 使用 access key + topbar: sign_in: 登录 notifications: 通知 @@ -348,6 +350,7 @@ topbar: sticker: 上传贴纸 video: 上传视频 manager: 投稿管理 + dock: search: 搜索 home: 首页 @@ -358,21 +361,40 @@ dock: dark_mode: 暗色模式 light_mode: 亮色模式 settings: 设置 -home: - not_interested: 不感兴趣 - not_interested_desc: 你可以使用 来选择原因,或者直接使用数字键选择原因,按 Enter 就直接提交。 - tell_us_why: 为什么这么做... + +video_card: + operation: + not_interested: 不感兴趣 + open_in_background: 后台打开 + open_in_new_window: 新标签页打开 + open_in_current_tab: 当前标签页打开 + open_in_drawer: 抽屉打开 + + copy_video_link: 复制视频链接 + copy_bv_number: 复制 BV 号 + copy_av_number: 复制 AV 号 + + view_the_original_cover: 查看封面 + view_this_user_channel: 查看该用户频道 + video_removed: 视频已移除 + +home: + tell_us_why: 为什么这么做... + not_interested_desc: 你可以使用 来选择原因,或者直接使用数字键选择原因,按 Enter 就直接提交。 + for_you: 个性推荐 following: 正在关注 trending: 热门视频 ranking: 排行 subscribed_series: 订阅剧集 + ranking: all: 全部 chinese_anime_related: 中国动画相关 original_content: 原创内容 debut_work: 新人作品 + anime: total_episodes: 全 {ep} 话 update_to_n_episodes: 更新至 {ep} 话 @@ -391,6 +413,7 @@ anime: fri: 周五 sat: 周六 sun: 周日 + history: clear_all_watch_history: 清除所有观看历史 clear_all_watch_history_confirm: |- @@ -406,11 +429,13 @@ history: turn_on_watch_history_confirm: |- 要开启观看历史吗? 你确定要开启观看历史吗? + favorites: unfavorite: 取消收藏 unfavorite_confirm: |- 要取消收藏选中的视频吗? 该操作无法撤销,你确定要取消收藏选中的视频吗? + watch_later: title: 稍后再看 clear_all: 清空稍后再看 @@ -421,6 +446,7 @@ watch_later: remove_watched_videos_confirm: |- 要清除已观看的视频吗? 该操作无法撤销,你确定要清除已观看的视频吗? + search_bar: history_title: 搜索历史 clear_history: 清空搜索历史 diff --git a/src/_locales/cmn-TW.yml b/src/_locales/cmn-TW.yml index d3209458..28714727 100644 --- a/src/_locales/cmn-TW.yml +++ b/src/_locales/cmn-TW.yml @@ -263,8 +263,10 @@ settings: 重設設定? 此操作無法撤消,你確定要重設你的設定嗎? contributors: 貢獻者 + auth: auth_access_key_first: 在這之前請先授權 BewlyBewly 使用 access key + topbar: sign_in: 登入 notifications: 通知 @@ -349,6 +351,7 @@ topbar: sticker: 上傳貼圖 video: 上傳影片 manager: 內容管理 + dock: search: 搜尋 home: 首頁 @@ -359,21 +362,40 @@ dock: dark_mode: 深色模式 light_mode: 淺色模式 settings: 設定 -home: - not_interested: 不感興趣 - not_interested_desc: 你可以用 來選擇原因,或者直接使用數字鍵來選擇原因,按 Enter 就直接提交。 - tell_us_why: 為什麼這樣做... + +video_card: + operation: + not_interested: 不感興趣 + open_in_background: 後台開啟 + open_in_new_window: 新索引標籤開啟 + open_in_current_tab: 目前索引標籤開啟 + open_in_drawer: 抽屜開啟 + + copy_video_link: 複製影片連結 + copy_bv_number: 複製 BV 號 + copy_av_number: 複製 AV 號 + + view_the_original_cover: 檢視封面 + view_this_user_channel: 檢視該用戶頻道 + video_removed: 影片已移除 + +home: + tell_us_why: 為什麼這樣做... + not_interested_desc: 你可以用 來選擇原因,或者直接使用數字鍵來選擇原因,按 Enter 就直接提交。 + for_you: 為你推薦 following: 正在跟隨 trending: 發燒影片 ranking: 排行 subscribed_series: 訂閱劇集 + ranking: all: 全部 chinese_anime_related: 中國動畫相關 original_content: 原創內容 debut_work: 新人作品 + anime: total_episodes: 全 {ep} 話 update_to_n_episodes: 更新至 {ep} 話 @@ -392,6 +414,7 @@ anime: fri: 週五 sat: 週六 sun: 週日 + history: title: 觀看記錄 turn_on_watch_history: 啟用觀看記錄 @@ -407,11 +430,13 @@ history: turn_on_watch_history_confirm: |- 要啟用觀看記錄嗎? 你確定要啟用觀看記錄嗎? + favorites: unfavorite: 取消收藏 unfavorite_confirm: |- 要取消收藏選中的影片嗎? 此操作無法撤消,你確定要取消收藏選中的影片嗎? + watch_later: title: 稍後觀看 clear_all: 清空稍後觀看 @@ -422,6 +447,7 @@ watch_later: remove_watched_videos_confirm: |- 要移除看過的影片嗎? 此操作無法復原,你確定要移除看過的影片嗎? + search_bar: history_title: 搜尋記錄 clear_history: 清除所有搜尋記錄 diff --git a/src/_locales/en.yml b/src/_locales/en.yml index 950f7c5f..24673ece 100644 --- a/src/_locales/en.yml +++ b/src/_locales/en.yml @@ -265,8 +265,10 @@ settings: Reset settings? This operation cannot be reversed. Are you sure you want to reset your settings? contributors: Contributors + auth: auth_access_key_first: Before doing this, authorize BewlyBewly to use the access key. + topbar: sign_in: Sign in notifications: Notifications @@ -351,6 +353,7 @@ topbar: sticker: Sticker video: Video manager: Manager + dock: search: Search home: Home @@ -361,21 +364,40 @@ dock: dark_mode: Dark Mode light_mode: Light Mode settings: Settings -home: - not_interested: Not interested - not_interested_desc: You can use and to choose the reason, or using number keys to choose the reason directly, press Enter to confirm. - tell_us_why: Choose a reason why + +video_card: + operation: + not_interested: Not Interested + open_in_background: Open In Background + open_in_new_window: Open in New Window + open_in_current_tab: Open in Current Tab + open_in_drawer: Open in Drawer + + copy_video_link: Copy Video Link + copy_bv_number: Copy BV Number + copy_av_number: Copy AV Number + + view_the_original_cover: View the Original Cover + view_this_user_channel: View This User Channel + video_removed: Video removed + +home: + tell_us_why: Choose a reason why + not_interested_desc: You can use and to choose the reason, or using number keys to choose the reason directly, press Enter to confirm. + for_you: For you following: Following trending: Trending ranking: Ranking subscribed_series: Subscribed Series + ranking: all: All chinese_anime_related: Chinese Anime-related original_content: Original Content debut_work: Debut Work + anime: total_episodes: EP {ep} update_to_n_episodes: Update to EP {ep} @@ -394,6 +416,7 @@ anime: fri: FRI sat: SAT sun: SUN + history: title: Watch History search_watch_history: Search watch history @@ -407,11 +430,13 @@ history: Are you sure you want to pause watch history? turn_on_watch_history: Turn on watch history turn_on_watch_history_confirm: Turn on watch history? Are you sure you want to turn on watch history? + favorites: unfavorite: Unfavorite unfavorite_confirm: |- Remove selected video(s)? This operation cannot be reversed. Are you sure you want to remove the selected video(s) from your favorites? + watch_later: title: Watch Later clear_all: Clear all watch later @@ -422,6 +447,7 @@ watch_later: remove_watched_videos_confirm: |- Remove watched videos? This operation cannot be reversed. Are you sure you want to remove watched videos? + search_bar: history_title: Search History clear_history: Clear search history diff --git a/src/_locales/jyut.yml b/src/_locales/jyut.yml index 38d2c48b..5be21b38 100644 --- a/src/_locales/jyut.yml +++ b/src/_locales/jyut.yml @@ -262,8 +262,10 @@ settings: 重設設定? 噉做冇得返轉頭噃,你確定要重設你之前嘅設定? contributors: 貢獻者 + auth: auth_access_key_first: 整之前記得先授權 BewlyBewly 去用 access key + topbar: sign_in: 登入 notifications: 通知 @@ -348,6 +350,7 @@ topbar: sticker: 出貼圖 video: Po 片 manager: 內容管理 + dock: search: 搵嘢 home: 主頁 @@ -358,21 +361,40 @@ dock: dark_mode: 深色模式 light_mode: 淺色模式 settings: 設定 + +video_card: + operation: + not_interested: 唔鍾意 + open_in_background: 後台開啓 + open_in_new_window: 新分頁開啓 + open_in_current_tab: 目前分頁開啓 + open_in_drawer: 櫃桶開啓 + + copy_video_link: 複製影片連結 + copy_bv_number: 複製 BV 號 + copy_av_number: 複製 AV 號 + + view_the_original_cover: 睇吓封面 + view_this_user_channel: 睇下呢位用戶嘅頻道 + + video_removed: 經已鏟咗條片 + home: - not_interested: 唔鍾意 - not_interested_desc: 你可以用 嚟揀個理由,抑或用數字鍵嚟直接揀理由,撳 Enter 就直接提交。 tell_us_why: 點解噉做... - video_removed: 已經鏟咗條片 + not_interested_desc: 你可以用 嚟揀個理由,抑或用數字鍵嚟直接揀理由,撳 Enter 就直接提交。 + for_you: 估你心水 following: Follow 緊 trending: 時下至 Hit ranking: 排行 subscribed_series: 訂閱劇集 + ranking: all: 全部 chinese_anime_related: 中國動畫相關 original_content: 原創內容 debut_work: 新人作品 + anime: total_episodes: 共 {ep} 集 update_to_n_episodes: 更新到 {ep} 集 @@ -391,6 +413,7 @@ anime: fri: 週五 sat: 週六 sun: 週日 + history: title: 收睇記錄 turn_on_watch_history: 開返收睇記錄 @@ -406,11 +429,13 @@ history: turn_on_watch_history_confirm: |- 係咪要開返收睇記錄呀? 你確定要開返收睇記錄? + favorites: unfavorite: 唔愛喇 unfavorite_confirm: |- 係咪要剷走你揀過啲片呀? 噉做冇得返轉頭噃,你確定要剷走你揀過啲片? + watch_later: title: 陣間至睇 clear_all: 剷曬陣間至睇啲片 @@ -421,6 +446,7 @@ watch_later: remove_watched_videos_confirm: |- 係咪要剷走你睇過啲片呀? 噉做冇得返轉頭噃,你確定要剷走你睇過啲片? + search_bar: history_title: 搜尋記錄 clear_history: 剷晒你啲搜尋記錄 diff --git a/src/components/VideoCard/VideoCard.vue b/src/components/VideoCard/VideoCard.vue index 8b6acfa2..25ba2c3f 100644 --- a/src/components/VideoCard/VideoCard.vue +++ b/src/components/VideoCard/VideoCard.vue @@ -19,13 +19,15 @@ import VideoCardSkeleton from './VideoCardSkeleton.vue' const props = withDefaults(defineProps(), { showWatcherLater: true, + type: 'common', + moreBtn: true, }) interface Props { skeleton?: boolean video?: Video - /** 是否爲app端推介,用於調用不同取消不感興趣方法 */ - isApp?: boolean + /** rcmd: recommend video; appRcmd: app recommend video; bangumi: bangumi video; common: common video */ + type: 'rcmd' | 'appRcmd' | 'bangumi' | 'common' showWatcherLater?: boolean horizontal?: boolean showPreview?: boolean @@ -222,7 +224,7 @@ function handleMoreBtnClick(event: MouseEvent) { } function handleUndo() { - if (props.isApp) { + if (props.type === 'appRcmd') { const params = { access_key: accessKey.value, goto: props.video?.goto, @@ -257,6 +259,8 @@ function handleRemoved(selectedOpt?: { dislikeReasonId: number }) { selectedDislikeOpt.value = selectedOpt removed.value = true } + +provide('getVideoType', () => props.type!)