feat(folder): right-click "영상 주소 복사" on public and admin

- 공개 폴더(/folder/:name): 새 ctxMenu + public-folder.js 로 우클릭 메뉴 신설
  ("영상 주소 복사" 만 포함). 좌클릭 재생 기능은 그대로 유지.
- 관리자 폴더(/op/folder/:name): 기존 ctxMenu 에 "영상 주소 복사" 항목과
  folder.js 에 copyUrl 핸들러 추가.
- 양쪽 모두 navigator.clipboard.writeText(origin + "/player/" + id) 사용,
  실패하면 hidden textarea + execCommand("copy") fallback, 그것도 실패하면
  window.prompt 으로 직접 복사 안내. 성공 시 flashToast 로 피드백.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
2026-05-15 18:42:49 +09:00
parent e77c18a83e
commit 51bf813ccc
5 changed files with 134 additions and 0 deletions

View File

@@ -146,6 +146,17 @@ body.siteBody.centerLayout { display: flex; align-items: center; justify-content
}
.ctxMenu button:hover { background: var(--bg-alt); }
.flashToast {
position: fixed; left: 50%; bottom: 32px; transform: translate(-50%, 12px);
background: var(--bg-card); color: var(--text);
border: 1px solid var(--border); border-radius: 8px;
padding: 10px 18px; font-size: 14px;
box-shadow: 0 8px 20px rgba(0,0,0,0.4);
opacity: 0; transition: opacity 180ms ease, transform 180ms ease;
z-index: 300; pointer-events: none;
}
.flashToast.show { opacity: 1; transform: translate(-50%, 0); }
/* modal */
.modalOverlay {
position: fixed; inset: 0; background: rgba(0,0,0,0.6);