mirror of
https://github.com/WJQSERVER-STUDIO/ghproxy.git
synced 2026-02-03 00:01:10 +08:00
104 lines
No EOL
5.6 KiB
HTML
104 lines
No EOL
5.6 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="zh">
|
|
|
|
<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 rel="preconnect" href="https://fonts.googleapis.com">
|
|
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
|
|
<link href="style.css" rel="stylesheet">
|
|
</head>
|
|
|
|
<body>
|
|
<div class="container py-4 py-md-5">
|
|
<main>
|
|
<div class="card mb-4">
|
|
<div class="card-body">
|
|
<h1 class="text-center mb-4">Github文件加速</h1>
|
|
<p class="lead text-center mb-4">为访问Github文件进行加速</p>
|
|
<form id="github-form">
|
|
<div class="mb-3">
|
|
<input type="text" class="form-control form-control-lg" id="githubLinkInput"
|
|
placeholder="请键入需要代理的 Github 链接">
|
|
</div>
|
|
<button type="submit" class="btn btn-primary btn-lg w-100">获取文件链接</button>
|
|
</form>
|
|
<div id="output" class="mt-3 bg-light p-3 rounded position-relative" style="display: none;">
|
|
<pre id="formattedLinkOutput" class="mb-0"></pre>
|
|
<button id="copyButton"
|
|
class="btn btn-outline-secondary btn-sm position-absolute top-0 end-0 m-2" title="复制链接">
|
|
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor"
|
|
class="bi bi-clipboard" viewBox="0 0 16 16">
|
|
<path
|
|
d="M4 1.5H3a2 2 0 0 0-2 2V14a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V3.5a2 2 0 0 0-2-2h-1v1h1a1 1 0 0 1 1 1V14a1 1 0 0 1-1 1H3a1 1 0 0 1-1-1V3.5a1 1 0 0 1 1-1h1v-1z" />
|
|
<path
|
|
d="M9.5 1a.5.5 0 0 1 .5.5v1a.5.5 0 0 1-.5.5h-3a.5.5 0 0 1-.5-.5v-1a.5.5 0 0 1 .5-.5h3zm-3-1A1.5 1.5 0 0 0 5 1.5v1A1.5 1.5 0 0 0 6.5 4h3A1.5 1.5 0 0 0 11 2.5v-1A1.5 1.5 0 0 0 9.5 0h-3z" />
|
|
</svg>
|
|
</button>
|
|
<button id="openButton"
|
|
class="btn btn-outline-secondary btn-sm position-absolute top-0 end-0 m-2 me-5"
|
|
title="在新标签页中打开">
|
|
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor"
|
|
class="bi bi-box-arrow-up-right" viewBox="0 0 16 16">
|
|
<path fill-rule="evenodd"
|
|
d="M8.636 3.5a.5.5 0 0 0-.5-.5H1.5A1.5 1.5 0 0 0 0 4.5v10A1.5 1.5 0 0 0 1.5 16h10a1.5 1.5 0 0 0 1.5-1.5V7.864a.5.5 0 0 0-1 0V14.5a.5.5 0 0 1-.5.5h-10a.5.5 0 0 1-.5-.5v-10a.5.5 0 0 1 .5-.5h6.636a.5.5 0 0 0 .5-.5z" />
|
|
<path fill-rule="evenodd"
|
|
d="M16 .5a.5.5 0 0 0-.5-.5h-5a.5.5 0 0 0 0 1h3.793L6.146 9.146a.5.5 0 1 0 .708.708L15 1.707V5.5a.5.5 0 0 0 1 0v-5z" />
|
|
</svg>
|
|
</button>
|
|
</div>
|
|
<p class="text-muted small mt-3 mb-0">GitHub 链接带不带协议头均可,支持 release、archive 以及文件,转换后链接均可使用。</p>
|
|
</div>
|
|
</div>
|
|
<div class="row">
|
|
<div class="col-md-4 mb-3">
|
|
<div class="card h-100">
|
|
<div class="card-body">
|
|
<h5 class="card-title">文件大小限制</h5>
|
|
<p class="card-text" id="sizeLimitDisplay">...</p>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="col-md-4 mb-3">
|
|
<div class="card h-100">
|
|
<div class="card-body">
|
|
<h5 class="card-title">白名单状态</h5>
|
|
<p class="card-text" id="whiteListStatus">...</p>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="col-md-4 mb-3">
|
|
<div class="card h-100">
|
|
<div class="card-body">
|
|
<h5 class="card-title">黑名单状态</h5>
|
|
<p class="card-text" id="blackListStatus">...</p>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</main>
|
|
<footer class="text-center mt-4">
|
|
<p class="text-muted">
|
|
Copyright © 2024-2025 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 top-0 end-0 p-3">
|
|
<div id="toast" class="toast" role="alert" aria-live="assertive" aria-atomic="true">
|
|
<div class="toast-body"></div>
|
|
</div>
|
|
</div>
|
|
|
|
<div id="versionBadge" class="version-badge"></div>
|
|
|
|
<script src="https://static.wjqserver.com/bootstrap.bundle.min.js"></script>
|
|
<script src="script.js"></script>
|
|
</body>
|
|
|
|
</html> |