mirror of
https://github.com/mofeng-git/One-KVM.git
synced 2026-01-29 00:51:53 +08:00
make janus-static work for web ui
This commit is contained in:
@@ -21,6 +21,7 @@
|
||||
|
||||
|
||||
import os
|
||||
import re
|
||||
|
||||
from typing import Dict
|
||||
from typing import Optional
|
||||
@@ -51,9 +52,10 @@ class ExtrasInfoSubmanager(BaseInfoSubmanager):
|
||||
try:
|
||||
extras_path = self.__global_config.kvmd.info.extras
|
||||
extras: Dict[str, Dict] = {}
|
||||
for app in os.listdir(extras_path):
|
||||
if app[0] != "." and os.path.isdir(os.path.join(extras_path, app)):
|
||||
extras[app] = load_yaml_file(os.path.join(extras_path, app, "manifest.yaml"))
|
||||
for name in os.listdir(extras_path):
|
||||
if name[0] != "." and os.path.isdir(os.path.join(extras_path, name)):
|
||||
app = re.sub(r"[^a-zA-Z0-9_]+", "_", name)
|
||||
extras[app] = load_yaml_file(os.path.join(extras_path, name, "manifest.yaml"))
|
||||
self.__rewrite_app_daemon(extras[app])
|
||||
self.__rewrite_app_port(extras[app])
|
||||
return extras
|
||||
|
||||
Reference in New Issue
Block a user