mirror of
https://github.com/BewlyBewly/BewlyBewly.git
synced 2025-04-14 13:15:29 +00:00
chore(pkg): update deps (#837)
* chore(pkg): update deps * chore: fix ts error
This commit is contained in:
@@ -35,41 +35,43 @@ function isSupportedPages() {
|
||||
|| /https?:\/\/www\.bilibili\.com\/\?bvid=.*$/.test(currentUrl)
|
||||
|
||||
// video page
|
||||
|| /https?:\/\/(www.)?bilibili\.com\/(video|list)\/.*/.test(currentUrl)
|
||||
|| /https?:\/\/(?:www\.)?bilibili\.com\/(?:video|list)\/.*/.test(currentUrl)
|
||||
// anime playback & movie page
|
||||
|| /https?:\/\/(www\.)?bilibili\.com\/bangumi\/play\/.*/.test(currentUrl)
|
||||
|| /https?:\/\/(?:www\.)?bilibili\.com\/bangumi\/play\/.*/.test(currentUrl)
|
||||
// watch later playlist
|
||||
|| /https?:\/\/(www\.)?bilibili\.com\/list\/watchlater.*/.test(currentUrl)
|
||||
|| /https?:\/\/(?:www\.)?bilibili\.com\/list\/watchlater.*/.test(currentUrl)
|
||||
// favorite playlist
|
||||
|| /https?:\/\/(www\.)?bilibili\.com\/list\/ml.*/.test(currentUrl)
|
||||
|| /https?:\/\/(?:www\.)?bilibili\.com\/list\/ml.*/.test(currentUrl)
|
||||
// search page
|
||||
|| /https?:\/\/search\.bilibili\.com\.*/.test(currentUrl)
|
||||
// moments
|
||||
|| /https?:\/\/t\.bilibili\.com\.*/.test(currentUrl)
|
||||
// moment detail
|
||||
|| /https?:\/\/(www\.)?bilibili\.com\/opus\/.*/.test(currentUrl)
|
||||
|| /https?:\/\/(?:www\.)?bilibili\.com\/opus\/.*/.test(currentUrl)
|
||||
// history page
|
||||
|| /https?:\/\/(www\.)?bilibili\.com\/account\/history.*/.test(currentUrl)
|
||||
|| /https?:\/\/(?:www\.)?bilibili\.com\/account\/history.*/.test(currentUrl)
|
||||
// watcher later page
|
||||
|| /https?:\/\/(www\.)?bilibili\.com\/watchlater\/#\/list.*/.test(currentUrl)
|
||||
|| /https?:\/\/(?:www\.)?bilibili\.com\/watchlater\/#\/list.*/.test(currentUrl)
|
||||
// user space page
|
||||
|| /https?:\/\/space\.bilibili\.com\.*/.test(currentUrl)
|
||||
// notifications page
|
||||
|| /https?:\/\/message\.bilibili\.com\.*/.test(currentUrl)
|
||||
// bilibili channel page b站分区页面
|
||||
|| /https?:\/\/(www\.)?bilibili\.com\/v\/(?!popular).*/.test(currentUrl)
|
||||
|| /https?:\/\/(?:www\.)?bilibili\.com\/v\/(?!popular).*/.test(currentUrl)
|
||||
// anime page & chinese anime page
|
||||
|| /https?:\/\/(www\.)?bilibili\.com\/(anime|guochuang).*/.test(currentUrl)
|
||||
|| /https?:\/\/(?:www\.)?bilibili\.com\/(?:anime|guochuang).*/.test(currentUrl)
|
||||
// channel page e.g. tv shows, movie, variety shows, mooc page
|
||||
|| /https?:\/\/(www\.)?bilibili\.com\/(tv|movie|variety|mooc|documentary).*/.test(currentUrl)
|
||||
|| /https?:\/\/(?:www\.)?bilibili\.com\/(?:tv|movie|variety|mooc|documentary).*/.test(currentUrl)
|
||||
// article page
|
||||
|| /https?:\/\/(www\.)?bilibili\.com\/(read).*/.test(currentUrl)
|
||||
|| /https?:\/\/(?:www\.)?bilibili\.com\/read.*/.test(currentUrl)
|
||||
// 404 page
|
||||
|| /^https?:\/\/(www\.)?bilibili\.com\/404.*$/.test(currentUrl)
|
||||
)
|
||||
|| /^https?:\/\/(?:www\.)?bilibili\.com\/404.*$/.test(currentUrl)
|
||||
) {
|
||||
return true
|
||||
else
|
||||
}
|
||||
else {
|
||||
return false
|
||||
}
|
||||
}
|
||||
|
||||
let beforeLoadedStyleEl: HTMLStyleElement | undefined
|
||||
|
||||
@@ -40,12 +40,6 @@ const handleThrottledBackToTop = useThrottleFn(() => handleBackToTop(), 1000)
|
||||
const topBarRef = ref()
|
||||
const reachTop = ref<boolean>(true)
|
||||
|
||||
const isVideoPage = computed(() => {
|
||||
if (/https?:\/\/(www.)?bilibili.com\/video\/.*/.test(location.href))
|
||||
return true
|
||||
return false
|
||||
})
|
||||
|
||||
const isSearchPage = computed(() => {
|
||||
if (/https?:\/\/search.bilibili.com\/.*$/.test(location.href))
|
||||
return true
|
||||
@@ -56,17 +50,18 @@ const isTopBarFixed = computed(() => {
|
||||
if (
|
||||
isHomePage()
|
||||
// video page
|
||||
|| /https?:\/\/(www.)?bilibili.com\/(video|list)\/.*/.test(location.href)
|
||||
|| /https?:\/\/(?:www.)?bilibili.com\/(?:video|list)\/.*/.test(location.href)
|
||||
// anime playback & movie page
|
||||
|| /https?:\/\/(www.)?bilibili.com\/bangumi\/play\/.*/.test(location.href)
|
||||
|| /https?:\/\/(?:www.)?bilibili.com\/bangumi\/play\/.*/.test(location.href)
|
||||
// moment page
|
||||
|| /https?:\/\/t.bilibili.com.*/.test(location.href)
|
||||
// channel, anime, chinese anime, tv shows, movie, variety shows, mooc
|
||||
|| /https?:\/\/(www.)?bilibili.com\/(v|anime|guochuang|tv|movie|variety|mooc).*/.test(location.href)
|
||||
|| /https?:\/\/(?:www.)?bilibili.com\/(?:v|anime|guochuang|tv|movie|variety|mooc).*/.test(location.href)
|
||||
// articles page
|
||||
|| /https?:\/\/(www.)?bilibili.com\/read\/home.*/.test(location.href)
|
||||
)
|
||||
|| /https?:\/\/(?:www.)?bilibili.com\/read\/home.*/.test(location.href)
|
||||
) {
|
||||
return true
|
||||
}
|
||||
return false
|
||||
})
|
||||
|
||||
@@ -365,7 +360,7 @@ provide<BewlyAppProvider>('BEWLY_APP', {
|
||||
<main m-auto max-w="$bew-page-max-width">
|
||||
<div
|
||||
p="t-80px" m-auto
|
||||
:w="isVideoPage ? '[calc(100%-160px)]' : 'lg:85% md:[calc(90%-60px)] [calc(100%-140px)]'"
|
||||
w="lg:85% md:[calc(90%-60px)] [calc(100%-140px)]"
|
||||
>
|
||||
<!-- control button group -->
|
||||
<BackToTopOrRefreshButton
|
||||
|
||||
Reference in New Issue
Block a user