Keep Dock exclusive and polish controls chart and overlays

This commit is contained in:
SantaSpeen committed 2026-11-30 23:13:57 +03:00
1 parent 84c4b3030a
commit 17011ebd4d
38 files changed
+240 -68

No files matched your search

+24
View File
@@ -0,0 +1,24 @@
"""Local Dock preview with the same cache policy as the Node server."""
import os
from functools import partial
from http.server import SimpleHTTPRequestHandler, ThreadingHTTPServer
from pathlib import Path
class DockHandler(SimpleHTTPRequestHandler):
def end_headers(self):
self.send_header("Cache-Control", "no-store")
super().end_headers()
if __name__ == "__main__":
root = Path(__file__).resolve().parent.parent
port = int(os.environ.get("PORT", "4173"))
handler = partial(DockHandler, directory=str(root))
with ThreadingHTTPServer(("127.0.0.1", port), handler) as server:
print(f"Anidev Dock: http://127.0.0.1:{port}/", flush=True)
try:
server.serve_forever()
except KeyboardInterrupt:
pass