new file: .env.example new file: Dockerfile new file: app.py new file: blueprints/__init__.py new file: blueprints/auth.py new file: blueprints/chat.py new file: blueprints/context.py new file: blueprints/documents.py new file: blueprints/main.py new file: config.py new file: docker-compose.yml new file: models/__init__.py new file: models/chat_session.py new file: models/document.py new file: models/user.py new file: requirements.txt new file: services/__init__.py new file: services/document_parser.py new file: services/llm_service.py new file: services/rag_service.py new file: services/url_scraper.py new file: static/css/style.css new file: static/js/chat.js new file: static/js/inline_chat.js new file: static/js/main.js new file: templates/base.html new file: templates/document_view.html new file: templates/index.html new file: templates/login.html new file: templates/register.html
64 lines
1.9 KiB
HTML
64 lines
1.9 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="en" class="dark">
|
|
<head>
|
|
<meta charset="UTF-8" />
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
<title>{% block title %}KI Context Tool{% endblock %}</title>
|
|
<script src="https://cdn.tailwindcss.com"></script>
|
|
<script>
|
|
tailwind.config = {
|
|
darkMode: 'class',
|
|
theme: {
|
|
extend: {
|
|
colors: {
|
|
copilot: {
|
|
bg: '#1e1e2e',
|
|
sidebar: '#181825',
|
|
panel: '#24273a',
|
|
border: '#313244',
|
|
accent: '#89b4fa',
|
|
accentHover: '#74c7ec',
|
|
text: '#cdd6f4',
|
|
muted: '#6c7086',
|
|
user: '#313244',
|
|
assistant:'#1e1e2e',
|
|
success: '#a6e3a1',
|
|
danger: '#f38ba8',
|
|
warning: '#fab387',
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
</script>
|
|
<link rel="stylesheet" href="{{ url_for('static', filename='css/style.css') }}" />
|
|
{% block head %}{% endblock %}
|
|
</head>
|
|
<body class="bg-copilot-bg text-copilot-text min-h-screen flex flex-col">
|
|
|
|
{% with messages = get_flashed_messages(with_categories=true) %}
|
|
{% if messages %}
|
|
<div id="flash-container" class="fixed top-4 right-4 z-50 space-y-2">
|
|
{% for category, message in messages %}
|
|
<div class="flash-msg px-4 py-3 rounded-lg text-sm font-medium shadow-lg
|
|
{% if category == 'success' %}bg-copilot-success text-copilot-bg
|
|
{% elif category == 'danger' %}bg-copilot-danger text-copilot-bg
|
|
{% else %}bg-copilot-accent text-copilot-bg{% endif %}">
|
|
{{ message }}
|
|
</div>
|
|
{% endfor %}
|
|
</div>
|
|
<script>
|
|
setTimeout(() => {
|
|
document.getElementById('flash-container')?.remove();
|
|
}, 4000);
|
|
</script>
|
|
{% endif %}
|
|
{% endwith %}
|
|
|
|
{% block content %}{% endblock %}
|
|
|
|
{% block scripts %}{% endblock %}
|
|
</body>
|
|
</html>
|