Skip to content

A full-featured download manager.

feat(integration): link the published firefox extension

Dr_rOotab875c52f4a6
diff --git a/README.md b/README.md
index 64a2172e..d1ed1dc2 100644
--- a/README.md
+++ b/README.md
@@ -123,8 +123,9 @@ Motrix Extension is available from the official browser stores for use with Motr
- [Chrome Web Store](https://chromewebstore.google.com/detail/motrix-extension/lggbokfckofcgjndaboioakcmincinpo)
- [Microsoft Edge Add-ons](https://microsoftedge.microsoft.com/addons/detail/motrix-extension/efcflljngohddnmfmebiamigoikmdfbf)
+- [Firefox Add-ons](https://addons.mozilla.org/en-US/firefox/addon/motrix-extension/)
-For installation and pairing, see the [browser extension guide](https://motrix.app/manual/browser-extension/). Firefox development builds remain available from the [extension repository](https://github.com/motrixapp/motrix-extension#manual-browser-workflow-development).
+For installation and pairing, see the [browser extension guide](https://motrix.app/manual/browser-extension/). Development builds remain available from the [extension repository](https://github.com/motrixapp/motrix-extension#manual-browser-workflow-development).
## 📦 Installation
diff --git a/README.zh-CN.md b/README.zh-CN.md
index c9bb232b..adde7897 100644
--- a/README.zh-CN.md
+++ b/README.zh-CN.md
@@ -121,8 +121,9 @@ Motrix Extension 已上架官方浏览器扩展商店,配合 Motrix 2 使用
- [Chrome Web Store](https://chromewebstore.google.com/detail/motrix-extension/lggbokfckofcgjndaboioakcmincinpo)
- [Microsoft Edge Add-ons](https://microsoftedge.microsoft.com/addons/detail/motrix-extension/efcflljngohddnmfmebiamigoikmdfbf)
+- [Firefox Add-ons](https://addons.mozilla.org/en-US/firefox/addon/motrix-extension/)
-安装与配对步骤请参阅[浏览器扩展指南](https://motrix.app/zh/manual/browser-extension/)。Firefox 开发构建方式仍可在[扩展仓库](https://github.com/motrixapp/motrix-extension#manual-browser-workflow-development)中查看。
+安装与配对步骤请参阅[浏览器扩展指南](https://motrix.app/zh/manual/browser-extension/)。开发构建方式仍可在[扩展仓库](https://github.com/motrixapp/motrix-extension#manual-browser-workflow-development)中查看。
## 📦 安装
diff --git a/src/renderer/routes/settings/cards/integration/browser-extension-installs.tsx b/src/renderer/routes/settings/cards/integration/browser-extension-installs.tsx
index eafae6ee..00d5a00c 100644
--- a/src/renderer/routes/settings/cards/integration/browser-extension-installs.tsx
+++ b/src/renderer/routes/settings/cards/integration/browser-extension-installs.tsx
@@ -1,4 +1,4 @@
-import { Button, buttonVariants } from '@renderer/components/ui/button'
+import { buttonVariants } from '@renderer/components/ui/button'
import { cn } from '@renderer/lib/utils'
import { EXTERNAL_URLS } from '@shared/external-urls'
import { useTranslation } from 'react-i18next'
@@ -24,8 +24,8 @@ const INSTALL_OPTIONS = [
{
id: 'firefox',
icon: firefoxIcon,
- href: null,
- status: 'comingSoon',
+ href: EXTERNAL_URLS.browserExtension.firefox,
+ status: 'store',
},
{
id: 'github',
@@ -68,7 +68,7 @@ export function BrowserExtensionInstalls() {
</>
)
- return option.href ? (
+ return (
<a
key={option.id}
href={option.href}
@@ -78,19 +78,6 @@ export function BrowserExtensionInstalls() {
>
{content}
</a>
- ) : (
- <Button
- key={option.id}
- type="button"
- variant="outline"
- disabled
- className={cn(
- className,
- 'disabled:opacity-100 [&_span]:text-muted-foreground'
- )}
- >
- {content}
- </Button>
)
})}
</div>
diff --git a/src/renderer/routes/settings/cards/integration/trusted-extensions-section.tsx b/src/renderer/routes/settings/cards/integration/trusted-extensions-section.tsx
index 848e5c5e..d370de48 100644
--- a/src/renderer/routes/settings/cards/integration/trusted-extensions-section.tsx
+++ b/src/renderer/routes/settings/cards/integration/trusted-extensions-section.tsx
@@ -32,16 +32,25 @@ const SOURCE_ORDER: Record<TrustedExtensionInfo['source'], number> = {
type Browser = 'chromium' | 'firefox'
const OFFICIAL_EXTENSION_STORE_URLS = new Map([
- ['efcflljngohddnmfmebiamigoikmdfbf', EXTERNAL_URLS.browserExtension.edge],
- ['lggbokfckofcgjndaboioakcmincinpo', EXTERNAL_URLS.browserExtension.chrome],
+ [
+ 'chromium:efcflljngohddnmfmebiamigoikmdfbf',
+ EXTERNAL_URLS.browserExtension.edge,
+ ],
+ [
+ 'chromium:lggbokfckofcgjndaboioakcmincinpo',
+ EXTERNAL_URLS.browserExtension.chrome,
+ ],
+ [
+ 'firefox:[email protected]',
+ EXTERNAL_URLS.browserExtension.firefox,
+ ],
])
function ExtensionId({
id,
browser,
}: Pick<TrustedExtensionInfo, 'id' | 'browser'>) {
- const storeUrl =
- browser === 'chromium' ? OFFICIAL_EXTENSION_STORE_URLS.get(id) : undefined
+ const storeUrl = OFFICIAL_EXTENSION_STORE_URLS.get(`${browser}:${id}`)
return storeUrl ? (
<a
diff --git a/src/shared/external-urls.ts b/src/shared/external-urls.ts
index 0861531f..d945f53e 100644
--- a/src/shared/external-urls.ts
+++ b/src/shared/external-urls.ts
@@ -9,6 +9,7 @@ export const EXTERNAL_URLS = {
chrome:
'https://chromewebstore.google.com/detail/motrix-extension/lggbokfckofcgjndaboioakcmincinpo',
edge: 'https://microsoftedge.microsoft.com/addons/detail/motrix-extension/efcflljngohddnmfmebiamigoikmdfbf',
+ firefox: 'https://addons.mozilla.org/en-US/firefox/addon/motrix-extension/',
development:
'https://github.com/motrixapp/motrix-extension#manual-browser-workflow-development',
},
diff --git a/src/shared/locales/en-US.json b/src/shared/locales/en-US.json
index 43ab28f2..152960a2 100644
--- a/src/shared/locales/en-US.json
+++ b/src/shared/locales/en-US.json
@@ -1477,7 +1477,6 @@
"firefox": "Firefox",
"github": "GitHub",
"store": "Install",
- "comingSoon": "Coming soon",
"development": "Development"
},
"pairedTitle": "Connected extensions",
diff --git a/src/shared/locales/zh-CN.json b/src/shared/locales/zh-CN.json
index b7d9c692..3c3242d7 100644
--- a/src/shared/locales/zh-CN.json
+++ b/src/shared/locales/zh-CN.json
@@ -1464,7 +1464,6 @@
"firefox": "Firefox",
"github": "GitHub",
"store": "安装扩展",
- "comingSoon": "即将推出",
"development": "开发版"
},
"pairedTitle": "已连接的扩展",
diff --git a/src/shared/locales/zh-TW.json b/src/shared/locales/zh-TW.json
index fab6c177..bd6ca0b3 100644
--- a/src/shared/locales/zh-TW.json
+++ b/src/shared/locales/zh-TW.json
@@ -1464,7 +1464,6 @@
"firefox": "Firefox",
"github": "GitHub",
"store": "安裝擴充功能",
- "comingSoon": "即將推出",
"development": "開發版"
},
"pairedTitle": "已連線的擴充功能",