From ab5eef55043659b718d17477a8008497ad936d30 Mon Sep 17 00:00:00 2001 From: Lord Lumineer <56554075+LordLumineer@users.noreply.github.com> Date: Sun, 16 Feb 2025 21:54:56 -0500 Subject: [PATCH] style: :art: cleaned up the HomePage --- app/main.py | 4 +- static/index.html | 371 ++++++++---------------- static/script.js | 707 ++++++++++++++++++++++++++++------------------ 3 files changed, 557 insertions(+), 525 deletions(-) diff --git a/app/main.py b/app/main.py index 806a274..899208f 100644 --- a/app/main.py +++ b/app/main.py @@ -23,16 +23,14 @@ from collections import defaultdict import json from fastapi import FastAPI, WebSocket, WebSocketDisconnect, Form -# from fastapi.responses import FileResponse, HTMLResponse from fastapi.exceptions import HTTPException from fastapi.staticfiles import StaticFiles from starlette.middleware.cors import CORSMiddleware -# Change from dict[str, WebSocket] to dict[str, set[WebSocket]] active_connections: dict[str, set[WebSocket]] = defaultdict(set) app = FastAPI( - version="1.1.0-beta-v3", + version="1.1.0-beta-v4", docs_url=None, # Disable Swagger UI redoc_url=None # Disable ReDoc ) diff --git a/static/index.html b/static/index.html index 88f7b6b..04f9771 100644 --- a/static/index.html +++ b/static/index.html @@ -89,16 +89,6 @@ opacity: 1; } - .copy-button svg { - width: 1.25rem; - height: 1.25rem; - fill: currentColor; - } - - .copy-button.copied svg { - fill: #4ade80; - } - /* JSON Editor styles */ .jsoneditor { border: none !important; @@ -115,27 +105,31 @@ - -
-
- -
+ + +
+ +
+ + +
+