diff --git a/cron/jobs.json b/cron/jobs.json index 0d64541..d708237 100644 --- a/cron/jobs.json +++ b/cron/jobs.json @@ -269,8 +269,8 @@ "prompt": "Heartbeat check. Rulează src/heartbeat.py printr-un scurt raport de status.\nDacă nu e nimic de raportat (email=0, calendar nu are evenimente <2h, kb ok), răspunde doar cu HEARTBEAT_OK și oprește-te — nu trimite mesaj.\nDacă e ceva: raport scurt pe Discord #echo-work.", "allowed_tools": [], "enabled": true, - "last_run": null, - "last_status": null, - "next_run": null + "last_run": "2026-04-21T13:00:00.002339+00:00", + "last_status": "ok", + "next_run": "2026-04-21T15:00:00+00:00" } ] diff --git a/dashboard/api.py b/dashboard/api.py index 520e953..8ad66db 100644 --- a/dashboard/api.py +++ b/dashboard/api.py @@ -43,6 +43,53 @@ from handlers.pdf import PDFHandlers # noqa: E402 from handlers.workspace import WorkspaceHandlers # noqa: E402 from handlers.youtube import YoutubeHandlers # noqa: E402 +# Shared navigation injected into every served .html via marker. +NAV_HTML = '''
+ + +
+''' + class TaskBoardHandler( GitHandlers, @@ -112,11 +159,28 @@ class TaskBoardHandler( self.handle_eco_logs() elif self.path == '/api/eco/doctor': self.handle_eco_doctor() - elif self.path == '/api/eco/git' or self.path.startswith('/api/eco/git?'): - self.handle_eco_git_status() elif self.path.startswith('/api/'): self.send_error(404) else: + # Inject shared nav into served HTML pages via marker. + rel = self.path.lstrip('/').split('?')[0] + if rel.endswith('.html'): + try: + fpath = (KANBAN_DIR / rel).resolve() + fpath.relative_to(KANBAN_DIR.resolve()) + except (ValueError, OSError): + self.send_error(403) + return + if fpath.is_file(): + html = fpath.read_text('utf-8').replace('', NAV_HTML) + body = html.encode('utf-8') + self.send_response(200) + self.send_header('Content-Type', 'text/html; charset=utf-8') + self.send_header('Content-Length', str(len(body))) + self.send_header('Cache-Control', 'no-cache') + self.end_headers() + self.wfile.write(body) + return super().do_GET() def do_POST(self): diff --git a/dashboard/eco.html b/dashboard/eco.html deleted file mode 100644 index 3485e0f..0000000 --- a/dashboard/eco.html +++ /dev/null @@ -1,1252 +0,0 @@ - - - - - - - Echo · Eco - - - - - - -
- - -
- -
- - - -
-
-

- - Services -

- -
-
-
-
Loading...
-
-
-
- - -
-
-

- - Git -

- -
-
-
-
-
- -
-
-
- Git - curat -
-
Se incarca...
-
-
- - -
- -
-
- -
-
-
-
- - -
-
-

- - Sessions -

-
- - - -
-
-
-
-
-
Loading...
-
-
-
-
- - - - - - -
- - - - diff --git a/dashboard/files.html b/dashboard/files.html index 326b89f..9b725b1 100644 --- a/dashboard/files.html +++ b/dashboard/files.html @@ -828,41 +828,7 @@ -
- - -
+
diff --git a/dashboard/grup-sprijin.html b/dashboard/grup-sprijin.html index c0b5aec..fd01f67 100644 --- a/dashboard/grup-sprijin.html +++ b/dashboard/grup-sprijin.html @@ -232,37 +232,7 @@ -
- - -
+