From 81f48f9eb17104e07c2eda8393302b9e6753f47e Mon Sep 17 00:00:00 2001 From: eric2788 Date: Wed, 10 Jan 2024 15:15:26 +0800 Subject: [PATCH] updated id from bilibili-jimaku-filter to bilibili-vup-stream-enhancer --- README.md | 4 ++-- package.json | 2 +- src/background/messages/check-update.ts | 6 +++--- src/background/messages/fetch-developer.ts | 2 +- src/background/update-listener.ts | 6 +++--- src/contents/index/components/Footer.tsx | 2 +- src/contents/index/index.tsx | 2 +- src/database/index.ts | 2 +- src/utils/messaging.ts | 2 +- 9 files changed, 14 insertions(+), 14 deletions(-) diff --git a/README.md b/README.md index 21d4807f..bd404edc 100644 --- a/README.md +++ b/README.md @@ -4,7 +4,7 @@ ## ➵ 下载 -[火狐及更新记录](https://github.com/eric2788/bilibili-jimaku-filter/releases) +[火狐及更新记录](https://github.com/eric2788/bilibili-vup-stream-enhancer/releases) [Edge](https://microsoftedge.microsoft.com/addons/detail/ehdhihncinoejihhmhpdoeloadihnfio) @@ -24,4 +24,4 @@ [NGA帖文](https://ngabbs.com/read.php?tid=24434809) -[问题回报和功能请求帖](https://github.com/eric2788/bilibili-jimaku-filter/issues) +[问题回报和功能请求帖](https://github.com/eric2788/bilibili-vup-stream-enhancer/issues) diff --git a/package.json b/package.json index d30c155e..77e98c36 100644 --- a/package.json +++ b/package.json @@ -82,7 +82,7 @@ "browser_specific_settings": { "gecko": { "id": "{041b8202-e9d4-4a78-a9da-465c749ed26c}", - "update_url": "https://eric2788.github.io/bilibili-jimaku-filter/updates.json", + "update_url": "https://eric2788.github.io/bilibili-vup-stream-enhancer/updates.json", "strict_min_version": "78.0" } }, diff --git a/src/background/messages/check-update.ts b/src/background/messages/check-update.ts index e5862093..11240e1e 100644 --- a/src/background/messages/check-update.ts +++ b/src/background/messages/check-update.ts @@ -6,7 +6,7 @@ export const browser = process.env.PLASMO_BROWSER || 'chrome' export async function notifyUpdate(version: string): Promise { await sendInternal('notify', { - title: 'bilibili-jimaku-filter 有可用的更新', + title: 'bilibili-vup-stream-enhancer 有可用的更新', message: `新版本 v${version || 'SNAPSHOT'}`, buttons: [ { @@ -17,7 +17,7 @@ export async function notifyUpdate(version: string): Promise { title: '查看更新日誌', clicked: () => { chrome.tabs.create({ - url: `https://github.com/eric2788/bilibili-jimaku-filter/releases/tag/${version}` + url: `https://github.com/eric2788/bilibili-vup-stream-enhancer/releases/tag/${version}` }) } } @@ -53,7 +53,7 @@ const handler: PlasmoMessaging.MessageHandler = async (req, res) => await notifyUpdate(version) } else if (status === 'no_update') { await sendInternal('notify', { - title: 'bilibili-jimaku-filter 已是最新版本', + title: 'bilibili-vup-stream-enhancer 已是最新版本', message: `當前版本 v${version || 'SNAPSHOT'}` }) } else { diff --git a/src/background/messages/fetch-developer.ts b/src/background/messages/fetch-developer.ts index 6515615d..ab57869c 100644 --- a/src/background/messages/fetch-developer.ts +++ b/src/background/messages/fetch-developer.ts @@ -2,7 +2,7 @@ import type { PlasmoMessaging } from "@plasmohq/messaging" import { sendInternal } from '~background/messages' import { setSettingStorage } from '~utils/storage' -const developerLink = `https://cdn.jsdelivr.net/gh/eric2788/bilibili-jimaku-filter@web/cdn/developer.json` +const developerLink = `https://cdn.jsdelivr.net/gh/eric2788/bilibili-vup-stream-enhancer@web/cdn/developer.json` export type RequestBody = {} diff --git a/src/background/update-listener.ts b/src/background/update-listener.ts index d8154011..66f74333 100644 --- a/src/background/update-listener.ts +++ b/src/background/update-listener.ts @@ -11,13 +11,13 @@ chrome.runtime.onInstalled.addListener(async (data: chrome.runtime.InstalledDeta try { await sendInternal('fetch-developer') await sendInternal('notify', { - title: 'bilibili-jimaku-filter 已安裝', + title: 'bilibili-vup-stream-enhancer 已安裝', message: '成功从远端获取最新设定' }) } catch (err: Error | any) { console.error(err) await sendInternal('notify', { - title: 'bilibili-jimaku-filter 已安裝', + title: 'bilibili-vup-stream-enhancer 已安裝', message: '获取远端最新设定失败,将使用本地版本' }) } @@ -26,7 +26,7 @@ chrome.runtime.onInstalled.addListener(async (data: chrome.runtime.InstalledDeta } else if (data.reason === 'update') { await sendInternal('notify', { - title: 'bilibili-jimaku-filter 已更新', + title: 'bilibili-vup-stream-enhancer 已更新', message: `已更新到版本 v${version}`, }) diff --git a/src/contents/index/components/Footer.tsx b/src/contents/index/components/Footer.tsx index ae14ca92..03ac39b6 100644 --- a/src/contents/index/components/Footer.tsx +++ b/src/contents/index/components/Footer.tsx @@ -14,7 +14,7 @@ function Footer(): JSX.Element {
- + diff --git a/src/contents/index/index.tsx b/src/contents/index/index.tsx index 4c99ef42..ae5d1764 100644 --- a/src/contents/index/index.tsx +++ b/src/contents/index/index.tsx @@ -116,7 +116,7 @@ export const render: PlasmoRender = async ({ anchor, createRootContainer }, await transactions(app.start) } catch (err: Error | any) { - console.error(`渲染 bilibili-jimaku-filter 元素時出現錯誤: `, err) + console.error(`渲染 bilibili-vup-stream-enhancer 元素時出現錯誤: `, err) return } diff --git a/src/database/index.ts b/src/database/index.ts index 4e3287bc..508cadf4 100644 --- a/src/database/index.ts +++ b/src/database/index.ts @@ -16,7 +16,7 @@ export type RecordType = IndexedDatabase[T] extends Table(name: T, body: MsgPayload = undefined, sender: chrome.runtime.MessageSender = undefined): Promise> { return sendToBackground({ name, body }).then(res => res as MsgResponse)