From b88f5ba5eb1057c23d5c1907d41ba3063aee11ed Mon Sep 17 00:00:00 2001 From: tycho Date: Sun, 28 Jan 2024 16:04:02 +0800 Subject: [PATCH 1/4] refactor: remove unused @types/md5 dependency --- package.json | 2 +- pnpm-lock.yaml | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/package.json b/package.json index e3d3b9fb..cd010744 100644 --- a/package.json +++ b/package.json @@ -33,7 +33,6 @@ "postinstall": "npx simple-git-hooks" }, "dependencies": { - "@types/md5": "^2.3.5", "dplayer": "^1.27.1", "md5": "^2.3.0", "mitt": "^3.0.1", @@ -52,6 +51,7 @@ "@iconify/vue": "^4.1.1", "@intlify/unplugin-vue-i18n": "^0.8.2", "@rollup/plugin-replace": "^5.0.5", + "@types/md5": "^2.3.5", "@types/dplayer": "^1.25.5", "@types/fs-extra": "^9.0.13", "@types/node": "^18.18.10", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index d645930f..bc2ba82f 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -5,9 +5,6 @@ settings: excludeLinksFromLockfile: false dependencies: - '@types/md5': - specifier: ^2.3.5 - version: 2.3.5 dplayer: specifier: ^1.27.1 version: 1.27.1 @@ -64,6 +61,9 @@ devDependencies: '@types/fs-extra': specifier: ^9.0.13 version: 9.0.13 + '@types/md5': + specifier: ^2.3.5 + version: 2.3.5 '@types/node': specifier: ^18.18.10 version: 18.19.6 @@ -1258,7 +1258,7 @@ packages: /@types/md5@2.3.5: resolution: {integrity: sha512-/i42wjYNgE6wf0j2bcTX6kuowmdL/6PE4IVitMpm2eYKBUuYCprdcWVK+xEF0gcV6ufMCRhtxmReGfc6hIK7Jw==} - dev: false + dev: true /@types/mdast@3.0.15: resolution: {integrity: sha512-LnwD+mUEfxWMa1QpDraczIn6k0Ee3SMicuYSSzS6ZYl2gKS09EClnJYGd8Du6rfc5r/GZEk5o1mRb8TaTj03sQ==} From a83c8d1da7b22857b66da26a05d38b1b9ea11de6 Mon Sep 17 00:00:00 2001 From: tycho Date: Sun, 28 Jan 2024 16:20:47 +0800 Subject: [PATCH 2/4] feat(SearchBar): handle blur event to update focus state --- src/components/SearchBar/SearchBar.vue | 1 + 1 file changed, 1 insertion(+) diff --git a/src/components/SearchBar/SearchBar.vue b/src/components/SearchBar/SearchBar.vue index e1766e71..351e81e9 100644 --- a/src/components/SearchBar/SearchBar.vue +++ b/src/components/SearchBar/SearchBar.vue @@ -173,6 +173,7 @@ async function handleClearSearchHistory() { ring="1 $bew-border-color" transition="all duration-300" type="text" + @blur="isFocus = false" @focus="isFocus = true" @input="handleInput" @keyup.enter.stop.passive="navigateToSearchResultPage(keyword)" From e59d2d17f9ef278c01de598bcfcc793ccce5875a Mon Sep 17 00:00:00 2001 From: Hakadao Date: Mon, 29 Jan 2024 01:10:41 +0800 Subject: [PATCH 3/4] Revert "Hide search history dropdown on input blur" --- package.json | 2 +- pnpm-lock.yaml | 8 ++++---- src/components/SearchBar/SearchBar.vue | 1 - 3 files changed, 5 insertions(+), 6 deletions(-) diff --git a/package.json b/package.json index cd010744..e3d3b9fb 100644 --- a/package.json +++ b/package.json @@ -33,6 +33,7 @@ "postinstall": "npx simple-git-hooks" }, "dependencies": { + "@types/md5": "^2.3.5", "dplayer": "^1.27.1", "md5": "^2.3.0", "mitt": "^3.0.1", @@ -51,7 +52,6 @@ "@iconify/vue": "^4.1.1", "@intlify/unplugin-vue-i18n": "^0.8.2", "@rollup/plugin-replace": "^5.0.5", - "@types/md5": "^2.3.5", "@types/dplayer": "^1.25.5", "@types/fs-extra": "^9.0.13", "@types/node": "^18.18.10", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index bc2ba82f..d645930f 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -5,6 +5,9 @@ settings: excludeLinksFromLockfile: false dependencies: + '@types/md5': + specifier: ^2.3.5 + version: 2.3.5 dplayer: specifier: ^1.27.1 version: 1.27.1 @@ -61,9 +64,6 @@ devDependencies: '@types/fs-extra': specifier: ^9.0.13 version: 9.0.13 - '@types/md5': - specifier: ^2.3.5 - version: 2.3.5 '@types/node': specifier: ^18.18.10 version: 18.19.6 @@ -1258,7 +1258,7 @@ packages: /@types/md5@2.3.5: resolution: {integrity: sha512-/i42wjYNgE6wf0j2bcTX6kuowmdL/6PE4IVitMpm2eYKBUuYCprdcWVK+xEF0gcV6ufMCRhtxmReGfc6hIK7Jw==} - dev: true + dev: false /@types/mdast@3.0.15: resolution: {integrity: sha512-LnwD+mUEfxWMa1QpDraczIn6k0Ee3SMicuYSSzS6ZYl2gKS09EClnJYGd8Du6rfc5r/GZEk5o1mRb8TaTj03sQ==} diff --git a/src/components/SearchBar/SearchBar.vue b/src/components/SearchBar/SearchBar.vue index 351e81e9..e1766e71 100644 --- a/src/components/SearchBar/SearchBar.vue +++ b/src/components/SearchBar/SearchBar.vue @@ -173,7 +173,6 @@ async function handleClearSearchHistory() { ring="1 $bew-border-color" transition="all duration-300" type="text" - @blur="isFocus = false" @focus="isFocus = true" @input="handleInput" @keyup.enter.stop.passive="navigateToSearchResultPage(keyword)" From 5d4538b49a67c9b19ffa0c97ca7fcc6be8346057 Mon Sep 17 00:00:00 2001 From: Hakadao Date: Wed, 31 Jan 2024 00:03:32 +0800 Subject: [PATCH 4/4] =?UTF-8?q?fix:=20=E6=92=AD=E6=94=BE=E5=85=A8=E9=83=A8?= =?UTF-8?q?up=E8=A7=86=E9=A2=91=E6=97=B6=E5=A4=B1=E6=95=88=20#243?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/contentScripts/index.ts | 2 +- src/contentScripts/views/App.vue | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/contentScripts/index.ts b/src/contentScripts/index.ts index 9e596714..a68f8920 100644 --- a/src/contentScripts/index.ts +++ b/src/contentScripts/index.ts @@ -36,7 +36,7 @@ function isSupportedPages() { || /https?:\/\/www.bilibili.com\/\?bvid=.*$/.test(currentUrl) // video page - || /https?:\/\/(www.)?bilibili.com\/video\/.*/.test(currentUrl) + || /https?:\/\/(www.)?bilibili.com\/(video|list)\/.*/.test(currentUrl) // anime playback & movie page || /https?:\/\/(www.)?bilibili.com\/bangumi\/play\/.*/.test(currentUrl) // watch later playlist diff --git a/src/contentScripts/views/App.vue b/src/contentScripts/views/App.vue index cd1fa532..c8dbf3c5 100644 --- a/src/contentScripts/views/App.vue +++ b/src/contentScripts/views/App.vue @@ -43,7 +43,7 @@ const isTopBarFixed = computed(() => { // // search page // || /https?:\/\/search.bilibili.com\/.*$/.test(location.href) // video page - || /https?:\/\/(www.)?bilibili.com\/video\/.*/.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) // moment page