mirror of
https://github.com/oobabooga/text-generation-webui.git
synced 2026-04-07 15:43:49 +00:00
Load js and css sources in UTF-8 (#7059)
This commit is contained in:
parent
4cf39120fc
commit
bc921c66e5
2 changed files with 15 additions and 14 deletions
|
|
@ -19,27 +19,27 @@ _last_extensions = None
|
|||
_last_show_controls = None
|
||||
_last_theme_state = None
|
||||
|
||||
with open(Path(__file__).resolve().parent / '../css/NotoSans/stylesheet.css', 'r') as f:
|
||||
with open(Path(__file__).resolve().parent / '../css/NotoSans/stylesheet.css', 'r', encoding='utf-8') as f:
|
||||
css = f.read()
|
||||
with open(Path(__file__).resolve().parent / '../css/main.css', 'r') as f:
|
||||
with open(Path(__file__).resolve().parent / '../css/main.css', 'r', encoding='utf-8') as f:
|
||||
css += f.read()
|
||||
with open(Path(__file__).resolve().parent / '../css/katex/katex.min.css', 'r') as f:
|
||||
with open(Path(__file__).resolve().parent / '../css/katex/katex.min.css', 'r', encoding='utf-8') as f:
|
||||
css += f.read()
|
||||
with open(Path(__file__).resolve().parent / '../css/highlightjs/highlightjs-copy.min.css', 'r') as f:
|
||||
with open(Path(__file__).resolve().parent / '../css/highlightjs/highlightjs-copy.min.css', 'r', encoding='utf-8') as f:
|
||||
css += f.read()
|
||||
with open(Path(__file__).resolve().parent / '../js/main.js', 'r') as f:
|
||||
with open(Path(__file__).resolve().parent / '../js/main.js', 'r', encoding='utf-8') as f:
|
||||
js = f.read()
|
||||
with open(Path(__file__).resolve().parent / '../js/global_scope_js.js', 'r') as f:
|
||||
with open(Path(__file__).resolve().parent / '../js/global_scope_js.js', 'r', encoding='utf-8') as f:
|
||||
global_scope_js = f.read()
|
||||
with open(Path(__file__).resolve().parent / '../js/save_files.js', 'r') as f:
|
||||
with open(Path(__file__).resolve().parent / '../js/save_files.js', 'r', encoding='utf-8') as f:
|
||||
save_files_js = f.read()
|
||||
with open(Path(__file__).resolve().parent / '../js/switch_tabs.js', 'r') as f:
|
||||
with open(Path(__file__).resolve().parent / '../js/switch_tabs.js', 'r', encoding='utf-8') as f:
|
||||
switch_tabs_js = f.read()
|
||||
with open(Path(__file__).resolve().parent / '../js/show_controls.js', 'r') as f:
|
||||
with open(Path(__file__).resolve().parent / '../js/show_controls.js', 'r', encoding='utf-8') as f:
|
||||
show_controls_js = f.read()
|
||||
with open(Path(__file__).resolve().parent / '../js/update_big_picture.js', 'r') as f:
|
||||
with open(Path(__file__).resolve().parent / '../js/update_big_picture.js', 'r', encoding='utf-8') as f:
|
||||
update_big_picture_js = f.read()
|
||||
with open(Path(__file__).resolve().parent / '../js/dark_theme.js', 'r') as f:
|
||||
with open(Path(__file__).resolve().parent / '../js/dark_theme.js', 'r', encoding='utf-8') as f:
|
||||
dark_theme_js = f.read()
|
||||
|
||||
refresh_symbol = '🔄'
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue