mirror of
https://github.com/dqzboy/Docker-Proxy.git
synced 2026-01-12 16:25:42 +08:00
Update index.html
This commit is contained in:
@@ -539,7 +539,7 @@
|
|||||||
let originalImage = `${imageName}:${tag}`;
|
let originalImage = `${imageName}:${tag}`;
|
||||||
let proxyImage = '';
|
let proxyImage = '';
|
||||||
if (!imageName.includes('/')) {
|
if (!imageName.includes('/')) {
|
||||||
proxyImage = `${proxyDomain}/library/${imageName}:${tag}`;
|
proxyImage = `${proxyDomain}/${imageName}:${tag}`;
|
||||||
} else {
|
} else {
|
||||||
proxyImage = `${proxyDomain}/${imageName}:${tag}`;
|
proxyImage = `${proxyDomain}/${imageName}:${tag}`;
|
||||||
}
|
}
|
||||||
@@ -774,11 +774,10 @@
|
|||||||
</div>
|
</div>
|
||||||
<p class="result-description">${description}</p>
|
<p class="result-description">${description}</p>
|
||||||
<div class="result-actions">
|
<div class="result-actions">
|
||||||
<button class="action-btn primary" onclick="useImage('${(result.name || result.repo_name).replace(/'/g, "\\'")}')">
|
<button class="action-btn primary" onclick="useImage('${(result.name || result.repo_name).replace(/'/g, "\\'")}')">
|
||||||
<i class="fas fa-rocket"></i> 使用此镜像
|
<i class="fas fa-rocket"></i> 使用此镜像
|
||||||
</button>
|
</button>
|
||||||
<button class="action-btn secondary" onclick="viewImageDetails('${(result.name || result.repo_name).replace(/'/g, "\\'")}', ${isOfficial}, '${encodeURIComponent(description).replace(/'/g, "%2
|
<button class="action-btn secondary" onclick="viewImageDetails('${(result.name || result.repo_name).replace(/'/g, "\\'")}', ${isOfficial}, '${encodeURIComponent(description).replace(/'/g, "%27")}', ${result.star_count || 0}, ${result.pull_count || 0})">
|
||||||
7")}', ${result.star_count || 0}, ${result.pull_count || 0})">
|
|
||||||
<i class="fas fa-tags"></i> 查看标签
|
<i class="fas fa-tags"></i> 查看标签
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
@@ -885,8 +884,8 @@
|
|||||||
<div class="error-message">
|
<div class="error-message">
|
||||||
<i class="fas fa-exclamation-circle"></i>
|
<i class="fas fa-exclamation-circle"></i>
|
||||||
<p>加载镜像详情失败: ${error.message}</p>
|
<p>加载镜像详情失败: ${error.message}</p>
|
||||||
<button onclick="viewImageDetails('${currentImageData.name.replace(/'/g, "\\'")}', ${currentImageData.isOfficial}, '${encodeURIComponent(currentImageData.description).replace(/'/g, "%
|
<button onclick="viewImageDetails('${currentImageData.name.replace(/'/g, "\\'")}', ${currentImageData.isOfficial}, '${encodeURIComponent(currentImageData.description).replace(/'/g, "%27")}', ${currentImageData.stars}, ${currentImageData.pulls})" class="retry-btn">
|
||||||
27")}', ${currentImageData.stars}, ${currentImageData.pulls})" class="retry-btn">
|
<button class="retry-btn">
|
||||||
<i class="fas fa-redo"></i> 重试
|
<i class="fas fa-redo"></i> 重试
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user