支持快捷复制提交消息
This commit is contained in:
@@ -1083,10 +1083,15 @@ export function GitLogTab() {
|
|||||||
</time>
|
</time>
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
<div className="rounded-lg border border-border/60 bg-muted/20 p-2.5">
|
<div className="group/msg relative rounded-lg border border-border/60 bg-muted/20 p-2.5">
|
||||||
<p className="text-xs whitespace-pre-wrap break-words">
|
<p className="text-xs whitespace-pre-wrap break-words pr-6">
|
||||||
{entry.message}
|
{entry.message}
|
||||||
</p>
|
</p>
|
||||||
|
<CommitCopyButton
|
||||||
|
className="absolute top-1.5 right-1.5 size-5 opacity-0 transition-opacity group-hover/msg:opacity-100 group-focus-within/msg:opacity-100"
|
||||||
|
hash={entry.message}
|
||||||
|
title={t("copyMessage")}
|
||||||
|
/>
|
||||||
</div>
|
</div>
|
||||||
{entry.files.length === 0 ? (
|
{entry.files.length === 0 ? (
|
||||||
<div className="space-y-1">
|
<div className="space-y-1">
|
||||||
|
|||||||
@@ -871,6 +871,7 @@
|
|||||||
"noCommitsFound": "لم يتم العثور على التزامات",
|
"noCommitsFound": "لم يتم العثور على التزامات",
|
||||||
"hash": "بصمة الالتزام",
|
"hash": "بصمة الالتزام",
|
||||||
"copyHash": "نسخ الـ hash",
|
"copyHash": "نسخ الـ hash",
|
||||||
|
"copyMessage": "نسخ الرسالة",
|
||||||
"author": "المؤلف",
|
"author": "المؤلف",
|
||||||
"noFileChangeDetails": "لا توجد تفاصيل تغييرات ملفات متاحة.",
|
"noFileChangeDetails": "لا توجد تفاصيل تغييرات ملفات متاحة.",
|
||||||
"branchesTitle": "الفروع",
|
"branchesTitle": "الفروع",
|
||||||
|
|||||||
@@ -871,6 +871,7 @@
|
|||||||
"noCommitsFound": "Keine Commits gefunden",
|
"noCommitsFound": "Keine Commits gefunden",
|
||||||
"hash": "Hash-Wert",
|
"hash": "Hash-Wert",
|
||||||
"copyHash": "Hash kopieren",
|
"copyHash": "Hash kopieren",
|
||||||
|
"copyMessage": "Nachricht kopieren",
|
||||||
"author": "Autor",
|
"author": "Autor",
|
||||||
"noFileChangeDetails": "Keine Details zu Dateiänderungen verfügbar.",
|
"noFileChangeDetails": "Keine Details zu Dateiänderungen verfügbar.",
|
||||||
"branchesTitle": "Zweige",
|
"branchesTitle": "Zweige",
|
||||||
|
|||||||
@@ -871,6 +871,7 @@
|
|||||||
"noCommitsFound": "No commits found",
|
"noCommitsFound": "No commits found",
|
||||||
"hash": "Hash",
|
"hash": "Hash",
|
||||||
"copyHash": "Copy hash",
|
"copyHash": "Copy hash",
|
||||||
|
"copyMessage": "Copy message",
|
||||||
"author": "Author",
|
"author": "Author",
|
||||||
"noFileChangeDetails": "No file change details available.",
|
"noFileChangeDetails": "No file change details available.",
|
||||||
"branchesTitle": "Branches",
|
"branchesTitle": "Branches",
|
||||||
|
|||||||
@@ -871,6 +871,7 @@
|
|||||||
"noCommitsFound": "No se encontraron commits",
|
"noCommitsFound": "No se encontraron commits",
|
||||||
"hash": "Hash del commit",
|
"hash": "Hash del commit",
|
||||||
"copyHash": "Copiar hash",
|
"copyHash": "Copiar hash",
|
||||||
|
"copyMessage": "Copiar mensaje",
|
||||||
"author": "Autor",
|
"author": "Autor",
|
||||||
"noFileChangeDetails": "No hay detalles de cambios de archivo disponibles.",
|
"noFileChangeDetails": "No hay detalles de cambios de archivo disponibles.",
|
||||||
"branchesTitle": "Ramas",
|
"branchesTitle": "Ramas",
|
||||||
|
|||||||
@@ -871,6 +871,7 @@
|
|||||||
"noCommitsFound": "Aucun commit trouvé",
|
"noCommitsFound": "Aucun commit trouvé",
|
||||||
"hash": "Empreinte",
|
"hash": "Empreinte",
|
||||||
"copyHash": "Copier le hash",
|
"copyHash": "Copier le hash",
|
||||||
|
"copyMessage": "Copier le message",
|
||||||
"author": "Auteur",
|
"author": "Auteur",
|
||||||
"noFileChangeDetails": "Aucun détail de changement de fichier disponible.",
|
"noFileChangeDetails": "Aucun détail de changement de fichier disponible.",
|
||||||
"branchesTitle": "Branches Git",
|
"branchesTitle": "Branches Git",
|
||||||
|
|||||||
@@ -871,6 +871,7 @@
|
|||||||
"noCommitsFound": "コミットが見つかりません",
|
"noCommitsFound": "コミットが見つかりません",
|
||||||
"hash": "ハッシュ",
|
"hash": "ハッシュ",
|
||||||
"copyHash": "ハッシュをコピー",
|
"copyHash": "ハッシュをコピー",
|
||||||
|
"copyMessage": "メッセージをコピー",
|
||||||
"author": "作成者",
|
"author": "作成者",
|
||||||
"noFileChangeDetails": "ファイル変更の詳細はありません。",
|
"noFileChangeDetails": "ファイル変更の詳細はありません。",
|
||||||
"branchesTitle": "ブランチ",
|
"branchesTitle": "ブランチ",
|
||||||
|
|||||||
@@ -871,6 +871,7 @@
|
|||||||
"noCommitsFound": "커밋을 찾을 수 없습니다",
|
"noCommitsFound": "커밋을 찾을 수 없습니다",
|
||||||
"hash": "해시",
|
"hash": "해시",
|
||||||
"copyHash": "해시 복사",
|
"copyHash": "해시 복사",
|
||||||
|
"copyMessage": "메시지 복사",
|
||||||
"author": "작성자",
|
"author": "작성자",
|
||||||
"noFileChangeDetails": "파일 변경 상세 정보가 없습니다.",
|
"noFileChangeDetails": "파일 변경 상세 정보가 없습니다.",
|
||||||
"branchesTitle": "브랜치",
|
"branchesTitle": "브랜치",
|
||||||
|
|||||||
@@ -871,6 +871,7 @@
|
|||||||
"noCommitsFound": "Nenhum commit encontrado",
|
"noCommitsFound": "Nenhum commit encontrado",
|
||||||
"hash": "Hash do commit",
|
"hash": "Hash do commit",
|
||||||
"copyHash": "Copiar hash",
|
"copyHash": "Copiar hash",
|
||||||
|
"copyMessage": "Copiar mensagem",
|
||||||
"author": "Autor",
|
"author": "Autor",
|
||||||
"noFileChangeDetails": "Sem detalhes de alteração de arquivos disponíveis.",
|
"noFileChangeDetails": "Sem detalhes de alteração de arquivos disponíveis.",
|
||||||
"branchesTitle": "Branches Git",
|
"branchesTitle": "Branches Git",
|
||||||
|
|||||||
@@ -871,6 +871,7 @@
|
|||||||
"noCommitsFound": "未找到提交记录",
|
"noCommitsFound": "未找到提交记录",
|
||||||
"hash": "Hash",
|
"hash": "Hash",
|
||||||
"copyHash": "复制哈希",
|
"copyHash": "复制哈希",
|
||||||
|
"copyMessage": "复制提交消息",
|
||||||
"author": "作者",
|
"author": "作者",
|
||||||
"noFileChangeDetails": "暂无文件变更详情。",
|
"noFileChangeDetails": "暂无文件变更详情。",
|
||||||
"branchesTitle": "分支",
|
"branchesTitle": "分支",
|
||||||
|
|||||||
@@ -871,6 +871,7 @@
|
|||||||
"noCommitsFound": "未找到提交記錄",
|
"noCommitsFound": "未找到提交記錄",
|
||||||
"hash": "Hash",
|
"hash": "Hash",
|
||||||
"copyHash": "複製雜湊",
|
"copyHash": "複製雜湊",
|
||||||
|
"copyMessage": "複製提交訊息",
|
||||||
"author": "作者",
|
"author": "作者",
|
||||||
"noFileChangeDetails": "暫無檔案變更詳情。",
|
"noFileChangeDetails": "暫無檔案變更詳情。",
|
||||||
"branchesTitle": "分支",
|
"branchesTitle": "分支",
|
||||||
|
|||||||
Reference in New Issue
Block a user