mirror of
https://github.com//cppla/ServerStatus
synced 2025-12-15 10:12:04 +08:00
update theme
This commit is contained in:
218
web/index.html
218
web/index.html
@@ -1,131 +1,117 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="zh-CN">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<meta name="description" content="云监控,ServerStatus中文版,ServerStatus,ServerStatus cppla">
|
||||
<meta name="author" content="ServerStatus Theme by AI">
|
||||
<meta charset="utf-8" />
|
||||
<meta name="viewport" content="width=device-width,initial-scale=1" />
|
||||
<meta name="description" content="简洁现代 ServerStatus" />
|
||||
<title>云监控</title>
|
||||
<link rel="stylesheet" href="css/bootstrap.min.css">
|
||||
<link rel="stylesheet" href="css/light.css" title="light">
|
||||
<link rel="stylesheet" href="css/dark.css" title="dark">
|
||||
<link rel="icon" type="image/svg+xml" href="favicon.svg" />
|
||||
<link rel="alternate icon" href="favicon.ico" />
|
||||
<link rel="stylesheet" href="css/app.css" />
|
||||
</head>
|
||||
<body>
|
||||
<nav class="navbar navbar-expand-lg navbar-dark bg-dark fixed-top" role="navigation">
|
||||
<div class="container">
|
||||
<a class="navbar-brand" href="#">云监控</a>
|
||||
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarNav" aria-controls="navbarNav" aria-expanded="false" aria-label="Toggle navigation">
|
||||
<span class="navbar-toggler-icon"></span>
|
||||
</button>
|
||||
<div class="collapse navbar-collapse" id="navbarNav">
|
||||
<ul class="navbar-nav">
|
||||
<li class="nav-item">
|
||||
<a class="nav-link" href="#server" data-bs-toggle="tab">首页</a>
|
||||
</li>
|
||||
<li class="nav-item">
|
||||
<a class="nav-link" href="#monitor" data-bs-toggle="tab">服务</a>
|
||||
</li>
|
||||
<li class="nav-item">
|
||||
<a class="nav-link" href="#sslpanel" data-bs-toggle="tab">证书</a>
|
||||
</li>
|
||||
<li class="nav-item dropdown">
|
||||
<a class="nav-link dropdown-toggle" href="#" id="navbarDropdown" role="button" data-bs-toggle="dropdown" aria-expanded="false">
|
||||
风格
|
||||
</a>
|
||||
<ul class="dropdown-menu" aria-labelledby="navbarDropdown">
|
||||
<li><a class="dropdown-item" href="#" onclick="setActiveStyleSheet('dark')">黑夜</a></li>
|
||||
<li><a class="dropdown-item" href="#" onclick="setActiveStyleSheet('light')">白天</a></li>
|
||||
<li><a class="dropdown-item" href="/index3.html">简洁</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
<header class="topbar">
|
||||
<div class="brand" title="云监控">
|
||||
<span class="logo-mark" aria-hidden="true">
|
||||
<svg viewBox="0 0 24 24" width="20" height="20" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
|
||||
<path d="M7.5 17a4.5 4.5 0 0 1-.9-8.92A6 6 0 0 1 18.4 9.6 4 4 0 0 1 18 17H7.5Z" />
|
||||
<rect x="9" y="11" width="6" height="4" rx="1" />
|
||||
<path d="M11 15v2.5a.5.5 0 0 0 .5.5h1" />
|
||||
</svg>
|
||||
</span>
|
||||
<span class="logo-text"><span class="logo-accent">云</span>监控</span>
|
||||
</div>
|
||||
</div>
|
||||
</nav>
|
||||
<nav class="nav" id="navTabs">
|
||||
<button data-tab="servers" class="active">主机</button>
|
||||
<button data-tab="monitors">服务</button>
|
||||
<button data-tab="ssl">证书</button>
|
||||
</nav>
|
||||
<div class="actions">
|
||||
<button id="themeToggle" title="切换主题 (当前: 自动或手动)" aria-label="切换主题">🌓</button>
|
||||
<span id="lastUpdate" class="muted">更新中...</span>
|
||||
</div>
|
||||
</header>
|
||||
|
||||
<div class="container content">
|
||||
<noscript>
|
||||
<div class="alert alert-danger text-center">
|
||||
<strong>请启用 JavaScript</strong>,否则无法正常使用本站功能。
|
||||
</div>
|
||||
</noscript>
|
||||
<div id="loading-notice" class="text-center">
|
||||
警告:如果出现此消息,请确保您已启用 Javascript!<br>
|
||||
否则云监控主服务没启动或已关闭。
|
||||
</div>
|
||||
<main class="wrapper">
|
||||
<div id="notice" class="notice info">初始化中...</div>
|
||||
|
||||
<div class="tab-content">
|
||||
<div class="tab-pane fade show active" id="server">
|
||||
<!--主机-->
|
||||
<table class="table table-striped table-hover">
|
||||
<thead>
|
||||
<tr>
|
||||
<th id="online_status" style="text-align: center;">🔗协议</th>
|
||||
<th id="month_traffic" style="text-align: center;">📊月流量↓|↑</th>
|
||||
<th id="name">📌节点</th>
|
||||
<th id="type">🗂️虚拟化</th>
|
||||
<th id="location">🌍位置</th>
|
||||
<th id="uptime">⏱️在线</th>
|
||||
<th id="load">负载</th>
|
||||
<th id="network">🚦网络↓|↑</th>
|
||||
<th id="traffic">📋总流量↓|↑</th>
|
||||
<th id="cpu">🎯核芯</th>
|
||||
<th id="ram">⚡️内存</th>
|
||||
<th id="hdd">💾硬盘</th>
|
||||
<th id="ping">🌐CU|CT|CM</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody id="servers">
|
||||
<!-- Servers here \o/ -->
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<div class="tab-pane fade" id="monitor">
|
||||
<!--服务-->
|
||||
<table class="table table-striped table-hover">
|
||||
<thead>
|
||||
<tr>
|
||||
<th id="monitor_status" style="text-align: center;">🔗协议</th>
|
||||
<th id="monitor_node">📌监测节点</th>
|
||||
<th id="monitor_location">🌍监测位置</th>
|
||||
<th id="monitor_text" style="text-align: center;">📋监测内容</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody id="monitors">
|
||||
<!-- Monitors here \o/ -->
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<div class="tab-pane fade" id="sslpanel">
|
||||
<!--SSL 证书-->
|
||||
<table class="table table-striped table-hover">
|
||||
<thead>
|
||||
<tr>
|
||||
<th style="text-align:center;">名称</th>
|
||||
<th>域名</th>
|
||||
<th style="text-align:center;">端口</th>
|
||||
<th style="text-align:center;">剩余(天)</th>
|
||||
<th style="text-align:center;">到期(UTC)</th>
|
||||
<th style="text-align:center;">状态</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody id="sslcerts">
|
||||
</tbody>
|
||||
</table>
|
||||
<section id="panel-servers" class="panel active" aria-labelledby="主机">
|
||||
<div class="table-wrap">
|
||||
<table class="data" id="serversTable">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>协议</th>
|
||||
<th>节点</th>
|
||||
<th>虚拟化</th>
|
||||
<th>位置</th>
|
||||
<th>在线</th>
|
||||
<th>负载</th>
|
||||
<th>月流量 ↓|↑</th>
|
||||
<th>当前网络 ↓|↑</th>
|
||||
<th>总流量 ↓|↑</th>
|
||||
<th>CPU</th>
|
||||
<th>内存</th>
|
||||
<th>硬盘</th>
|
||||
<th style="text-align:center;">联通/电信/移动</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody id="serversBody"></tbody>
|
||||
</table>
|
||||
</div>
|
||||
<!-- 移动端卡片布局 -->
|
||||
<div id="serversCards" class="cards" style="display:none;"></div>
|
||||
</section>
|
||||
|
||||
<section id="panel-monitors" class="panel" aria-labelledby="服务">
|
||||
<div class="table-wrap">
|
||||
<table class="data" id="monitorsTable">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>协议</th>
|
||||
<th>监测节点</th>
|
||||
<th>监测位置</th>
|
||||
<th>监测内容</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody id="monitorsBody"></tbody>
|
||||
</table>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<section id="panel-ssl" class="panel" aria-labelledby="证书">
|
||||
<div class="table-wrap">
|
||||
<table class="data" id="sslTable">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>名称</th>
|
||||
<th>域名</th>
|
||||
<th>端口</th>
|
||||
<th>剩余(天)</th>
|
||||
<th>到期(UTC)</th>
|
||||
<th>状态</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody id="sslBody"></tbody>
|
||||
</table>
|
||||
</div>
|
||||
</section>
|
||||
</main>
|
||||
|
||||
<!-- 详情弹窗 -->
|
||||
<div id="detailModal" class="modal-backdrop" style="display:none;">
|
||||
<div class="modal-box" role="dialog" aria-modal="true" aria-labelledby="detailTitle">
|
||||
<button class="modal-close" id="detailClose" aria-label="关闭">×</button>
|
||||
<h3 id="detailTitle" class="modal-title">节点详情</h3>
|
||||
<div id="detailContent" class="modal-content">加载中...</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<br/>
|
||||
<div id="updated">更新中...</div>
|
||||
</div>
|
||||
<footer class="footer">
|
||||
<a href="https://github.com/cppla/ServerStatus" target="_blank" rel="noopener">ServerStatus</a>
|
||||
<span class="sep">·</span>
|
||||
<span id="buildInfo" class="muted"></span>
|
||||
</footer>
|
||||
|
||||
<footer class="container">
|
||||
<p class="text-center" style="font-size: 10px;">
|
||||
<a href="https://github.com/cppla/ServerStatus">ServerStatus中文版</a>
|
||||
</p>
|
||||
</footer>
|
||||
|
||||
<script src="js/bootstrap.bundle.min.js"></script>
|
||||
<script src="js/serverstatus.js"></script>
|
||||
<script src="js/app.js"></script>
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user