From c0ea76dc2e73f658d2b142f5f94229c2dec8f20d Mon Sep 17 00:00:00 2001 From: Hyungi Ahn Date: Fri, 22 Aug 2025 09:58:38 +0900 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=20Feat:=20=ED=94=84=EB=A1=A0=ED=8A=B8?= =?UTF-8?q?=EC=97=94=EB=93=9C=20=ED=95=98=EC=9D=B4=EB=9D=BC=EC=9D=B4?= =?UTF-8?q?=ED=8A=B8=20&=20=EB=A9=94=EB=AA=A8=20=EC=8B=9C=EC=8A=A4?= =?UTF-8?q?=ED=85=9C=20=EC=99=84=EC=84=B1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - viewer.js: 텍스트 선택 → 하이라이트 생성 기능 구현 - viewer.js: 하이라이트 클릭 시 말풍선 UI로 메모 관리 - viewer.js: 다중 메모 지원, 실시간 메모 추가/삭제 - api.js: 하이라이트, 메모, 책갈피 API 함수 추가 - main.js: 문서 업로드 후 자동 새로고침, 뷰어 페이지 이동 - HTML: 인라인 SVG 파비콘 추가, 색상 버튼 개선 ✅ 하이라이트 생성/삭제 기능 완성 ✅ 메모 추가/편집 기능 완성 ✅ 말풍선 UI 구현 완성 ✅ Alpine.js 컴포넌트 간 안전한 통신 --- backend/src/main.py | 4 +- frontend/index.html | 2 +- frontend/static/js/api.js | 67 ++++++ frontend/static/js/main.js | 5 + frontend/static/js/viewer.js | 426 ++++++++++++++++++++++++++++++++--- frontend/viewer.html | 20 +- 6 files changed, 478 insertions(+), 46 deletions(-) diff --git a/backend/src/main.py b/backend/src/main.py index e62252e..4826788 100644 --- a/backend/src/main.py +++ b/backend/src/main.py @@ -29,10 +29,10 @@ app = FastAPI( lifespan=lifespan, ) -# CORS 설정 +# CORS 설정 (개발용 - 더 관대한 설정) app.add_middleware( CORSMiddleware, - allow_origins=settings.ALLOWED_HOSTS, + allow_origins=["*"], # 개발용으로 모든 오리진 허용 allow_credentials=True, allow_methods=["*"], allow_headers=["*"], diff --git a/frontend/index.html b/frontend/index.html index bbb4baa..3141943 100644 --- a/frontend/index.html +++ b/frontend/index.html @@ -174,7 +174,7 @@