gabriel / musehub public
commit-detail.ts typescript
9 lines 319 B
Raw
sha256:3ff9c9863a9891bdcde71b4a43228f66d0493e38b7cc1d09fe9eb7de774046b2 feat: add repair-commit wire endpoint (API parity with repa… Opus 4.8 minor ⚠ breaking 1 day ago
1 export function initCommitDetail(): void {
2 const btn = document.querySelector<HTMLButtonElement>('.cmt-copy-btn');
3 const shaEl = document.getElementById('cmt-sha');
4 if (!btn || !shaEl) return;
5 const sha = shaEl.title;
6 btn.addEventListener('click', () => {
7 void navigator.clipboard.writeText(sha);
8 });
9 }
File History 1 commit
sha256:3ff9c9863a9891bdcde71b4a43228f66d0493e38b7cc1d09fe9eb7de774046b2 feat: add repair-commit wire endpoint (API parity with repa… Opus 4.8 minor 1 day ago