A full-featured download manager.
feat(settings): link published browser extensions and development builds
Dr_rOot8bc7660af85a
diff --git a/README.md b/README.mdindex 2116428f..220e88c4 100644--- a/README.md+++ b/README.md@@ -68,7 +68,7 @@ account, machine, or Docker data directory.- 📊 Customizable Dashboard with transfer stats, live activity, and task tiles- 🔔 System notifications when downloads finish, plus an in-app notification center- 🧩 QuickJS-based plugin sandboxing, fine-grained permissions, and an in-app marketplace-- 🌐 [Motrix Extension](https://github.com/motrixapp/motrix-extension) for Chrome and Firefox hands browser downloads off to Motrix in one click+- 🌐 [Motrix Extension](https://github.com/motrixapp/motrix-extension) for Chrome, Edge, and Firefox hands browser downloads off to Motrix in one click- ⌨️ Official `@motrix/cli` client for everyday shell use and AI agents- 🐳 Docker-ready headless server with secure device-code pairing for remote CLI and agent clients- 🎬 Extensible URL Resolver plugins for extracting media from supported sites@@ -84,7 +84,7 @@ Motrix extends beyond the desktop app with a shared protocol library, command-li|---------|--------------|--------------|| [`@motrix/mdxp`](https://github.com/motrixapp/mdxp) | npm package | Defines the shared JSON-RPC 2.0 wire schemas and Zod types for MDXP, with helpers for bidirectional connections || [`@motrix/cli`](https://github.com/motrixapp/cli) | npm package | Provides the `motrix` command, automatically discovers a local desktop app, and pairs with remote instances |-| [Motrix Extension](https://github.com/motrixapp/motrix-extension) | Browser extension | Intercepts downloads in Chrome and Firefox (Manifest V3), hands them off to Motrix, and pairs securely with the desktop app over native messaging |+| [Motrix Extension](https://github.com/motrixapp/motrix-extension) | Browser extension | Intercepts downloads in Chrome, Edge, and Firefox (Manifest V3), hands them off to Motrix, and pairs securely with the desktop app over native messaging || [Motrix Plugin SDK](https://github.com/motrixapp/plugin-sdk) | Four npm packages | Includes `@motrix/plugin-manifest-schema`, `@motrix/plugin-api`, `@motrix/plugin-cli`, and `create-motrix-plugin` for developing, testing, and packaging plugins || [Builtin Plugins](https://github.com/motrixapp/builtin-plugins) | Signed `.moext` packages | Includes three official plugins: **Filename Template** for renaming files from a template before they are saved, **Page Scraper** for extracting direct file links from HTML pages, and **URL Resolver** as the foundation for site-specific media resolution || Plugin Registry | Public JSON feed | Publishes plugin listings and install metadata at `dl.motrix.app/registry/plugins.json` for both the website and the in-app marketplace |@@ -117,6 +117,15 @@ The default scaffold starts with a `beforeCreate` URL resolver. Pass `post-actioPlugins are bundled as a single ES2020 module and run inside a QuickJS sandbox without Node.js APIs or direct file and network access. Declare activation events, required capabilities, and URL-scoped host permissions in `motrix-plugin.json`; Motrix shows those requests to the user before granting access. See the [Plugin SDK documentation](https://github.com/motrixapp/plugin-sdk) for templates, the manifest and runtime API references, localization, sandbox constraints, packaging, and distribution.+## Browser extension++Motrix Extension is available from the official browser stores for use with 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)++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).+## 📦 Installation### Desktop appdiff --git a/README.zh-CN.md b/README.zh-CN.mdindex 292908ff..a3c52b4a 100644--- a/README.zh-CN.md+++ b/README.zh-CN.md@@ -66,7 +66,7 @@ Motrix Turbo v2 目前仍处于 beta 阶段。剩余发布门禁通过后,请- 📊 Dashboard 支持自定义布局,可展示传输统计、实时活动和任务磁贴- 🔔 下载完成时发送系统通知,应用内也可集中查看通知- 🧩 插件采用 QuickJS 沙箱隔离和细粒度能力授权,并可直接从应用内插件市场安装-- 🌐 Chrome 和 Firefox 上的 [Motrix Extension](https://github.com/motrixapp/motrix-extension) 可一键将浏览器下载任务交给 Motrix+- 🌐 Chrome、Edge 和 Firefox 上的 [Motrix Extension](https://github.com/motrixapp/motrix-extension) 可一键将浏览器下载任务交给 Motrix- ⌨️ 官方命令行客户端 `@motrix/cli` 既适合日常操作,也可供 AI agent 调用- 🐳 Headless server 可通过 Docker 部署,远程 CLI 和 agent 可使用 device-code 安全配对- 🎬 URL Resolver 插件可解析站点媒体页面,并可扩展对更多站点的支持@@ -82,7 +82,7 @@ Motrix Turbo v2 目前仍处于 beta 阶段。剩余发布门禁通过后,请|------|------|------|| [`@motrix/mdxp`](https://github.com/motrixapp/mdxp) | npm 包 | 集中定义 MDXP 的 JSON-RPC 2.0 wire schema 和 Zod 类型,并提供双向连接工具,让通信两端使用同一套协议 || [`@motrix/cli`](https://github.com/motrixapp/cli) | npm 包 | 命令行客户端,可执行命令为 `motrix`。它能自动发现并控制本地桌面应用,也能与远程实例配对 |-| [Motrix Extension](https://github.com/motrixapp/motrix-extension) | 浏览器扩展 | 面向 Chrome 和 Firefox 的 MV3 扩展,可接管浏览器下载任务,并通过 native messaging 与桌面应用安全配对 |+| [Motrix Extension](https://github.com/motrixapp/motrix-extension) | 浏览器扩展 | 面向 Chrome、Edge 和 Firefox 的 MV3 扩展,可接管浏览器下载任务,并通过 native messaging 与桌面应用安全配对 || [Motrix Plugin SDK](https://github.com/motrixapp/plugin-sdk) | 4 个 npm 包 | 包括 `@motrix/plugin-manifest-schema`、`@motrix/plugin-api`、`@motrix/plugin-cli` 和 `create-motrix-plugin`,提供插件开发、调试和打包所需的工具 || [Builtin Plugins](https://github.com/motrixapp/builtin-plugins) | 已签名的 `.moext` | 官方提供三个内置插件:**Filename Template**(保存文件时按模板自动重命名)、**Page Scraper**(从 HTML 页面提取实际文件链接)和 **URL Resolver**(为站点媒体解析提供基础能力) || Plugin Registry | 公共数据源 | 维护插件列表和安装信息,并生成 `dl.motrix.app/registry/plugins.json`,供官网插件目录和应用内插件市场使用 |@@ -115,6 +115,15 @@ pnpm exec motrix-plugin lint # 检查打包产物插件会打包为单个 ES2020 模块,并在 QuickJS 沙箱中运行,不能使用 Node.js API,也不能直接访问文件或网络。请在 `motrix-plugin.json` 中声明激活事件、所需能力以及限定 URL 范围的宿主权限;Motrix 会在授权前向用户展示这些请求。项目模板、manifest 与运行时 API 参考、本地化、沙箱约束、打包和分发方式请参阅 [Plugin SDK 文档](https://github.com/motrixapp/plugin-sdk)。+## 浏览器扩展++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)++安装与配对步骤请参阅[浏览器扩展指南](https://motrix.app/zh/manual/browser-extension/)。Firefox 开发构建方式仍可在[扩展仓库](https://github.com/motrixapp/motrix-extension#manual-browser-workflow-development)中查看。+## 📦 安装### 桌面应用diff --git a/THIRD_PARTY_NOTICES.md b/THIRD_PARTY_NOTICES.mdindex 6b191a9c..2585033b 100644--- a/THIRD_PARTY_NOTICES.md+++ b/THIRD_PARTY_NOTICES.md@@ -59,6 +59,23 @@ src/renderer/routes/settings/icons/[email protected]---+## Browser extension install icons++The installation cards use artwork downloaded from the brands’ official websites. Original shapes and colors are preserved; SVG files only add accessible titles. GitHub supplies separate black and white variants. These brand assets retain their respective owners’ rights and are not relicensed under Motrix’s MIT license.++Files are under `src/renderer/routes/settings/icons/`.++| Brand | Official source | Local file |+| --- | --- | --- |+| Google Chrome | [Download](https://www.google.com/chrome/static/images/chrome-logo-m100.svg) | `browser-chrome.svg` |+| Microsoft Edge | [Download](https://edgecdn-embza6g8cacagcbn.z01.azurefd.net/welcome/static/favicon.png) | `browser-edge.png` |+| Firefox | [Download](https://www.firefox.com/media/img/favicons/firefox/browser/favicon-196x196.59e3822720be.png) | `browser-firefox.png` |+| GitHub | [Download](https://brand.github.com/GitHub_Logos.zip) | `browser-github.svg / browser-github-white.svg` |++Brand resources: [Google](https://about.google/brand-resource-center/), [Microsoft](https://www.microsoft.com/en-us/legal/intellectualproperty/trademarks), [Mozilla](https://www.mozilla.org/foundation/trademarks/policy/), [GitHub](https://brand.github.com/foundations/logo).++---+## Apple San Francisco tray font (macOS)- **File:** `extra/tray/SFNS-Regular.ttf`diff --git a/THIRD_PARTY_NOTICES.zh-CN.md b/THIRD_PARTY_NOTICES.zh-CN.mdindex d94150c5..9a23e5be 100644--- a/THIRD_PARTY_NOTICES.zh-CN.md+++ b/THIRD_PARTY_NOTICES.zh-CN.md@@ -51,6 +51,23 @@ src/renderer/routes/settings/icons/[email protected]---+## 浏览器扩展安装图标++安装入口使用从各品牌官方网站下载的原始图标,保留原始形状与配色;SVG 仅补充无障碍标题。GitHub 按界面主题使用官方提供的黑、白两版。这些品牌素材的权利仍归各自所有者,并未重新授权为 Motrix 的 MIT 许可。++文件位于 `src/renderer/routes/settings/icons/`。++| 品牌 | 官方来源 | 本地文件 |+| --- | --- | --- |+| Google Chrome | [Download](https://www.google.com/chrome/static/images/chrome-logo-m100.svg) | `browser-chrome.svg` |+| Microsoft Edge | [Download](https://edgecdn-embza6g8cacagcbn.z01.azurefd.net/welcome/static/favicon.png) | `browser-edge.png` |+| Firefox | [Download](https://www.firefox.com/media/img/favicons/firefox/browser/favicon-196x196.59e3822720be.png) | `browser-firefox.png` |+| GitHub | [Download](https://brand.github.com/GitHub_Logos.zip) | `browser-github.svg / browser-github-white.svg` |++品牌资料:[Google](https://about.google/brand-resource-center/)、[Microsoft](https://www.microsoft.com/en-us/legal/intellectualproperty/trademarks)、[Mozilla](https://www.mozilla.org/foundation/trademarks/policy/)、[GitHub](https://brand.github.com/foundations/logo)。++---+## Apple San Francisco 托盘字体(macOS)- **文件:** `extra/tray/SFNS-Regular.ttf`diff --git a/scripts/third-party-notices.config.json b/scripts/third-party-notices.config.jsonindex 8440c759..7860b10c 100644--- a/scripts/third-party-notices.config.json+++ b/scripts/third-party-notices.config.json@@ -135,6 +135,41 @@}],"manualAssets": [+ {+ "id": "browser-install-google-chrome",+ "name": "Google Chrome",+ "scope": "browser extension install cards",+ "licenseDeclared": "LicenseRef-Google-Brand",+ "noticeMarker": "Google Chrome",+ "paths": ["src/renderer/routes/settings/icons/browser-chrome.svg"]+ },+ {+ "id": "browser-install-microsoft-edge",+ "name": "Microsoft Edge",+ "scope": "browser extension install cards",+ "licenseDeclared": "LicenseRef-Microsoft-Brand",+ "noticeMarker": "Microsoft Edge",+ "paths": ["src/renderer/routes/settings/icons/browser-edge.png"]+ },+ {+ "id": "browser-install-firefox",+ "name": "Firefox",+ "scope": "browser extension install cards",+ "licenseDeclared": "LicenseRef-Mozilla-Trademark",+ "noticeMarker": "Firefox",+ "paths": ["src/renderer/routes/settings/icons/browser-firefox.png"]+ },+ {+ "id": "browser-install-github",+ "name": "GitHub",+ "scope": "browser extension install cards",+ "licenseDeclared": "LicenseRef-GitHub-Brand",+ "noticeMarker": "GitHub",+ "paths": [+ "src/renderer/routes/settings/icons/browser-github.svg",+ "src/renderer/routes/settings/icons/browser-github-white.svg"+ ]+ },{"id": "iconly-pro-settings-icons","name": "Iconly Pro settings icons",diff --git a/src/renderer/routes/settings/cards/integration/browser-extension-installs.tsx b/src/renderer/routes/settings/cards/integration/browser-extension-installs.tsxnew file mode 100644index 00000000..eafae6ee--- /dev/null+++ b/src/renderer/routes/settings/cards/integration/browser-extension-installs.tsx@@ -0,0 +1,98 @@+import { Button, buttonVariants } from '@renderer/components/ui/button'+import { cn } from '@renderer/lib/utils'+import { EXTERNAL_URLS } from '@shared/external-urls'+import { useTranslation } from 'react-i18next'+import chromeIcon from '../../icons/browser-chrome.svg'+import edgeIcon from '../../icons/browser-edge.png'+import firefoxIcon from '../../icons/browser-firefox.png'+import githubIcon from '../../icons/browser-github.svg'+import githubWhiteIcon from '../../icons/browser-github-white.svg'++const INSTALL_OPTIONS = [+ {+ id: 'chrome',+ icon: chromeIcon,+ href: EXTERNAL_URLS.browserExtension.chrome,+ status: 'store',+ },+ {+ id: 'edge',+ icon: edgeIcon,+ href: EXTERNAL_URLS.browserExtension.edge,+ status: 'store',+ },+ {+ id: 'firefox',+ icon: firefoxIcon,+ href: null,+ status: 'comingSoon',+ },+ {+ id: 'github',+ icon: githubIcon,+ href: EXTERNAL_URLS.browserExtension.development,+ status: 'development',+ },+] as const++export function BrowserExtensionInstalls() {+ const { t } = useTranslation()++ return (+ <div className="grid w-full grid-cols-4 gap-2">+ {INSTALL_OPTIONS.map((option) => {+ const className = cn(+ buttonVariants({ variant: 'outline' }),+ 'h-20 w-full min-w-0 flex-col gap-1 whitespace-normal px-1 text-center'+ )+ const content = (+ <>+ <img+ src={option.icon}+ alt=""+ className={cn('size-5', option.id === 'github' && 'dark:hidden')}+ />+ {option.id === 'github' && (+ <img+ src={githubWhiteIcon}+ alt=""+ className="hidden size-5 dark:block"+ />+ )}+ <span className="text-[11px] font-medium leading-tight">+ {t(`settings.integration.browser.install.${option.id}`)}+ </span>+ <span className="text-[10px] leading-tight text-muted-foreground">+ {t(`settings.integration.browser.install.${option.status}`)}+ </span>+ </>+ )++ return option.href ? (+ <a+ key={option.id}+ href={option.href}+ target="_blank"+ rel="noopener noreferrer"+ className={className}+ >+ {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/browser-extensions-section.tsx b/src/renderer/routes/settings/cards/integration/browser-extensions-section.tsxindex 45882103..ff1a99e3 100644--- a/src/renderer/routes/settings/cards/integration/browser-extensions-section.tsx+++ b/src/renderer/routes/settings/cards/integration/browser-extensions-section.tsx@@ -18,6 +18,7 @@ import type { PairedClientInfo } from '@shared/protocol/bridge'import { TriangleAlertIcon } from 'lucide-react'import { useFormContext } from 'react-hook-form'import { useTranslation } from 'react-i18next'+import { BrowserExtensionInstalls } from './browser-extension-installs'import type { IntegrationFormValues } from './integration-dialog'import { TrustedExtensionsSection } from './trusted-extensions-section'import { useBridgeStatus, usePairedExtensions } from './use-bridge'@@ -64,6 +65,8 @@ export function BrowserExtensionsSection() {)}/>+ <BrowserExtensionInstalls />+{status?.degraded && (<Alert className="border-amber-500/30 bg-amber-500/10 px-3 py-2 text-[11px] leading-4 text-amber-900 dark:text-amber-200"><TriangleAlertIcon />diff --git a/src/renderer/routes/settings/cards/integration/trusted-extensions-section.tsx b/src/renderer/routes/settings/cards/integration/trusted-extensions-section.tsxindex bb8205e1..848e5c5e 100644--- a/src/renderer/routes/settings/cards/integration/trusted-extensions-section.tsx+++ b/src/renderer/routes/settings/cards/integration/trusted-extensions-section.tsx@@ -16,8 +16,9 @@ import {} from '@renderer/components/ui/select'import { browserDisplayName } from '@renderer/lib/browser-name'import { cn } from '@renderer/lib/utils'+import { EXTERNAL_URLS } from '@shared/external-urls'import type { TrustedExtensionInfo } from '@shared/protocol/bridge'-import { ChevronRight, Trash2 } from 'lucide-react'+import { ChevronRight, ExternalLink, Trash2 } from 'lucide-react'import { useMemo, useState } from 'react'import { useTranslation } from 'react-i18next'import { useTrustedExtensions } from './use-bridge'@@ -30,6 +31,34 @@ 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],+])++function ExtensionId({+ id,+ browser,+}: Pick<TrustedExtensionInfo, 'id' | 'browser'>) {+ const storeUrl =+ browser === 'chromium' ? OFFICIAL_EXTENSION_STORE_URLS.get(id) : undefined++ return storeUrl ? (+ <a+ href={storeUrl}+ target="_blank"+ rel="noopener noreferrer"+ title={id}+ className="inline-flex max-w-full items-center gap-1 rounded-sm font-mono text-primary underline underline-offset-2 hover:no-underline focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"+ >+ <span className="truncate">{id}</span>+ <ExternalLink className="size-3 shrink-0" aria-hidden="true" />+ </a>+ ) : (+ <div className="truncate font-mono">{id}</div>+ )+}+function cleanIpcErrorMessage(raw: string): string {return raw.replace(/^Error invoking remote method '[^']+':\s*Error:\s*/, '')@@ -145,7 +174,7 @@ export function TrustedExtensionsSection({ disabled }: { disabled: boolean }) {className="grid grid-cols-[minmax(0,1fr)_8rem_6rem_2rem] items-center gap-2 border-b border-border px-3 py-2 last:border-b-0"><div className="min-w-0">- <div className="truncate font-mono">{it.id}</div>+ <ExtensionId id={it.id} browser={it.browser} />{it.label && (<div className="truncate text-muted-foreground">{it.label}diff --git a/src/renderer/routes/settings/icons/browser-chrome.svg b/src/renderer/routes/settings/icons/browser-chrome.svgnew file mode 100644index 00000000..ad9460a9--- /dev/null+++ b/src/renderer/routes/settings/icons/browser-chrome.svg@@ -0,0 +1 @@+<svg fill="none" height="63" viewBox="0 0 63 63" width="63" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"><title>Google Chrome</title><linearGradient id="a" gradientUnits="userSpaceOnUse" x1="34.9087" x2="7.63224" y1="61.029" y2="13.7847"><stop offset="0" stop-color="#1e8e3e"/><stop offset="1" stop-color="#34a853"/></linearGradient><linearGradient id="b" gradientUnits="userSpaceOnUse" x1="26.9043" x2="54.1808" y1="63.0788" y2="15.8345"><stop offset="0" stop-color="#fcc934"/><stop offset="1" stop-color="#fbbc04"/></linearGradient><linearGradient id="c" gradientUnits="userSpaceOnUse" x1="4.22145" x2="58.7745" y1="19.6884" y2="19.6884"><stop offset="0" stop-color="#d93025"/><stop offset="1" stop-color="#ea4335"/></linearGradient><path d="m31.499 47.2466c8.6985 0 15.75-7.0515 15.75-15.75s-7.0515-15.75-15.75-15.75-15.75 7.0515-15.75 15.75 7.0515 15.75 15.75 15.75z" fill="#fff"/><path d="m17.8591 39.3751-13.63772-23.6212c-2.76527 4.788-4.22118922 10.2197-4.22137998 15.7489s1.45535998 10.961 4.22028998 15.7492c2.76494 4.7882 6.74181 8.7641 11.53071 11.5279 4.7889 2.7637 10.221 4.2179 15.7502 4.2164l13.6377-23.6212v-.0041c-1.3813 2.3954-3.369 4.3848-5.7632 5.7681s-5.1104 2.1118-7.8755 2.1122-5.4816-.7272-7.8762-2.1099c-2.3945-1.3826-4.3829-3.3714-5.7649-5.7663z" fill="url(#a)"/><path d="m45.1379 39.3741-13.6376 23.6212c5.5292.0008 10.9611-1.4542 15.7496-4.2187 4.7885-2.7644 8.7648-6.7408 11.5291-11.5294 2.7642-4.7887 4.219-10.2207 4.2181-15.7499-.001-5.5292-1.4577-10.9606-4.2237-15.7483h-27.2754l-.0034.0021c2.7651-.0014 5.4818.7254 7.8769 2.1071 2.3951 1.3818 4.3841 3.3698 5.767 5.7643 1.3829 2.3944 2.1109 5.1108 2.1109 7.8758-.0001 2.7651-.7283 5.4814-2.1113 7.8758z" fill="url(#b)"/><path d="m31.499 43.9688c6.8863 0 12.4688-5.5825 12.4688-12.4688s-5.5825-12.4688-12.4688-12.4688-12.4687 5.5825-12.4687 12.4688 5.5824 12.4688 12.4687 12.4688z" fill="#1a73e8"/><path d="m31.4991 15.75h27.2754c-2.764-4.7888-6.74-8.76553-11.5283-11.53029-4.7883-2.76475-10.2202-4.22010235-15.7494-4.21970992s-10.9608 1.45650992-15.7487 4.22194992c-4.788 2.76543-8.76341 6.74275-11.52666 11.53185l13.63766 23.6212.0035.0019c-1.3837-2.394-2.1127-5.11-2.1136-7.8751s.7264-5.4817 2.1086-7.8765c1.3821-2.3948 3.3706-4.3835 5.7652-5.7659 2.3947-1.3825 5.1112-2.11 7.8763-2.1094z" fill="url(#c)"/></svg>\ No newline at end of filediff --git a/src/renderer/routes/settings/icons/browser-edge.png b/src/renderer/routes/settings/icons/browser-edge.pngnew file mode 100644index 00000000..5ea9bae4Binary files /dev/null and b/src/renderer/routes/settings/icons/browser-edge.png differdiff --git a/src/renderer/routes/settings/icons/browser-firefox.png b/src/renderer/routes/settings/icons/browser-firefox.pngnew file mode 100644index 00000000..3697a7b4Binary files /dev/null and b/src/renderer/routes/settings/icons/browser-firefox.png differdiff --git a/src/renderer/routes/settings/icons/browser-github-white.svg b/src/renderer/routes/settings/icons/browser-github-white.svgnew file mode 100644index 00000000..8cc084cc--- /dev/null+++ b/src/renderer/routes/settings/icons/browser-github-white.svg@@ -0,0 +1,10 @@+<svg width="98" height="96" viewBox="0 0 98 96" fill="none" xmlns="http://www.w3.org/2000/svg"><title>GitHub</title>+<g clip-path="url(#clip0_730_27136)">+<path d="M41.4395 69.3848C28.8066 67.8535 19.9062 58.7617 19.9062 46.9902C19.9062 42.2051 21.6289 37.0371 24.5 33.5918C23.2559 30.4336 23.4473 23.7344 24.8828 20.959C28.7109 20.4805 33.8789 22.4902 36.9414 25.2656C40.5781 24.1172 44.4062 23.543 49.0957 23.543C53.7852 23.543 57.6133 24.1172 61.0586 25.1699C64.0254 22.4902 69.2891 20.4805 73.1172 20.959C74.457 23.543 74.6484 30.2422 73.4043 33.4961C76.4668 37.1328 78.0937 42.0137 78.0937 46.9902C78.0937 58.7617 69.1934 67.6621 56.3691 69.2891C59.623 71.3945 61.8242 75.9883 61.8242 81.252L61.8242 91.2051C61.8242 94.0762 64.2168 95.7031 67.0879 94.5547C84.4102 87.9512 98 70.6289 98 49.1914C98 22.1074 75.9883 6.69539e-07 48.9043 4.309e-07C21.8203 1.92261e-07 -1.9479e-07 22.1074 -4.3343e-07 49.1914C-6.20631e-07 70.4375 13.4941 88.0469 31.6777 94.6504C34.2617 95.6074 36.75 93.8848 36.75 91.3008L36.75 83.6445C35.4102 84.2188 33.6875 84.6016 32.1562 84.6016C25.8398 84.6016 22.1074 81.1563 19.4277 74.7441C18.375 72.1602 17.2266 70.6289 15.0254 70.3418C13.877 70.2461 13.4941 69.7676 13.4941 69.1934C13.4941 68.0449 15.4082 67.1836 17.3223 67.1836C20.0977 67.1836 22.4902 68.9063 24.9785 72.4473C26.8926 75.2227 28.9023 76.4668 31.2949 76.4668C33.6875 76.4668 35.2187 75.6055 37.4199 73.4043C39.0469 71.7773 40.291 70.3418 41.4395 69.3848Z" fill="white"/>+</g>+<defs>+<clipPath id="clip0_730_27136">+<rect width="98" height="96" fill="white"/>+</clipPath>+</defs>+</svg>diff --git a/src/renderer/routes/settings/icons/browser-github.svg b/src/renderer/routes/settings/icons/browser-github.svgnew file mode 100644index 00000000..955b2836--- /dev/null+++ b/src/renderer/routes/settings/icons/browser-github.svg@@ -0,0 +1,10 @@+<svg width="98" height="96" viewBox="0 0 98 96" fill="none" xmlns="http://www.w3.org/2000/svg"><title>GitHub</title>+<g clip-path="url(#clip0_730_27126)">+<path d="M41.4395 69.3848C28.8066 67.8535 19.9062 58.7617 19.9062 46.9902C19.9062 42.2051 21.6289 37.0371 24.5 33.5918C23.2559 30.4336 23.4473 23.7344 24.8828 20.959C28.7109 20.4805 33.8789 22.4902 36.9414 25.2656C40.5781 24.1172 44.4062 23.543 49.0957 23.543C53.7852 23.543 57.6133 24.1172 61.0586 25.1699C64.0254 22.4902 69.2891 20.4805 73.1172 20.959C74.457 23.543 74.6484 30.2422 73.4043 33.4961C76.4668 37.1328 78.0937 42.0137 78.0937 46.9902C78.0937 58.7617 69.1934 67.6621 56.3691 69.2891C59.623 71.3945 61.8242 75.9883 61.8242 81.252L61.8242 91.2051C61.8242 94.0762 64.2168 95.7031 67.0879 94.5547C84.4102 87.9512 98 70.6289 98 49.1914C98 22.1074 75.9883 6.69539e-07 48.9043 4.309e-07C21.8203 1.92261e-07 -1.9479e-07 22.1074 -4.3343e-07 49.1914C-6.20631e-07 70.4375 13.4941 88.0469 31.6777 94.6504C34.2617 95.6074 36.75 93.8848 36.75 91.3008L36.75 83.6445C35.4102 84.2188 33.6875 84.6016 32.1562 84.6016C25.8398 84.6016 22.1074 81.1563 19.4277 74.7441C18.375 72.1602 17.2266 70.6289 15.0254 70.3418C13.877 70.2461 13.4941 69.7676 13.4941 69.1934C13.4941 68.0449 15.4082 67.1836 17.3223 67.1836C20.0977 67.1836 22.4902 68.9063 24.9785 72.4473C26.8926 75.2227 28.9023 76.4668 31.2949 76.4668C33.6875 76.4668 35.2187 75.6055 37.4199 73.4043C39.0469 71.7773 40.291 70.3418 41.4395 69.3848Z" fill="black"/>+</g>+<defs>+<clipPath id="clip0_730_27126">+<rect width="98" height="96" fill="white"/>+</clipPath>+</defs>+</svg>diff --git a/src/shared/external-urls.ts b/src/shared/external-urls.tsindex f5676b99..0861531f 100644--- a/src/shared/external-urls.ts+++ b/src/shared/external-urls.ts@@ -5,6 +5,13 @@* locale-specific redirects) only touch one file.*/export const EXTERNAL_URLS = {+ browserExtension: {+ chrome:+ 'https://chromewebstore.google.com/detail/motrix-extension/lggbokfckofcgjndaboioakcmincinpo',+ edge: 'https://microsoftedge.microsoft.com/addons/detail/motrix-extension/efcflljngohddnmfmebiamigoikmdfbf',+ development:+ 'https://github.com/motrixapp/motrix-extension#manual-browser-workflow-development',+ },github: {repository: 'https://github.com/agalwood/Motrix/',author: 'https://github.com/agalwood/',diff --git a/src/shared/locales/en-US.json b/src/shared/locales/en-US.jsonindex 81a95e25..3a83caa7 100644--- a/src/shared/locales/en-US.json+++ b/src/shared/locales/en-US.json@@ -1462,6 +1462,15 @@"title": "Browser extensions","masterSwitch": "Send downloads from browser extensions","masterSwitchDesc": "After installing the Motrix browser extension, you can send downloads from any webpage with one click.",+ "install": {+ "chrome": "Chrome",+ "edge": "Microsoft Edge",+ "firefox": "Firefox",+ "github": "GitHub",+ "store": "Install",+ "comingSoon": "Coming soon",+ "development": "Development"+ },"pairedTitle": "Connected extensions","pairedEmpty": "No extensions connected yet.","lastActive": "Last active",diff --git a/src/shared/locales/zh-CN.json b/src/shared/locales/zh-CN.jsonindex c4e2091e..e39bc737 100644--- a/src/shared/locales/zh-CN.json+++ b/src/shared/locales/zh-CN.json@@ -1449,6 +1449,15 @@"title": "浏览器扩展","masterSwitch": "用浏览器扩展发送下载到 Motrix","masterSwitchDesc": "安装 Motrix 浏览器扩展后,可以在网页上点击下载图标直接发送到 Motrix。",+ "install": {+ "chrome": "Chrome",+ "edge": "Microsoft Edge",+ "firefox": "Firefox",+ "github": "GitHub",+ "store": "安装扩展",+ "comingSoon": "即将推出",+ "development": "开发版"+ },"pairedTitle": "已连接的扩展","pairedEmpty": "还没有扩展连接到 Motrix。","lastActive": "上次活跃",diff --git a/src/shared/locales/zh-TW.json b/src/shared/locales/zh-TW.jsonindex 5b7eae3a..69ef1709 100644--- a/src/shared/locales/zh-TW.json+++ b/src/shared/locales/zh-TW.json@@ -1449,6 +1449,15 @@"title": "瀏覽器擴充功能","masterSwitch": "從瀏覽器擴充功能傳送下載","masterSwitchDesc": "安裝 Motrix 瀏覽器擴充功能後,可一鍵從任何網頁傳送下載。",+ "install": {+ "chrome": "Chrome",+ "edge": "Microsoft Edge",+ "firefox": "Firefox",+ "github": "GitHub",+ "store": "安裝擴充功能",+ "comingSoon": "即將推出",+ "development": "開發版"+ },"pairedTitle": "已連線的擴充功能","pairedEmpty": "尚未連線任何擴充功能。","lastActive": "上次使用",