feat: 수동 편집 URL — 정보 패널에서 Synology Drive 링크 입력/관리

- edit_url 컬럼 추가 (migration 006)
- PreviewPanel: 편집 링크 입력/수정/표시 UI
- DocumentViewer: edit_url 있으면 편집 버튼에서 해당 URL로 새 탭
- API: DocumentResponse/DocumentUpdate에 edit_url 필드

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
Hyungi Ahn
2026-04-03 10:37:44 +09:00
parent 4bea408bbd
commit 41072a2e6d
5 changed files with 58 additions and 7 deletions

View File

@@ -26,12 +26,10 @@
}
function getEditUrl(doc) {
if (['odoc', 'osheet', 'docx', 'xlsx', 'pptx', 'odt', 'ods', 'odp'].includes(doc.file_format)) {
return `https://link.hyungi.net`;
}
if (['dwg', 'dxf'].includes(doc.file_format)) {
return 'https://web.autocad.com';
}
// DB에 저장된 편집 URL 우선
if (doc.edit_url) return doc.edit_url;
// CAD는 AutoCAD Web
if (['dwg', 'dxf'].includes(doc.file_format)) return 'https://web.autocad.com';
return null;
}