Merge branch 'main' of interstellardevelopment.org:React-Group/interstellar_ai

This commit is contained in:
Patrick_Pluto 2024-10-09 15:34:51 +02:00
commit 7342b43a08
3 changed files with 4 additions and 21 deletions

View file

@ -1,19 +0,0 @@
/* import { Settings } from 'electron'
type Message = {
role: string
content: string
}
type Chat = {
name: string
messages: Message[]
}
type Data = {
chats: Chat[]
settings: Settings[]
} */

View file

@ -35,7 +35,10 @@ const History: React.FC = () => {
{/* Populate with history items */}
{chatHistory.chats.map((chats, index) => (
<li key={index}>
<a href="#" onClick={() => handleHistoryClick(index)}>
<a href="#" onClick={() => handleHistoryClick(index)} style={{
backgroundColor: chatHistory.selectedIndex == index ? "var(--input-button-color)" : "",
borderRadius:"5px"
}}>
{chatHistory.chats[index].name}
</a>
</li>

View file

@ -45,7 +45,6 @@ export const sendToDatabase = async () => {
if (useName && usePassword) {
const result = await changeSettings(useName, usePassword, JSON.parse(exportSettings()))
if (result == true) {
alert('Data has been transferred')
window.location.reload();
}
}