feat: add model updates check to global context menu

Add a new "Check Model Updates" option to the global context menu that allows users to manually check for model updates. This includes:

- Adding refreshUpdates endpoint to API configuration
- Implementing checkModelUpdates method with proper loading states
- Adding internationalization support for update messages
- Handling success/error states with appropriate user feedback
- Automatically reloading models after update check completes

The feature provides users with manual control over update checks and improves visibility into model update availability.
This commit is contained in:
Will Miao
2025-10-25 21:32:08 +08:00
parent d77b6d78b7
commit 9ca2b9dd56
14 changed files with 216 additions and 4 deletions

View File

@@ -139,6 +139,13 @@
"missingPath": "הגדר מיקום הורדה לפני הורדת תמונות דוגמה.",
"unavailable": "הורדות תמונות דוגמה אינן זמינות עדיין. נסה שוב לאחר שהדף מסיים להיטען."
},
"checkModelUpdates": {
"label": "בדוק עדכונים",
"loading": "בודק עדכונים עבור {type}...",
"success": "נמצאו {count} עדכונים עבור {type}",
"none": "כל ה-{type} מעודכנים",
"error": "נכשל בבדיקת העדכונים עבור {type}: {message}"
},
"cleanupExampleImages": {
"label": "נקה תיקיות תמונות דוגמה",
"success": "הועברו {count} תיקיות לתיקיית המחוקים",