From 6bb4b2d89b3be2f75c9695ef8268011843d528df Mon Sep 17 00:00:00 2001 From: Hakadao Date: Fri, 20 Sep 2024 12:59:53 +0800 Subject: [PATCH] feat(history, watch-later): support open in drawer in video card --- src/contentScripts/views/History/History.vue | 8 +++++++- src/contentScripts/views/WatchLater/WatchLater.vue | 8 +++++++- 2 files changed, 14 insertions(+), 2 deletions(-) diff --git a/src/contentScripts/views/History/History.vue b/src/contentScripts/views/History/History.vue index 07fc71bc..0ff240ee 100644 --- a/src/contentScripts/views/History/History.vue +++ b/src/contentScripts/views/History/History.vue @@ -4,6 +4,7 @@ import { useI18n } from 'vue-i18n' import { useApiClient } from '~/composables/api' import { useBewlyApp } from '~/composables/useAppProvider' +import { settings } from '~/logic' import type { HistoryResult, List as HistoryItem } from '~/models/history/history' import { Business } from '~/models/history/history' import type { HistorySearchResult, List as HistorySearchItem } from '~/models/video/historySearch' @@ -12,6 +13,8 @@ import { getCSRF, removeHttpFromUrl } from '~/utils/main' const { t } = useI18n() const api = useApiClient() +const { openIframeDrawer } = useBewlyApp() + const isLoading = ref() const noMoreContent = ref(false) const historyList = reactive>([]) @@ -235,12 +238,15 @@ function jumpToLoginPage() {