From a17b1382bc6ed921c2446ff99ab166d3f202c6c9 Mon Sep 17 00:00:00 2001 From: Jared Vititoe Date: Sat, 18 Apr 2026 23:59:19 -0400 Subject: [PATCH] Migrate inspector and links pages to TDS lt.* APIs - Add escHtml alias (lt.escHtml) to both pages so existing template strings work without touching 40+ call sites - Replace raw fetch() with lt.api.get/post in loadInspector, loadLinks, runDiagnostic, pollDiagnostic - Replace setInterval(load*, 60000) with lt.autoRefresh.start() for intelligent polling - Add lt.toast.error() to catch blocks for user-visible error feedback Co-Authored-By: Claude Sonnet 4.6 --- templates/inspector.html | 37 ++++++++++++++----------------------- templates/links.html | 13 +++++-------- 2 files changed, 19 insertions(+), 31 deletions(-) diff --git a/templates/inspector.html b/templates/inspector.html index af722ec..6c0e260 100644 --- a/templates/inspector.html +++ b/templates/inspector.html @@ -24,6 +24,8 @@ {% block scripts %} {% endblock %}