Quick Info
-Host:
{html.escape(hostname)}
URL:
{html.escape(f"http://{self._get_local_ip()}:%s/")}
Status:
Server running
No content is currently being shared.
-diff --git a/core/http_share.py b/core/http_share.py index 0a0aa1e..f51e1e8 100644 --- a/core/http_share.py +++ b/core/http_share.py @@ -25,242 +25,41 @@ class FileShareHandler(BaseHTTPRequestHandler): shared_files: List[str] = [] shared_text: Optional[str] = None on_download: Optional[Callable[[str, str], None]] = None + html_template: Optional[str] = None def log_message(self, format, *args): pass - def _get_base_html(self, title: str, body_content: str, initial_data_script: str = "") -> str: - return f""" - -
- - -Total Size:
{format_size(total_size_bytes)}
Host:
{html.escape(hostname)}
URL:
{html.escape(f"http://{self._get_local_ip()}:%s/")}
Status:
Server running
No content is currently being shared.
-Host:
{{HOSTNAME}}
URL:
{{URL}}
Total Size:
{{TOTAL_SIZE_INFO}}
Status:
Server running
No content is currently being shared.
+