diff --git a/src/index.ts b/src/index.ts index 91fe84c..02cbf17 100644 --- a/src/index.ts +++ b/src/index.ts @@ -7,21 +7,17 @@ import { dashboardRoutes } from "./routes/dashboard"; const app = new Hono(); -// Logger app.use("*", async (c, next) => { console.log(`${c.req.method} ${c.req.url}`); await next(); }); -// Routes app.route("/auth", authRoutes); app.route("/api/config", configRoutes); app.route("/api", apiRoutes); app.route("/dashboard", dashboardRoutes); -// Health check app.get("/health", (c) => c.json({ status: "ok" })); - export default { port: Number.parseInt(config.PORT, 10), fetch: app.fetch, diff --git a/src/views/dashboard.html b/src/views/dashboard.html index ba2abb8..11c4559 100644 --- a/src/views/dashboard.html +++ b/src/views/dashboard.html @@ -26,7 +26,6 @@
-

Add/Update Provider

@@ -70,7 +69,6 @@
-
@@ -95,7 +93,6 @@ - Enter API Key to load providers... @@ -191,7 +188,6 @@ document.getElementById('redirectUri').value = config.redirectUri; document.getElementById('scope').value = config.scope; - // Scroll to form document.getElementById('configForm').scrollIntoView({ behavior: 'smooth' }); } @@ -237,7 +233,6 @@ } }); - // Initialize table if API Key is present in local storage const savedApiKey = localStorage.getItem('auth_server_api_key'); if (savedApiKey) { apiKeyInput.value = savedApiKey; @@ -246,7 +241,6 @@ apiKeyInput.addEventListener('input', () => { localStorage.setItem('auth_server_api_key', apiKeyInput.value); - // Debounce fetch clearTimeout(window.fetchTimeout); window.fetchTimeout = setTimeout(fetchProviders, 500); });