From 4eb39a55ad1e9771fb63a6a94501bd1761e3e158 Mon Sep 17 00:00:00 2001 From: arthuridea w <2337583+arthuridea@users.noreply.github.com> Date: Tue, 19 Mar 2024 16:14:47 +0800 Subject: [PATCH] feat:add frontier page SSE support. --- src/LLMServiceHub/Pages/Index.cshtml | 9 +- src/LLMServiceHub/bundleconfig.json | 6 + src/LLMServiceHub/package-lock.json | 72 +--- src/LLMServiceHub/package.json | 4 + src/LLMServiceHub/wwwroot/js/index.js | 204 +++++++--- src/LLMServiceHub/wwwroot/js/index.min.js | 11 +- src/LLMServiceHub/wwwroot/js/sse.js | 434 ++++++++++++++++++++++ src/LLMServiceHub/wwwroot/js/sse.min.js | 1 + 8 files changed, 619 insertions(+), 122 deletions(-) create mode 100644 src/LLMServiceHub/wwwroot/js/sse.js create mode 100644 src/LLMServiceHub/wwwroot/js/sse.min.js diff --git a/src/LLMServiceHub/Pages/Index.cshtml b/src/LLMServiceHub/Pages/Index.cshtml index 7738b25..afe68a8 100644 --- a/src/LLMServiceHub/Pages/Index.cshtml +++ b/src/LLMServiceHub/Pages/Index.cshtml @@ -42,6 +42,12 @@ } .llm-model-config{font-size:0.8rem;color:darkgoldenrod;} .btn-icon-center svg{margin-right:0 !important;} + + + ::-webkit-scrollbar { width: 8px; height: 8px; } + ::-webkit-scrollbar-track { border-radius: 10px !important; margin-block: 5px; } + ::-webkit-scrollbar-thumb { border-radius: 10px !important; } + * { scrollbar-width: thin; } } @@ -188,7 +194,7 @@