mirror of
https://github.com/PR0M3TH3AN/VoxVera.git
synced 2026-11-04 21:50:40 +00:00
ui: Add 'Create New Site/Flyer' to the interactive management menu
This commit is contained in:
1 parent
2a967c950b
commit
362f5cdd4d
1 file changed
+11
@@ -689,6 +689,7 @@ def manage_servers():
|
||||
status_text = "[ON] " if running else "[OFF]"
|
||||
choices.append(Choice(s, f"{status_text} {s}"))
|
||||
|
||||
choices.insert(0, Choice("create_new", "--- Create New Site/Flyer ---"))
|
||||
choices.append(Choice("export_all", "--- Export All Sites ---"))
|
||||
choices.append(Choice("import_multiple", "--- Import Multiple Sites ---"))
|
||||
choices.append(Choice(None, "Exit"))
|
||||
@@ -701,6 +702,16 @@ def manage_servers():
|
||||
if selected is None:
|
||||
break
|
||||
|
||||
if selected == "create_new":
|
||||
config_path = ROOT / "src" / "config.json"
|
||||
interactive_update(str(config_path))
|
||||
build_assets(str(config_path))
|
||||
try:
|
||||
serve(str(config_path))
|
||||
except SystemExit:
|
||||
pass
|
||||
continue
|
||||
|
||||
if selected == "export_all":
|
||||
export_all_sites()
|
||||
continue
|
||||
|
||||
Reference in new issue
Block a user