forked from Mirror/ollama4j
		
	Add WeatherTool and integration test with auth proxy
Introduces WeatherTool for fetching weather data via OpenWeatherMap API and its tool specification. Adds an integration test (WithAuth) using Testcontainers to verify OllamaAPI connectivity through an NGINX proxy with bearer token authentication. Also updates pom.xml to include the testcontainers-nginx dependency and minor improvements to OllamaAPI for request headers and Javadoc formatting. TypewriterTextarea now supports text alignment, with homepage header using center alignment.
This commit is contained in:
		@@ -1,6 +1,6 @@
 | 
			
		||||
import React, { useEffect, useState, useRef } from 'react';
 | 
			
		||||
 | 
			
		||||
const TypewriterTextarea = ({ textContent, typingSpeed = 50, pauseBetweenSentences = 1000, height = '200px', width = '100%' }) => {
 | 
			
		||||
const TypewriterTextarea = ({ textContent, typingSpeed = 50, pauseBetweenSentences = 1000, height = '200px', width = '100%', align = 'left' }) => {
 | 
			
		||||
  const [text, setText] = useState('');
 | 
			
		||||
  const [sentenceIndex, setSentenceIndex] = useState(0);
 | 
			
		||||
  const [charIndex, setCharIndex] = useState(0);
 | 
			
		||||
@@ -56,11 +56,13 @@ const TypewriterTextarea = ({ textContent, typingSpeed = 50, pauseBetweenSentenc
 | 
			
		||||
        fontSize: '1rem',
 | 
			
		||||
        backgroundColor: '#f4f4f4',
 | 
			
		||||
        border: '1px solid #ccc',
 | 
			
		||||
        textAlign: align,
 | 
			
		||||
        resize: 'none',
 | 
			
		||||
        whiteSpace: 'pre-wrap',
 | 
			
		||||
        color: 'black',
 | 
			
		||||
      }}
 | 
			
		||||
    />
 | 
			
		||||
  );
 | 
			
		||||
};
 | 
			
		||||
 | 
			
		||||
export default TypewriterTextarea;
 | 
			
		||||
export default TypewriterTextarea;
 | 
			
		||||
		Reference in New Issue
	
	Block a user