style: fix biome formatting in dashboard pages
🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
parent
287d84163f
commit
3dd0caf621
2 changed files with 17 additions and 8 deletions
|
|
@ -44,14 +44,18 @@ function McpUrlSection({ collectionId }: { collectionId: string }) {
|
|||
<Icon icon="link" size="sm" className="text-primary" />
|
||||
</div>
|
||||
<h3 className="font-semibold text-foreground">MCP Server URLs</h3>
|
||||
<Badge variant="secondary" size="sm">Public</Badge>
|
||||
<Badge variant="secondary" size="sm">
|
||||
Public
|
||||
</Badge>
|
||||
</div>
|
||||
|
||||
<div className="space-y-3">
|
||||
{/* HTTP Transport */}
|
||||
<div className="group">
|
||||
<div className="flex items-center gap-2 mb-1.5">
|
||||
<span className="text-xs font-medium text-foreground-secondary uppercase tracking-wide">HTTP Transport</span>
|
||||
<span className="text-xs font-medium text-foreground-secondary uppercase tracking-wide">
|
||||
HTTP Transport
|
||||
</span>
|
||||
<span className="text-xs text-foreground-tertiary">(recommended)</span>
|
||||
</div>
|
||||
<div className="flex items-center gap-2">
|
||||
|
|
@ -73,7 +77,9 @@ function McpUrlSection({ collectionId }: { collectionId: string }) {
|
|||
{/* SSE Transport */}
|
||||
<div className="group">
|
||||
<div className="flex items-center gap-2 mb-1.5">
|
||||
<span className="text-xs font-medium text-foreground-secondary uppercase tracking-wide">SSE Transport</span>
|
||||
<span className="text-xs font-medium text-foreground-secondary uppercase tracking-wide">
|
||||
SSE Transport
|
||||
</span>
|
||||
<span className="text-xs text-foreground-tertiary">(streaming)</span>
|
||||
</div>
|
||||
<div className="flex items-center gap-2">
|
||||
|
|
|
|||
|
|
@ -207,14 +207,14 @@ ANOTHER_SECRET=xyz789"
|
|||
{/* Add new key */}
|
||||
<div className="mb-6 p-4 bg-surface-secondary border border-border rounded-lg">
|
||||
<h2 className="text-sm font-medium text-foreground mb-3">Add New Key</h2>
|
||||
{saveError && (
|
||||
<p className="text-red-500 text-sm mb-2">{saveError}</p>
|
||||
)}
|
||||
{saveError && <p className="text-red-500 text-sm mb-2">{saveError}</p>}
|
||||
<div className="flex gap-2 mb-2">
|
||||
<input
|
||||
type="text"
|
||||
value={newKeyName}
|
||||
onChange={(e) => setNewKeyName(e.target.value.toUpperCase().replace(/[^A-Z0-9_]/g, ''))}
|
||||
onChange={(e) =>
|
||||
setNewKeyName(e.target.value.toUpperCase().replace(/[^A-Z0-9_]/g, ''))
|
||||
}
|
||||
placeholder="KEY_NAME"
|
||||
className="flex-1 px-3 py-2 bg-background border border-border rounded text-foreground text-sm font-mono placeholder:text-foreground-tertiary focus:outline-none focus:ring-2 focus:ring-primary/50"
|
||||
/>
|
||||
|
|
@ -228,7 +228,10 @@ ANOTHER_SECRET=xyz789"
|
|||
placeholder="Value"
|
||||
className="flex-1 px-3 py-2 bg-background border border-border rounded text-foreground text-sm font-mono placeholder:text-foreground-tertiary focus:outline-none focus:ring-2 focus:ring-primary/50"
|
||||
/>
|
||||
<Button onClick={handleAddKey} disabled={saving || !newKeyName.trim() || !newKeyValue.trim()}>
|
||||
<Button
|
||||
onClick={handleAddKey}
|
||||
disabled={saving || !newKeyName.trim() || !newKeyValue.trim()}
|
||||
>
|
||||
{saving ? 'Saving...' : 'Add'}
|
||||
</Button>
|
||||
</div>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue