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:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user