Spaces:
Sleeping
Sleeping
Commit History
-
重新實施機器名稱綁定功能
- 從commit 31441f0恢復完整機器名稱功能 - 資料庫新增machine_name欄位到licenses和usage_logs表 - C# plugin自動擷取並傳送Environment.MachineName - 後端API完整支援機器名稱儲存和更新邏輯 - 前端UI顯示機器名稱於硬體ID前方(5列布局) - 授權記錄頁面移除敏感授權碼,新增機器名稱列 - 儀表板最近活動顯示機器名稱資訊 - 開發模式包含完整機器名稱模擬資料 - 保持強制sessionStorage認證機制b37d8d7
-
優化授權時間計算邏輯統一使用台灣時區
- 後端授權時間計算改用台灣時間00:00作為起始點(-8hr) - SQL範例資料同步調整時間計算邏輯 - 更新activity_logs視圖新增license_id欄位並優化創建方式 - 統一前後端時間處理確保一致性a6a49d1
-
簡化管理員操作狀態判斷邏輯
- 管理員操作(建立、延長、啟用/停用、刪除授權)直接顯示為成功,不判斷 error_message - 只有 Plugin 操作(activate, validate)才根據 error_message 判斷成功/失敗 - 簡化邏輯避免誤判管理員操作狀態 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>5265c10 -
優化活動記錄狀態判斷邏輯和UI改進
- 修正管理員操作(建立、延長、啟用/停用、刪除授權)的成功/失敗判定邏輯 - 管理員操作的 error_message 通常是描述性訊息,只有包含真正錯誤關鍵字時才標記為錯誤 - Plugin 操作保持原邏輯:有 error_message 就是錯誤 - 移除最近活動中多餘的歷史圖示 - 修正新增授權成功後顯示通用載入訊息的問題 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>e184b24 -
Implement complete license extension functionality with day-based calculations
- Add LicenseExtend model for extension requests - Implement extend_license service method with proper day boundary logic - Add PATCH /api/license/{id}/extend API endpoint - Add extendLicense method to frontend API client - Remove unrealistic "未啟用" status from license system - Update license calculations to start from 00:00 (midnight) - Add extend license modal with form validation - Update database schema test data for proper day calculations 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>b1569ac -
Implement complete 32-bit license system with optimized UI layout
## Backend Updates: - Update license code generation to true 32-character format (0-9, A-Z) - Remove KS prefix, use pure random codes for enhanced security - Upgrade from 36^8 to 36^32 possible combinations ## Frontend Enhancements: - Add dual display modes: compact for tables, full for details - Implement formatFullLicenseCode() for complete code display in modals - Optimize column widths: license code (flex: 1.8), hardware ID (flex: 1.2) - Enhance details modal with complete hardware ID display and copy functionality - Add .hardware-id-full styling with proper text wrapping ## Database Updates: - Provide comprehensive 32-bit test data covering all scenarios: * Active users (90-day, 1-year licenses) * Trial users (7-day trial) * Pending activations (unused licenses) * Expired licenses (15 days overdue) * Suspended accounts (admin disabled) * Permanent licenses (enterprise users) * Near-expiry warnings (2 days remaining) - Update usage logs with realistic IP addresses a…79daae2 -
Update license system with enhanced UI and 32-bit authorization codes
## Major Updates: - Upgrade license code format from 10-digit to 32-character for enhanced security - Improve horizontal card layout with better hardware ID display space - Add comprehensive debugging for statistics display issues - Simplify confirmation dialog UI by removing redundant content ## Technical Changes: - Update documentation to reflect 32-bit license code format (XXXX-XXXX-XXXX-XXXX-XXXX-XXXX-XXXX-XXXX) - Enhance hardware ID column width (flex: 1.5) for complete display - Add padding to user section for better visual spacing - Increase card body height to 80px for improved readability - Update form labels from "硬體指紋" to "硬體ID" for consistency - Add detailed console logging for statistics troubleshooting ## UI Improvements: - Optimize status badge and action button spacing - Improve hardware ID text wrapping and display - Streamline confirmation modal design - Enhanced visual hierarchy in license cards 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-…e0ffce0 -
Fix API endpoint mismatch and update database schema
- Fixed API endpoint path: /logs -> /licenses/logs to match backend - Updated license_stats view to include yesterday_activations for dashboard - Added activity_logs view for better frontend data formatting - Enabled test data insertion for immediate testing - Added comprehensive sample data including various license states - Schema now supports all dashboard statistics and activity logs 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>ebe14fd -
Initial commit: Complete KSTools License Management System
- FastAPI backend with license management APIs - Streamlit web interface with dark theme - Supabase PostgreSQL integration - C# Revit Plugin with hardware fingerprinting - Docker containerization for Hugging Face Spaces - Complete authorization flow implementation 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>ad67bb9