feat: move termix identity into a plugin (C6)

This commit is contained in:
LukeGus committed 2026-09-24 20:50:54 -05:00
1 parent 6e56c90aac
commit 4dbce08379
157 files changed
+20743 -5766

No files matched your search

-12
View File
@@ -26,7 +26,6 @@ import {
updateCredential,
deployCredentialToHost,
renameCredentialFolder,
getLinkedCredentialIds,
} from "@/main-axios";
import type { Host, Credential } from "@/types/ui-types";
@@ -127,9 +126,6 @@ export function HostManager({
const [credentialReturnHost, setCredentialReturnHost] = useState<
Host | "new" | null
>(null);
const [termixIdLinkedIds, setTermixIdLinkedIds] = useState<Set<number>>(
new Set(),
);
useEffect(() => {
onTagsChange?.([...new Set(credentials.flatMap((c) => c.tags ?? []))]);
@@ -168,16 +164,9 @@ export function HostManager({
.finally(() => setCredentialsLoading(false));
};
const reloadLinkedIds = () => {
getLinkedCredentialIds()
.then((d) => setTermixIdLinkedIds(new Set(d.credentialIds)))
.catch(() => {});
};
useEffect(() => {
reloadHosts();
reloadCredentials();
reloadLinkedIds();
window.addEventListener("termix:hosts-changed", reloadHosts);
window.addEventListener("ssh-hosts:changed", reloadHosts);
@@ -711,7 +700,6 @@ export function HostManager({
<CredentialSidebarTree
folders={credentialFolderTree}
usedByCounts={usedByCounts}
termixIdLinkedIds={termixIdLinkedIds}
query=""
loading={credentialsLoading}
arrangeLocked={externalArrangeLocked}