- FastAPI backend with SQLAlchemy ORM and SQLite - AI chatbot with OpenAI-compatible LLM integration (SSE streaming) - Admin panel for content management, LLM config, token management - Anonymous access with 3-question limit, token-based access control - Recruiter intent detection with admin notification - Resume generator (JD-based, Markdown to Word export) - Chinese localized public interface Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
81 lines
3.4 KiB
HTML
81 lines
3.4 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="zh-CN">
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
<title>CareerBot Admin - Profile</title>
|
|
<link rel="stylesheet" href="/static/css/style.css">
|
|
</head>
|
|
<body>
|
|
<div class="admin-layout">
|
|
<aside class="admin-sidebar">
|
|
<div class="logo">CareerBot Admin</div>
|
|
<nav>
|
|
<a href="/admin/dashboard"><span class="icon">■</span> Dashboard</a>
|
|
<a href="/admin/profile"><span class="icon">☺</span> Profile</a>
|
|
<a href="/admin/education"><span class="icon">☆</span> Education</a>
|
|
<a href="/admin/experience"><span class="icon">✎</span> Experience</a>
|
|
<a href="/admin/skills"><span class="icon">★</span> Skills</a>
|
|
<a href="/admin/tokens"><span class="icon">⚷</span> Access Tokens</a>
|
|
<a href="/admin/messages"><span class="icon">✉</span> Messages <span class="nav-badge" id="nav-badge" style="display:none;"></span></a>
|
|
<a href="/admin/llm-config"><span class="icon">⚙</span> LLM Config</a>
|
|
<a href="/admin/resume"><span class="icon">✍</span> Resume Gen</a>
|
|
<a href="#" onclick="adminLogout()"><span class="icon">→</span> Logout</a>
|
|
</nav>
|
|
</aside>
|
|
<main class="admin-content">
|
|
<div class="admin-header">
|
|
<h2>Profile</h2>
|
|
</div>
|
|
<div class="admin-card">
|
|
<div class="form-group">
|
|
<label>Photo</label>
|
|
<div id="photo-preview" style="margin-bottom:8px;"></div>
|
|
<input type="file" id="photo-input" accept="image/*" onchange="uploadPhoto()">
|
|
</div>
|
|
<div class="form-row">
|
|
<div class="form-group">
|
|
<label>Name</label>
|
|
<input type="text" id="field-name">
|
|
</div>
|
|
<div class="form-group">
|
|
<label>Phone</label>
|
|
<input type="text" id="field-phone">
|
|
</div>
|
|
</div>
|
|
<div class="form-row">
|
|
<div class="form-group">
|
|
<label>Email</label>
|
|
<input type="email" id="field-email">
|
|
</div>
|
|
<div class="form-group">
|
|
<label>Location</label>
|
|
<input type="text" id="field-location">
|
|
</div>
|
|
</div>
|
|
<div class="form-row">
|
|
<div class="form-group">
|
|
<label>Birthday</label>
|
|
<input type="text" id="field-birthday" placeholder="e.g. 1990.01.01">
|
|
</div>
|
|
<div class="form-group">
|
|
<label>Party</label>
|
|
<input type="text" id="field-party">
|
|
</div>
|
|
</div>
|
|
<div class="form-group">
|
|
<label>Education Level</label>
|
|
<input type="text" id="field-education_level">
|
|
</div>
|
|
<div class="form-group">
|
|
<label>Self Summary</label>
|
|
<textarea id="field-self_summary" rows="6"></textarea>
|
|
</div>
|
|
<button class="btn btn-primary" onclick="saveProfile()">Save Profile</button>
|
|
</div>
|
|
</main>
|
|
</div>
|
|
<script src="/static/js/admin.js"></script>
|
|
</body>
|
|
</html>
|