Skip to content

Commit

Permalink
update 2025-01-31 20:36:56
Browse files Browse the repository at this point in the history
  • Loading branch information
kenzok8 committed Jan 31, 2025
1 parent 3647fa4 commit f06ff99
Show file tree
Hide file tree
Showing 2 changed files with 66 additions and 108 deletions.
4 changes: 2 additions & 2 deletions filebrowser/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@
include $(TOPDIR)/rules.mk

PKG_NAME:=filebrowser
PKG_VERSION:=2.31.2
PKG_VERSION:=2.32.0
PKG_RELEASE:=1

PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=https://codeload.github.com/filebrowser/filebrowser/tar.gz/v${PKG_VERSION}?
PKG_HASH:=bfda9ea7c44d4cb93c47a007c98b84f853874e043049b44eff11ca00157d8426
PKG_HASH:=61e9de6b2d396614f45be477e5bb5aad189e7bb1155a3f88800e02421bd6cc2b

PKG_LICENSE:=Apache-2.0
PKG_LICENSE_FILES:=LICENSE
Expand Down
170 changes: 64 additions & 106 deletions luci-app-nekobox/htdocs/nekobox/settings.php
Original file line number Diff line number Diff line change
Expand Up @@ -238,116 +238,68 @@ function getCliverVersion() {
</div>
</form>

<table class="table table-borderless mb-3">
<tbody>
<tr>
<td colspan="2">
<table class="table table-borderless mb-3">
<tbody>
<tr>
<td colspan="2">
<div class="table-container">
<h2 class="text-center mb-3">自动重载防火墙</h2>
<form action="settings.php" method="post">
<div class="btn-group d-flex justify-content-center">
<button type="submit" name="fw" value="enable" class="btn btn<?php if($fwstatus==1) echo "-outline" ?>-success <?php if($fwstatus==1) echo "disabled" ?> btn-fw" style="margin-right: 20px;">启用</button>
<button type="submit" name="fw" value="disable" class="btn btn<?php if($fwstatus==0) echo "-outline" ?>-danger <?php if($fwstatus==0) echo "disabled" ?>">停用</button>
</div>
</form>
</td>
</tr>
<tr>
<tr>
<td>
<table class="table">
<thead>
<tr>
<th>客户端版本</th>
</tr>
</thead>
<tbody>
<tr>
<td class="text-center" style="font-family: monospace;">
<span id="cliver"></span><span id="NewCliver"> </span>
</td>
</tr>
<tr>
<td class="text-center">
<button type="submit" name="fw" value="enable" class="btn btn-success <?php if($fwstatus==1) echo "disabled" ?>">启用</button>
<button type="submit" name="fw" value="disable" class="btn btn-danger <?php if($fwstatus==0) echo "disabled" ?>">停用</button>
</div>
</form>
</div>
</td>
</tr>
<tr>
<td>
<div class="table-container">
<h2>客户端版本</h2>
<p id="cliver" class="text-center" style="font-family: monospace;"><?php echo htmlspecialchars($clientVersion); ?></p>
<div class="text-center">
<button class="btn btn-pink me-1" id="checkCliverButton"><i class="bi bi-search"></i> 检测版本</button>
<button class="btn btn-info" id="updateButton" title="更新到最新版本" onclick="showVersionTypeModal()"><i class="bi bi-arrow-repeat"></i> 更新版本</button>
</td>
</tr>
</tbody>
</table>
</td>
<td>
<table class="table">
<thead>
<tr>
<th>UI 控制面板</th>
</tr>
</thead>
<tbody>
<tr>
<td class="text-center">
<?php echo htmlspecialchars($uiVersion); ?><span id="NewUi"> </span>
</td>
</tr>
<tr>
<td class="text-center">
</div>
</div>
</td>
<td>
<div class="table-container">
<h2>UI 控制面板</h2>
<p class="text-center"><?php echo htmlspecialchars($uiVersion); ?></p>
<div class="text-center">
<button class="btn btn-pink me-1" id="checkUiButton"><i class="bi bi-search"></i> 检测版本</button>
<button class="btn btn-info" id="updateUiButton" title="更新面板" onclick="showPanelSelector()"><i class="bi bi-arrow-repeat"></i> 更新版本</button>
</td>
</tr>
</tbody>
</table>
</td>
</tr>
<tr>
<td>
<table class="table">
<thead>
<tr>
<th>Sing-box 核心版本</th>
</tr>
</thead>
<tbody>
<tr>
<td class="text-center">
<div id="singBoxCorever">
<?php echo htmlspecialchars($singBoxVersion); ?><span id="NewSingbox"></span>
</div>
</td>
</tr>
<tr>
<td class="text-center">
</div>
</div>
</td>
</tr>
<tr>
<td>
<div class="table-container">
<h2>Sing-box 核心版本</h2>
<p id="singBoxCorever" class="text-center"><?php echo htmlspecialchars($singBoxVersion); ?></p>
<div class="text-center">
<button class="btn btn-pink me-1" id="checkSingboxButton"><i class="bi bi-search"></i> 检测版本</button>
<button class="btn btn-info" id="singboxOptionsButton" title="Singbox 相关操作"><i class="bi bi-arrow-repeat"></i> 更新版本</button>
</td>
</tr>
</tbody>
</table>
</td>
<td>
<table class="table">
<thead>
<tr>
<th>Mihomo 核心版本</th>
</tr>
</thead>
<tbody>
<tr>
<td class="text-center">
<?php echo htmlspecialchars($mihomoVersion); ?><span id="NewMihomo"> </span>
</td>
</tr>
<tr>
<td class="text-center">
</div>
</div>
</td>
<td>
<div class="table-container">
<h2>Mihomo 核心版本</h2>
<p class="text-center"><?php echo htmlspecialchars($mihomoVersion); ?></p>
<div class="text-center">
<button class="btn btn-pink me-1" id="checkMihomoButton"><i class="bi bi-search"></i> 检测版本</button>
<button class="btn btn-info" id="updateCoreButton" title="更新 Mihomo 内核" onclick="showMihomoVersionSelector()"><i class="bi bi-arrow-repeat"></i> 更新版本</button>
</td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</div>
</div>
</td>
</tr>
</tbody>
</table>

<div class="modal fade" id="updateVersionTypeModal" tabindex="-1" aria-labelledby="updateVersionTypeModalLabel" aria-hidden="true" data-bs-backdrop="static" data-bs-keyboard="false">
<div class="modal-dialog modal-xl">
<div class="modal-content">
Expand Down Expand Up @@ -842,13 +794,6 @@ function getCliverVersion() {
}
</style>

<script>
document.addEventListener("DOMContentLoaded", function() {
feather.replace();
});
</script>


<script>
const slider = document.getElementById("containerWidth");
const widthValue = document.getElementById("widthValue");
Expand Down Expand Up @@ -1553,6 +1498,19 @@ function initiateUpdate(url, logMessage, description) {
});
</script>

<style>
.custom-table {
width: 100%;
border-collapse: collapse;
}

.custom-table th, .custom-table td {
padding: 10px;
text-align: center;
border: 1px solid #ccc;
}
</style>

<script>
function checkVersion(outputId, updateFiles, currentVersions) {
const modalContent = document.getElementById('modalContent');
Expand Down Expand Up @@ -1614,7 +1572,7 @@ function checkVersion(outputId, updateFiles, currentVersions) {

Promise.all(requests).then(() => {
modalContent.innerHTML = `
<table class="table table-striped table-bordered">
<table class="table custom-table">
<thead>
<tr>
<th class="text-center">组件名称</th>
Expand Down

0 comments on commit f06ff99

Please sign in to comment.