mirror of
https://github.com/WJQSERVER-STUDIO/ghproxy.git
synced 2026-02-03 00:01:10 +08:00
169 lines
No EOL
8.4 KiB
HTML
169 lines
No EOL
8.4 KiB
HTML
<!DOCTYPE html>
|
||
<html lang="zh" data-bs-theme="auto">
|
||
|
||
<head>
|
||
<meta charset="UTF-8">
|
||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||
<title>GitHub加速服务</title>
|
||
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/css/bootstrap.min.css"
|
||
onerror="this.onerror=null; this.href='https://static.wjqserver.com/bootstrap.min.css';">
|
||
<link href="style.css" rel="stylesheet">
|
||
</head>
|
||
|
||
<body>
|
||
<div class="container py-4 py-lg-5">
|
||
<header class="text-center mb-5">
|
||
<h1 class="display-5 fw-bold mb-3">GitHub加速服务</h1>
|
||
<p class="lead text-muted">高速稳定的 GitHub 资源访问解决方案</p>
|
||
</header>
|
||
<div class="main-card p-4 mb-4">
|
||
<form id="mainForm" class="mb-4">
|
||
<div class="mb-3">
|
||
<label for="inputUrl" class="form-label fw-semibold">GitHub 链接</label>
|
||
<input type="url" class="form-control form-control-lg" id="inputUrl" placeholder="输入 GitHub 文件/仓库链接"
|
||
required>
|
||
</div>
|
||
<button type="submit" class="btn btn-primary btn-lg w-100 py-2">
|
||
🚀 生成加速链接
|
||
</button>
|
||
</form>
|
||
|
||
<!-- 结果输出 -->
|
||
<div id="output" class="mt-4" hidden>
|
||
<div class="code-block">
|
||
<code id="outputLink" class="d-block text-break"></code>
|
||
</div>
|
||
<div class="d-flex gap-2 mt-3">
|
||
<button id="copyBtn" class="btn btn-outline-secondary">
|
||
⎘ 复制链接
|
||
</button>
|
||
<button id="openBtn" class="btn btn-primary">
|
||
↗ 立即打开
|
||
</button>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
<div class="row g-3 mb-4">
|
||
<div class="col-md-4">
|
||
<div class="main-card p-3">
|
||
<div class="d-flex justify-content-between align-items-center">
|
||
<div>
|
||
<h6 class="mb-0">文件大小限制</h6>
|
||
<small class="text-muted">最大支持文件尺寸</small>
|
||
</div>
|
||
<span id="sizeLimit" class="status-badge bg-primary">...</span>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
<div class="col-md-4">
|
||
<div class="main-card p-3">
|
||
<div class="d-flex justify-content-between align-items-center">
|
||
<div>
|
||
<h6 class="mb-0">白名单状态</h6>
|
||
<small class="text-muted">访问控制列表</small>
|
||
</div>
|
||
<span id="whitelistStatus" class="status-badge bg-success">...</span>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
<div class="col-md-4">
|
||
<div class="main-card p-3">
|
||
<div class="d-flex justify-content-between align-items-center">
|
||
<div>
|
||
<h6 class="mb-0">黑名单状态</h6>
|
||
<small class="text-muted">屏蔽列表状态</small>
|
||
</div>
|
||
<span id="blacklistStatus" class="status-badge bg-danger">...</span>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
<div class="main-card p-4">
|
||
<h2 class="h4 fw-bold mb-4">📚 详细使用指南</h2>
|
||
|
||
<div class="guide-section">
|
||
<h3 class="h5 fw-semibold mb-3">支持的工具</h3>
|
||
<ul class="list-unstyled">
|
||
<li class="mb-2">✅ 支持域名:github.com</li>
|
||
<li class="mb-2">✅ 支持域名:raw.githubusercontent.com</li>
|
||
<li class="mb-2">✅ 支持域名:gist.githubusercontent.com</li>
|
||
<li class="mb-2">✅ 支持HTTPS Git Clone</li>
|
||
<li class="text-muted">❌ 不支持 SSH Git Clone</li>
|
||
</ul>
|
||
</div>
|
||
<div class="guide-section">
|
||
<h3 class="h5 fw-semibold mb-3">基础用法示例</h3>
|
||
<div class="command-example">
|
||
<h4 class="h6 fw-medium mb-2">Git 克隆</h4>
|
||
<code
|
||
class="d-block mb-3">git clone <span class="protocol">https</span>://<span class="host">example.com</span>/https://github.com/user/project.git</code>
|
||
<h4 class="h6 fw-medium mb-2">私有仓库克隆</h4>
|
||
<code
|
||
class="d-block">git clone <span class="protocol">https</span>://user:your_token@<span class="host">example.com</span>/https://github.com/user/project.git</code>
|
||
</div>
|
||
<div class="command-example">
|
||
<h4 class="h6 fw-medium mb-2">文件下载</h4>
|
||
<code
|
||
class="d-block mb-3">wget <span class="protocol">https</span>://<span class="host">example.com</span>/https://raw.githubusercontent.com/user/project/main/README.md</code>
|
||
<h4 class="h6 fw-medium mb-2">版本发布</h4>
|
||
<code
|
||
class="d-block">curl -LO <span class="protocol">https</span>://<span class="host">example.com</span>/https://github.com/user/project/releases/download/v1.0.0/project_1.0.0.amd64.tar.gz</code>
|
||
</div>
|
||
</div>
|
||
<div class="guide-section">
|
||
<h3 class="h5 fw-semibold mb-3">支持的文件类型</h3>
|
||
<div class="row g-3">
|
||
<div class="col-md-6">
|
||
<div class="main-card p-3">
|
||
<h4 class="h6 fw-medium mb-2">原始文件</h4>
|
||
<code
|
||
class="d-block text-muted fs-sm">https://raw.githubusercontent.com/user/repo/main/file.txt</code>
|
||
</div>
|
||
</div>
|
||
<div class="col-md-6">
|
||
<div class="main-card p-3">
|
||
<h4 class="h6 fw-medium mb-2">分支源码</h4>
|
||
<code class="d-block text-muted fs-sm">https://github.com/user/repo/archive/main.zip</code>
|
||
</div>
|
||
</div>
|
||
<div class="col-md-6">
|
||
<div class="main-card p-3">
|
||
<h4 class="h6 fw-medium mb-2">版本发布</h4>
|
||
<code
|
||
class="d-block text-muted fs-sm">https://github.com/user/repo/releases/download/v1.0.0/app.zip</code>
|
||
</div>
|
||
</div>
|
||
<div class="col-md-6">
|
||
<div class="main-card p-3">
|
||
<h4 class="h6 fw-medium mb-2">Gist 文件</h4>
|
||
<code
|
||
class="d-block text-muted fs-sm">https://gist.githubusercontent.com/user/gist_id/raw/file.txt</code>
|
||
</div>
|
||
</div>
|
||
<div class="col-md-6">
|
||
<div class="main-card p-3">
|
||
<h4 class="h6 fw-medium mb-2">HTTPS Git Clone</h4>
|
||
<code class="d-block text-muted fs-sm">git clone https://github.com/user/repo.git</code>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
<footer class="text-center mt-5 text-muted">
|
||
<p class="mb-0 small" id="version">v </p>
|
||
<p class="mb-0 small">Copyright © 2024 - <span id="currentYear"></span> WJQSERVER-STUDIO<br>
|
||
<a href="https://github.com/WJQSERVER-STUDIO/ghproxy" class="text-decoration-none">GitHub 仓库</a> |
|
||
<a href="https://t.me/ghproxy_go" class="text-decoration-none">Telegram 交流群</a>
|
||
</p>
|
||
</footer>
|
||
</div>
|
||
<div class="toast-container position-fixed bottom-0 end-0 p-3">
|
||
<div id="liveToast" class="toast" role="alert" aria-live="assertive" aria-atomic="true">
|
||
<div class="toast-body"></div>
|
||
</div>
|
||
</div>
|
||
<script src="https://static.wjqserver.com/bootstrap.bundle.min.js"></script>
|
||
|
||
</body>
|
||
|
||
</html> |