From 5504a5c1ab5d75ec99661ce57a638f66a3b8ed2c Mon Sep 17 00:00:00 2001 From: jxxghp Date: Thu, 6 Jun 2024 12:27:44 +0800 Subject: [PATCH] fix ConfigCenter --- package.json | 7 +++++-- plugins/configcenter/__init__.py | 26 ++++++++++++++++++++++++-- 2 files changed, 29 insertions(+), 4 deletions(-) diff --git a/package.json b/package.json index 256db7a..73112a9 100644 --- a/package.json +++ b/package.json @@ -446,10 +446,13 @@ "name": "配置中心", "description": "快速调整部分系统设定。", "labels": "系统设置", - "version": "2.4", + "version": "2.5", "icon": "setting.png", "author": "jxxghp", - "level": 1 + "level": 1, + "history": { + "v2.5": "增加Github加速服务器设置项" + } }, "WorkWechatMsg": { "name": "企微机器人消息推送", diff --git a/plugins/configcenter/__init__.py b/plugins/configcenter/__init__.py index 8576e73..be4b816 100644 --- a/plugins/configcenter/__init__.py +++ b/plugins/configcenter/__init__.py @@ -17,7 +17,7 @@ class ConfigCenter(_PluginBase): # 插件图标 plugin_icon = "setting.png" # 插件版本 - plugin_version = "2.4" + plugin_version = "2.5" # 插件作者 plugin_author = "jxxghp" # 作者主页 @@ -37,7 +37,8 @@ class ConfigCenter(_PluginBase): "GITHUB_TOKEN", "API_TOKEN", "TMDB_API_DOMAIN", "TMDB_IMAGE_DOMAIN", "WALLPAPER", "RECOGNIZE_SOURCE", "SCRAP_FOLLOW_TMDB", "AUTO_DOWNLOAD_USER", "OCR_HOST", "DOWNLOAD_SUBTITLE", "PLUGIN_MARKET", "MOVIE_RENAME_FORMAT", - "TV_RENAME_FORMAT", "FANART_ENABLE", "DOH_ENABLE", "SEARCH_MULTIPLE_NAME", "META_CACHE_EXPIRE" + "TV_RENAME_FORMAT", "FANART_ENABLE", "DOH_ENABLE", "SEARCH_MULTIPLE_NAME", "META_CACHE_EXPIRE", + "GITHUB_PROXY" ] def init_plugin(self, config: dict = None): @@ -333,6 +334,27 @@ class ConfigCenter(_PluginBase): } ] }, + { + 'component': 'VRow', + 'content': [ + { + "component": "VCol", + "props": { + "cols": 12, + }, + "content": [ + { + "component": "VTextField", + "props": { + "model": "GITHUB_PROXY", + "label": "Github加速服务器", + "placeholder": "https://mirror.ghproxy.com/" + } + } + ] + } + ] + }, { 'component': 'VRow', 'content': [