mirror of
https://gitlab.com/soapbox-pub/shakespeare.git
synced 2026-12-05 16:23:36 +00:00
Add brand icons to configured providers
This commit is contained in:
3 files changed
+10
-1
No files matched your search
@@ -1,7 +1,7 @@
|
||||
import { useState } from 'react';
|
||||
import { useTranslation } from 'react-i18next';
|
||||
import { Check, Bot, ArrowLeft, Trash2, GripVertical } from 'lucide-react';
|
||||
import { SiOpenai, SiAnthropic, SiGoogle } from '@icons-pack/react-simple-icons';
|
||||
import { SiOpenai, SiAnthropic, SiGoogle, SiX } from '@icons-pack/react-simple-icons';
|
||||
import {
|
||||
DndContext,
|
||||
closestCenter,
|
||||
@@ -81,6 +81,10 @@ function SortableProviderItem({ provider, preset, onRemove, onSetProvider, onOpe
|
||||
<GripVertical className="h-4 w-4" />
|
||||
</div>
|
||||
)}
|
||||
{provider.id === 'openai' && <SiOpenai size={16} />}
|
||||
{provider.id === 'anthropic' && <SiAnthropic size={16} />}
|
||||
{provider.id === 'google' && <SiGoogle size={16} />}
|
||||
{provider.id === 'xai' && <SiX size={16} />}
|
||||
<span className="font-medium">
|
||||
{preset?.name || provider.id}
|
||||
</span>
|
||||
@@ -363,6 +367,7 @@ export function AISettings() {
|
||||
{preset.id === 'openai' && <SiOpenai size={16} />}
|
||||
{preset.id === 'anthropic' && <SiAnthropic size={16} />}
|
||||
{preset.id === 'google' && <SiGoogle size={16} />}
|
||||
{preset.id === 'xai' && <SiX size={16} />}
|
||||
<h5 className="font-medium">{preset.name}</h5>
|
||||
</div>
|
||||
{(preset.apiKeysURL && preset.id !== "routstr") && (
|
||||
|
||||
@@ -90,6 +90,8 @@ function SortableProviderItem({ provider, index, preset, onRemove, onUpdate, sho
|
||||
<GripVertical className="h-4 w-4" />
|
||||
</div>
|
||||
)}
|
||||
{provider.id === 'netlify' && <SiNetlify size={16} />}
|
||||
{provider.id === 'vercel' && <SiVercel size={16} />}
|
||||
<span className="font-medium">
|
||||
{provider.name}
|
||||
</span>
|
||||
|
||||
@@ -152,6 +152,8 @@ export function GitSettings() {
|
||||
<AccordionItem key={origin} value={origin} className="border rounded-lg">
|
||||
<AccordionTrigger className="px-4 py-3 hover:no-underline">
|
||||
<div className="flex items-center gap-2">
|
||||
{preset?.id === 'github' && <SiGithub size={16} />}
|
||||
{preset?.id === 'gitlab' && <SiGitlab size={16} />}
|
||||
<span className="font-medium">
|
||||
{preset?.name || new URL(origin).hostname}
|
||||
</span>
|
||||
|
||||
Reference in new issue
Block a user