feat: enhance UI, refactor services, improve templates and tests

- Replace image_extractor with pdf_image_extractor service
- Enhance pi_client with expanded API capabilities
- Improve summarizer service with additional features
- Update admin routes with more endpoints
- Add login page template
- Enhance detail page with comprehensive layout
- Improve search and trends pages
- Update base template with additional elements
- Refactor tests for better coverage
- Add validate_summary script
- Update project configuration and dependencies
This commit is contained in:
2026-06-07 19:38:58 +08:00
parent 4a72c35452
commit 0d293422ac
32 changed files with 2003 additions and 586 deletions
+12 -12
View File
@@ -32,20 +32,20 @@ endblock %} {% block content %}
{% endblock %} {% block scripts %}
<script src="https://cdn.jsdelivr.net/npm/chart.js@4.4.7/dist/chart.umd.min.js"></script>
<script>
// 颜色配置(kami 风格墨蓝色系)
// 颜色配置(Kami ink-blue 暖调色系)
const COLORS = {
primary: '#2d5f8a',
primaryLight: 'rgba(45, 95, 138, 0.2)',
accent: '#5a9bc7',
success: '#388e3c',
warning: '#f57f17',
danger: '#c62828',
muted: '#4a4a6a',
primary: '#1B365D',
primaryLight: 'rgba(27, 54, 93, 0.12)',
accent: '#2a4d7a',
success: '#3d6e3d',
warning: '#7a6430',
danger: '#8c2828',
muted: '#6b6a64',
palette: [
'#2d5f8a', '#5a9bc7', '#388e3c', '#f57f17', '#c62828',
'#7b1fa2', '#00838f', '#ef6c00', '#455a64', '#827717',
'#1565c0', '#ad1457', '#00695c', '#e65100', '#283593',
'#9e9d24', '#6a1b9a', '#00838f', '#4e342e', '#37474f',
'#1B365D', '#2a4d7a', '#3d6e3d', '#7a6430', '#8c2828',
'#4a4070', '#2d6b6e', '#8a5a2a', '#504e49', '#5c6030',
'#2b4a80', '#70304a', '#2d5e56', '#7a4a10', '#353a60',
'#6a6a28', '#552a5a', '#2d6b6e', '#4a3828', '#3d4450',
],
};