zhu1ku3
pzvjlefpx 1 month ago
parent f329248bf9
commit d54e27e149

@ -18,7 +18,7 @@ def allowed_file(filename):
"""检查文件类型是否允许"""
allowed_extensions = {'png', 'jpg', 'jpeg', 'gif', 'bmp', 'tiff'}
return '.' in filename and \
filename.rsplit('.', 1)[1].lower() in allowed_extensions
filename.rsplit('.', 1)[1].lower() in allowed_extensions
@ocr_bp.route('/api/ocr/recognize', methods=['POST'])
def recognize_text():

@ -788,7 +788,7 @@ body {
}
.breadcrumb-item.active {
color: #6c757d;
color: #58626c;
}
/* 页脚样式优化 */

@ -3,12 +3,12 @@
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="AI智能写作辅导软件 - AI驱动的个性化写作学习平台">
<meta name="description" content="EssayGraderApp - AI驱动的个性化写作学习平台">
<meta name="keywords" content="AI写作,智能写作,写作辅助,作文评分,写作学习">
<meta name="author" content="AI智能写作辅导软件">
<meta name="author" content="EssayGraderApp Group">
<!-- Open Graph -->
<meta property="og:title" content="{% block og_title %}AI智能写作辅导软件{% endblock %}">
<meta property="og:title" content="{% block og_title %}EssayGraderApp{% endblock %}">
<meta property="og:description" content="AI驱动的个性化写作学习平台">
<meta property="og:type" content="website">
<meta property="og:image" content="/static/images/og-image.jpg">
@ -17,7 +17,7 @@
<link rel="icon" type="image/x-icon" href="/static/favicon.ico">
<link rel="apple-touch-icon" href="/static/images/apple-touch-icon.png">
<title>{% block title %}AI智能写作辅导软件{% endblock %}</title>
<title>{% block title %}EssayGraderApp{% endblock %}</title>
<!-- Bootstrap CSS -->
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/css/bootstrap.min.css" rel="stylesheet">
@ -63,7 +63,7 @@
<!-- 品牌Logo -->
<a class="navbar-brand d-flex align-items-center" href="{{ url_for('main.index') }}">
<i class="fas fa-pen-fancy me-2"></i>
<span class="brand-text">智能写作</span>
<span class="brand-text">EssayGraderApp</span>
</a>
<!-- 移动端菜单按钮 -->
@ -97,7 +97,7 @@
<!-- 用户菜单 -->
<li class="nav-item dropdown">
<a class="nav-link dropdown-toggle d-flex align-items-center" href="#"
id="userDropdown" role="button" data-bs-toggle="dropdown" aria-expanded="false">
id="userDropdown" role="button" data-bs-toggle="dropdown" aria-expanded="false">
<div class="user-avatar me-2">
<i class="fas fa-user"></i>
</div>
@ -180,13 +180,13 @@
<div class="mt-2" id="navApiKeySection" style="display: none;">
<label class="form-label small mb-1">API Key</label>
<input type="password" class="form-control form-control-sm" id="navAPIKey"
placeholder="输入API Key">
placeholder="输入API Key">
</div>
<div class="mt-2" id="navBaseUrlSection" style="display: block;">
<label class="form-label small mb-1">Base URL</label>
<div class="input-group input-group-sm">
<input type="text" class="form-control" id="navAIBaseUrl"
placeholder="AI服务地址">
placeholder="AI服务地址">
<button class="btn btn-outline-secondary" type="button" onclick="refreshAIModels()">
<i class="fas fa-sync-alt"></i>
</button>
@ -279,10 +279,10 @@
<div class="footer-brand">
<h5 class="footer-title">
<i class="fas fa-pen-fancy me-2"></i>
AI智能写作辅导软件
EssayGraderApp
</h5>
<p class="footer-description">
基于先进AI技术的个性化写作学习平台,
基于PaddleOCR、DeepSeek的个性化写作学习平台,
让每一次写作都成为进步的阶梯。
</p>
</div>
@ -301,8 +301,10 @@
<h6 class="footer-title">功能特色</h6>
<ul class="footer-links">
<li><a href="#features">AI智能分析</a></li>
<li><a href="#features">手写文本识别</a></li>
<li><a href="#features">三阶段写作</a></li>
<li><a href="#features">实时评分</a></li>
<li><a href="#features">词汇升级</a></li>
<li><a href="#features">个性化学习</a></li>
</ul>
</div>
@ -341,7 +343,7 @@
<div class="row align-items-center">
<div class="col-md-6">
<p class="footer-copyright">
© {{ current_year }} AI智能写作辅导软件. 保留所有权利.
© {{ current_year }} EssayGraderApp. 保留所有权利.
</p>
</div>
<div class="col-md-6 text-md-end">
@ -472,8 +474,8 @@
// 使用用户名首字母作为头像
const initial = username.charAt(0).toUpperCase();
avatar.innerHTML = initial;
avatar.style.background = `linear-gradient(135deg,
hsl(${username.charCodeAt(0) * 5}, 70%, 60%),
avatar.style.background = `linear-gradient(135deg,
hsl(${username.charCodeAt(0) * 5}, 70%, 60%),
hsl(${username.charCodeAt(0) * 7}, 70%, 70%))`;
}
}
@ -634,6 +636,14 @@
<h6>Q: 我的作文内容会被保存多久?</h6>
<p>A: 您的作文内容会永久保存,直到您主动删除。</p>
</div>
<div class="faq-item">
<h6>Q: 怎么使用手写文本识别功能?</h6>
<p>A: 拍摄您的手写文章图片并保存至电脑,在选择文件界面选择您的手写文章即可。</p>
</div>
<div class="faq-item">
<h6>Q: 词汇升级功能如何使用?</h6>
<p>A: 点击“词汇升级”后您将在写作节面右侧看见AI助手为您提供的个性化词汇升级建议。点击应用此升级即可使用。</p>
</div>
</div>
`
});

@ -127,7 +127,7 @@
width: 60px;
height: 60px;
border-radius: 50%;
background: linear-gradient(45deg, #007bff, #0056b3);
background: linear-gradient(45deg, #085cb6, #0056b3);
display: inline-flex;
align-items: center;
justify-content: center;

@ -36,7 +36,7 @@
"status": "writing",
"word_count": 0,
"created_at": "2025-11-02T16:36:39.799848",
"updated_at": "2025-11-02T16:48:04.387646",
"updated_at": "2025-11-13T16:00:57.253704",
"completed_at": null
}
]
Loading…
Cancel
Save