feat: convert secret-sources into a plugin (B20)

This commit is contained in:
LukeGus committed 2026-09-24 16:20:20 -05:00
1 parent 2ac7779eda
commit f4f26a9b8b
72 files changed
+18843 -933

No files matched your search

+5 -6
View File
@@ -1,8 +1,5 @@
import { useRef, useState } from "react";
import {
SecretReferenceHint,
SecretSourceManager,
} from "./SecretSourceManager";
import { PluginComponent } from "@/plugin-host/component-registry";
import { useTranslation } from "react-i18next";
import { copyToClipboard } from "@/lib/clipboard";
import { Copy, Info, Lock, Upload, X } from "lucide-react";
@@ -296,12 +293,14 @@ export function CredentialEditorView({
value={credForm.password}
onChange={(e) => setCredField("password", e.target.value)}
/>
<SecretReferenceHint
<PluginComponent
id="secret-sources.hint"
onManage={() => setShowSecretSources((v) => !v)}
/>
</div>
{showSecretSources && (
<SecretSourceManager
<PluginComponent
id="secret-sources.manager"
onClose={() => setShowSecretSources(false)}
/>
)}