新增檔案: - js/ui.js - UI 操作、模組切換、預覽更新、表單資料收集 - js/main.js - 主程式初始化、事件監聽器設置、快捷鍵 更新檔案: - index.html - 引用 ES6 模組 (type="module") 功能: ✅ 模組切換功能 ✅ 標籤頁切換 ✅ 表單欄位監聽 ✅ JSON 預覽更新 ✅ 快捷鍵支援 (Ctrl+S, Ctrl+N) ✅ 用戶信息載入 ✅ 登出功能 注意: - 大部分 JavaScript 代碼仍在 HTML 中(約 2400 行) - 已建立核心模組架構,便於後續逐步遷移 - 使用 ES6 Modules,需要通過 HTTP Server 運行 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
52 lines
1.6 KiB
Plaintext
52 lines
1.6 KiB
Plaintext
# HR Position Management System - Environment Variables Example
|
|
# 複製此檔案為 .env 並填入實際值
|
|
# IMPORTANT: 請勿將 .env 檔案提交到版本控制系統!
|
|
|
|
# ==================== MySQL Database Configuration ====================
|
|
DB_HOST=your_database_host
|
|
DB_PORT=3306
|
|
DB_NAME=your_database_name
|
|
DB_USER=your_database_user
|
|
DB_PASSWORD=your_secure_password_here
|
|
|
|
# ==================== Gitea Version Control Configuration ====================
|
|
GITEA_URL=https://your-gitea-server.com/
|
|
GITEA_USER=your_gitea_username
|
|
GITEA_PASSWORD=your_gitea_password
|
|
GITEA_TOKEN=your_gitea_access_token
|
|
|
|
# ==================== LLM API Keys ====================
|
|
# Google Gemini API
|
|
GEMINI_API_KEY=AIzaSyDWD6TdXgtYyKvmGLF0RiN8AkbSF8eDnHY
|
|
GEMINI_MODEL=gemini-2.5-flash
|
|
|
|
# DeepSeek API
|
|
DEEPSEEK_API_KEY=your_deepseek_api_key_here
|
|
DEEPSEEK_API_URL=https://api.deepseek.com/v1
|
|
|
|
# OpenAI API
|
|
OPENAI_API_KEY=your_openai_api_key_here
|
|
OPENAI_API_URL=https://api.openai.com/v1
|
|
|
|
# Ollama API
|
|
OLLAMA_API_URL=https://ollama_pjapi.theaken.com
|
|
OLLAMA_MODEL=deepseek-reasoner
|
|
|
|
# ==================== Flask Configuration ====================
|
|
FLASK_APP=start_server.py
|
|
FLASK_ENV=development
|
|
FLASK_HOST=127.0.0.1
|
|
FLASK_PORT=5000
|
|
FLASK_DEBUG=false
|
|
|
|
# 重要:請產生一個隨機的安全密鑰
|
|
# 可使用: python -c "import secrets; print(secrets.token_hex(32))"
|
|
SECRET_KEY=generate_a_secure_random_key_here
|
|
|
|
# ==================== CORS Configuration ====================
|
|
# 允許的來源,以逗號分隔
|
|
CORS_ORIGINS=http://localhost:5000,http://127.0.0.1:5000
|
|
|
|
# ==================== Application Configuration ====================
|
|
HR_DB_SCHEMA=hr_position_system
|