From 4038040faa5029f065d886bd9e5bf9a5aee3acfe Mon Sep 17 00:00:00 2001 From: Hyungi Ahn Date: Mon, 25 Aug 2025 15:58:30 +0900 Subject: [PATCH] Major UI overhaul and upload system improvements - Removed hierarchy view and integrated functionality into index.html - Added book-based document grouping with dedicated book-documents.html page - Implemented comprehensive multi-file upload system with drag-and-drop reordering - Added HTML-PDF matching functionality with download capability - Enhanced upload workflow with 3-step process (File Selection, Book Settings, Order & Match) - Added book conflict resolution (existing book vs new edition) - Improved document order adjustment with one-click sort options - Added modular header component system - Updated API connectivity for Docker environment - Enhanced viewer.html with PDF download functionality - Fixed browser caching issues with version management - Improved mobile responsiveness and modern UI design --- frontend/book-documents.html | 133 +++ frontend/cache-buster.html | 38 + frontend/components/header.html | 211 +++++ frontend/hierarchy.html | 844 ----------------- frontend/index.html | 227 ++--- frontend/memo-tree.html | 928 +++++++++++++++---- frontend/static/js/api.js | 10 +- frontend/static/js/auth.js | 44 +- frontend/static/js/book-documents.js | 180 ++++ frontend/static/js/header-loader.js | 159 ++++ frontend/static/js/hierarchy.js | 1250 -------------------------- frontend/static/js/main.js | 96 +- frontend/static/js/memo-tree.js | 244 ++++- frontend/static/js/story-reader.js | 333 +++++++ frontend/static/js/story-view.js | 50 +- frontend/static/js/upload.js | 589 ++++++++++++ frontend/static/js/viewer.js | 103 ++- frontend/story-reader.html | 359 ++++++++ frontend/story-view.html | 111 +-- frontend/upload.html | 340 +++++++ frontend/viewer.html | 229 +++-- 21 files changed, 3875 insertions(+), 2603 deletions(-) create mode 100644 frontend/book-documents.html create mode 100644 frontend/cache-buster.html create mode 100644 frontend/components/header.html delete mode 100644 frontend/hierarchy.html create mode 100644 frontend/static/js/book-documents.js create mode 100644 frontend/static/js/header-loader.js delete mode 100644 frontend/static/js/hierarchy.js create mode 100644 frontend/static/js/story-reader.js create mode 100644 frontend/static/js/upload.js create mode 100644 frontend/story-reader.html create mode 100644 frontend/upload.html diff --git a/frontend/book-documents.html b/frontend/book-documents.html new file mode 100644 index 0000000..8127b82 --- /dev/null +++ b/frontend/book-documents.html @@ -0,0 +1,133 @@ + + + + + + 서적 문서 목록 - Document Server + + + + + + + + +
+ + +
+ +
+
+ +
+ +
+
+
+ +
+
+

+

+

+ 개 문서 +

+
+
+

+
+
+ + +
+
+

문서 목록

+
+ + +
+ +

문서를 불러오는 중...

+
+ + +
+ +
+ + +
+ +

문서가 없습니다

+

이 서적에 등록된 문서가 없습니다

+
+
+
+ + + + + + + + diff --git a/frontend/cache-buster.html b/frontend/cache-buster.html new file mode 100644 index 0000000..4fe5834 --- /dev/null +++ b/frontend/cache-buster.html @@ -0,0 +1,38 @@ + + + + + + 캐시 무효화 - Document Server + + + +
+

🔧 캐시 무효화 중...

+

잠시만 기다려주세요. 3초 후 업로드 페이지로 이동합니다.

+
+
+
+
+ + + + diff --git a/frontend/components/header.html b/frontend/components/header.html new file mode 100644 index 0000000..ff3b7fc --- /dev/null +++ b/frontend/components/header.html @@ -0,0 +1,211 @@ + +
+
+
+ +
+ +

Document Server

+
+ + + + + +
+ +
+ + + + +
+
+
+
+
+ + + + + + diff --git a/frontend/hierarchy.html b/frontend/hierarchy.html deleted file mode 100644 index 97c9f00..0000000 --- a/frontend/hierarchy.html +++ /dev/null @@ -1,844 +0,0 @@ - - - - - - 문서 관리 시스템 - 계층구조 - - - - - - - -
-
-
-
-

📚 문서 관리 시스템

-
- 📖 그리드 뷰 - 📚 계층구조 뷰 - 🌳 트리 메모장 -
-
- -
- -
- - -
- - -
- - -
- - - -
-
-
-
- - -
- - - - -
- -
-
-
-

-

-
- -
- - - - - - -
-
-
- - -
-
-
- -

문서를 선택하세요

-

왼쪽 사이드바에서 문서를 클릭하면 내용이 표시됩니다.

-
-
- -
-
-
- -
-
- -

문서를 불러오는 중...

-
-
-
- - - -
- - - - - - -
- -
-
- -

📝 메모 & 하이라이트

-
- - -
-
-
- - - - -
-
- - -
-
- - -
-
- - -
-
- -

아직 메모나 하이라이트가 없습니다.

-

문서에서 텍스트를 선택하여 하이라이트를 만들어보세요.

-
- - -
-

- - 하이라이트 () -

- -
- - -
-

- - 독립 메모 () -

- -
-
- - -
- -
-
- - -
-
-

로그인

-
-
- - -
-
- - -
-
- -
-
- - -
-
-
-
- - -
-
-

문서 업로드

-
- -
- - -
- -
- - -
- - -
- -
- - - -
-
- - -
- -
- -
-
-
-
-
-
- - -
- - -
-

비슷한 서적이 있습니다:

- -
-
- - -
- - -
- -
- - -
- -
- - -
- -
- - -
- -
- -
- -
- -
- -
- - -
-
-
-
- - - - - - - - - - diff --git a/frontend/index.html b/frontend/index.html index d344f68..989655a 100644 --- a/frontend/index.html +++ b/frontend/index.html @@ -9,6 +9,9 @@ + + + @@ -48,87 +51,8 @@ - -
-
-
- -
-

- - Document Server -

-
- 📖 그리드 뷰 - 📚 계층구조 뷰 - 🌳 트리 메모장 -
-
- - -
-
- - -
-
- - -
- - - -
-
-
-
+ +
@@ -149,35 +73,69 @@