diff options
-rw-r--r-- | web-project/src/solo_tool_web.py | 18 |
1 files changed, 7 insertions, 11 deletions
diff --git a/web-project/src/solo_tool_web.py b/web-project/src/solo_tool_web.py index e3ed4c0..7c8a48e 100644 --- a/web-project/src/solo_tool_web.py +++ b/web-project/src/solo_tool_web.py @@ -44,13 +44,9 @@ def sessionPage(sessionName: str): st = sessions[sessionName] - # Upload song dialog - def handleFileUpload(e: events.UploadEventArguments): - sessionManager.addSong(e.name, e.content) - st.addSong(e.name) - - with ui.dialog() as uploadSongDialog: - ui.upload(label="Upload songs", auto_upload=True, on_upload=handleFileUpload).classes('max-w-full') + # Manage songs dialog + with ui.dialog() as manageSongsDialog: + ui.label("Under construction") # Header with ui.header().classes('items-center justify-between'): @@ -73,7 +69,7 @@ def sessionPage(sessionName: str): # Song list with ui.left_drawer(bottom_corner=True).props('overlay breakpoint=8000') as songDrawer: songList(st, songDrawer) - ui.button(icon='add', on_click=uploadSongDialog.open).props('flat round dense color=white') + ui.button(icon='add', on_click=manageSongsDialog.open).props('flat round dense color=white') # Playback position def setPosition(e) -> None: st.position = e.args @@ -136,11 +132,11 @@ def start(port, refresh, reload, session_path): @click.option("--port", type=int, default=8080, help="Port on which to bind.") @click.option("--refresh", type=float, default=0.5, help="Refresh interval in seconds.") @click.option("--reload/--no-reload", default=True, help="Auto-reload when files change.") -@click.option("--session_path", default="/home/eddy/music/sessions", help="Look for sessions in this location.") +@click.option("--session_path", default="https://files.0xf7.com", help="Look for sessions in this location.") def main(port, refresh, reload, session_path): start(port, refresh, reload, session_path) # Hardcoded dev settings if __name__ in {"__main__", "__mp_main__"}: - #start(8080, 0.5, True, "https://files.0xf7.com") - start(8080, 0.5, True, "/home/eddy/music/sessions") + start(8080, 0.5, True, "https://files.0xf7.com") + #start(8080, 0.5, True, "/home/eddy/music/sessions") |