mirror of
https://github.com/Termix-SSH/Termix.git
synced 2026-10-29 22:55:24 +00:00
feat: move termix identity into a plugin (C6)
This commit is contained in:
1 parent
6e56c90aac
commit
4dbce08379
157 files changed
+20743
-5766
No files matched your search
@@ -12,6 +12,7 @@ import {
|
||||
} from "lucide-react";
|
||||
import { toast } from "sonner";
|
||||
import { copyToClipboard } from "@/lib/clipboard";
|
||||
import { ComponentSlot } from "@/shell/ActionSlot";
|
||||
import type { Credential } from "@/types/ui-types";
|
||||
import type {
|
||||
CredentialDensity,
|
||||
@@ -49,7 +50,6 @@ const CREDENTIAL_ITEM_DENSITY_TOKENS = {
|
||||
export function CredentialItem({
|
||||
cred,
|
||||
usedByCount = 0,
|
||||
termixIdLinked = false,
|
||||
query = "",
|
||||
stripeIndex = 0,
|
||||
isMenuOpen = false,
|
||||
@@ -76,7 +76,6 @@ export function CredentialItem({
|
||||
}: {
|
||||
cred: Credential;
|
||||
usedByCount?: number;
|
||||
termixIdLinked?: boolean;
|
||||
query?: string;
|
||||
stripeIndex?: number;
|
||||
isMenuOpen?: boolean;
|
||||
@@ -308,11 +307,10 @@ export function CredentialItem({
|
||||
>
|
||||
{isKey ? t("credentials.keyBadge") : t("credentials.passwordBadge")}
|
||||
</span>
|
||||
{termixIdLinked && (
|
||||
<span className="text-[9px] px-1 py-px font-bold border leading-none shrink-0 border-accent-brand/30 text-accent-brand/70">
|
||||
{t("credentials.idBadge")}
|
||||
</span>
|
||||
)}
|
||||
<ComponentSlot
|
||||
slotId="credentials.badges"
|
||||
props={{ credentialId: Number(cred.id) }}
|
||||
/>
|
||||
{cred.pin && (
|
||||
<Pin className="size-2.5 text-accent-brand/50 shrink-0" />
|
||||
)}
|
||||
|
||||
@@ -35,7 +35,6 @@ export function CredentialSidebarTree({
|
||||
onDeleteCredential,
|
||||
onShareCredential,
|
||||
usedByCounts,
|
||||
termixIdLinkedIds,
|
||||
query = "",
|
||||
loading = false,
|
||||
arrangeLocked = true,
|
||||
@@ -57,7 +56,6 @@ export function CredentialSidebarTree({
|
||||
onDeleteCredential: (cred: Credential) => void;
|
||||
onShareCredential?: (cred: Credential) => void;
|
||||
usedByCounts?: Map<string, number>;
|
||||
termixIdLinkedIds?: Set<number>;
|
||||
query?: string;
|
||||
loading?: boolean;
|
||||
/** When true, drag-to-rearrange is off entirely. Toggled from the panel header. */
|
||||
@@ -398,7 +396,6 @@ export function CredentialSidebarTree({
|
||||
<CredentialItem
|
||||
cred={item}
|
||||
usedByCount={usedByCounts?.get(item.id) ?? 0}
|
||||
termixIdLinked={termixIdLinkedIds?.has(Number(item.id))}
|
||||
query={query}
|
||||
stripeIndex={vItem.index}
|
||||
isMenuOpen={openMenuCredentialId === item.id}
|
||||
|
||||
Reference in new issue
Block a user