forked from React-Group/interstellar_ai
		
	Compare commits
	
		
			No commits in common. "9373fa8e593e8763fa15a116c837cc4b3922faff" and "0c952ec06e0575138eb4904f5c5ed916b0ea93be" have entirely different histories.
		
	
	
		
			9373fa8e59
			...
			0c952ec06e
		
	
		
					 2 changed files with 4 additions and 4 deletions
				
			
		|  | @ -6,7 +6,7 @@ type ChatMessage = { | ||||||
| 
 | 
 | ||||||
| let chatHistory: ChatMessage[] = []; | let chatHistory: ChatMessage[] = []; | ||||||
| 
 | 
 | ||||||
| function addMessageToHistory(name: string, message: any): void { | function addMessageHistory(name: string, message: any): void { | ||||||
|     const newMessage: ChatMessage = { |     const newMessage: ChatMessage = { | ||||||
|         name: name, |         name: name, | ||||||
|         messages: message, |         messages: message, | ||||||
|  | @ -16,7 +16,7 @@ function addMessageToHistory(name: string, message: any): void { | ||||||
|     console.log(`Added message from ${name}: ${message}`); |     console.log(`Added message from ${name}: ${message}`); | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| function removeMessageFromHistory(timestamp: number): void { | function removeMessageHistory(timestamp: number): void { | ||||||
|     const index = chatHistory.findIndex((msg) => msg.timestamp === timestamp); |     const index = chatHistory.findIndex((msg) => msg.timestamp === timestamp); | ||||||
|     if (index > -1) { |     if (index > -1) { | ||||||
|         chatHistory.splice(index, 1); |         chatHistory.splice(index, 1); | ||||||
|  |  | ||||||
|  | @ -84,9 +84,9 @@ header{ | ||||||
| 
 | 
 | ||||||
| .header-login-button{ | .header-login-button{ | ||||||
|     height: 100%; |     height: 100%; | ||||||
|     width:max-content; |     width:4vw; | ||||||
|     font-size: var(--font-size); |     font-size: var(--font-size); | ||||||
|     padding: 0.5vw 1vw; |     padding: 3px; | ||||||
|     background-color: var(--input-button-color); |     background-color: var(--input-button-color); | ||||||
|     color: var(--text-color); |     color: var(--text-color); | ||||||
|     border: none; |     border: none; | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue