update 2024-11-04 20:39:08
This commit is contained in:
parent
5c3671d6cf
commit
e10eef8862
Binary file not shown.
After Width: | Height: | Size: 32 KiB |
Binary file not shown.
After Width: | Height: | Size: 22 KiB |
|
@ -583,7 +583,6 @@ $(document).ready(function() {
|
|||
});
|
||||
});
|
||||
</script>
|
||||
|
||||
<h2 class="royal-style">NekoBox</h2>
|
||||
<table class="table table-borderless mb-2">
|
||||
<tbody>
|
||||
|
@ -616,10 +615,10 @@ $(document).ready(function() {
|
|||
<td>控制</td>
|
||||
<form action="index.php" method="post">
|
||||
<td class="d-grid">
|
||||
<div class="btn-group col" role="group" aria-label="ctrl">
|
||||
<button type="submit" name="neko" value="start" class="btn btn<?php if ($neko_status == 1) echo "-outline" ?>-success <?php if ($neko_status == 1) echo "disabled" ?> d-grid">启用 Mihomo</button>
|
||||
<button type="submit" name="neko" value="disable" class="btn btn<?php if ($neko_status == 0) echo "-outline" ?>-danger <?php if ($neko_status == 0) echo "disabled" ?> d-grid">停用 Mihomo</button>
|
||||
<button type="submit" name="neko" value="restart" class="btn btn<?php if ($neko_status == 0) echo "-outline" ?>-warning <?php if ($neko_status == 0) echo "disabled" ?> d-grid">重启 Mihomo</button>
|
||||
<div class="btn-group" role="group" aria-label="ctrl">
|
||||
<button type="submit" name="neko" value="start" class="btn btn<?php if ($neko_status == 1) echo "-outline" ?>-success <?php if ($neko_status == 1) echo "disabled" ?>">启用 Mihomo</button>
|
||||
<button type="submit" name="neko" value="disable" class="btn btn<?php if ($neko_status == 0) echo "-outline" ?>-danger <?php if ($neko_status == 0) echo "disabled" ?>">停用 Mihomo</button>
|
||||
<button type="submit" name="neko" value="restart" class="btn btn<?php if ($neko_status == 0) echo "-outline" ?>-warning <?php if ($neko_status == 0) echo "disabled" ?>">重启 Mihomo</button>
|
||||
</div>
|
||||
</td>
|
||||
</form>
|
||||
|
@ -632,10 +631,10 @@ $(document).ready(function() {
|
|||
</option>
|
||||
<?php endforeach; ?>
|
||||
</select>
|
||||
<div class="btn-group col" role="group" aria-label="ctrl">
|
||||
<button type="submit" name="singbox" value="start" class="btn btn<?php echo ($singbox_status == 1) ? "-outline" : "" ?>-success <?php echo ($singbox_status == 1) ? "disabled" : "" ?> d-grid">启用 Sing-box</button>
|
||||
<button type="submit" name="singbox" value="disable" class="btn btn<?php echo ($singbox_status == 0) ? "-outline" : "" ?>-danger <?php echo ($singbox_status == 0) ? "disabled" : "" ?> d-grid">停用 Sing-box</button>
|
||||
<button type="submit" name="singbox" value="restart" class="btn btn<?php echo ($singbox_status == 0) ? "-outline" : "" ?>-warning <?php echo ($singbox_status == 0) ? "disabled" : "" ?> d-grid">重启 Sing-box</button>
|
||||
<div class="btn-group" role="group" aria-label="ctrl">
|
||||
<button type="submit" name="singbox" value="start" class="btn btn<?php echo ($singbox_status == 1) ? "-outline" : "" ?>-success <?php echo ($singbox_status == 1) ? "disabled" : "" ?>">启用 Sing-box</button>
|
||||
<button type="submit" name="singbox" value="disable" class="btn btn<?php echo ($singbox_status == 0) ? "-outline" : "" ?>-danger <?php echo ($singbox_status == 0) ? "disabled" : "" ?>">停用 Sing-box</button>
|
||||
<button type="submit" name="singbox" value="restart" class="btn btn<?php echo ($singbox_status == 0) ? "-outline" : "" ?>-warning <?php echo ($singbox_status == 0) ? "disabled" : "" ?>">重启 Sing-box</button>
|
||||
</div>
|
||||
</td>
|
||||
</form>
|
||||
|
@ -673,52 +672,76 @@ $(document).ready(function() {
|
|||
}
|
||||
</script>
|
||||
|
||||
<style>
|
||||
.icon-container { display: flex; justify-content: space-between; margin-top: 20px; }
|
||||
.icon { text-align: center; width: 30%; }
|
||||
.icon i { font-size: 48px; }
|
||||
</style>
|
||||
<link rel="stylesheet" href="./assets/bootstrap/all.min.css">
|
||||
<div class="container">
|
||||
<h2 class="text-center p-2" >系统状态</h2>
|
||||
<table class="table table-borderless rounded-4 mb-2">
|
||||
<tbody>
|
||||
<td>系统信息</td>
|
||||
<td class="col-7" id="systemInfo"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>内存</td>
|
||||
<td class="col-7" id="ramUsage"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>平均负载</td>
|
||||
<td class="col-7" id="cpuLoad"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>运行时间</td>
|
||||
<td class="col-7" id="uptime"></td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
<div class="icon-container">
|
||||
<div class="icon">
|
||||
<i class="fas fa-microchip"></i>
|
||||
<p>CPU</p>
|
||||
<p id="cpuLoadAvg1Min">N/A</p>
|
||||
<link rel="stylesheet" href="./assets/bootstrap/all.min.css">
|
||||
<h2 class="text-center p-2" >系统状态</h2>
|
||||
<table class="table table-borderless rounded-4 mb-2">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td style="width: 30%;">系统信息</td>
|
||||
<td class="col-7" id="systemInfo"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="width: 30%;">内存</td>
|
||||
<td class="col-7" id="ramUsage"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="width: 30%;">平均负载</td>
|
||||
<td class="col-7" id="cpuLoad"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="width: 30%;">运行时间</td>
|
||||
<td class="col-7" id="uptime"></td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<div class="container mt-4">
|
||||
<div class="row">
|
||||
<div class="col-6 col-md-6">
|
||||
<table class="table text-center border-0">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>
|
||||
<i class="fas fa-microchip" style="font-size: 40px;"></i>
|
||||
<p>CPU</p>
|
||||
<p id="cpuLoadAvg1Min">N/A</p>
|
||||
</td>
|
||||
<td>
|
||||
<i class="fas fa-memory" style="font-size: 40px;"></i>
|
||||
<p>内存</p>
|
||||
<p id="ramUsageOnly">N/A</p>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<div class="icon">
|
||||
<i class="fas fa-memory"></i>
|
||||
<p>内存</p>
|
||||
<p id="ramUsageOnly">N/A</p>
|
||||
</div>
|
||||
<div class="icon">
|
||||
<i class="fas fa-exchange-alt"></i>
|
||||
<p>交换空间</p>
|
||||
<p>N/A</p>
|
||||
<div class="col-6 col-md-6">
|
||||
<table class="table text-center border-0">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>
|
||||
<i class="fas fa-download" style="font-size: 40px;"></i>
|
||||
<p>下载总计</p>
|
||||
<p id="downtotal">-</p>
|
||||
</td>
|
||||
<td>
|
||||
<i class="fas fa-upload" style="font-size: 40px;"></i>
|
||||
<p>上传总计</p>
|
||||
<p id="uptotal">-</p>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<style>
|
||||
.table {
|
||||
border: none !important;
|
||||
}
|
||||
.table td {
|
||||
border: none !important;
|
||||
}
|
||||
</style>
|
||||
<script>
|
||||
function fetchSystemStatus() {
|
||||
fetch('?ajax=1')
|
||||
|
@ -738,20 +761,6 @@ $(document).ready(function() {
|
|||
|
||||
fetchSystemStatus();
|
||||
</script>
|
||||
<div style="border: 1px solid black; padding: 10px; text-align: center;">
|
||||
<table style="width: 100%;">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td style="width: 50%;">下载-总计</td>
|
||||
<td style="width: 50%;">上传-总计</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><span id="downtotal">-</span></td>
|
||||
<td><span id="uptotal">-</span></td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<!DOCTYPE html>
|
||||
<html lang="zh">
|
||||
|
@ -773,62 +782,64 @@ $(document).ready(function() {
|
|||
</head>
|
||||
<body>
|
||||
<h2 class="text-center my-4">日志</h2>
|
||||
<div class="row">
|
||||
<div class="col-12">
|
||||
<div class="card log-card">
|
||||
<div class="card-header">
|
||||
<h4 class="card-title text-center mb-0">NeKoBox 日志</h4>
|
||||
</div>
|
||||
<div class="card-body">
|
||||
<pre id="plugin_log" class="log-container form-control"></pre>
|
||||
</div>
|
||||
<div class="card-footer text-center">
|
||||
<form action="index.php" method="post">
|
||||
<button type="submit" name="clear_plugin_log" class="btn btn-danger">🗑️ 清空日志</button>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-12">
|
||||
<div class="card log-card">
|
||||
<div class="card-header">
|
||||
<h4 class="card-title text-center mb-0">Mihomo 日志</h4>
|
||||
</div>
|
||||
<div class="card-body">
|
||||
<pre id="bin_logs" class="log-container form-control"></pre>
|
||||
</div>
|
||||
<div class="card-footer text-center">
|
||||
<form action="index.php" method="post">
|
||||
<button type="submit" name="neko" value="clear" class="btn btn-danger">🗑️ 清空日志</button>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-12">
|
||||
<div class="card log-card">
|
||||
<div class="card-header">
|
||||
<h4 class="card-title text-center mb-0">Sing-box 日志</h4>
|
||||
</div>
|
||||
<div class="card-body">
|
||||
<pre id="singbox_log" class="log-container form-control"></pre>
|
||||
</div>
|
||||
<div class="card-footer text-center">
|
||||
<form action="index.php" method="post" class="d-inline-block">
|
||||
<div class="form-check form-check-inline mb-2">
|
||||
<input class="form-check-input" type="checkbox" id="autoRefresh" checked>
|
||||
<label class="form-check-label" for="autoRefresh">自动刷新</label>
|
||||
<div class="container">
|
||||
<div class="row">
|
||||
<div class="col-12">
|
||||
<div class="card log-card">
|
||||
<div class="card-header">
|
||||
<h4 class="card-title text-center mb-0">NeKoBox 日志</h4>
|
||||
</div>
|
||||
<button type="submit" name="clear_singbox_log" class="btn btn-danger">🗑️ 清空日志</button>
|
||||
<button type="submit" name="update_log" value="update" class="btn btn-primary">🔄 更新时区</button>
|
||||
</form>
|
||||
<div class="card-body">
|
||||
<pre id="plugin_log" class="log-container form-control"></pre>
|
||||
</div>
|
||||
<div class="card-footer text-center">
|
||||
<form action="index.php" method="post">
|
||||
<button type="submit" name="clear_plugin_log" class="btn btn-danger">🗑️ 清空日志</button>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-12">
|
||||
<div class="card log-card">
|
||||
<div class="card-header">
|
||||
<h4 class="card-title text-center mb-0">Mihomo 日志</h4>
|
||||
</div>
|
||||
<div class="card-body">
|
||||
<pre id="bin_logs" class="log-container form-control"></pre>
|
||||
</div>
|
||||
<div class="card-footer text-center">
|
||||
<form action="index.php" method="post">
|
||||
<button type="submit" name="neko" value="clear" class="btn btn-danger">🗑️ 清空日志</button>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-12">
|
||||
<div class="card log-card">
|
||||
<div class="card-header">
|
||||
<h4 class="card-title text-center mb-0">Sing-box 日志</h4>
|
||||
</div>
|
||||
<div class="card-body">
|
||||
<pre id="singbox_log" class="log-container form-control"></pre>
|
||||
</div>
|
||||
<div class="card-footer text-center">
|
||||
<form action="index.php" method="post" class="d-inline-block">
|
||||
<div class="form-check form-check-inline mb-2">
|
||||
<input class="form-check-input" type="checkbox" id="autoRefresh" checked>
|
||||
<label class="form-check-label" for="autoRefresh">自动刷新</label>
|
||||
</div>
|
||||
<button type="submit" name="clear_singbox_log" class="btn btn-danger">🗑️ 清空日志</button>
|
||||
<button type="submit" name="update_log" value="update" class="btn btn-primary">🔄 更新时区</button>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<?php
|
||||
if (isset($_POST['update_log'])) {
|
||||
|
|
|
@ -119,37 +119,77 @@ $lang = $_GET['lang'] ?? 'en';
|
|||
<link rel="preconnect" href="https://d.skk.moe">
|
||||
<style>
|
||||
.img-con {
|
||||
width: 55px;
|
||||
height: 55px;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
overflow: visible;
|
||||
width: 65px;
|
||||
height: 55px;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
overflow: visible;
|
||||
}
|
||||
|
||||
#flag {
|
||||
width: auto;
|
||||
height: auto;
|
||||
max-width: 100%;
|
||||
max-height: 100%;
|
||||
max-width: 65px;
|
||||
max-height: 55px;
|
||||
object-fit: contain;
|
||||
}
|
||||
|
||||
.status-icon {
|
||||
width: auto;
|
||||
height: auto;
|
||||
max-width: 50px;
|
||||
max-height: 50px;
|
||||
width: 58px;
|
||||
height: 58px;
|
||||
object-fit: contain;
|
||||
display: block;
|
||||
}
|
||||
|
||||
.status-icons {
|
||||
display: flex;
|
||||
height: 55px;
|
||||
margin-left: auto;
|
||||
}
|
||||
|
||||
.site-icon {
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
height: 55px;
|
||||
margin: 0 6px;
|
||||
}
|
||||
|
||||
.mx-1 {
|
||||
margin: 0 4px;
|
||||
}
|
||||
|
||||
.site-icon[onclick*="github"] .status-icon {
|
||||
width: 61px;
|
||||
height: 59px;
|
||||
}
|
||||
|
||||
.site-icon[onclick*="github"] {
|
||||
width: 60px;
|
||||
height: 57px;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
.container-sm.container-bg.callout.border {
|
||||
padding-top: 0.5rem;
|
||||
padding-bottom: 0.5rem;
|
||||
padding: 12px 15px;
|
||||
min-height: 70px;
|
||||
display: flex;
|
||||
margin-bottom: 15px;
|
||||
}
|
||||
|
||||
.row.align-items-center {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
width: 100%;
|
||||
margin: 0;
|
||||
display: flex;
|
||||
gap: 15px;
|
||||
height: 55px; /
|
||||
}
|
||||
|
||||
.col-3 {
|
||||
height: 55px;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
.col.text-center {
|
||||
|
@ -168,11 +208,9 @@ $lang = $_GET['lang'] ?? 'en';
|
|||
}
|
||||
|
||||
#ping-result {
|
||||
font-size: 18px !important;
|
||||
margin: 0 !important;
|
||||
white-space: nowrap !important;
|
||||
font-weight: bold !important;
|
||||
text-align: left !important;
|
||||
font-size: 14px;
|
||||
margin-left: 15px;
|
||||
font-weight: 500;
|
||||
}
|
||||
|
||||
#d-ip {
|
||||
|
@ -202,74 +240,16 @@ $lang = $_GET['lang'] ?? 'en';
|
|||
opacity: 0.8 !important;
|
||||
}
|
||||
|
||||
@media (min-width: 769px) and (max-width: 1024px) {
|
||||
.container-sm.container-bg.callout.border {
|
||||
width: 100% !important;
|
||||
}
|
||||
|
||||
.row.align-items-center {
|
||||
display: flex !important;
|
||||
flex-wrap: wrap !important;
|
||||
width: 100% !important;
|
||||
gap: 8px !important;
|
||||
}
|
||||
|
||||
.col-auto {
|
||||
flex: 0 0 30px !important;
|
||||
width: 30px !important;
|
||||
min-width: 30px !important;
|
||||
}
|
||||
|
||||
.img-con, #flag {
|
||||
width: 30px !important;
|
||||
height: 30px !important;
|
||||
object-fit: contain !important;
|
||||
}
|
||||
|
||||
.col-3 {
|
||||
flex: 1 1 auto !important;
|
||||
width: auto !important;
|
||||
min-width: 0 !important;
|
||||
}
|
||||
|
||||
#d-ip, .info.small {
|
||||
font-size: 14px !important;
|
||||
margin: 0 !important;
|
||||
overflow: hidden !important;
|
||||
text-overflow: ellipsis !important;
|
||||
white-space: nowrap !important;
|
||||
}
|
||||
|
||||
.col-4 {
|
||||
flex: 0 1 auto !important;
|
||||
padding: 0 !important;
|
||||
order: 3 !important;
|
||||
}
|
||||
|
||||
#ping-result {
|
||||
font-size: 14px !important;
|
||||
margin: 0 !important;
|
||||
}
|
||||
|
||||
.status-icons {
|
||||
display: flex !important;
|
||||
flex: 0 0 auto !important;
|
||||
margin-left: auto !important;
|
||||
order: 2 !important;
|
||||
}
|
||||
|
||||
.status-icon {
|
||||
width: 30px !important;
|
||||
height: 30px !important;
|
||||
object-fit: contain !important;
|
||||
@media (max-width: 1280px) {
|
||||
.site-icon[onclick*="baidu"],
|
||||
.site-icon[onclick*="taobao"],
|
||||
.site-icon[onclick*="google"],
|
||||
.site-icon[onclick*="youtube"],
|
||||
.site-icon[onclick*="github"] {
|
||||
display: none !important;
|
||||
}
|
||||
}
|
||||
|
||||
@media screen and (max-width: 768px) {
|
||||
#status-bar-component {
|
||||
display: none !important;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
<?php if (in_array($lang, ['zh-cn', 'en', 'auto'])): ?>
|
||||
<div id="status-bar-component" class="container-sm container-bg callout border">
|
||||
|
@ -304,6 +284,10 @@ $lang = $_GET['lang'] ?? 'en';
|
|||
<img src="./assets/neko/img/site_icon_04.png" id="youtube-normal" class="status-icon" style="display: none;">
|
||||
<img src="./assets/neko/img/site_icon1_04.png" id="youtube-gray" class="status-icon">
|
||||
</div>
|
||||
<div class="site-icon mx-1" onclick="pingHost('github', 'GitHub')">
|
||||
<img src="./assets/neko/img/site_icon_05.png" id="github-normal" class="status-icon" style="display: none;">
|
||||
<img src="./assets/neko/img/site_icon1_05.png" id="github-gray" class="status-icon">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -322,7 +306,8 @@ const checkSiteStatus = {
|
|||
baidu: 'https://www.baidu.com',
|
||||
taobao: 'https://www.taobao.com',
|
||||
google: 'https://www.google.com',
|
||||
youtube: 'https://www.youtube.com'
|
||||
youtube: 'https://www.youtube.com',
|
||||
github: 'https://www.github.com'
|
||||
},
|
||||
|
||||
check: async function() {
|
||||
|
|
|
@ -187,7 +187,7 @@ $uiVersion = getUiVersion();
|
|||
<div class="modal-body text-center">
|
||||
<pre id="logOutput" style="white-space: pre-wrap; word-wrap: break-word; text-align: left; display: inline-block;">开始下载更新...</pre>
|
||||
<div class="alert alert-info mt-3" role="alert">
|
||||
提示: 如遇到更新失败,请在终端输入 <code>nokobox</code> 进行更新!
|
||||
提示: 如遇到更新失败,请在终端输入 <code>nekobox</code> 进行更新!
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
@ -21,13 +21,13 @@ define Download/geoip
|
|||
HASH:=2762fa0a7d1728089b7723b7796cb5ca955330a3fa2e4407fa40e480fbf9cea7
|
||||
endef
|
||||
|
||||
GEOSITE_VER:=20241013063848
|
||||
GEOSITE_VER:=20241104071109
|
||||
GEOSITE_FILE:=dlc.dat.$(GEOSITE_VER)
|
||||
define Download/geosite
|
||||
URL:=https://github.com/v2fly/domain-list-community/releases/download/$(GEOSITE_VER)/
|
||||
URL_FILE:=dlc.dat
|
||||
FILE:=$(GEOSITE_FILE)
|
||||
HASH:=f820556ed3aa02eb7eadba7a3743d7e6df8e9234785d0d82d2d1edce20fe4b3c
|
||||
HASH:=dbda1fe2eeea9cf0ea02f69be0e1db27a5034d331d78f84a1ea6770c1e9f0166
|
||||
endef
|
||||
|
||||
GEOSITE_IRAN_VER:=202411040035
|
||||
|
|
Loading…
Reference in New Issue