Your Name
2169aa90e9
style: fix prettier formatting
2026-01-22 00:51:37 +08:00
Your Name
912546aaa7
fix: ENOENT download error for archive-only converters (PDFMathTranslate/MinerU)
...
- Add existsSync checks in download.tsx before file access
- Fix normalizeFiletype.ts: md-t/md-i return original format (not tar.gz)
- Add outputMode: 'archive' support in main.ts with auto .tar suffix
- PDFMathTranslate outputs translated-<lang>.pdf + bilingual-<lang>.pdf (no original)
- MinerU outputs complete folder in .tar with logging
- Hide preview icon for .tar files in results.tsx
- Update Bun version: 1.2.2 -> 1.3.6
- Add Step 19: auto-deploy to remote server after Docker push
All 159 tests pass.
2026-01-22 00:47:37 +08:00
Your Name
79fc6f7067
fix: resolve lint issues (XSS K601, knip unused exports, eslint errors)
...
- Fix XSS warnings in user.tsx by adding safe attribute to elements
- Remove unused exports: ChunkUploadRequest, getArchiveInfo,
getFileForDirectDownload, createDirectDownloadHeaders, createConverterArchive
- Fix eslint no-unused-vars errors across multiple files
- Fix pdfmathtranslate async Promise executor issue
- Update tests to use toThrow instead of toMatch for Error objects
- Apply prettier formatting
2026-01-21 16:00:26 +08:00
Your Name
5322f85721
feat: 實作全域檔案傳輸機制與 .tar 封裝規範
...
## 主要變更
### 新增全域檔案傳輸模組 (src/transfer/)
- constants.ts: 定義傳輸常數(10MB 門檻、5MB chunk 大小)
- types.ts: 傳輸類型定義
- uploadManager.ts: 後端上傳管理器(支援直傳與 chunk)
- downloadManager.ts: 後端下載管理器(支援直傳與 chunk)
- archiveManager.ts: 封裝管理器(僅允許 .tar)
- index.ts: 統一匯出
### 新增 API 端點
- uploadChunk.tsx: Chunk 上傳 API
- downloadChunk.tsx: Chunk 下載 API
### 前端更新
- public/script.js: 整合智慧傳輸策略(≤10MB 直傳,>10MB chunk)
- public/transfer.js: 前端傳輸管理模組
### 轉換器更新
- mineru.ts: 改用 .tar 格式(不壓縮),禁止 .tar.gz
- download.tsx: 使用統一的封裝管理器
### 測試
- tests/transfer/: 完整傳輸機制測試套件
- tests/converters/mineru.test.ts: 更新以符合 .tar 規範
### 文件
- README.md: 新增檔案傳輸機制說明
## 設計原則
- 檔案 ≤10MB:直接傳輸
- 檔案 >10MB:使用 5MB chunks 分段傳輸
- 多檔輸出:僅允許 .tar 封裝(禁止 .tar.gz/.zip)
- 引擎層不感知 chunk(僅傳輸層處理)
2026-01-21 13:58:01 +08:00
Emrik Östling
64264a41d9
feat: add delete button in history ( #440 )
2025-11-16 00:34:49 +01:00
C4illin
17325a6e6d
chore: fix lint
2025-10-05 14:19:13 +00:00
C4illin
d984891791
chore: add devcontainer
2025-10-05 13:57:54 +00:00
C4illin
c9b65c7652
chore: use auth macro instead of checking it on every path
2025-10-02 17:29:58 +02:00
C4illin
81f109f830
chore: format files
2025-08-07 23:38:25 +02:00
Maxime
31b7e62983
removed redundant boolean eval
2025-06-25 14:52:38 +02:00
Maxime
2ce3fee70b
added tar creation when using Download All
2025-06-25 14:34:27 +02:00
C4illin
1be11708c4
chore: format all files
2025-06-03 19:19:28 +02:00
C4illin
9e759a75de
refactor: split main file to pages
2025-06-03 15:04:18 +02:00