Optimize the plugin system (#2090)

* Optimize the plugin system

* feat: enhance plugin installation process and improve task management

* fix: linter err

---------

Co-authored-by: Junyan Qin <rockchinq@gmail.com>
This commit is contained in:
Typer_Body
2026-03-29 23:58:34 +08:00
committed by GitHub
parent b0a9be77b0
commit 1c419e3591
24 changed files with 2619 additions and 3339 deletions
+21
View File
@@ -493,6 +493,27 @@ const enUS = {
confirmInstall: 'Confirm Install',
installFromGithubDesc: 'Install plugin from GitHub Release',
goToMarketplace: 'Go to Marketplace',
installProgress: {
title: 'Installing {{name}}',
titleGeneric: 'Plugin Installation',
overallProgress: 'Overall Progress',
downloading: 'Downloading Plugin',
installingDeps: 'Installing Dependencies',
initializing: 'Initializing Settings',
launching: 'Launching Plugin',
completed: 'Completed',
failed: 'Failed',
downloadSize: 'Package size: {{size}}',
depsInfo: '{{count}} dependencies to install',
depsProgress:
'{{installed}}/{{total}} installed · {{remaining}} remaining',
installComplete: 'Plugin installed successfully',
dismiss: 'Dismiss',
background: 'Run in Background',
taskQueue: 'Install Tasks',
clearCompleted: 'Clear Completed',
noTasks: 'No install tasks',
},
},
market: {
searchPlaceholder: 'Search plugins...',
+21
View File
@@ -503,6 +503,27 @@ const esES = {
confirmInstall: 'Confirmar instalación',
installFromGithubDesc: 'Instalar plugin desde GitHub Release',
goToMarketplace: 'Ir a la tienda',
installProgress: {
title: 'Instalando {{name}}',
titleGeneric: 'Instalación de Plugin',
overallProgress: 'Progreso general',
downloading: 'Descargando Plugin',
installingDeps: 'Instalando dependencias',
initializing: 'Inicializando configuración',
launching: 'Iniciando Plugin',
completed: 'Completado',
failed: 'Fallido',
downloadSize: 'Tamaño del paquete: {{size}}',
depsInfo: '{{count}} dependencias por instalar',
depsProgress:
'{{installed}}/{{total}} instaladas · {{remaining}} restantes',
installComplete: 'Plugin instalado correctamente',
dismiss: 'Descartar',
background: 'Ejecutar en segundo plano',
taskQueue: 'Tareas de instalación',
clearCompleted: 'Limpiar completados',
noTasks: 'No hay tareas de instalación',
},
},
market: {
searchPlaceholder: 'Buscar plugins...',
+21
View File
@@ -493,6 +493,27 @@
confirmInstall: 'インストールを確認',
installFromGithubDesc: 'GitHubリリースからプラグインをインストール',
goToMarketplace: 'マーケットプレイスへ',
installProgress: {
title: '{{name}} をインストール中',
titleGeneric: 'プラグインのインストール',
overallProgress: '全体の進捗',
downloading: 'プラグインをダウンロード中',
installingDeps: '依存関係をインストール中',
initializing: '設定を初期化中',
launching: 'プラグインを起動中',
completed: '完了',
failed: '失敗',
downloadSize: 'パッケージサイズ: {{size}}',
depsInfo: '{{count}} 個の依存関係をインストール',
depsProgress:
'{{installed}}/{{total}} インストール済み · 残り {{remaining}} 個',
installComplete: 'プラグインのインストール完了',
dismiss: '閉じる',
background: 'バックグラウンドで実行',
taskQueue: 'インストールタスク',
clearCompleted: '完了を消去',
noTasks: 'インストールタスクはありません',
},
},
market: {
searchPlaceholder: 'プラグインを検索...',
+20
View File
@@ -485,6 +485,26 @@ const thTH = {
confirmInstall: 'ยืนยันการติดตั้ง',
installFromGithubDesc: 'ติดตั้งปลั๊กอินจาก GitHub Release',
goToMarketplace: 'ไปที่ตลาดปลั๊กอิน',
installProgress: {
title: 'กำลังติดตั้ง {{name}}',
titleGeneric: 'การติดตั้งปลั๊กอิน',
overallProgress: 'ความคืบหน้าโดยรวม',
downloading: 'กำลังดาวน์โหลดปลั๊กอิน',
installingDeps: 'กำลังติดตั้งแพ็กเกจ',
initializing: 'กำลังเริ่มต้นการตั้งค่า',
launching: 'กำลังเปิดใช้งานปลั๊กอิน',
completed: 'เสร็จสมบูรณ์',
failed: 'ล้มเหลว',
downloadSize: 'ขนาดแพ็กเกจ: {{size}}',
depsInfo: '{{count}} แพ็กเกจที่ต้องติดตั้ง',
depsProgress: 'ติดตั้งแล้ว {{installed}}/{{total}} · เหลือ {{remaining}}',
installComplete: 'ติดตั้งปลั๊กอินสำเร็จ',
dismiss: 'ปิด',
background: 'ทำงานเบื้องหลัง',
taskQueue: 'งานติดตั้ง',
clearCompleted: 'ล้างที่เสร็จแล้ว',
noTasks: 'ไม่มีงานติดตั้ง',
},
},
market: {
searchPlaceholder: 'ค้นหาปลั๊กอิน...',
+20
View File
@@ -497,6 +497,26 @@ const viVN = {
confirmInstall: 'Xác nhận cài đặt',
installFromGithubDesc: 'Cài đặt plugin từ GitHub Release',
goToMarketplace: 'Đi đến chợ ứng dụng',
installProgress: {
title: 'Đang cài đặt {{name}}',
titleGeneric: 'Cài đặt Plugin',
overallProgress: 'Tiến độ tổng thể',
downloading: 'Đang tải Plugin',
installingDeps: 'Đang cài đặt phụ thuộc',
initializing: 'Đang khởi tạo cài đặt',
launching: 'Đang khởi chạy Plugin',
completed: 'Hoàn thành',
failed: 'Thất bại',
downloadSize: 'Kích thước gói: {{size}}',
depsInfo: '{{count}} phụ thuộc cần cài đặt',
depsProgress: 'Đã cài {{installed}}/{{total}} · Còn lại {{remaining}}',
installComplete: 'Cài đặt plugin thành công',
dismiss: 'Bỏ qua',
background: 'Chạy nền',
taskQueue: 'Tác vụ cài đặt',
clearCompleted: 'Xóa đã hoàn thành',
noTasks: 'Không có tác vụ cài đặt',
},
},
market: {
searchPlaceholder: 'Tìm kiếm plugin...',
+20
View File
@@ -469,6 +469,26 @@ const zhHans = {
confirmInstall: '确认安装',
installFromGithubDesc: '从 GitHub Release 安装插件',
goToMarketplace: '前往插件市场',
installProgress: {
title: '正在安装 {{name}}',
titleGeneric: '插件安装',
overallProgress: '总体进度',
downloading: '下载插件',
installingDeps: '安装依赖',
initializing: '初始化配置',
launching: '启动插件',
completed: '已完成',
failed: '安装失败',
downloadSize: '包大小: {{size}}',
depsInfo: '共 {{count}} 个依赖需要安装',
depsProgress: '已安装 {{installed}}/{{total}} · 剩余 {{remaining}} 个',
installComplete: '插件安装成功',
dismiss: '关闭',
background: '后台运行',
taskQueue: '安装任务',
clearCompleted: '清除已完成',
noTasks: '暂无安装任务',
},
},
market: {
searchPlaceholder: '搜索插件...',
+20
View File
@@ -462,6 +462,26 @@ const zhHant = {
confirmInstall: '確認安裝',
installFromGithubDesc: '從 GitHub Release 安裝插件',
goToMarketplace: '前往外掛市場',
installProgress: {
title: '正在安裝 {{name}}',
titleGeneric: '外掛安裝',
overallProgress: '整體進度',
downloading: '下載外掛',
installingDeps: '安裝依賴',
initializing: '初始化設定',
launching: '啟動外掛',
completed: '已完成',
failed: '安裝失敗',
downloadSize: '檔案大小: {{size}}',
depsInfo: '共 {{count}} 個依賴需要安裝',
depsProgress: '已安裝 {{installed}}/{{total}} · 剩餘 {{remaining}} 個',
installComplete: '外掛安裝成功',
dismiss: '關閉',
background: '背景執行',
taskQueue: '安裝任務',
clearCompleted: '清除已完成',
noTasks: '暫無安裝任務',
},
},
market: {
searchPlaceholder: '搜尋插件...',