From 52b12161e4bdcf3016ac87a078dd7ca60d181bfe Mon Sep 17 00:00:00 2001 From: kenzok8 Date: Tue, 24 Dec 2024 14:16:36 +0800 Subject: [PATCH] update 2024-12-24 14:16:36 --- .../luci-static/resources/view/daed/log.js | 2 +- luci-app-nekobox/Makefile | 2 +- luci-app-nekobox/htdocs/nekobox/configs.php | 14 +- .../htdocs/nekobox/mihomo_manager.php | 169 +++++---------- luci-app-nekobox/htdocs/nekobox/settings.php | 204 +++++++++++------- luci-app-nekobox/htdocs/nekobox/singbox.php | 7 +- 6 files changed, 185 insertions(+), 213 deletions(-) diff --git a/luci-app-daed/htdocs/luci-static/resources/view/daed/log.js b/luci-app-daed/htdocs/luci-static/resources/view/daed/log.js index e3ad038e6..b922f1917 100644 --- a/luci-app-daed/htdocs/luci-static/resources/view/daed/log.js +++ b/luci-app-daed/htdocs/luci-static/resources/view/daed/log.js @@ -24,7 +24,7 @@ return view.extend({ var log_textarea = E('div', { 'id': 'log_textarea' }, E('img', { - 'src': L.resource(['icons/loading.gif']), + 'src': L.resource('icons/loading.gif'), 'alt': _('Loading...'), 'style': 'vertical-align:middle' }, _('Collecting data…')) diff --git a/luci-app-nekobox/Makefile b/luci-app-nekobox/Makefile index 388dfc377..d6e7ce0d9 100644 --- a/luci-app-nekobox/Makefile +++ b/luci-app-nekobox/Makefile @@ -16,7 +16,7 @@ define Package/$(PKG_NAME) SUBMENU:=3. Applications TITLE:=LuCI support for mihomo & sing-box PKGARCH:=all - DEPENDS:=+kmod-tun +bash +curl +jq +php8 +php8-cgi +php8-mod-curl +php8-mod-intl +zoneinfo-asia +coreutils-base64 + DEPENDS:=+kmod-tun +bash +curl +jq +php8 +php8-cgi +php8-mod-curl +php8-mod-intl +zoneinfo-asia endef define Package/$(PKG_NAME)/description diff --git a/luci-app-nekobox/htdocs/nekobox/configs.php b/luci-app-nekobox/htdocs/nekobox/configs.php index adca11a7d..7556e0a02 100644 --- a/luci-app-nekobox/htdocs/nekobox/configs.php +++ b/luci-app-nekobox/htdocs/nekobox/configs.php @@ -55,7 +55,7 @@ include './cfg.php'; 📦 订阅 🛠️ 设定
-
+

选择 Mihomo 配置文件

@@ -73,14 +73,8 @@ include './cfg.php';
-
- - - -
-
+ +
-
+

配置资讯

diff --git a/luci-app-nekobox/htdocs/nekobox/mihomo_manager.php b/luci-app-nekobox/htdocs/nekobox/mihomo_manager.php index ed9a9c218..24702282a 100644 --- a/luci-app-nekobox/htdocs/nekobox/mihomo_manager.php +++ b/luci-app-nekobox/htdocs/nekobox/mihomo_manager.php @@ -428,78 +428,15 @@ if ($_SERVER['REQUEST_METHOD'] == 'POST') { color: rgba(255, 255, 255, 0.9); } -@media (max-width: 767px) { - .table th, - .table td { - padding: 6px 8px; - font-size: 14px; - } - - .table th:nth-child(1), .table td:nth-child(1) { - width: 25%; - } - .table th:nth-child(2), .table td:nth-child(2) { - width: 20%; - } - .table th:nth-child(3), .table td:nth-child(3) { - width: 25%; - } - .table th:nth-child(4), .table td:nth-child(4) { - width: 100%; - } - -.btn-group, .d-flex { - display: flex; - flex-wrap: wrap; - justify-content: center; - gap: 5px; +html { + font-size: 16px; } -.btn-group .btn { - flex: 1 1 auto; - font-size: 12px; - padding: 6px 8px; +.container { + padding-left: 2.4em; + padding-right: 2.4em; } -.btn-group .btn:last-child { - margin-right: 0; - } -} - -@media (max-width: 767px) { - .btn-rename { - width: 70px !important; - font-size: 0.6rem; - white-space: nowrap; - overflow: hidden; - text-overflow: ellipsis; - display: inline-block; - text-align: center; -} - -.btn-group { - display: flex; - gap: 10px; - justify-content: center; -} - -.btn { - margin: 0; -} - -td { - vertical-align: middle; -} - -.action-btn { - padding: 6px 12px; - font-size: 0.85rem; - display: inline-block; -} - -.btn-group.d-flex { - flex-wrap: wrap; -}