From fb338f8d4447de1f7659c04c08e3c197dc8d959b Mon Sep 17 00:00:00 2001 From: xunbu Date: Sun, 11 May 2025 21:57:30 +0800 Subject: [PATCH] =?UTF-8?q?=E5=9B=9E=E9=80=80=E4=B8=BA=E5=88=9D=E5=A7=8Bht?= =?UTF-8?q?ml?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .idea/workspace.xml | 10 +- docutranslate/app.py | 322 ++++++++----------------------------------- 2 files changed, 62 insertions(+), 270 deletions(-) diff --git a/.idea/workspace.xml b/.idea/workspace.xml index 0d6a33a..8be2edf 100644 --- a/.idea/workspace.xml +++ b/.idea/workspace.xml @@ -5,14 +5,8 @@ - - - - - - @@ -651,7 +645,7 @@ - + diff --git a/docutranslate/app.py b/docutranslate/app.py index 8c37931..772d868 100644 --- a/docutranslate/app.py +++ b/docutranslate/app.py @@ -88,7 +88,6 @@ current_translation_state = { templates = Jinja2Templates(directory=".") # 假设模板在当前目录或使用字符串模板 # --- HTML 模板字符串 --- -# --- HTML 模板字符串 (修改后) --- HTML_TEMPLATE_STR = """ @@ -98,277 +97,102 @@ HTML_TEMPLATE_STR = """ DocuTranslate
-
-

📄 DocuTranslate

-
- -
+

DocuTranslate

+
- ⚙️ API 配置 + API 配置 (所有均为必填项)
-
- - +
+ +
-
- - +
+ +
- - + +
-
- +
-
- 翻译选项 -
-
- - - -
-
-
-
- - - -
+ 选项 + + + +
- - +

-
-

下载翻译结果:

- 下载 Markdown (.md) - 下载 HTML (.html) +
+

下载:

+ 下载 Markdown + 下载 HTML
-

实时日志:

+

日志:

-