feat(ext): update API Key input to use password type for enhanced security

This commit is contained in:
Simon
2026-01-21 17:37:27 +08:00
parent f0cb69ec7f
commit 570c79623b
2 changed files with 12 additions and 12 deletions

View File

@@ -1,7 +1,7 @@
{ {
"name": "@page-agent/ext", "name": "@page-agent/ext",
"private": true, "private": true,
"version": "1.0.0-beta.1", "version": "1.0.0-beta.3",
"type": "module", "type": "module",
"scripts": { "scripts": {
"dev": "wxt", "dev": "wxt",

View File

@@ -38,17 +38,6 @@ export function ConfigPanel({ onClose }: { onClose: () => void }) {
<div className="flex flex-col gap-4 p-4"> <div className="flex flex-col gap-4 p-4">
<h2 className="text-base font-semibold">Settings</h2> <h2 className="text-base font-semibold">Settings</h2>
<div className="flex flex-col gap-1.5">
<label className="text-xs text-muted-foreground">API Key</label>
<Input
type="text"
placeholder="sk-..."
value={apiKey}
onChange={(e) => setApiKey(e.target.value)}
className="text-xs h-8"
/>
</div>
<div className="flex flex-col gap-1.5"> <div className="flex flex-col gap-1.5">
<label className="text-xs text-muted-foreground">Base URL</label> <label className="text-xs text-muted-foreground">Base URL</label>
<Input <Input
@@ -69,6 +58,17 @@ export function ConfigPanel({ onClose }: { onClose: () => void }) {
/> />
</div> </div>
<div className="flex flex-col gap-1.5">
<label className="text-xs text-muted-foreground">API Key</label>
<Input
type="password"
placeholder="sk-..."
value={apiKey}
onChange={(e) => setApiKey(e.target.value)}
className="text-xs h-8"
/>
</div>
<div className="flex gap-2 mt-2"> <div className="flex gap-2 mt-2">
<Button variant="outline" onClick={onClose} className="flex-1 h-8 text-xs"> <Button variant="outline" onClick={onClose} className="flex-1 h-8 text-xs">
Cancel Cancel