mirror of
https://github.com/natankeddem/bale.git
synced 2026-05-02 13:42:55 +00:00
change static mount to files
This commit is contained in:
@@ -4,7 +4,7 @@ from asyncio.subprocess import Process, PIPE
|
||||
import contextlib
|
||||
import shlex
|
||||
from datetime import datetime
|
||||
from nicegui import app, ui
|
||||
from nicegui import ui
|
||||
from bale.result import Result
|
||||
import logging
|
||||
|
||||
@@ -12,7 +12,6 @@ logger = logging.getLogger(__name__)
|
||||
|
||||
|
||||
def load_terminal_css():
|
||||
app.add_static_files("/static", "static")
|
||||
ui.add_head_html('<link href="static/xterm.css" rel="stylesheet">')
|
||||
|
||||
|
||||
|
||||
+2
-1
@@ -1,4 +1,4 @@
|
||||
from nicegui import ui
|
||||
from nicegui import app, ui
|
||||
from bale import elements as el
|
||||
from bale.drawer import Drawer
|
||||
from bale.content import Content
|
||||
@@ -11,6 +11,7 @@ logger = logging.getLogger(__name__)
|
||||
def build():
|
||||
@ui.page("/")
|
||||
def page():
|
||||
app.add_static_files("/static", "static")
|
||||
ui.add_head_html(
|
||||
"""
|
||||
<style>
|
||||
|
||||
Reference in New Issue
Block a user