-
Notifications
You must be signed in to change notification settings - Fork 237
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #710 from Starry-Wind/main-beta
Main beta
- Loading branch information
Showing
12 changed files
with
410 additions
and
358 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,7 @@ | |
Author: Night-stars-1 [email protected] | ||
Date: 2023-05-29 16:54:51 | ||
LastEditors: Night-stars-1 [email protected] | ||
LastEditTime: 2023-07-21 01:19:21 | ||
LastEditTime: 2023-07-25 15:25:10 | ||
Description: | ||
Copyright (c) 2023 by Night-stars-1, All Rights Reserved. | ||
|
@@ -293,6 +293,8 @@ def set_config(e): | |
github_proxy = sra_config_obj.github_proxy | ||
rawgithub_proxy_list = ['https://ghproxy.com/', 'https://ghproxy.net/', 'raw.fgit.ml', 'raw.iqiq.io', "不设置代理"] | ||
rawgithub_proxy = sra_config_obj.rawgithub_proxy | ||
apigithub_proxy_list = ['https://github.srap.link/', "不设置代理"] | ||
apigithub_proxy = sra_config_obj.apigithub_proxy | ||
open_map = sra_config_obj.open_map | ||
level = sra_config_obj.level | ||
|
||
|
@@ -310,6 +312,13 @@ def set_config(e): | |
value=rawgithub_proxy, | ||
width=200, | ||
) | ||
apigithub_proxy_dd = ft.Dropdown( | ||
label=_("RAWGITHUB代理"), | ||
hint_text=_("如果你无法下载资源,请设置此代理"), | ||
options=[ft.dropdown.Option(i) for i in apigithub_proxy_list], | ||
value=apigithub_proxy, | ||
width=200, | ||
) | ||
level_dd = ft.Dropdown( | ||
label=_("日志等级"), | ||
hint_text=_("日志等级"), | ||
|
@@ -340,6 +349,7 @@ def set_config(e): | |
def save(e): | ||
sra_config_obj.github_proxy = "" if github_proxy_dd.value == "不设置代理" else github_proxy_dd.value | ||
sra_config_obj.rawgithub_proxy = "" if rawgithub_proxy_dd.value == "不设置代理" else rawgithub_proxy_dd.value | ||
sra_config_obj.apigithub_proxy = "" if apigithub_proxy_dd.value == "不设置代理" else apigithub_proxy_dd.value | ||
sra_config_obj.open_map = open_map_tf.value | ||
sra_config_obj.level = level_dd.value | ||
sra_config_obj.language = language_dict[language_dd.value] | ||
|
@@ -353,6 +363,7 @@ def save(e): | |
ft.Text(VER, size=20), | ||
github_proxy_dd, | ||
rawgithub_proxy_dd, | ||
apigithub_proxy_dd, | ||
level_dd, | ||
open_map_tf, | ||
language_dd, | ||
|
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.