mirror of
https://gitee.com/sui-feng-cb/AzurLaneAutoScript1
synced 2026-03-11 23:18:22 +08:00
Upd: Migrate to PyWebIO 1.5
- Force debug=True to show error log in popup directly - Theme support now available - Hide setting button
This commit is contained in:
@@ -42,7 +42,7 @@ class Frame(Base):
|
||||
self.asides = put_column([
|
||||
self.aside,
|
||||
None,
|
||||
self.aside_setting,
|
||||
# self.aside_setting,
|
||||
], size="auto 1fr auto").style("container-aside")
|
||||
|
||||
if self.is_mobile:
|
||||
|
||||
@@ -3,11 +3,10 @@
|
||||
from module.config.utils import (LANGUAGES, deep_get, deep_iter, deep_set,
|
||||
filepath_i18n, read_file, write_file)
|
||||
import module.webui.lang as lang
|
||||
from pywebio import config
|
||||
from pywebio.input import (actions, checkbox, input, input_group, input_update,
|
||||
select)
|
||||
from pywebio.output import put_buttons, put_markdown
|
||||
from pywebio.session import defer_call, hold, set_env
|
||||
from pywebio.session import defer_call, hold, run_js, set_env
|
||||
|
||||
|
||||
def translate():
|
||||
@@ -15,12 +14,12 @@ def translate():
|
||||
Translate Alas
|
||||
"""
|
||||
set_env(output_animation=False)
|
||||
config(css_style=r"footer{display:none;}")
|
||||
run_js(r"""$('head').append('<style>footer {display: none}</style>')""")
|
||||
|
||||
put_markdown("""
|
||||
# Translate
|
||||
You can submit(Next) by press `Enter`.
|
||||
""", strip_indent=8)
|
||||
""")
|
||||
|
||||
dict_lang = {
|
||||
"zh-CN": read_file(filepath_i18n('zh-CN')),
|
||||
|
||||
Reference in New Issue
Block a user