Skip to content

Commit

Permalink
feat:add frontier page SSE support.
Browse files Browse the repository at this point in the history
  • Loading branch information
arthuridea committed Mar 19, 2024
1 parent 201069e commit 4eb39a5
Show file tree
Hide file tree
Showing 8 changed files with 619 additions and 122 deletions.
9 changes: 8 additions & 1 deletion src/LLMServiceHub/Pages/Index.cshtml
Original file line number Diff line number Diff line change
Expand Up @@ -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; }
</style>
}

Expand Down Expand Up @@ -188,7 +194,7 @@
<div class="card m-0 me-2 ms-2">
<div class="card-body p-2">
<div class="input-group input-group-flat">
<textarea id="ipt-message" type="text" class="form-control vh-10" autocomplete="off" rows="3" placeholder="输入要发送的消息,按“回车键”发送"></textarea>
<textarea id="ipt-message" type="text" class="form-control vh-10" autocomplete="off" rows="3" placeholder="输入要发送的消息,按“Ctrl + 回车键”发送"></textarea>
<span class="input-group-text">
<div class="dropup-center dropup">
<a href="#" class="btn-icon-center link-secondary btn btn-link pt-2 pb-2" data-bs-toggle="dropdown" data-bs-auto-close="outside">
Expand Down Expand Up @@ -399,6 +405,7 @@

@if (User.Identity.IsAuthenticated)
{
<script src="~/js/sse.js" asp-append-version="true" ></script>
<script src="~/lib/marked/marked.min.js"></script>
<script src="~/lib/easy-typer-js/easy-typer-min.js"></script>
<script>
Expand Down
6 changes: 6 additions & 0 deletions src/LLMServiceHub/bundleconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,12 @@
"wwwroot/js/index.js"
]
},
{
"outputFileName": "wwwroot/js/sse.min.js",
"inputFiles": [
"wwwroot/js/sse.js"
]
},
{
"outputFileName": "wwwroot/js/paint.min.js",
"inputFiles": [
Expand Down
72 changes: 5 additions & 67 deletions src/LLMServiceHub/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions src/LLMServiceHub/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,10 @@
"bootstrap": "5.3.1",
"jquery": "^3.7.0"
},
"overrides": {
"glob-parent": "6.0.2",
"urllib": "3.22.2"
},
"repository": {
"type": "git",
"url": "git+https://github.com/arthuridea/NetCore.AIGC.git"
Expand Down
Loading

0 comments on commit 4eb39a5

Please sign in to comment.