diff --git a/frontend/src/components/EmbeddingSelection/AzureAiOptions/index.jsx b/frontend/src/components/EmbeddingSelection/AzureAiOptions/index.jsx index c782c51f334c48595e89408aa32923480b9fbfbe..209c0aa21f3599a8027219ec3c7f058fe9d925f5 100644 --- a/frontend/src/components/EmbeddingSelection/AzureAiOptions/index.jsx +++ b/frontend/src/components/EmbeddingSelection/AzureAiOptions/index.jsx @@ -9,7 +9,7 @@ export default function AzureAiOptions({ settings }) { <input type="url" name="AzureOpenAiEndpoint" - className="bg-zinc-900 text-white placeholder-white placeholder-opacity-60 text-sm rounded-lg focus:border-white block w-full p-2.5" + className="bg-zinc-900 text-white placeholder:text-white/20 text-sm rounded-lg focus:border-white block w-full p-2.5" placeholder="https://my-azure.openai.azure.com" defaultValue={settings?.AzureOpenAiEndpoint} required={true} @@ -25,7 +25,7 @@ export default function AzureAiOptions({ settings }) { <input type="password" name="AzureOpenAiKey" - className="bg-zinc-900 text-white placeholder-white placeholder-opacity-60 text-sm rounded-lg focus:border-white block w-full p-2.5" + className="bg-zinc-900 text-white placeholder:text-white/20 text-sm rounded-lg focus:border-white block w-full p-2.5" placeholder="Azure OpenAI API Key" defaultValue={settings?.AzureOpenAiKey ? "*".repeat(20) : ""} required={true} @@ -41,7 +41,7 @@ export default function AzureAiOptions({ settings }) { <input type="text" name="AzureOpenAiEmbeddingModelPref" - className="bg-zinc-900 text-white placeholder-white placeholder-opacity-60 text-sm rounded-lg focus:border-white block w-full p-2.5" + className="bg-zinc-900 text-white placeholder:text-white/20 text-sm rounded-lg focus:border-white block w-full p-2.5" placeholder="Azure OpenAI embedding model deployment name" defaultValue={settings?.AzureOpenAiEmbeddingModelPref} required={true} diff --git a/frontend/src/components/EmbeddingSelection/LocalAiOptions/index.jsx b/frontend/src/components/EmbeddingSelection/LocalAiOptions/index.jsx index 651d3e950b88715de2c9bbfb0557226955254055..8c611cd31ae09157c7328c38c9d9dbf8cbb5220c 100644 --- a/frontend/src/components/EmbeddingSelection/LocalAiOptions/index.jsx +++ b/frontend/src/components/EmbeddingSelection/LocalAiOptions/index.jsx @@ -19,7 +19,7 @@ export default function LocalAiOptions({ settings }) { <input type="url" name="EmbeddingBasePath" - className="bg-zinc-900 text-white placeholder-white placeholder-opacity-60 text-sm rounded-lg focus:border-white block w-full p-2.5" + className="bg-zinc-900 text-white placeholder:text-white/20 text-sm rounded-lg focus:border-white block w-full p-2.5" placeholder="http://localhost:8080/v1" defaultValue={settings?.EmbeddingBasePath} onChange={(e) => setBasePathValue(e.target.value)} @@ -41,7 +41,7 @@ export default function LocalAiOptions({ settings }) { <input type="number" name="EmbeddingModelMaxChunkLength" - className="bg-zinc-900 text-white placeholder-white placeholder-opacity-60 text-sm rounded-lg focus:border-white block w-full p-2.5" + className="bg-zinc-900 text-white placeholder:text-white/20 text-sm rounded-lg focus:border-white block w-full p-2.5" placeholder="1000" min={1} onScroll={(e) => e.target.blur()} @@ -62,7 +62,7 @@ export default function LocalAiOptions({ settings }) { <input type="password" name="LocalAiApiKey" - className="bg-zinc-900 text-white placeholder-white placeholder-opacity-60 text-sm rounded-lg focus:border-white block w-full p-2.5" + className="bg-zinc-900 text-white placeholder:text-white/20 text-sm rounded-lg focus:border-white block w-full p-2.5" placeholder="sk-mysecretkey" defaultValue={settings?.LocalAiApiKey ? "*".repeat(20) : ""} autoComplete="off" @@ -108,7 +108,7 @@ function LocalAIModelSelection({ settings, apiKey = null, basePath = null }) { <select name="EmbeddingModelPref" disabled={true} - className="bg-zinc-900 border border-gray-500 text-white text-sm rounded-lg block w-full p-2.5" + className="bg-zinc-900 border-gray-500 text-white text-sm rounded-lg block w-full p-2.5" > <option disabled={true} selected={true}> {basePath?.includes("/v1") @@ -128,7 +128,7 @@ function LocalAIModelSelection({ settings, apiKey = null, basePath = null }) { <select name="EmbeddingModelPref" required={true} - className="bg-zinc-900 border border-gray-500 text-white text-sm rounded-lg block w-full p-2.5" + className="bg-zinc-900 border-gray-500 text-white text-sm rounded-lg block w-full p-2.5" > {customModels.length > 0 && ( <optgroup label="Your loaded models"> diff --git a/frontend/src/components/EmbeddingSelection/OpenAiOptions/index.jsx b/frontend/src/components/EmbeddingSelection/OpenAiOptions/index.jsx index 15b5d307cc9a64342e8ba8975a6e880a219b8aff..af266d5e2766ea88814209390b3214aabc00028e 100644 --- a/frontend/src/components/EmbeddingSelection/OpenAiOptions/index.jsx +++ b/frontend/src/components/EmbeddingSelection/OpenAiOptions/index.jsx @@ -9,7 +9,7 @@ export default function OpenAiOptions({ settings }) { <input type="password" name="OpenAiKey" - className="bg-zinc-900 text-white placeholder-white placeholder-opacity-60 text-sm rounded-lg focus:border-white block w-full p-2.5" + className="bg-zinc-900 text-white placeholder:text-white/20 text-sm rounded-lg focus:border-white block w-full p-2.5" placeholder="OpenAI API Key" defaultValue={settings?.OpenAiKey ? "*".repeat(20) : ""} required={true} @@ -24,7 +24,7 @@ export default function OpenAiOptions({ settings }) { <select name="EmbeddingModelPref" required={true} - className="bg-zinc-900 border border-gray-500 text-white text-sm rounded-lg block w-full p-2.5" + className="bg-zinc-900 border-gray-500 text-white text-sm rounded-lg block w-full p-2.5" > <optgroup label="Available embedding models"> {[ diff --git a/frontend/src/components/LLMSelection/AnthropicAiOptions/index.jsx b/frontend/src/components/LLMSelection/AnthropicAiOptions/index.jsx index 52bbbfd8977168cd1572db142fa2d6fe52271d8b..3d493f1c43679676152b5435adcea1f27edead35 100644 --- a/frontend/src/components/LLMSelection/AnthropicAiOptions/index.jsx +++ b/frontend/src/components/LLMSelection/AnthropicAiOptions/index.jsx @@ -29,7 +29,7 @@ export default function AnthropicAiOptions({ settings, showAlert = false }) { <input type="password" name="AnthropicApiKey" - className="bg-zinc-900 text-white placeholder-white placeholder-opacity-60 text-sm rounded-lg focus:border-white block w-full p-2.5" + className="bg-zinc-900 text-white placeholder:text-white/20 text-sm rounded-lg focus:border-white block w-full p-2.5" placeholder="Anthropic Claude-2 API Key" defaultValue={settings?.AnthropicApiKey ? "*".repeat(20) : ""} required={true} @@ -46,7 +46,7 @@ export default function AnthropicAiOptions({ settings, showAlert = false }) { name="AnthropicModelPref" defaultValue={settings?.AnthropicModelPref || "claude-2"} required={true} - className="bg-zinc-900 border border-gray-500 text-white text-sm rounded-lg block w-full p-2.5" + className="bg-zinc-900 border-gray-500 text-white text-sm rounded-lg block w-full p-2.5" > {["claude-2", "claude-instant-1"].map((model) => { return ( diff --git a/frontend/src/components/LLMSelection/AzureAiOptions/index.jsx b/frontend/src/components/LLMSelection/AzureAiOptions/index.jsx index ce54d3d60dea414c77446284469643c9f6c76fd5..224582eb83b4df7561e296b8a2d30201ed441ef2 100644 --- a/frontend/src/components/LLMSelection/AzureAiOptions/index.jsx +++ b/frontend/src/components/LLMSelection/AzureAiOptions/index.jsx @@ -9,7 +9,7 @@ export default function AzureAiOptions({ settings }) { <input type="url" name="AzureOpenAiEndpoint" - className="bg-zinc-900 text-white placeholder-white placeholder-opacity-60 text-sm rounded-lg focus:border-white block w-full p-2.5" + className="bg-zinc-900 text-white placeholder:text-white/20 text-sm rounded-lg focus:border-white block w-full p-2.5" placeholder="https://my-azure.openai.azure.com" defaultValue={settings?.AzureOpenAiEndpoint} required={true} @@ -25,7 +25,7 @@ export default function AzureAiOptions({ settings }) { <input type="password" name="AzureOpenAiKey" - className="bg-zinc-900 text-white placeholder-white placeholder-opacity-60 text-sm rounded-lg focus:border-white block w-full p-2.5" + className="bg-zinc-900 text-white placeholder:text-white/20 text-sm rounded-lg focus:border-white block w-full p-2.5" placeholder="Azure OpenAI API Key" defaultValue={settings?.AzureOpenAiKey ? "*".repeat(20) : ""} required={true} @@ -41,7 +41,7 @@ export default function AzureAiOptions({ settings }) { <input type="text" name="AzureOpenAiModelPref" - className="bg-zinc-900 text-white placeholder-white placeholder-opacity-60 text-sm rounded-lg focus:border-white block w-full p-2.5" + className="bg-zinc-900 text-white placeholder:text-white/20 text-sm rounded-lg focus:border-white block w-full p-2.5" placeholder="Azure OpenAI chat model deployment name" defaultValue={settings?.AzureOpenAiModelPref} required={true} @@ -59,7 +59,7 @@ export default function AzureAiOptions({ settings }) { <select name="AzureOpenAiTokenLimit" defaultValue={settings?.AzureOpenAiTokenLimit || 4096} - className="bg-zinc-900 text-white placeholder-white placeholder-opacity-60 text-sm rounded-lg focus:border-white block w-full p-2.5" + className="bg-zinc-900 text-white placeholder:text-white/20 text-sm rounded-lg focus:border-white block w-full p-2.5" required={true} > <option value={4096}>4,096 (gpt-3.5-turbo)</option> @@ -77,7 +77,7 @@ export default function AzureAiOptions({ settings }) { <input type="text" name="AzureOpenAiEmbeddingModelPref" - className="bg-zinc-900 text-white placeholder-white placeholder-opacity-60 text-sm rounded-lg focus:border-white block w-full p-2.5" + className="bg-zinc-900 text-white placeholder:text-white/20 text-sm rounded-lg focus:border-white block w-full p-2.5" placeholder="Azure OpenAI embedding model deployment name" defaultValue={settings?.AzureOpenAiEmbeddingModelPref} required={true} diff --git a/frontend/src/components/LLMSelection/GeminiLLMOptions/index.jsx b/frontend/src/components/LLMSelection/GeminiLLMOptions/index.jsx index 4d09e0432036ecb7a720b85685902f0863b092f2..3b53ccc1e4a26af8db4d5200654471cff905b901 100644 --- a/frontend/src/components/LLMSelection/GeminiLLMOptions/index.jsx +++ b/frontend/src/components/LLMSelection/GeminiLLMOptions/index.jsx @@ -9,7 +9,7 @@ export default function GeminiLLMOptions({ settings }) { <input type="password" name="GeminiLLMApiKey" - className="bg-zinc-900 text-white placeholder-white placeholder-opacity-60 text-sm rounded-lg focus:border-white block w-full p-2.5" + className="bg-zinc-900 text-white placeholder:text-white/20 text-sm rounded-lg focus:border-white block w-full p-2.5" placeholder="Google Gemini API Key" defaultValue={settings?.GeminiLLMApiKey ? "*".repeat(20) : ""} required={true} @@ -26,7 +26,7 @@ export default function GeminiLLMOptions({ settings }) { name="GeminiLLMModelPref" defaultValue={settings?.GeminiLLMModelPref || "gemini-pro"} required={true} - className="bg-zinc-900 border border-gray-500 text-white text-sm rounded-lg block w-full p-2.5" + className="bg-zinc-900 border-gray-500 text-white text-sm rounded-lg block w-full p-2.5" > {["gemini-pro"].map((model) => { return ( diff --git a/frontend/src/components/LLMSelection/HuggingFaceOptions/index.jsx b/frontend/src/components/LLMSelection/HuggingFaceOptions/index.jsx index 7e8747da1a02ae6025bc5422e6e036dd64d13aae..c93a9457fa518a07ae1c517e9f217e7b25b91dd2 100644 --- a/frontend/src/components/LLMSelection/HuggingFaceOptions/index.jsx +++ b/frontend/src/components/LLMSelection/HuggingFaceOptions/index.jsx @@ -9,7 +9,7 @@ export default function HuggingFaceOptions({ settings }) { <input type="url" name="HuggingFaceLLMEndpoint" - className="bg-zinc-900 text-white placeholder-white placeholder-opacity-60 text-sm rounded-lg focus:border-white block w-full p-2.5" + className="bg-zinc-900 text-white placeholder:text-white/20 text-sm rounded-lg focus:border-white block w-full p-2.5" placeholder="https://example.endpoints.huggingface.cloud" defaultValue={settings?.HuggingFaceLLMEndpoint} required={true} @@ -24,7 +24,7 @@ export default function HuggingFaceOptions({ settings }) { <input type="password" name="HuggingFaceLLMAccessToken" - className="bg-zinc-900 text-white placeholder-white placeholder-opacity-60 text-sm rounded-lg focus:border-white block w-full p-2.5" + className="bg-zinc-900 text-white placeholder:text-white/20 text-sm rounded-lg focus:border-white block w-full p-2.5" placeholder="HuggingFace Access Token" defaultValue={ settings?.HuggingFaceLLMAccessToken ? "*".repeat(20) : "" @@ -41,7 +41,7 @@ export default function HuggingFaceOptions({ settings }) { <input type="number" name="HuggingFaceLLMTokenLimit" - className="bg-zinc-900 text-white placeholder-white placeholder-opacity-60 text-sm rounded-lg focus:border-white block w-full p-2.5" + className="bg-zinc-900 text-white placeholder:text-white/20 text-sm rounded-lg focus:border-white block w-full p-2.5" placeholder="4096" min={1} onScroll={(e) => e.target.blur()} diff --git a/frontend/src/components/LLMSelection/LMStudioOptions/index.jsx b/frontend/src/components/LLMSelection/LMStudioOptions/index.jsx index 7e9e8a8b6d608c17dc4cc4073f331156e96beda7..fbba7666f09405d9eccec612d85d517c4d9137af 100644 --- a/frontend/src/components/LLMSelection/LMStudioOptions/index.jsx +++ b/frontend/src/components/LLMSelection/LMStudioOptions/index.jsx @@ -29,7 +29,7 @@ export default function LMStudioOptions({ settings, showAlert = false }) { <input type="url" name="LMStudioBasePath" - className="bg-zinc-900 text-white placeholder-white placeholder-opacity-60 text-sm rounded-lg focus:border-white block w-full p-2.5" + className="bg-zinc-900 text-white placeholder:text-white/20 text-sm rounded-lg focus:border-white block w-full p-2.5" placeholder="http://localhost:1234/v1" defaultValue={settings?.LMStudioBasePath} required={true} @@ -44,7 +44,7 @@ export default function LMStudioOptions({ settings, showAlert = false }) { <input type="number" name="LMStudioTokenLimit" - className="bg-zinc-900 text-white placeholder-white placeholder-opacity-60 text-sm rounded-lg focus:border-white block w-full p-2.5" + className="bg-zinc-900 text-white placeholder:text-white/20 text-sm rounded-lg focus:border-white block w-full p-2.5" placeholder="4096" min={1} onScroll={(e) => e.target.blur()} diff --git a/frontend/src/components/LLMSelection/LocalAiOptions/index.jsx b/frontend/src/components/LLMSelection/LocalAiOptions/index.jsx index c7abd09af28a56f2ab78190a373e6fcec155c92a..91e3867027ba20182b52e94712f66549b7fa4429 100644 --- a/frontend/src/components/LLMSelection/LocalAiOptions/index.jsx +++ b/frontend/src/components/LLMSelection/LocalAiOptions/index.jsx @@ -36,7 +36,7 @@ export default function LocalAiOptions({ settings, showAlert = false }) { <input type="url" name="LocalAiBasePath" - className="bg-zinc-900 text-white placeholder-white placeholder-opacity-60 text-sm rounded-lg focus:border-white block w-full p-2.5" + className="bg-zinc-900 text-white placeholder:text-white/20 text-sm rounded-lg focus:border-white block w-full p-2.5" placeholder="http://localhost:1234/v1" defaultValue={settings?.LocalAiBasePath} required={true} @@ -58,7 +58,7 @@ export default function LocalAiOptions({ settings, showAlert = false }) { <input type="number" name="LocalAiTokenLimit" - className="bg-zinc-900 text-white placeholder-white placeholder-opacity-60 text-sm rounded-lg focus:border-white block w-full p-2.5" + className="bg-zinc-900 text-white placeholder:text-white/20 text-sm rounded-lg focus:border-white block w-full p-2.5" placeholder="4096" min={1} onScroll={(e) => e.target.blur()} @@ -80,7 +80,7 @@ export default function LocalAiOptions({ settings, showAlert = false }) { <input type="password" name="LocalAiApiKey" - className="bg-zinc-900 text-white placeholder-white placeholder-opacity-60 text-sm rounded-lg focus:border-white block w-full p-2.5" + className="bg-zinc-900 text-white placeholder:text-white/20 text-sm rounded-lg focus:border-white block w-full p-2.5" placeholder="sk-mysecretkey" defaultValue={settings?.LocalAiApiKey ? "*".repeat(20) : ""} autoComplete="off" @@ -126,7 +126,7 @@ function LocalAIModelSelection({ settings, basePath = null, apiKey = null }) { <select name="LocalAiModelPref" disabled={true} - className="bg-zinc-900 border border-gray-500 text-white text-sm rounded-lg block w-full p-2.5" + className="bg-zinc-900 border-gray-500 text-white text-sm rounded-lg block w-full p-2.5" > <option disabled={true} selected={true}> {basePath?.includes("/v1") @@ -146,7 +146,7 @@ function LocalAIModelSelection({ settings, basePath = null, apiKey = null }) { <select name="LocalAiModelPref" required={true} - className="bg-zinc-900 border border-gray-500 text-white text-sm rounded-lg block w-full p-2.5" + className="bg-zinc-900 border-gray-500 text-white text-sm rounded-lg block w-full p-2.5" > {customModels.length > 0 && ( <optgroup label="Your loaded models"> diff --git a/frontend/src/components/LLMSelection/MistralOptions/index.jsx b/frontend/src/components/LLMSelection/MistralOptions/index.jsx index d5c666415952fa71d316d28088a114aeb53a9aeb..a143436ee7f54f6cd5d4f0deb13ea4e64c0d35dc 100644 --- a/frontend/src/components/LLMSelection/MistralOptions/index.jsx +++ b/frontend/src/components/LLMSelection/MistralOptions/index.jsx @@ -14,7 +14,7 @@ export default function MistralOptions({ settings }) { <input type="password" name="MistralApiKey" - className="bg-zinc-900 text-white placeholder-white placeholder-opacity-60 text-sm rounded-lg focus:border-white block w-full p-2.5" + className="bg-zinc-900 text-white placeholder:text-white/20 text-sm rounded-lg focus:border-white block w-full p-2.5" placeholder="Mistral API Key" defaultValue={settings?.MistralApiKey ? "*".repeat(20) : ""} required={true} @@ -60,7 +60,7 @@ function MistralModelSelection({ apiKey, settings }) { <select name="MistralModelPref" disabled={true} - className="bg-zinc-900 border border-gray-500 text-white text-sm rounded-lg block w-full p-2.5" + className="bg-zinc-900 border-gray-500 text-white text-sm rounded-lg block w-full p-2.5" > <option disabled={true} selected={true}> {!!apiKey @@ -80,7 +80,7 @@ function MistralModelSelection({ apiKey, settings }) { <select name="MistralModelPref" required={true} - className="bg-zinc-900 border border-gray-500 text-white text-sm rounded-lg block w-full p-2.5" + className="bg-zinc-900 border-gray-500 text-white text-sm rounded-lg block w-full p-2.5" > {customModels.length > 0 && ( <optgroup label="Available Mistral Models"> diff --git a/frontend/src/components/LLMSelection/NativeLLMOptions/index.jsx b/frontend/src/components/LLMSelection/NativeLLMOptions/index.jsx index 457c09322d8ae112e2febaa75592f3a454d06e48..bb46c9c965c6a32765bd2759203e01ba26e70de1 100644 --- a/frontend/src/components/LLMSelection/NativeLLMOptions/index.jsx +++ b/frontend/src/components/LLMSelection/NativeLLMOptions/index.jsx @@ -43,7 +43,7 @@ function NativeModelSelection({ settings }) { <select name="NativeLLMModelPref" disabled={true} - className="bg-zinc-900 border border-gray-500 text-white text-sm rounded-lg block w-full p-2.5" + className="bg-zinc-900 border-gray-500 text-white text-sm rounded-lg block w-full p-2.5" > <option disabled={true} selected={true}> -- waiting for models -- @@ -62,7 +62,7 @@ function NativeModelSelection({ settings }) { <select name="NativeLLMModelPref" required={true} - className="bg-zinc-900 border border-gray-500 text-white text-sm rounded-lg block w-full p-2.5" + className="bg-zinc-900 border-gray-500 text-white text-sm rounded-lg block w-full p-2.5" > {customModels.length > 0 && ( <optgroup label="Your loaded models"> @@ -88,7 +88,7 @@ function NativeModelSelection({ settings }) { <input type="number" name="NativeLLMTokenLimit" - className="bg-zinc-900 text-white placeholder-white placeholder-opacity-60 text-sm rounded-lg focus:border-white block w-full p-2.5" + className="bg-zinc-900 text-white placeholder:text-white/20 text-sm rounded-lg focus:border-white block w-full p-2.5" placeholder="4096" min={1} onScroll={(e) => e.target.blur()} diff --git a/frontend/src/components/LLMSelection/OllamaLLMOptions/index.jsx b/frontend/src/components/LLMSelection/OllamaLLMOptions/index.jsx index a2034bf75fef74d359ec7ff890f40794e690203c..ddfd7a81b3f84e871e3d23ed94db1df9f239ea37 100644 --- a/frontend/src/components/LLMSelection/OllamaLLMOptions/index.jsx +++ b/frontend/src/components/LLMSelection/OllamaLLMOptions/index.jsx @@ -17,7 +17,7 @@ export default function OllamaLLMOptions({ settings }) { <input type="url" name="OllamaLLMBasePath" - className="bg-zinc-900 text-white placeholder-white placeholder-opacity-60 text-sm rounded-lg focus:border-white block w-full p-2.5" + className="bg-zinc-900 text-white placeholder:text-white/20 text-sm rounded-lg focus:border-white block w-full p-2.5" placeholder="http://127.0.0.1:11434" defaultValue={settings?.OllamaLLMBasePath} required={true} @@ -35,7 +35,7 @@ export default function OllamaLLMOptions({ settings }) { <input type="number" name="OllamaLLMTokenLimit" - className="bg-zinc-900 text-white placeholder-white placeholder-opacity-60 text-sm rounded-lg focus:border-white block w-full p-2.5" + className="bg-zinc-900 text-white placeholder:text-white/20 text-sm rounded-lg focus:border-white block w-full p-2.5" placeholder="4096" min={1} onScroll={(e) => e.target.blur()} @@ -77,7 +77,7 @@ function OllamaLLMModelSelection({ settings, basePath = null }) { <select name="OllamaLLMModelPref" disabled={true} - className="bg-zinc-900 border border-gray-500 text-white text-sm rounded-lg block w-full p-2.5" + className="bg-zinc-900 border-gray-500 text-white text-sm rounded-lg block w-full p-2.5" > <option disabled={true} selected={true}> {!!basePath @@ -97,7 +97,7 @@ function OllamaLLMModelSelection({ settings, basePath = null }) { <select name="OllamaLLMModelPref" required={true} - className="bg-zinc-900 border border-gray-500 text-white text-sm rounded-lg block w-full p-2.5" + className="bg-zinc-900 border-gray-500 text-white text-sm rounded-lg block w-full p-2.5" > {customModels.length > 0 && ( <optgroup label="Your loaded models"> diff --git a/frontend/src/components/LLMSelection/OpenAiOptions/index.jsx b/frontend/src/components/LLMSelection/OpenAiOptions/index.jsx index b1718afe907f9f40a1ab7075fb96d7794f4ee817..1e34930961e575e3fceda6019e7722a9c4aaf65f 100644 --- a/frontend/src/components/LLMSelection/OpenAiOptions/index.jsx +++ b/frontend/src/components/LLMSelection/OpenAiOptions/index.jsx @@ -14,7 +14,7 @@ export default function OpenAiOptions({ settings }) { <input type="password" name="OpenAiKey" - className="bg-zinc-900 text-white placeholder-white placeholder-opacity-60 text-sm rounded-lg focus:border-white block w-full p-2.5" + className="bg-zinc-900 text-white placeholder:text-white/20 text-sm rounded-lg focus:border-white block w-full p-2.5" placeholder="OpenAI API Key" defaultValue={settings?.OpenAiKey ? "*".repeat(20) : ""} required={true} @@ -60,7 +60,7 @@ function OpenAIModelSelection({ apiKey, settings }) { <select name="OpenAiModelPref" disabled={true} - className="bg-zinc-900 border border-gray-500 text-white text-sm rounded-lg block w-full p-2.5" + className="bg-zinc-900 border-gray-500 text-white text-sm rounded-lg block w-full p-2.5" > <option disabled={true} selected={true}> -- loading available models -- @@ -78,7 +78,7 @@ function OpenAIModelSelection({ apiKey, settings }) { <select name="OpenAiModelPref" required={true} - className="bg-zinc-900 border border-gray-500 text-white text-sm rounded-lg block w-full p-2.5" + className="bg-zinc-900 border-gray-500 text-white text-sm rounded-lg block w-full p-2.5" > <optgroup label="General LLM models"> {[ diff --git a/frontend/src/components/LLMSelection/OpenRouterOptions/index.jsx b/frontend/src/components/LLMSelection/OpenRouterOptions/index.jsx index aa4ccdb2eb7449a4d0b99dd04bcb649e0a06ba9a..ff2a1d8f076eeb68e4eeca71472c6179d08d085c 100644 --- a/frontend/src/components/LLMSelection/OpenRouterOptions/index.jsx +++ b/frontend/src/components/LLMSelection/OpenRouterOptions/index.jsx @@ -11,7 +11,7 @@ export default function OpenRouterOptions({ settings }) { <input type="password" name="OpenRouterApiKey" - className="bg-zinc-900 text-white placeholder-white placeholder-opacity-60 text-sm rounded-lg focus:border-white block w-full p-2.5" + className="bg-zinc-900 text-white placeholder:text-white/20 text-sm rounded-lg focus:border-white block w-full p-2.5" placeholder="OpenRouter API Key" defaultValue={settings?.OpenRouterApiKey ? "*".repeat(20) : ""} required={true} @@ -56,7 +56,7 @@ function OpenRouterModelSelection({ settings }) { <select name="OpenRouterModelPref" disabled={true} - className="bg-zinc-900 border border-gray-500 text-white text-sm rounded-lg block w-full p-2.5" + className="bg-zinc-900 border-gray-500 text-white text-sm rounded-lg block w-full p-2.5" > <option disabled={true} selected={true}> -- loading available models -- @@ -74,7 +74,7 @@ function OpenRouterModelSelection({ settings }) { <select name="OpenRouterModelPref" required={true} - className="bg-zinc-900 border border-gray-500 text-white text-sm rounded-lg block w-full p-2.5" + className="bg-zinc-900 border-gray-500 text-white text-sm rounded-lg block w-full p-2.5" > {Object.keys(groupedModels) .sort() diff --git a/frontend/src/components/LLMSelection/PerplexityOptions/index.jsx b/frontend/src/components/LLMSelection/PerplexityOptions/index.jsx index 0b392cf4120620355d8eb6cca5cb2a8a090ba7ba..6c45224952692bf3de1fbd21c173ee4b9a39f718 100644 --- a/frontend/src/components/LLMSelection/PerplexityOptions/index.jsx +++ b/frontend/src/components/LLMSelection/PerplexityOptions/index.jsx @@ -11,7 +11,7 @@ export default function PerplexityOptions({ settings }) { <input type="password" name="PerplexityApiKey" - className="bg-zinc-900 text-white placeholder-white placeholder-opacity-60 text-sm rounded-lg focus:border-white block w-full p-2.5" + className="bg-zinc-900 text-white placeholder:text-white/20 text-sm rounded-lg focus:border-white block w-full p-2.5" placeholder="Perplexity API Key" defaultValue={settings?.PerplexityApiKey ? "*".repeat(20) : ""} required={true} @@ -47,7 +47,7 @@ function PerplexityModelSelection({ settings }) { <select name="PerplexityModelPref" disabled={true} - className="bg-zinc-900 border border-gray-500 text-white text-sm rounded-lg block w-full p-2.5" + className="bg-zinc-900 border-gray-500 text-white text-sm rounded-lg block w-full p-2.5" > <option disabled={true} selected={true}> -- loading available models -- @@ -65,7 +65,7 @@ function PerplexityModelSelection({ settings }) { <select name="PerplexityModelPref" required={true} - className="bg-zinc-900 border border-gray-500 text-white text-sm rounded-lg block w-full p-2.5" + className="bg-zinc-900 border-gray-500 text-white text-sm rounded-lg block w-full p-2.5" > {customModels.length > 0 && ( <optgroup label="Available Perplexity Models"> diff --git a/frontend/src/components/LLMSelection/TogetherAiOptions/index.jsx b/frontend/src/components/LLMSelection/TogetherAiOptions/index.jsx index 66ba1715e12533c3f2f528ec2a32c5bf415cb04d..2c816339fbf7ea3473aaa302cf116840ed494b40 100644 --- a/frontend/src/components/LLMSelection/TogetherAiOptions/index.jsx +++ b/frontend/src/components/LLMSelection/TogetherAiOptions/index.jsx @@ -11,7 +11,7 @@ export default function TogetherAiOptions({ settings }) { <input type="password" name="TogetherAiApiKey" - className="bg-zinc-900 text-white placeholder-white placeholder-opacity-60 text-sm rounded-lg focus:border-white block w-full p-2.5" + className="bg-zinc-900 text-white placeholder:text-white/20 text-sm rounded-lg focus:border-white block w-full p-2.5" placeholder="Together AI API Key" defaultValue={settings?.TogetherAiApiKey ? "*".repeat(20) : ""} required={true} @@ -56,7 +56,7 @@ function TogetherAiModelSelection({ settings }) { <select name="TogetherAiModelPref" disabled={true} - className="bg-zinc-900 border border-gray-500 text-white text-sm rounded-lg block w-full p-2.5" + className="bg-zinc-900 border-gray-500 text-white text-sm rounded-lg block w-full p-2.5" > <option disabled={true} selected={true}> -- loading available models -- @@ -74,7 +74,7 @@ function TogetherAiModelSelection({ settings }) { <select name="TogetherAiModelPref" required={true} - className="bg-zinc-900 border border-gray-500 text-white text-sm rounded-lg block w-full p-2.5" + className="bg-zinc-900 border-gray-500 text-white text-sm rounded-lg block w-full p-2.5" > {Object.keys(groupedModels) .sort() diff --git a/frontend/src/components/Modals/MangeWorkspace/Documents/UploadFile/index.jsx b/frontend/src/components/Modals/MangeWorkspace/Documents/UploadFile/index.jsx index 182cebcd214e58701061437035d9c4835ad946dd..a03cefa94d0257441b52f95be38f9a02e0cb07a8 100644 --- a/frontend/src/components/Modals/MangeWorkspace/Documents/UploadFile/index.jsx +++ b/frontend/src/components/Modals/MangeWorkspace/Documents/UploadFile/index.jsx @@ -128,7 +128,7 @@ export default function UploadFile({ workspace, fetchKeys, setLoading }) { disabled={fetchingUrl} name="link" type="url" - className="disabled:bg-zinc-600 disabled:text-slate-300 bg-zinc-900 text-white text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-3/4 p-2.5" + className="disabled:bg-zinc-600 disabled:text-slate-300 bg-zinc-900 text-white placeholder:text-white/20 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-3/4 p-2.5" placeholder={"https://example.com"} autoComplete="off" /> diff --git a/frontend/src/components/Modals/NewWorkspace.jsx b/frontend/src/components/Modals/NewWorkspace.jsx index 4afd0faeeb1b2af1cc332ed877bc2ad90419cf7a..ed00f6fe63a9fc55290f98439a3a7054b27f9184 100644 --- a/frontend/src/components/Modals/NewWorkspace.jsx +++ b/frontend/src/components/Modals/NewWorkspace.jsx @@ -52,7 +52,7 @@ export default function NewWorkspaceModal({ hideModal = noop }) { name="name" type="text" id="name" - className="bg-zinc-900 w-full text-white placeholder-white placeholder-opacity-60 text-sm rounded-lg focus:border-white block w-full p-2.5" + className="bg-zinc-900 w-full text-white placeholder:text-white/20 text-sm rounded-lg focus:border-white block w-full p-2.5" placeholder="My Workspace" required={true} autoComplete="off" diff --git a/frontend/src/components/UserMenu/AccountModal/index.jsx b/frontend/src/components/UserMenu/AccountModal/index.jsx index cdd96a76f7ab5dd88d5dd259498a6142cdbb0e42..39c67d5c8a538526367ce6fa805cc7851801f044 100644 --- a/frontend/src/components/UserMenu/AccountModal/index.jsx +++ b/frontend/src/components/UserMenu/AccountModal/index.jsx @@ -125,7 +125,7 @@ export default function AccountModal({ user, hideModal }) { <input name="username" type="text" - className="bg-zinc-900 border border-gray-500 text-white text-sm rounded-lg block w-full p-2.5" + className="bg-zinc-900 placeholder:text-white/20 border-gray-500 text-white text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5" placeholder="User's username" minLength={2} defaultValue={user.username} @@ -143,7 +143,7 @@ export default function AccountModal({ user, hideModal }) { <input name="password" type="password" - className="bg-zinc-900 border border-gray-500 text-white text-sm rounded-lg block w-full p-2.5" + className="bg-zinc-900 placeholder:text-white/20 border-gray-500 text-white text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5" placeholder={`${user.username}'s new password`} /> </div> diff --git a/frontend/src/components/VectorDBSelection/AstraDBOptions/index.jsx b/frontend/src/components/VectorDBSelection/AstraDBOptions/index.jsx index 11990dc44c82e8dc96f62a0759df7f4a4602e012..f3eca41ac55efc4fa3617a1385d0b619c54e5354 100644 --- a/frontend/src/components/VectorDBSelection/AstraDBOptions/index.jsx +++ b/frontend/src/components/VectorDBSelection/AstraDBOptions/index.jsx @@ -9,7 +9,7 @@ export default function AstraDBOptions({ settings }) { <input type="url" name="AstraDBEndpoint" - className="bg-zinc-900 text-white placeholder-white placeholder-opacity-60 text-sm rounded-lg focus:border-white block w-full p-2.5" + className="bg-zinc-900 text-white placeholder:text-white/20 text-sm rounded-lg focus:border-white block w-full p-2.5" placeholder="Astra DB API endpoint" defaultValue={settings?.AstraDBEndpoint} required={true} @@ -25,7 +25,7 @@ export default function AstraDBOptions({ settings }) { <input type="password" name="AstraDBApplicationToken" - className="bg-zinc-900 text-white placeholder-white placeholder-opacity-60 text-sm rounded-lg focus:border-white block w-full p-2.5" + className="bg-zinc-900 text-white placeholder:text-white/20 text-sm rounded-lg focus:border-white block w-full p-2.5" placeholder="AstraCS:..." defaultValue={ settings?.AstraDBApplicationToken ? "*".repeat(20) : "" diff --git a/frontend/src/components/VectorDBSelection/ChromaDBOptions/index.jsx b/frontend/src/components/VectorDBSelection/ChromaDBOptions/index.jsx index ae7af68fb84772aeb924d40887f4b188630b5389..6287e1ee3168b9e6b32b0b51d9b9182e57187a8d 100644 --- a/frontend/src/components/VectorDBSelection/ChromaDBOptions/index.jsx +++ b/frontend/src/components/VectorDBSelection/ChromaDBOptions/index.jsx @@ -9,7 +9,7 @@ export default function ChromaDBOptions({ settings }) { <input type="url" name="ChromaEndpoint" - className="bg-zinc-900 text-white placeholder-white placeholder-opacity-60 text-sm rounded-lg focus:border-white block w-full p-2.5" + className="bg-zinc-900 text-white placeholder:text-white/20 text-sm rounded-lg focus:border-white block w-full p-2.5" placeholder="http://localhost:8000" defaultValue={settings?.ChromaEndpoint} required={true} @@ -27,7 +27,7 @@ export default function ChromaDBOptions({ settings }) { autoComplete="off" type="text" defaultValue={settings?.ChromaApiHeader} - className="bg-zinc-900 text-white placeholder-white placeholder-opacity-60 text-sm rounded-lg focus:border-white block w-full p-2.5" + className="bg-zinc-900 text-white placeholder:text-white/20 text-sm rounded-lg focus:border-white block w-full p-2.5" placeholder="X-Api-Key" /> </div> @@ -41,7 +41,7 @@ export default function ChromaDBOptions({ settings }) { autoComplete="off" type="password" defaultValue={settings?.ChromaApiKey ? "*".repeat(20) : ""} - className="bg-zinc-900 text-white placeholder-white placeholder-opacity-60 text-sm rounded-lg focus:border-white block w-full p-2.5" + className="bg-zinc-900 text-white placeholder:text-white/20 text-sm rounded-lg focus:border-white block w-full p-2.5" placeholder="sk-myApiKeyToAccessMyChromaInstance" /> </div> diff --git a/frontend/src/components/VectorDBSelection/MilvusDBOptions/index.jsx b/frontend/src/components/VectorDBSelection/MilvusDBOptions/index.jsx index 07a0ef2f57e2d9b8b59f2d5d992a1f04208c3a46..5db498593925e482784285be978e106c1b557709 100644 --- a/frontend/src/components/VectorDBSelection/MilvusDBOptions/index.jsx +++ b/frontend/src/components/VectorDBSelection/MilvusDBOptions/index.jsx @@ -9,7 +9,7 @@ export default function MilvusDBOptions({ settings }) { <input type="text" name="MilvusAddress" - className="bg-zinc-900 text-white placeholder-white placeholder-opacity-60 text-sm rounded-lg focus:border-white block w-full p-2.5" + className="bg-zinc-900 text-white placeholder:text-white/20 text-sm rounded-lg focus:border-white block w-full p-2.5" placeholder="http://localhost:19530" defaultValue={settings?.MilvusAddress} required={true} @@ -25,7 +25,7 @@ export default function MilvusDBOptions({ settings }) { <input type="text" name="MilvusUsername" - className="bg-zinc-900 text-white placeholder-white placeholder-opacity-60 text-sm rounded-lg focus:border-white block w-full p-2.5" + className="bg-zinc-900 text-white placeholder:text-white/20 text-sm rounded-lg focus:border-white block w-full p-2.5" placeholder="username" defaultValue={settings?.MilvusUsername} autoComplete="off" @@ -39,7 +39,7 @@ export default function MilvusDBOptions({ settings }) { <input type="password" name="MilvusPassword" - className="bg-zinc-900 text-white placeholder-white placeholder-opacity-60 text-sm rounded-lg focus:border-white block w-full p-2.5" + className="bg-zinc-900 text-white placeholder:text-white/20 text-sm rounded-lg focus:border-white block w-full p-2.5" placeholder="password" defaultValue={settings?.MilvusPassword ? "*".repeat(20) : ""} autoComplete="off" diff --git a/frontend/src/components/VectorDBSelection/PineconeDBOptions/index.jsx b/frontend/src/components/VectorDBSelection/PineconeDBOptions/index.jsx index bb3381fe17a547399d7dee010a5ba1c1771f6226..c651e7f7994282e0e810b4882dae22ed3b4c32c0 100644 --- a/frontend/src/components/VectorDBSelection/PineconeDBOptions/index.jsx +++ b/frontend/src/components/VectorDBSelection/PineconeDBOptions/index.jsx @@ -9,7 +9,7 @@ export default function PineconeDBOptions({ settings }) { <input type="password" name="PineConeKey" - className="bg-zinc-900 text-white placeholder-white placeholder-opacity-60 text-sm rounded-lg focus:border-white block w-full p-2.5" + className="bg-zinc-900 text-white placeholder:text-white/20 text-sm rounded-lg focus:border-white block w-full p-2.5" placeholder="Pinecone API Key" defaultValue={settings?.PineConeKey ? "*".repeat(20) : ""} required={true} @@ -24,7 +24,7 @@ export default function PineconeDBOptions({ settings }) { <input type="text" name="PineConeIndex" - className="bg-zinc-900 text-white placeholder-white placeholder-opacity-60 text-sm rounded-lg focus:border-white block w-full p-2.5" + className="bg-zinc-900 text-white placeholder:text-white/20 text-sm rounded-lg focus:border-white block w-full p-2.5" placeholder="my-index" defaultValue={settings?.PineConeIndex} required={true} diff --git a/frontend/src/components/VectorDBSelection/QDrantDBOptions/index.jsx b/frontend/src/components/VectorDBSelection/QDrantDBOptions/index.jsx index e1e9d90f6807be87fbec9fc6ba8688bb004e8cc4..db4b4c5b9a904735aece9394b50f1c92adc166c2 100644 --- a/frontend/src/components/VectorDBSelection/QDrantDBOptions/index.jsx +++ b/frontend/src/components/VectorDBSelection/QDrantDBOptions/index.jsx @@ -9,7 +9,7 @@ export default function QDrantDBOptions({ settings }) { <input type="url" name="QdrantEndpoint" - className="bg-zinc-900 text-white placeholder-white placeholder-opacity-60 text-sm rounded-lg focus:border-white block w-full p-2.5" + className="bg-zinc-900 text-white placeholder:text-white/20 text-sm rounded-lg focus:border-white block w-full p-2.5" placeholder="http://localhost:6633" defaultValue={settings?.QdrantEndpoint} required={true} @@ -25,7 +25,7 @@ export default function QDrantDBOptions({ settings }) { <input type="password" name="QdrantApiKey" - className="bg-zinc-900 text-white placeholder-white placeholder-opacity-60 text-sm rounded-lg focus:border-white block w-full p-2.5" + className="bg-zinc-900 text-white placeholder:text-white/20 text-sm rounded-lg focus:border-white block w-full p-2.5" placeholder="wOeqxsYP4....1244sba" defaultValue={settings?.QdrantApiKey} autoComplete="off" diff --git a/frontend/src/components/VectorDBSelection/WeaviateDBOptions/index.jsx b/frontend/src/components/VectorDBSelection/WeaviateDBOptions/index.jsx index 5d7494ed155e831f7e21122bc350b07b78755cd6..5f7cda17c81da356a575722a1b1fec36b7bc17e0 100644 --- a/frontend/src/components/VectorDBSelection/WeaviateDBOptions/index.jsx +++ b/frontend/src/components/VectorDBSelection/WeaviateDBOptions/index.jsx @@ -9,7 +9,7 @@ export default function WeaviateDBOptions({ settings }) { <input type="url" name="WeaviateEndpoint" - className="bg-zinc-900 text-white placeholder-white placeholder-opacity-60 text-sm rounded-lg focus:border-white block w-full p-2.5" + className="bg-zinc-900 text-white placeholder:text-white/20 text-sm rounded-lg focus:border-white block w-full p-2.5" placeholder="http://localhost:8080" defaultValue={settings?.WeaviateEndpoint} required={true} @@ -25,7 +25,7 @@ export default function WeaviateDBOptions({ settings }) { <input type="password" name="WeaviateApiKey" - className="bg-zinc-900 text-white placeholder-white placeholder-opacity-60 text-sm rounded-lg focus:border-white block w-full p-2.5" + className="bg-zinc-900 text-white placeholder:text-white/20 text-sm rounded-lg focus:border-white block w-full p-2.5" placeholder="sk-123Abcweaviate" defaultValue={settings?.WeaviateApiKey} autoComplete="off" diff --git a/frontend/src/components/VectorDBSelection/ZillizCloudOptions/index.jsx b/frontend/src/components/VectorDBSelection/ZillizCloudOptions/index.jsx index 5a26b437a0a3cdea891a1bc010b5d9303df6ff93..edcc11e7a8950e5c15323b606ffda5b350aa0b1e 100644 --- a/frontend/src/components/VectorDBSelection/ZillizCloudOptions/index.jsx +++ b/frontend/src/components/VectorDBSelection/ZillizCloudOptions/index.jsx @@ -9,7 +9,7 @@ export default function ZillizCloudOptions({ settings }) { <input type="text" name="ZillizEndpoint" - className="bg-zinc-900 text-white placeholder-white placeholder-opacity-60 text-sm rounded-lg focus:border-white block w-full p-2.5" + className="bg-zinc-900 text-white placeholder:text-white/20 text-sm rounded-lg focus:border-white block w-full p-2.5" placeholder="https://sample.api.gcp-us-west1.zillizcloud.com" defaultValue={settings?.ZillizEndpoint} required={true} @@ -25,7 +25,7 @@ export default function ZillizCloudOptions({ settings }) { <input type="password" name="ZillizApiToken" - className="bg-zinc-900 text-white placeholder-white placeholder-opacity-60 text-sm rounded-lg focus:border-white block w-full p-2.5" + className="bg-zinc-900 text-white placeholder:text-white/20 text-sm rounded-lg focus:border-white block w-full p-2.5" placeholder="Zilliz cluster API Token" defaultValue={settings?.ZillizApiToken ? "*".repeat(20) : ""} autoComplete="off" diff --git a/frontend/src/pages/Admin/Users/NewUserModal/index.jsx b/frontend/src/pages/Admin/Users/NewUserModal/index.jsx index 9a7e2a6d0385a32199b83a88bf5dbc795c05de46..c784228b17fa9d8327107b57e50269b4a17e5918 100644 --- a/frontend/src/pages/Admin/Users/NewUserModal/index.jsx +++ b/frontend/src/pages/Admin/Users/NewUserModal/index.jsx @@ -49,7 +49,7 @@ export default function NewUserModal({ closeModal }) { <input name="username" type="text" - className="bg-zinc-900 border border-gray-500 text-white text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5" + className="bg-zinc-900 placeholder:text-white/20 border-gray-500 text-white text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5" placeholder="User's username" minLength={2} required={true} @@ -66,7 +66,7 @@ export default function NewUserModal({ closeModal }) { <input name="password" type="text" - className="bg-zinc-900 border border-gray-500 text-white text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5" + className="bg-zinc-900 placeholder:text-white/20 border-gray-500 text-white text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5" placeholder="User's initial password" required={true} autoComplete="off" @@ -84,7 +84,7 @@ export default function NewUserModal({ closeModal }) { required={true} defaultValue={"default"} onChange={(e) => setRole(e.target.value)} - className="rounded-lg bg-zinc-900 px-4 py-2 text-sm text-white border border-gray-500 focus:ring-blue-500 focus:border-blue-500" + className="rounded-lg bg-zinc-900 px-4 py-2 text-sm text-white border-gray-500 focus:ring-blue-500 focus:border-blue-500" > <option value="default">Default</option> <option value="manager">Manager </option> diff --git a/frontend/src/pages/Admin/Users/UserRow/EditUserModal/index.jsx b/frontend/src/pages/Admin/Users/UserRow/EditUserModal/index.jsx index 959b04b4c657bcd2b9f1fc6a202aeb9e73735875..313f81f23415070585b9b3ee797f7ecad5c9ae97 100644 --- a/frontend/src/pages/Admin/Users/UserRow/EditUserModal/index.jsx +++ b/frontend/src/pages/Admin/Users/UserRow/EditUserModal/index.jsx @@ -50,7 +50,7 @@ export default function EditUserModal({ currentUser, user, closeModal }) { <input name="username" type="text" - className="bg-zinc-900 border border-gray-500 text-white text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5" + className="bg-zinc-900 placeholder:text-white/20 border-gray-500 text-white text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5" placeholder="User's username" minLength={2} defaultValue={user.username} @@ -68,7 +68,7 @@ export default function EditUserModal({ currentUser, user, closeModal }) { <input name="password" type="text" - className="bg-zinc-900 border border-gray-500 text-white text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5" + className="bg-zinc-900 placeholder:text-white/20 border-gray-500 text-white text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5" placeholder={`${user.username}'s new password`} autoComplete="off" /> @@ -85,7 +85,7 @@ export default function EditUserModal({ currentUser, user, closeModal }) { required={true} defaultValue={user.role} onChange={(e) => setRole(e.target.value)} - className="rounded-lg bg-zinc-900 px-4 py-2 text-sm text-white border border-gray-500 focus:ring-blue-500 focus:border-blue-500" + className="rounded-lg bg-zinc-900 px-4 py-2 text-sm text-white border-gray-500 focus:ring-blue-500 focus:border-blue-500" > <option value="default">Default</option> <option value="manager">Manager</option> diff --git a/frontend/src/pages/Admin/Workspaces/NewWorkspaceModal/index.jsx b/frontend/src/pages/Admin/Workspaces/NewWorkspaceModal/index.jsx index 5179b3fb7a95f2984164ad19d54ee705f15fe30a..0667809a51938547dfefdc541ca790e87729e59d 100644 --- a/frontend/src/pages/Admin/Workspaces/NewWorkspaceModal/index.jsx +++ b/frontend/src/pages/Admin/Workspaces/NewWorkspaceModal/index.jsx @@ -42,7 +42,7 @@ export default function NewWorkspaceModal({ closeModal }) { <input name="name" type="text" - className="bg-zinc-900 border border-gray-500 text-white text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5" + className="bg-zinc-900 placeholder:text-white/20 border-gray-500 text-white text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5" placeholder="My workspace" minLength={4} required={true} diff --git a/frontend/src/pages/GeneralSettings/Appearance/FooterCustomization/NewIconForm/index.jsx b/frontend/src/pages/GeneralSettings/Appearance/FooterCustomization/NewIconForm/index.jsx index 8828bbbaafbe8215254fa51230c1f87067cfe3dd..0bbc64efe4b5c86f2e85e4711dd6cade5186646e 100644 --- a/frontend/src/pages/GeneralSettings/Appearance/FooterCustomization/NewIconForm/index.jsx +++ b/frontend/src/pages/GeneralSettings/Appearance/FooterCustomization/NewIconForm/index.jsx @@ -73,7 +73,7 @@ export default function NewIconForm({ handleSubmit, showing }) { name="url" required={true} placeholder="https://example.com" - className="bg-sidebar text-white placeholder-white/60 rounded-md p-2" + className="bg-sidebar text-white placeholder:text-white/20 rounded-md p-2" /> </div> {selectedIcon !== "" && ( diff --git a/frontend/src/pages/GeneralSettings/Appearance/SupportEmail/index.jsx b/frontend/src/pages/GeneralSettings/Appearance/SupportEmail/index.jsx index 548001e22c71cbebcc7b85ff260086f021ad6001..5ccbec8cd1b5436a2b3a4857d97ccaee02d023c4 100644 --- a/frontend/src/pages/GeneralSettings/Appearance/SupportEmail/index.jsx +++ b/frontend/src/pages/GeneralSettings/Appearance/SupportEmail/index.jsx @@ -64,7 +64,7 @@ export default function SupportEmail() { <input name="supportEmail" type="email" - className="bg-zinc-900 mt-4 text-white text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5 max-w-[275px]" + className="bg-zinc-900 mt-4 text-white placeholder:text-white/20 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5 max-w-[275px]" placeholder="support@mycompany.com" required={true} autoComplete="off" diff --git a/frontend/src/pages/GeneralSettings/DataConnectors/Connectors/Github/index.jsx b/frontend/src/pages/GeneralSettings/DataConnectors/Connectors/Github/index.jsx index b8be6e65f9cfcbf928b496d4faec9128b2f5c185..8a1c25a6831acc9fb173054bce3ccf5604a05fb6 100644 --- a/frontend/src/pages/GeneralSettings/DataConnectors/Connectors/Github/index.jsx +++ b/frontend/src/pages/GeneralSettings/DataConnectors/Connectors/Github/index.jsx @@ -132,7 +132,7 @@ export default function GithubConnectorSetup() { <input type="url" name="repo" - className="bg-zinc-900 text-white placeholder-white placeholder-opacity-60 text-sm rounded-lg focus:border-white block w-full p-2.5" + className="bg-zinc-900 text-white placeholder:text-white/20 text-sm rounded-lg focus:border-white block w-full p-2.5" placeholder="https://github.com/Mintplex-Labs/anything-llm" required={true} autoComplete="off" @@ -156,7 +156,7 @@ export default function GithubConnectorSetup() { <input type="text" name="accessToken" - className="bg-zinc-900 text-white placeholder-white placeholder-opacity-60 text-sm rounded-lg focus:border-white block w-full p-2.5" + className="bg-zinc-900 text-white placeholder:text-white/20 text-sm rounded-lg focus:border-white block w-full p-2.5" placeholder="github_pat_1234_abcdefg" required={false} autoComplete="off" @@ -189,7 +189,7 @@ export default function GithubConnectorSetup() { classNames={{ tag: "bg-blue-300/10 text-zinc-800 m-1", input: - "flex bg-zinc-900 text-white placeholder-white placeholder-opacity-60 text-sm rounded-lg focus:border-white p-2.5", + "flex bg-zinc-900 text-white placeholder:text-white/20 text-sm rounded-lg focus:border-white p-2.5", }} /> </div> @@ -257,7 +257,7 @@ function GitHubBranchSelection({ repo, accessToken }) { <select name="branch" required={true} - className="bg-zinc-900 border border-gray-500 text-white text-sm rounded-lg block w-full p-2.5" + className="bg-zinc-900 border-gray-500 text-white text-sm rounded-lg block w-full p-2.5" > <option disabled={true} selected={true}> -- loading available models -- @@ -278,7 +278,7 @@ function GitHubBranchSelection({ repo, accessToken }) { <select name="branch" required={true} - className="bg-zinc-900 border border-gray-500 text-white text-sm rounded-lg block w-full p-2.5" + className="bg-zinc-900 border-gray-500 text-white text-sm rounded-lg block w-full p-2.5" > {allBranches.map((branch) => { return ( diff --git a/frontend/src/pages/GeneralSettings/DataConnectors/Connectors/Youtube/index.jsx b/frontend/src/pages/GeneralSettings/DataConnectors/Connectors/Youtube/index.jsx index 021eeaf98cd26011f916840405a971a1ed7ba52e..9c8588d3d22aba3bd00636d6455a018b66e11633 100644 --- a/frontend/src/pages/GeneralSettings/DataConnectors/Connectors/Youtube/index.jsx +++ b/frontend/src/pages/GeneralSettings/DataConnectors/Connectors/Youtube/index.jsx @@ -79,7 +79,7 @@ export default function YouTubeTranscriptConnectorSetup() { <input type="url" name="url" - className="bg-zinc-900 text-white placeholder-white placeholder-opacity-60 text-sm rounded-lg focus:border-white block w-full p-2.5" + className="bg-zinc-900 text-white placeholder:text-white/20 text-sm rounded-lg focus:border-white block w-full p-2.5" placeholder="https://youtube.com/watch?v=abc123" required={true} autoComplete="off" diff --git a/frontend/src/pages/GeneralSettings/EmbedConfigs/EmbedRow/CodeSnippetModal/index.jsx b/frontend/src/pages/GeneralSettings/EmbedConfigs/EmbedRow/CodeSnippetModal/index.jsx index 02ed61e0a9b5ac29e0a99435cd002add09826644..3133d63d8f122f0da413f0f1dcd0ade35d11fe6d 100644 --- a/frontend/src/pages/GeneralSettings/EmbedConfigs/EmbedRow/CodeSnippetModal/index.jsx +++ b/frontend/src/pages/GeneralSettings/EmbedConfigs/EmbedRow/CodeSnippetModal/index.jsx @@ -44,13 +44,13 @@ export default function CodeSnippetModal({ embed, closeModal }) { } function createScriptTagSnippet(embed, scriptHost, serverHost) { - return `<!-- + return `<!-- Paste this script at the bottom of your HTML before the </body> tag. See more style and config options on our docs https://github.com/Mintplex-Labs/anything-llm/tree/master/embed/README.md --> -<script - data-embed-id="${embed.uuid}" +<script + data-embed-id="${embed.uuid}" data-base-api-url="${serverHost}/api/embed" src="${scriptHost}/embed/anythingllm-chat-widget.min.js"> </script> @@ -98,7 +98,7 @@ const ScriptTag = ({ embed }) => { <button disabled={copied} onClick={handleClick} - className="disabled:border disabled:border-green-300 border border-transparent relative w-full font-mono flex bg-zinc-900 text-white placeholder-white placeholder-opacity-60 text-sm rounded-lg focus:border-white p-2.5" + className="disabled:border disabled:border-green-300 border border-transparent relative w-full font-mono flex bg-zinc-900 text-white placeholder:text-white/20 text-sm rounded-lg focus:border-white p-2.5" > <div className="flex w-full text-left flex-col gap-y-1 pr-6 pl-4 whitespace-pre-line" diff --git a/frontend/src/pages/GeneralSettings/EmbedConfigs/NewEmbedModal/index.jsx b/frontend/src/pages/GeneralSettings/EmbedConfigs/NewEmbedModal/index.jsx index b1ea67ec6d28122deda536c601c6961f38ceafc6..b89e4c557f569650d3d563f2f5934fac89fad4fd 100644 --- a/frontend/src/pages/GeneralSettings/EmbedConfigs/NewEmbedModal/index.jsx +++ b/frontend/src/pages/GeneralSettings/EmbedConfigs/NewEmbedModal/index.jsx @@ -144,7 +144,7 @@ export const WorkspaceSelection = ({ defaultValue = null }) => { name="workspace_id" required={true} defaultValue={defaultValue} - className="min-w-[15rem] rounded-lg bg-zinc-900 px-4 py-2 text-sm text-white border border-gray-500 focus:ring-blue-500 focus:border-blue-500" + className="min-w-[15rem] rounded-lg bg-zinc-900 px-4 py-2 text-sm text-white focus:ring-blue-500 focus:border-blue-500" > {workspaces.map((workspace) => { return ( @@ -274,7 +274,7 @@ export const PermittedDomains = ({ defaultValue = [] }) => { classNames={{ tag: "bg-blue-300/10 text-zinc-800 m-1", input: - "flex bg-zinc-900 text-white placeholder-white placeholder-opacity-60 text-sm rounded-lg focus:border-white p-2.5", + "flex bg-zinc-900 text-white placeholder:text-white/20 text-sm rounded-lg focus:border-white p-2.5", }} /> </div> @@ -293,7 +293,7 @@ export const NumberInput = ({ name, title, hint, defaultValue = 0 }) => { <input type="number" name={name} - className="bg-zinc-900 text-white placeholder-white placeholder-opacity-60 text-sm rounded-lg focus:border-white block w-[15rem] p-2.5" + className="bg-zinc-900 text-white placeholder:text-white/20 text-sm rounded-lg focus:border-white block w-[15rem] p-2.5" min={0} defaultValue={defaultValue} onScroll={(e) => e.target.blur()} diff --git a/frontend/src/pages/GeneralSettings/Security/index.jsx b/frontend/src/pages/GeneralSettings/Security/index.jsx index e09315d16eef61d25e9542cf15ff6d0539f126a8..26d408684d008c302ce1d2bb3fc67d705f0d8a92 100644 --- a/frontend/src/pages/GeneralSettings/Security/index.jsx +++ b/frontend/src/pages/GeneralSettings/Security/index.jsx @@ -141,7 +141,7 @@ function MultiUserMode() { <input name="username" type="text" - className="bg-zinc-900 text-white text-sm rounded-lg focus:border-blue-500 block w-full p-2.5 placeholder-white placeholder-opacity-60 focus:ring-blue-500" + className="bg-zinc-900 text-white text-sm rounded-lg focus:border-blue-500 block w-full p-2.5 placeholder:text-white/20 focus:ring-blue-500" placeholder="Your admin username" minLength={2} required={true} @@ -160,7 +160,7 @@ function MultiUserMode() { <input name="password" type="text" - className="bg-zinc-900 text-white text-sm rounded-lg focus:border-blue-500 block w-full p-2.5 placeholder-white placeholder-opacity-60 focus:ring-blue-500" + className="bg-zinc-900 text-white text-sm rounded-lg focus:border-blue-500 block w-full p-2.5 placeholder:text-white/20 focus:ring-blue-500" placeholder="Your admin password" minLength={8} required={true} @@ -303,7 +303,7 @@ function PasswordProtection() { <input name="password" type="text" - className="bg-zinc-900 text-white text-sm rounded-lg focus:border-blue-500 block w-full p-2.5 placeholder-white placeholder-opacity-60 focus:ring-blue-500" + className="bg-zinc-900 text-white text-sm rounded-lg focus:border-blue-500 block w-full p-2.5 placeholder:text-white/20 focus:ring-blue-500" placeholder="Your Instance Password" minLength={8} required={true} diff --git a/frontend/src/pages/OnboardingFlow/Steps/CreateWorkspace/index.jsx b/frontend/src/pages/OnboardingFlow/Steps/CreateWorkspace/index.jsx index aa53c87fc4a9f2f3b02f87d8c0c3f0231269c336..c9be3ca5572bbc2b1c51a38ba04d795b6414b007 100644 --- a/frontend/src/pages/OnboardingFlow/Steps/CreateWorkspace/index.jsx +++ b/frontend/src/pages/OnboardingFlow/Steps/CreateWorkspace/index.jsx @@ -76,7 +76,7 @@ export default function CreateWorkspace({ <input name="name" type="text" - className="bg-zinc-900 text-white text-sm rounded-lg block w-full p-2.5" + className="bg-zinc-900 text-white placeholder:text-white/20 text-sm rounded-lg block w-full p-2.5" placeholder="My Workspace" minLength={4} required={true} diff --git a/frontend/src/pages/OnboardingFlow/Steps/Survey/index.jsx b/frontend/src/pages/OnboardingFlow/Steps/Survey/index.jsx index 35b2f67d07555f1c2286ef158d4bf011261f348a..3b821567f53f465072d1bcc45334f83a453360d3 100644 --- a/frontend/src/pages/OnboardingFlow/Steps/Survey/index.jsx +++ b/frontend/src/pages/OnboardingFlow/Steps/Survey/index.jsx @@ -102,7 +102,7 @@ export default function Survey({ setHeader, setForwardBtn, setBackBtn }) { type="email" placeholder="you@gmail.com" required={true} - className="mt-2 bg-zinc-900 text-white text-sm font-medium font-['Plus Jakarta Sans'] leading-tight w-full h-11 p-2.5 bg-zinc-900 rounded-lg" + className="mt-2 bg-zinc-900 text-white placeholder:text-white/20 text-sm font-medium font-['Plus Jakarta Sans'] leading-tight w-full h-11 p-2.5 bg-zinc-900 rounded-lg" /> </div> @@ -269,7 +269,7 @@ export default function Survey({ setHeader, setForwardBtn, setBackBtn }) { <textarea name="comment" rows={5} - className="mt-2 bg-zinc-900 text-white text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5" + className="mt-2 bg-zinc-900 text-white placeholder:text-white/20 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5" placeholder="If you have any questions or comments right now, you can leave them here and we will get back to you. You can also email team@mintplexlabs.com" wrap="soft" autoComplete="off" diff --git a/frontend/src/pages/WorkspaceSettings/ChatSettings/ChatHistorySettings/index.jsx b/frontend/src/pages/WorkspaceSettings/ChatSettings/ChatHistorySettings/index.jsx index 9d46bc3bf4ba32a42ce6b99ff2192fa49d6c1d43..092c055c447453ca588259e4c2e4c1a0c4de51cd 100644 --- a/frontend/src/pages/WorkspaceSettings/ChatSettings/ChatHistorySettings/index.jsx +++ b/frontend/src/pages/WorkspaceSettings/ChatSettings/ChatHistorySettings/index.jsx @@ -21,7 +21,7 @@ export default function ChatHistorySettings({ workspace, setHasChanges }) { step={1} onWheel={(e) => e.target.blur()} defaultValue={workspace?.openAiHistory ?? 20} - className="bg-zinc-900 text-white text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5" + className="bg-zinc-900 text-white placeholder:text-white/20 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5" placeholder="20" required={true} autoComplete="off" diff --git a/frontend/src/pages/WorkspaceSettings/ChatSettings/ChatPromptSettings/index.jsx b/frontend/src/pages/WorkspaceSettings/ChatSettings/ChatPromptSettings/index.jsx index 7ac0c10a3fb62d78790a58f05124057f5dfd8da6..48ad46309a1d93de772e38f400ab5b10e2012977 100644 --- a/frontend/src/pages/WorkspaceSettings/ChatSettings/ChatPromptSettings/index.jsx +++ b/frontend/src/pages/WorkspaceSettings/ChatSettings/ChatPromptSettings/index.jsx @@ -18,7 +18,7 @@ export default function ChatPromptSettings({ workspace, setHasChanges }) { name="openAiPrompt" rows={5} defaultValue={chatPrompt(workspace)} - className="bg-zinc-900 text-white text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5 mt-2" + className="bg-zinc-900 placeholder:text-white/20 text-white text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5 mt-2" placeholder="Given the following conversation, relevant context, and a follow up question, reply with an answer to the current question the user is asking. Return only your response to the question given the above information following the users instructions as needed." required={true} wrap="soft" diff --git a/frontend/src/pages/WorkspaceSettings/ChatSettings/ChatTemperatureSettings/index.jsx b/frontend/src/pages/WorkspaceSettings/ChatSettings/ChatTemperatureSettings/index.jsx index bd2178a67d0c54f741eea85cf80e0cb252a326ce..5cbcdc3bc6aab1ba6d2e8c16562865723e8c0eef 100644 --- a/frontend/src/pages/WorkspaceSettings/ChatSettings/ChatTemperatureSettings/index.jsx +++ b/frontend/src/pages/WorkspaceSettings/ChatSettings/ChatTemperatureSettings/index.jsx @@ -36,7 +36,7 @@ export default function ChatTemperatureSettings({ step={0.1} onWheel={(e) => e.target.blur()} defaultValue={workspace?.openAiTemp ?? defaults.temp} - className="bg-zinc-900 text-white text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5" + className="bg-zinc-900 text-white placeholder:text-white/20 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5" placeholder="0.7" required={true} autoComplete="off" diff --git a/frontend/src/pages/WorkspaceSettings/GeneralAppearance/SuggestedChatMessages/index.jsx b/frontend/src/pages/WorkspaceSettings/GeneralAppearance/SuggestedChatMessages/index.jsx index 12bc2e97de047d42630d2c527f44a6e7a9a468ad..05cdbebac401e3899c823b30f540d7c04e993cb8 100644 --- a/frontend/src/pages/WorkspaceSettings/GeneralAppearance/SuggestedChatMessages/index.jsx +++ b/frontend/src/pages/WorkspaceSettings/GeneralAppearance/SuggestedChatMessages/index.jsx @@ -143,7 +143,7 @@ export default function SuggestedChatMessages({ slug }) { </label> <input placeholder="Message heading" - className=" bg-zinc-900 text-white text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block p-2.5 w-full" + className=" bg-zinc-900 text-white placeholder:text-white/20 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block p-2.5 w-full" value={newMessage.heading} name="heading" onChange={onEditChange} @@ -155,7 +155,7 @@ export default function SuggestedChatMessages({ slug }) { </label> <input placeholder="Message" - className="bg-zinc-900 text-white text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block p-2.5 w-full" + className="bg-zinc-900 text-white placeholder:text-white/20 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block p-2.5 w-full" value={newMessage.message} name="message" onChange={onEditChange} diff --git a/frontend/src/pages/WorkspaceSettings/GeneralAppearance/WorkspaceName/index.jsx b/frontend/src/pages/WorkspaceSettings/GeneralAppearance/WorkspaceName/index.jsx index b7c7f30f13617a9d79e997d796da887e1b0dba3b..d1a929810b73ca69a29bce6fa0cb665750ced916 100644 --- a/frontend/src/pages/WorkspaceSettings/GeneralAppearance/WorkspaceName/index.jsx +++ b/frontend/src/pages/WorkspaceSettings/GeneralAppearance/WorkspaceName/index.jsx @@ -15,7 +15,7 @@ export default function WorkspaceName({ workspace, setHasChanges }) { minLength={2} maxLength={80} defaultValue={workspace?.name} - className="bg-zinc-900 text-white text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5" + className="bg-zinc-900 text-white placeholder:text-white/20 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5" placeholder="My Workspace" required={true} autoComplete="off" diff --git a/frontend/src/pages/WorkspaceSettings/VectorDatabase/MaxContextSnippets/index.jsx b/frontend/src/pages/WorkspaceSettings/VectorDatabase/MaxContextSnippets/index.jsx index 504779066c298a86a86efef89f73277f59b96b3a..c66ccfd719947af52bb4f4f77206e017a647e67f 100644 --- a/frontend/src/pages/WorkspaceSettings/VectorDatabase/MaxContextSnippets/index.jsx +++ b/frontend/src/pages/WorkspaceSettings/VectorDatabase/MaxContextSnippets/index.jsx @@ -20,7 +20,7 @@ export default function MaxContextSnippets({ workspace, setHasChanges }) { step={1} onWheel={(e) => e.target.blur()} defaultValue={workspace?.topN ?? 4} - className="bg-zinc-900 text-white text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5 mt-2" + className="bg-zinc-900 text-white placeholder:text-white/20 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5 mt-2" placeholder="4" required={true} autoComplete="off"