@cybermem/dashboard 0.5.14 → 0.5.16
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -5,21 +5,21 @@ import { Input } from "@/components/ui/input";
|
|
|
5
5
|
import { Label } from "@/components/ui/label";
|
|
6
6
|
import { useDashboard } from "@/lib/data/dashboard-context";
|
|
7
7
|
import {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
8
|
+
Check,
|
|
9
|
+
Copy,
|
|
10
|
+
Database,
|
|
11
|
+
Download,
|
|
12
|
+
Eye,
|
|
13
|
+
EyeOff,
|
|
14
|
+
Key,
|
|
15
|
+
Loader2,
|
|
16
|
+
RotateCcw,
|
|
17
|
+
Server,
|
|
18
|
+
Settings,
|
|
19
|
+
Shield,
|
|
20
|
+
Trash2,
|
|
21
|
+
Upload,
|
|
22
|
+
X,
|
|
23
23
|
} from "lucide-react";
|
|
24
24
|
import { useEffect, useState } from "react";
|
|
25
25
|
|
|
@@ -338,7 +338,7 @@ export default function SettingsModal({ onClose }: { onClose: () => void }) {
|
|
|
338
338
|
</section>
|
|
339
339
|
|
|
340
340
|
{/* API Configuration */}
|
|
341
|
-
{!isManaged
|
|
341
|
+
{!isManaged && (
|
|
342
342
|
<section>
|
|
343
343
|
<h3 className="text-lg font-semibold text-white mb-4 flex items-center gap-2">
|
|
344
344
|
<Key className="w-5 h-5" />
|
|
@@ -351,7 +351,7 @@ export default function SettingsModal({ onClose }: { onClose: () => void }) {
|
|
|
351
351
|
<div className="relative flex-1">
|
|
352
352
|
<Input
|
|
353
353
|
id="api-key"
|
|
354
|
-
value={apiKey || "
|
|
354
|
+
value={apiKey || "not-generated-yet"}
|
|
355
355
|
readOnly
|
|
356
356
|
className="bg-black/40 border-white/10 text-white font-mono"
|
|
357
357
|
type={showApiKey ? "text" : "password"}
|
|
@@ -426,37 +426,6 @@ export default function SettingsModal({ onClose }: { onClose: () => void }) {
|
|
|
426
426
|
</div>
|
|
427
427
|
</div>
|
|
428
428
|
</section>
|
|
429
|
-
) : (
|
|
430
|
-
<section>
|
|
431
|
-
<h3 className="text-lg font-semibold text-white mb-4 flex items-center gap-2">
|
|
432
|
-
<Shield className="w-5 h-5 text-emerald-400" />
|
|
433
|
-
API Security
|
|
434
|
-
</h3>
|
|
435
|
-
<div className="bg-emerald-500/5 border border-emerald-500/20 rounded-lg p-5 space-y-2 backdrop-blur-sm">
|
|
436
|
-
<p className="text-sm font-medium text-emerald-300">
|
|
437
|
-
Local Mode Active
|
|
438
|
-
</p>
|
|
439
|
-
<p className="text-xs text-emerald-200/60">
|
|
440
|
-
No API key required for connection from your laptop. Key
|
|
441
|
-
management is hidden.
|
|
442
|
-
</p>
|
|
443
|
-
|
|
444
|
-
<div className="mt-4 pt-4 border-t border-white/10">
|
|
445
|
-
<Label
|
|
446
|
-
htmlFor="endpoint"
|
|
447
|
-
className="text-xs text-neutral-500 mb-2 block"
|
|
448
|
-
>
|
|
449
|
-
System Endpoint
|
|
450
|
-
</Label>
|
|
451
|
-
<Input
|
|
452
|
-
id="endpoint"
|
|
453
|
-
value={endpoint}
|
|
454
|
-
readOnly
|
|
455
|
-
className="h-9 bg-black/40 border-white/10 text-neutral-400 text-sm"
|
|
456
|
-
/>
|
|
457
|
-
</div>
|
|
458
|
-
</div>
|
|
459
|
-
</section>
|
|
460
429
|
)}
|
|
461
430
|
|
|
462
431
|
{/* Data Management */}
|
|
@@ -469,7 +438,7 @@ export default function SettingsModal({ onClose }: { onClose: () => void }) {
|
|
|
469
438
|
<div className="flex items-center gap-3">
|
|
470
439
|
<Button
|
|
471
440
|
variant="outline"
|
|
472
|
-
className="flex-1 justify-center bg-white/5 border-white/10 hover:bg-white/10 hover:border-white/20 text-white h-11 px-6 transition-all"
|
|
441
|
+
className="flex-1 justify-center bg-white/5 border-white/10 hover:bg-white/10 hover:border-white/20 text-white hover:text-white h-11 px-6 transition-all"
|
|
473
442
|
onClick={handleBackup}
|
|
474
443
|
disabled={isBackingUp}
|
|
475
444
|
>
|
|
@@ -492,7 +461,7 @@ export default function SettingsModal({ onClose }: { onClose: () => void }) {
|
|
|
492
461
|
/>
|
|
493
462
|
<Button
|
|
494
463
|
variant="outline"
|
|
495
|
-
className="w-full justify-center bg-white/5 border-white/10 hover:bg-white/10 hover:border-white/20 text-white h-11 px-6 transition-all"
|
|
464
|
+
className="w-full justify-center bg-white/5 border-white/10 hover:bg-white/10 hover:border-white/20 text-white hover:text-white h-11 px-6 transition-all"
|
|
496
465
|
onClick={() =>
|
|
497
466
|
document.getElementById("restore-file")?.click()
|
|
498
467
|
}
|
|
@@ -594,7 +563,7 @@ export default function SettingsModal({ onClose }: { onClose: () => void }) {
|
|
|
594
563
|
Version
|
|
595
564
|
</span>
|
|
596
565
|
<p className="text-neutral-200 font-mono text-base mt-2 tracking-tight">
|
|
597
|
-
v0.
|
|
566
|
+
v0.8.0
|
|
598
567
|
</p>
|
|
599
568
|
</div>
|
|
600
569
|
<div>
|