remove oauth

master
Max 2023-11-20 17:29:27 +08:00 committed by GitHub
parent e69f73e25f
commit 96bbb7d22f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 26 deletions

View File

@ -211,7 +211,6 @@ def load_translate():
en_us["disable_adjacent_seat"] = "Disable Adjacent Seat"
en_us["hide_some_image"] = "Hide Some Images"
en_us["block_facebook_network"] = "Block Facebook Network"
en_us["open_google_oauth_url"] = "Open Google OAuth URL"
en_us["maxbot_slogan"] = 'MaxBot is a FREE and open source bot program. Wish you good luck.'
en_us["donate"] = 'Donate'
@ -315,7 +314,6 @@ def load_translate():
zh_tw["disable_adjacent_seat"] = "允許不連續座位"
zh_tw["hide_some_image"] = "隱藏部份圖片"
zh_tw["block_facebook_network"] = "擋掉 Facebook 連線"
zh_tw["open_google_oauth_url"] = "開啟 Google OAuth 網站"
zh_tw["maxbot_slogan"] = 'MaxBot是一個免費、開放原始碼的搶票機器人。\n祝您搶票成功。'
zh_tw["donate"] = '打賞'
@ -420,7 +418,6 @@ def load_translate():
zh_cn["disable_adjacent_seat"] = "允许不连续座位"
zh_cn["hide_some_image"] = "隐藏一些图像"
zh_cn["block_facebook_network"] = "擋掉 Facebook 連線"
zh_cn["open_google_oauth_url"] = "开启 Google OAuth 网站"
zh_cn["maxbot_slogan"] = 'MaxBot 是一个免费的开源机器人程序。\n祝您抢票成功。'
zh_cn["donate"] = '打赏'
@ -524,7 +521,6 @@ def load_translate():
ja_jp["disable_adjacent_seat"] = "連続しない座席も可"
ja_jp["hide_some_image"] = "一部の画像を非表示にする"
ja_jp["block_facebook_network"] = "Facebookをブロックする"
ja_jp["open_google_oauth_url"] = "Google OAuth URL を開く"
ja_jp["maxbot_slogan"] = 'MaxBot は無料のオープン ソース ボット プログラムです。チケットの成功をお祈りします。'
ja_jp["donate"] = '寄付'
@ -676,7 +672,6 @@ def get_default_config():
config_dict["advanced"]["disable_adjacent_seat"] = False
config_dict["advanced"]["hide_some_image"] = True
config_dict["advanced"]["block_facebook_network"] = True
config_dict["advanced"]["open_google_oauth_url"] = False
config_dict["advanced"]["verbose"] = False
config_dict["advanced"]["auto_guess_options"] = True
@ -811,7 +806,6 @@ def btn_save_act(language_code, slience_mode=False):
global chk_state_adjacent_seat
global chk_state_hide_some_image
global chk_state_block_facebook_network
global chk_state_google_oauth
global chk_state_verbose
global chk_state_auto_guess_options
@ -969,7 +963,6 @@ def btn_save_act(language_code, slience_mode=False):
config_dict["advanced"]["disable_adjacent_seat"] = bool(chk_state_adjacent_seat.get())
config_dict["advanced"]["hide_some_image"] = bool(chk_state_hide_some_image.get())
config_dict["advanced"]["block_facebook_network"] = bool(chk_state_block_facebook_network.get())
config_dict["advanced"]["open_google_oauth_url"] = bool(chk_state_google_oauth.get())
config_dict["ocr_captcha"] = {}
config_dict["ocr_captcha"]["enable"] = bool(chk_state_ocr_captcha.get())
@ -1268,7 +1261,6 @@ def applyNewLanguage():
global chk_adjacent_seat
global chk_hide_some_image
global chk_block_facebook_network
global chk_google_oauth
global chk_verbose
global lbl_online_dictionary_url
@ -1288,7 +1280,6 @@ def applyNewLanguage():
global lbl_adjacent_seat
global lbl_hide_some_image
global lbl_block_facebook_network
global lbl_google_oauth
global lbl_auto_reload_page_interval
global lbl_proxy_server_port
@ -1324,7 +1315,6 @@ def applyNewLanguage():
lbl_adjacent_seat.config(text=translate[language_code]["disable_adjacent_seat"])
lbl_hide_some_image.config(text=translate[language_code]["hide_some_image"])
lbl_block_facebook_network.config(text=translate[language_code]["block_facebook_network"])
lbl_google_oauth.config(text=translate[language_code]["open_google_oauth_url"])
lbl_auto_reload_page_interval.config(text=translate[language_code]["auto_reload_page_interval"])
lbl_proxy_server_port.config(text=translate[language_code]["proxy_server_port"])
@ -1354,7 +1344,6 @@ def applyNewLanguage():
chk_adjacent_seat.config(text=translate[language_code]["enable"])
chk_hide_some_image.config(text=translate[language_code]["enable"])
chk_block_facebook_network.config(text=translate[language_code]["enable"])
chk_google_oauth.config(text=translate[language_code]["enable"])
chk_verbose.config(text=translate[language_code]["enable"])
chk_auto_guess_options.config(text=translate[language_code]["enable"])
@ -2059,20 +2048,6 @@ def AdvancedTab(root, config_dict, language_code, UI_PADDING_X):
chk_block_facebook_network = Checkbutton(frame_group_header, text=translate[language_code]['enable'], variable=chk_state_block_facebook_network)
chk_block_facebook_network.grid(column=1, row=group_row_count, sticky = W)
group_row_count +=1
global lbl_google_oauth
lbl_google_oauth = Label(frame_group_header, text=translate[language_code]['open_google_oauth_url'])
lbl_google_oauth.grid(column=0, row=group_row_count, sticky = E)
global chk_state_google_oauth
chk_state_google_oauth = BooleanVar()
chk_state_google_oauth.set(config_dict["advanced"]["open_google_oauth_url"])
global chk_google_oauth
chk_google_oauth = Checkbutton(frame_group_header, text=translate[language_code]['enable'], variable=chk_state_google_oauth)
chk_google_oauth.grid(column=1, row=group_row_count, sticky = W)
group_row_count+=1
global lbl_verbose
@ -2674,7 +2649,7 @@ def main():
load_GUI(root, config_dict)
GUI_SIZE_WIDTH = 570
GUI_SIZE_HEIGHT = 620
GUI_SIZE_HEIGHT = 595
GUI_SIZE_MACOS = str(GUI_SIZE_WIDTH) + 'x' + str(GUI_SIZE_HEIGHT)
GUI_SIZE_WINDOWS=str(GUI_SIZE_WIDTH-60) + 'x' + str(GUI_SIZE_HEIGHT-70)