Commit Graph

5 Commits

Author SHA1 Message Date
a838fcc7a8 Replace crypto.randomUUID with fallback for HTTP contexts
crypto.randomUUID() requires secure context (HTTPS).
Use Date.now + Math.random fallback for session ID generation.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-04-08 10:12:18 +08:00
e041c6d9e8 Fix chat.js BASE_PATH conflict: remove declaration entirely
var hoisting still conflicts with const from main.js.
chat.js now relies on BASE_PATH declared in main.js.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-04-08 10:09:05 +08:00
7344f3c9ce Fix duplicate const BASE_PATH declaration in chat.js
main.js and chat.js both declared const BASE_PATH at top level.
When both load on index.html, the second const throws SyntaxError,
preventing chat.js from executing (chat FAB button unresponsive).

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-04-08 09:57:36 +08:00
501f8985ec Add /careerbot base path for www.ityb.me/careerbot deployment
- Add BASE_PATH config, include all routers with prefix
- Inject {{ base }} Jinja2 global for all template URLs
- Add window.BASE_PATH for static JS files
- Update Nginx to proxy /careerbot/ path
- Add OPS_MANUAL.md

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-04-07 22:07:34 +08:00
96997daed0 Initial commit: CareerBot full-stack career showcase with AI chatbot
- 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>
2026-04-07 20:36:38 +08:00