feat: add plugin enable config (#1678)

* add plugin enable config

* fix logic error

* improve codes

* feat: add plugin system status checking api

* perf: add ui displaying plugin system status

* chore: fix linter errors

---------

Co-authored-by: Junyan Qin <rockchinq@gmail.com>
This commit is contained in:
Bruce
2025-09-22 22:49:22 +08:00
committed by GitHub
parent ee24582dd3
commit 3f59bfac5c
10 changed files with 194 additions and 8 deletions

View File

@@ -182,6 +182,17 @@ const enUS = {
pluginSortSuccess: 'Plugin sort successful',
pluginSortError: 'Plugin sort failed: ',
pluginNoConfig: 'The plugin has no configuration items.',
systemDisabled: 'Plugin System Disabled',
systemDisabledDesc:
'Plugin system is not enabled, please modify the configuration according to the documentation',
connectionError: 'Plugin System Connection Error',
connectionErrorDesc:
'Please check the plugin system configuration or contact the administrator.',
errorDetails: 'Error Details',
loadingStatus: 'Checking plugin system status...',
failedToGetStatus: 'Failed to get plugin system status',
pluginSystemNotReady:
'Plugin system is not ready, cannot perform this operation',
deleting: 'Deleting...',
deletePlugin: 'Delete Plugin',
cancel: 'Cancel',

View File

@@ -183,6 +183,17 @@ const jaJP = {
pluginSortSuccess: 'プラグインの並び替えに成功しました',
pluginSortError: 'プラグインの並び替えに失敗しました:',
pluginNoConfig: 'プラグインに設定項目がありません。',
systemDisabled: 'プラグインシステムが無効になっています',
systemDisabledDesc:
'プラグインシステムが無効になっています。プラグインシステムを有効にするか、ドキュメントに従って設定を変更してください',
connectionError: 'プラグインシステム接続エラー',
connectionErrorDesc:
'プラグインシステム設定を確認するか、管理者に連絡してください',
errorDetails: 'エラー詳細',
loadingStatus: 'プラグインシステム状態を確認中...',
failedToGetStatus: 'プラグインシステム状態の取得に失敗しました',
pluginSystemNotReady:
'プラグインシステムが準備されていません。この操作を実行できません',
deleting: '削除中...',
deletePlugin: 'プラグインを削除',
cancel: 'キャンセル',

View File

@@ -178,6 +178,14 @@ const zhHans = {
pluginSortSuccess: '插件排序成功',
pluginSortError: '插件排序失败:',
pluginNoConfig: '插件没有配置项。',
systemDisabled: '插件系统未启用',
systemDisabledDesc: '尚未启用插件系统,请根据文档修改配置',
connectionError: '插件系统连接异常',
connectionErrorDesc: '请检查插件系统配置或联系管理员',
errorDetails: '错误详情',
loadingStatus: '正在检查插件系统状态...',
failedToGetStatus: '获取插件系统状态失败',
pluginSystemNotReady: '插件系统未就绪,无法执行此操作',
deleting: '删除中...',
deletePlugin: '删除插件',
cancel: '取消',

View File

@@ -178,6 +178,14 @@ const zhHant = {
pluginSortSuccess: '外掛排序成功',
pluginSortError: '外掛排序失敗:',
pluginNoConfig: '外掛沒有設定項目。',
systemDisabled: '外掛系統未啟用',
systemDisabledDesc: '尚未啟用外掛系統,請根據文檔修改配置',
connectionError: '外掛系統連接異常',
connectionErrorDesc: '請檢查外掛系統配置或聯絡管理員',
errorDetails: '錯誤詳情',
loadingStatus: '正在檢查外掛系統狀態...',
failedToGetStatus: '取得外掛系統狀態失敗',
pluginSystemNotReady: '外掛系統未就緒,無法執行此操作',
deleting: '刪除中...',
deletePlugin: '刪除外掛',
cancel: '取消',