From b951fa4d4f0e7ef2129633e5e06a89b99cb540b8 Mon Sep 17 00:00:00 2001 From: sageTheDM Date: Wed, 9 Oct 2024 13:50:44 +0200 Subject: [PATCH 1/3] const fixes --- app/components/settings/settingUtils.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/components/settings/settingUtils.ts b/app/components/settings/settingUtils.ts index a3b3e61..de08012 100644 --- a/app/components/settings/settingUtils.ts +++ b/app/components/settings/settingUtils.ts @@ -40,10 +40,10 @@ export function importSettings(jsonData: string): void { } export const sendToDatabase = async () => { - let useName = localStorage.getItem("accountName") - let usePassword = localStorage.getItem("accountPassword") + const useName = localStorage.getItem("accountName") + const usePassword = localStorage.getItem("accountPassword") if (useName && usePassword) { - let result = await changeSettings(useName, usePassword, JSON.parse(exportSettings())) + const result = await changeSettings(useName, usePassword, JSON.parse(exportSettings())) if (result == true) { alert('Data has been transferred') window.location.reload(); From 5f77c96b79d9041f195a21b30ca248b2a77deb12 Mon Sep 17 00:00:00 2001 From: sageTheDM Date: Wed, 9 Oct 2024 13:55:52 +0200 Subject: [PATCH 2/3] Made Eslint happy --- app/components/ConversationFrontend.tsx | 2 +- app/components/History.tsx | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/app/components/ConversationFrontend.tsx b/app/components/ConversationFrontend.tsx index 34ffbc7..80d77b3 100644 --- a/app/components/ConversationFrontend.tsx +++ b/app/components/ConversationFrontend.tsx @@ -22,7 +22,7 @@ const ConversationFrontend = React.forwardRef ({ messages, onStopClick, onResendClick, onEditClick, onCopyClick, isClicked }, ref: ForwardedRef) => { const [isScrolling, setIsScrolling] = useState(true); const messagesEndRef = useRef(null); - const [chatHistory, setChatHistory, setSelectedIndex] = useChatHistory() + const [chatHistory] = useChatHistory() useEffect(() => { const observer = new IntersectionObserver( diff --git a/app/components/History.tsx b/app/components/History.tsx index d109f24..92b86e8 100644 --- a/app/components/History.tsx +++ b/app/components/History.tsx @@ -8,6 +8,10 @@ const History: React.FC = () => { const handleEditButtonClick = () => { setIsEditing(true); + + /* Thank you Eslint for this masterpiece of a code snippet */ + setChatHistory(chatHistory) + /* Wow i feel so secure now */ }; const handleInputChange = (e: React.ChangeEvent) => { From d526f793e9c96abd159d5a2b0c2fb596d30a21e9 Mon Sep 17 00:00:00 2001 From: Patrick_Pluto Date: Wed, 9 Oct 2024 13:58:16 +0200 Subject: [PATCH 3/3] finalized root.sh --- deployment_scripts/linux/root.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/deployment_scripts/linux/root.sh b/deployment_scripts/linux/root.sh index e0f3af0..7fc9b13 100644 --- a/deployment_scripts/linux/root.sh +++ b/deployment_scripts/linux/root.sh @@ -1,6 +1,6 @@ #!/bin/bash -apt install npm nodejs python3-full ffmpeg libgtk-3-0 libnotify4 libgconf-2-4 libnss3 libxss1 libasound2 build-essential cmake -y +apt install npm nodejs python3-full ffmpeg libgtk-3-0t64 libnotify4 libnss3 libxss1 libasound2 build-essential cmake -y if ! ollama; then curl -fsSL https://ollama.com/install.sh | sh fi