Add git repository selection for panel updates

- Add repository URL setting to panel_settings table
- Support for multiple git hosting providers (GitHub, Gitea, GitLab, etc.)
- UI selector for predefined repositories (git.tzim.uz and github.com) or custom URL
- Update service now uses repository from database settings
- API endpoints: GET/PUT /api/updates/repository
- Migration for default repository setting
- Translations for repository selection UI
This commit is contained in:
2025-12-16 20:04:57 +05:00
parent 2541360f51
commit 8dced5479d
5 changed files with 301 additions and 30 deletions

View File

@@ -690,6 +690,26 @@ class I18nService:
"ru": "коммитов позади",
"en": "commits behind"
},
"git_repository": {
"ru": "Git-репозиторий",
"en": "Git Repository"
},
"repository_url": {
"ru": "URL репозитория",
"en": "Repository URL"
},
"select_repository": {
"ru": "Выберите репозиторий",
"en": "Select Repository"
},
"custom_repository": {
"ru": "Другой репозиторий",
"en": "Custom Repository"
},
"repository_saved": {
"ru": "Репозиторий сохранён",
"en": "Repository saved"
},
"panel_info": {
"ru": "Информация о панели",
"en": "Panel Information"