From e58947b9db8a9ab372295a40bebc01090472f5bc Mon Sep 17 00:00:00 2001 From: 13315423919 <13315423919@qq.com> Date: Fri, 7 Nov 2025 09:05:36 +0800 Subject: [PATCH] Add File --- src/landppt/web/templates/upload_result.html | 135 +++++++++++++++++++ 1 file changed, 135 insertions(+) create mode 100644 src/landppt/web/templates/upload_result.html diff --git a/src/landppt/web/templates/upload_result.html b/src/landppt/web/templates/upload_result.html new file mode 100644 index 0000000..d260f70 --- /dev/null +++ b/src/landppt/web/templates/upload_result.html @@ -0,0 +1,135 @@ +{% extends "base.html" %} + +{% block title %}上传结果 - LandPPT{% endblock %} + +{% block content %} +{% if success %} +
+

🎉 文件上传成功!

+

您的文件已成功上传并处理,可以基于此内容生成 PPT。

+
+ +
+

📁 文件处理结果

+
+ +
+
+

📋 文件信息

+
+

文件名: {{ filename }}

+

文件类型: {{ type }}

+

文件大小: {{ (size / 1024) | round(2) }} KB

+

处理状态: ✅ 成功

+
+
+ +
+

🎯 下一步操作

+

+ 文件内容已提取完成,您可以基于此内容创建 PPT +

+
+ + 🚀 基于此内容创建 PPT + + + 🏠 返回首页 + +
+
+
+ +{% if processed_content %} +
+

📄 提取的内容预览

+
+
+ {{ processed_content | replace('\n', '
') | safe }} +
+ {% if processed_content | length > 500 %} +

+ * 显示前 500 个字符,完整内容已保存用于 PPT 生成 +

+ {% endif %} +
+
+{% endif %} + +
+

💡 使用建议

+ +
+
+
🎯
+

选择合适场景

+

根据文档内容选择最匹配的 PPT 场景模板

+
+ +
+
✏️
+

补充要求

+

在生成时添加具体要求,如目标受众、重点内容等

+
+ +
+
🔄
+

迭代优化

+

生成后可以重新调整和优化 PPT 内容

+
+
+
+ +{% else %} +
+

❌ 文件上传失败

+

很抱歉,文件处理过程中出现了错误。

+ {% if error %} +
+ 错误详情: {{ error }} +
+ {% endif %} +
+ +
+ 🔄 重新尝试 + 🏠 返回首页 +
+ +
+

📋 支持的文件格式

+
+
+
📄
+ .docx +

Word 文档

+
+
+
📕
+ .pdf +

PDF 文档

+
+
+
📝
+ .txt +

纯文本文件

+
+
+
📋
+ .md +

Markdown 文档

+
+
+ +
+
💡 上传提示
+ +
+
+{% endif %} +{% endblock %}