diff --git a/frontend/package.json b/frontend/package.json index 9963a0e..ad6e858 100644 --- a/frontend/package.json +++ b/frontend/package.json @@ -68,7 +68,10 @@ "solid", "@typescript-eslint" ], - "rules": {}, + "rules": { + "@typescript-eslint/no-explicit-any": "off", + "@typescript-eslint/ban-ts-comment": "off" + }, "overrides": [ { "files": [ diff --git a/frontend/src/components/chat.tsx b/frontend/src/components/chat.tsx index b08246d..9547011 100644 --- a/frontend/src/components/chat.tsx +++ b/frontend/src/components/chat.tsx @@ -70,7 +70,6 @@ export default function Chat() { }; socket.onclose = (event) => { console.warn("WebSocket closed with code:", event.code, "reason:", event.reason); - appendMessage("Sorry, an error happened, please retry.") setLoading(false); // Attempt to reconnect after a delay setTimeout(() => { @@ -127,7 +126,6 @@ export default function Chat() { return (
-
{/* Website description */} @@ -141,37 +139,31 @@ export default function Chat() { // messageElement.className = `border-b border-slate-500 ${sender === "user" ? "bg-gray-100 dark:bg-gray-700" : "bg-gray-200 dark:bg-gray-600 hidden"}`;
-
-
-
- {/* Add sources when RAG */} - { msg.sources.length > 0 && - <> - {(source: any, iSource) => - <> - - - - - - - } - - } -
-
+
+ {/* Add sources when RAG */} + { msg.sources.length > 0 && + {(source: any, iSource) => + <> + + + + + + + } + }
} @@ -201,7 +193,8 @@ export default function Chat() {
handleInput(e)} onKeyDown={(e) => handleKeyPress(e)} /> @@ -215,7 +208,6 @@ export default function Chat() {
-
); } diff --git a/frontend/src/layouts/Layout.astro b/frontend/src/layouts/Layout.astro index da32b12..204742a 100644 --- a/frontend/src/layouts/Layout.astro +++ b/frontend/src/layouts/Layout.astro @@ -53,11 +53,11 @@ const { title } = Astro.props; } /* Add placeholder in text input */ - /* [placeholder]:empty:before { + [placeholder]:empty:before { content: attr(placeholder); opacity: 0.6; pointer-events: none; - } */ + } /* Add tooltip for top nav on desktop */ @media (min-width: 640px) { diff --git a/frontend/src/layouts/Nav.tsx b/frontend/src/layouts/Nav.tsx index 60af7f9..b82dce0 100644 --- a/frontend/src/layouts/Nav.tsx +++ b/frontend/src/layouts/Nav.tsx @@ -26,24 +26,33 @@ export default function Nav() { }; return ( - + + ); } diff --git a/src/libre_chat/webapp/_astro/Nav.2xMXVGgD.js b/src/libre_chat/webapp/_astro/Nav.2xMXVGgD.js deleted file mode 100644 index 0b0ee62..0000000 --- a/src/libre_chat/webapp/_astro/Nav.2xMXVGgD.js +++ /dev/null @@ -1 +0,0 @@ -import{d as y,k as $,c as C,g as S,i as M,f as E,r as j,s as n,t as A}from"./web.zg9RI5L8.js";import{p as T,$ as B,a as I,s as N}from"./nanostores.RVhpkXze.js";var U=A('