Update repository URL to git.tzim.uz/markmorado/pvemanager
This commit is contained in:
@@ -706,7 +706,7 @@ async def get_repository_url(
|
||||
setting = db.query(PanelSettings).filter(PanelSettings.key == "git_repository_url").first()
|
||||
if setting:
|
||||
return {"repository_url": setting.value}
|
||||
return {"repository_url": "https://github.com/markmorado/pvemanager"}
|
||||
return {"repository_url": "https://git.tzim.uz/markmorado/pvemanager"}
|
||||
|
||||
|
||||
@router.put("/api/updates/repository")
|
||||
|
||||
@@ -131,8 +131,8 @@ def configure_git_for_public_access():
|
||||
return False
|
||||
|
||||
|
||||
CORRECT_REPO_URL = "https://github.com/markmorado/pvemanager"
|
||||
_LEGACY_URLS = {"https://git.tzim.uz/dilshod/pve_manager"}
|
||||
CORRECT_REPO_URL = "https://git.tzim.uz/markmorado/pvemanager"
|
||||
_LEGACY_URLS = {"https://git.tzim.uz/dilshod/pve_manager", "https://github.com/markmorado/pvemanager"}
|
||||
|
||||
|
||||
def get_repository_url_from_settings():
|
||||
@@ -168,7 +168,7 @@ def parse_repo_url(url: str) -> tuple:
|
||||
return owner_repo[0], owner_repo[1], "github"
|
||||
|
||||
# GitLab or other Git hosting (Gitea, etc.)
|
||||
# https://git.tzim.uz/dilshod/pve_manager
|
||||
# https://git.tzim.uz/markmorado/pvemanager
|
||||
parts = url.split("://")
|
||||
if len(parts) == 2:
|
||||
path_parts = parts[1].split("/")
|
||||
|
||||
@@ -616,7 +616,7 @@ body.update-in-progress .layout {
|
||||
<h2>{{ page_title or title or t('nav_dashboard') }}</h2>
|
||||
<div class="header-actions">
|
||||
<!-- GitHub Stars Button -->
|
||||
<a href="https://github.com/markmorado/pvemanager" target="_blank" rel="noopener noreferrer" class="github-btn" title="Star us on GitHub">
|
||||
<a href="https://git.tzim.uz/markmorado/pvemanager" target="_blank" rel="noopener noreferrer" class="github-btn" title="Star us on Gitea">
|
||||
<i class="fa-brands fa-github"></i>
|
||||
<span class="github-text">pvemanager</span>
|
||||
<svg class="github-star-icon" xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="currentColor">
|
||||
@@ -869,9 +869,9 @@ body.update-in-progress .layout {
|
||||
// Load GitHub stars count
|
||||
async function loadGitHubStars() {
|
||||
try {
|
||||
const response = await fetch('https://api.github.com/repos/markmorado/pvemanager', {
|
||||
const response = await fetch('https://git.tzim.uz/api/v1/repos/markmorado/pvemanager', {
|
||||
headers: {
|
||||
'Accept': 'application/vnd.github.v3+json'
|
||||
'Accept': 'application/json'
|
||||
}
|
||||
});
|
||||
|
||||
@@ -880,7 +880,7 @@ body.update-in-progress .layout {
|
||||
const starsElement = document.getElementById('githubStars');
|
||||
if (starsElement) {
|
||||
// Format number with K for thousands
|
||||
const stars = data.stargazers_count;
|
||||
const stars = data.stars_count;
|
||||
const formatted = stars >= 1000
|
||||
? (stars / 1000).toFixed(1) + 'K'
|
||||
: stars.toString();
|
||||
|
||||
@@ -329,7 +329,7 @@
|
||||
<i class="fab fa-git-alt"></i> {{ t('git_repository') }}
|
||||
</label>
|
||||
<select id="git-repository-select" class="form-control" onchange="handleRepositoryChange()">
|
||||
<option value="https://git.tzim.uz/dilshod/pve_manager">git.tzim.uz/dilshod/pve_manager (Default)</option>
|
||||
<option value="https://git.tzim.uz/markmorado/pvemanager">git.tzim.uz/markmorado/pvemanager (Default)</option>
|
||||
<option value="https://github.com/markmorado/pvemanager">github.com/markmorado/pvemanager</option>
|
||||
<option value="custom">{{ t('custom_repository') }}...</option>
|
||||
</select>
|
||||
|
||||
Reference in New Issue
Block a user