Skip to content

Commit

Permalink
updated id from bilibili-jimaku-filter to bilibili-vup-stream-enhancer
Browse files Browse the repository at this point in the history
  • Loading branch information
eric2788 committed Jan 10, 2024
1 parent a1c3ef5 commit 81f48f9
Show file tree
Hide file tree
Showing 9 changed files with 14 additions and 14 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand All @@ -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)
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
},
Expand Down
6 changes: 3 additions & 3 deletions src/background/messages/check-update.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ export const browser = process.env.PLASMO_BROWSER || 'chrome'

export async function notifyUpdate(version: string): Promise<void> {
await sendInternal('notify', {
title: 'bilibili-jimaku-filter 有可用的更新',
title: 'bilibili-vup-stream-enhancer 有可用的更新',
message: `新版本 v${version || 'SNAPSHOT'}`,
buttons: [
{
Expand All @@ -17,7 +17,7 @@ export async function notifyUpdate(version: string): Promise<void> {
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}`
})
}
}
Expand Down Expand Up @@ -53,7 +53,7 @@ const handler: PlasmoMessaging.MessageHandler<RequestBody> = 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 {
Expand Down
2 changes: 1 addition & 1 deletion src/background/messages/fetch-developer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {}
Expand Down
6 changes: 3 additions & 3 deletions src/background/update-listener.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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: '获取远端最新设定失败,将使用本地版本'
})
}
Expand All @@ -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}`,
})

Expand Down
2 changes: 1 addition & 1 deletion src/contents/index/components/Footer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ function Footer(): JSX.Element {
</Typography>
<hr className="py-3 border-black dark:border-gray-700" />
<div className="grid grid-cols-2 sm:grid-cols-3 md:grid-cols-4 gap-3 justify-items-center">
<FooterButton title="查看源代码" onClick={url('https://github.com/eric2788/bilibili-jimaku-filter')}>
<FooterButton title="查看源代码" onClick={url('https://github.com/eric2788/bilibili-vup-stream-enhancer')}>
<svg className="h-10 w-10 text-black" fill="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg">
<path fillRule="evenodd" clipRule="evenodd" d="M12 2C6.477 2 2 6.477 2 12c0 4.418 2.865 8.166 6.839 9.489.5.092.682-.217.682-.482 0-.237-.009-.866-.014-1.7-2.782.603-3.369-1.34-3.369-1.34-.454-1.156-1.11-1.462-1.11-1.462-.908-.62.069-.608.069-.608 1.003.07 1.532 1.03 1.532 1.03.891 1.529 2.341 1.089 2.91.833.091-.646.349-1.086.635-1.337-2.22-.253-4.555-1.11-4.555-4.943 0-1.091.39-1.984 1.03-2.682-.103-.253-.447-1.27.098-2.646 0 0 .84-.27 2.75 1.026A9.564 9.564 0 0112 7.07c.85.004 1.705.115 2.504.337 1.909-1.296 2.747-1.026 2.747-1.026.547 1.376.203 2.394.1 2.646.64.699 1.026 1.591 1.026 2.682 0 3.841-2.337 4.687-4.565 4.934.359.31.678.919.678 1.852 0 1.335-.012 2.415-.012 2.741 0 .267.18.577.688.479C19.138 20.164 22 16.418 22 12c0-5.523-4.477-10-10-10z"></path>
</svg>
Expand Down
2 changes: 1 addition & 1 deletion src/contents/index/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ export const render: PlasmoRender<any> = 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
}

Expand Down
2 changes: 1 addition & 1 deletion src/database/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ export type RecordType<T extends TableType> = IndexedDatabase[T] extends Table<i

export class IndexedDatabase extends Dexie {
public constructor() {
super("bilibili-jimaku-filter")
super("bilibili-vup-stream-enhancer")
migrate(this)
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/utils/messaging.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import type {
import type { BLiveDataWild } from "~types/bilibili"
import { sendToBackground } from '@plasmohq/messaging'

export const ID = 'bilibili-jimaku-filter'
export const ID = 'bilibili-vup-stream-enhancer'

export async function sendMessager<T extends keyof MessagingData>(name: T, body: MsgPayload<MessagingData[T]> = undefined, sender: chrome.runtime.MessageSender = undefined): Promise<MsgResponse<MessagingData[T]>> {
return sendToBackground({ name, body }).then(res => res as MsgResponse<MessagingData[T]>)
Expand Down

0 comments on commit 81f48f9

Please sign in to comment.