From 56b655af2d3d79e4b78552101f68e966d1066194 Mon Sep 17 00:00:00 2001 From: hotyue <52734432+hotyue@users.noreply.github.com> Date: Wed, 6 May 2026 06:11:44 +0000 Subject: [PATCH] =?UTF-8?q?feat(ui):=20=E4=BC=98=E5=8C=96=E5=85=A8?= =?UTF-8?q?=E5=B1=80=E6=8F=90=E7=A4=BA=E6=96=87=E6=A1=88=E5=B9=B6=E8=84=B1?= =?UTF-8?q?=E9=99=A4=E8=BF=87=E5=BA=A6=E6=8B=9F=E4=BA=BA=E5=8C=96=EF=BC=8C?= =?UTF-8?q?=E5=9C=A8=E5=A4=9A=E7=AB=AF=E9=AB=98=E5=85=89=E6=97=B6=E5=88=BB?= =?UTF-8?q?=E5=A2=9E=E8=AE=BE=20GitHub=20Star=20=E5=BC=95=E6=B5=81?= =?UTF-8?q?=E6=8C=89=E9=92=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 1. core/install & master/install_master: 底部新增 OSC 8 终端超链接引流 2. core/tg_report & master/tg_master: 底部常驻跳转 GitHub 的内联键盘按钮 3. docs: 更新 README 注入顶部 Star 引导文案,并追加 @Bryan2333 贡献者致谢 --- README.md | 1 + core/install.sh | 12 +++++++++--- core/tg_report.sh | 14 +++++++++----- master/install_master.sh | 12 +++++++++--- master/tg_master.sh | 10 +++++----- 5 files changed, 33 insertions(+), 16 deletions(-) diff --git a/README.md b/README.md index 352fbe7..3e4b1e5 100644 --- a/README.md +++ b/README.md @@ -5,6 +5,7 @@ ![License](https://img.shields.io/github/license/hotyue/IP-Sentinel) > **一个极度轻量、零感知、支持中枢遥控的 VPS IP 自动化养护与区域纠偏引擎。** +> **💡 提示:如果本项目提升了您的节点稳定性,请点击右上角点亮 🌟 Star!您的支持是我们持续研发和维护指纹库的核心动力。** 📢 官方战术交流频道: 🛰️ [IP-Sentinel Matrix](https://t.me/IP_Sentinel_Matrix) diff --git a/core/install.sh b/core/install.sh index b29fe4d..b49a0ff 100755 --- a/core/install.sh +++ b/core/install.sh @@ -1040,9 +1040,15 @@ if [ "$UPGRADE_MODE" == "false" ]; then AGENT_COUNT=$(curl -s -m 3 "https://ip-sentinel-count.samanthaestime296.workers.dev/ping/agent" || echo "") if [ -n "$AGENT_COUNT" ] && [[ "$AGENT_COUNT" =~ ^[0-9]+$ ]]; then - echo -e "\033[32m✅ 感谢您成为全球第 ${AGENT_COUNT} 名 IP-Sentinel 哨兵!\033[0m" + echo -e "\033[32m✅ 感谢您成为全球第 ${AGENT_COUNT} 名 IP-Sentinel 节点维护者!\033[0m" else - echo -e "\033[32m✅ 感谢您加入 IP-Sentinel 哨兵阵列!\033[0m" + echo -e "\033[32m✅ 感谢您部署 IP-Sentinel!\033[0m" fi - echo -e "\n" fi + +# ================== [新增: 安装成功高光时刻 Star 引导] ================== +echo -e "\n========================================================" +echo -e "⭐ \033[33m开源不易,如果 IP-Sentinel 提升了您的节点稳定性,请赐予我们一枚星标!\033[0m" +echo -e "💡 \033[32m您的每一颗 Star 都是我们持续对抗风控、维护更新指纹库的核心动力。\033[0m" +echo -e "👉 \033[36m\033[4m\033]8;;https://github.com/hotyue/IP-Sentinel\033\\[点击此处直达 GitHub 仓库点亮 Star 🌟]\033]8;;\033\\\033[0m" +echo -e "========================================================\n" diff --git a/core/tg_report.sh b/core/tg_report.sh index ac1acb0..d91ac55 100755 --- a/core/tg_report.sh +++ b/core/tg_report.sh @@ -208,29 +208,33 @@ MSG="$MSG if [ -n "$REMOTE_VER" ] && [ "$REMOTE_VER" != "$LOCAL_VER" ]; then MSG="$MSG 最新官方版本: \`v${REMOTE_VER}\` (✨有新版) -💡 *司令部提示:检测到新版装甲,请长官登录节点执行平滑热更新!*" +💡 *系统提示:检测到新版引擎,建议通过控制台执行 OTA 热更新!*" elif [ -n "$REMOTE_VER" ] && [ "$REMOTE_VER" == "$LOCAL_VER" ]; then MSG="$MSG 最新官方版本: \`v${REMOTE_VER}\` (✅已是最新) -💡 *哨兵正在后台默默守护您的资产。*" +💡 *IP-Sentinel 持续为您守护节点。若本项目对您有帮助,欢迎前往 GitHub 赐予 🌟*" else # 抓取失败兜底 MSG="$MSG -💡 *哨兵正在后台默默守护您的资产。*" +💡 *IP-Sentinel 持续为您守护节点。若本项目对您有帮助,欢迎前往 GitHub 赐予 🌟*" fi -# 5. 调用 API 推送 (接入安全网关,挂载交互式控制台按钮) +# 5. 调用 API 推送 (接入安全网关,挂载控制台按钮与 GitHub 引流) JSON_PAYLOAD=$(jq -n \ --arg cid "$CHAT_ID" \ --arg txt "$MSG" \ --arg cb "manage:${NODE_NAME}" \ + --arg repo_url "https://github.com/hotyue/IP-Sentinel" \ '{ chat_id: $cid, text: $txt, parse_mode: "Markdown", disable_web_page_preview: true, reply_markup: { - inline_keyboard: [[{text: "⚙️ 调出该节点控制台", callback_data: $cb}]] + inline_keyboard: [ + [{"text": "⚙️ 调出该节点控制台", "callback_data": $cb}], + [{"text": "🌟 前往 GitHub 仓库点亮星标", "url": $repo_url}] + ] } }') diff --git a/master/install_master.sh b/master/install_master.sh index ed9346c..7d68dff 100755 --- a/master/install_master.sh +++ b/master/install_master.sh @@ -380,9 +380,15 @@ if [ "$UPGRADE_MODE" == "false" ]; then MASTER_COUNT=$(curl -s -m 3 "https://ip-sentinel-count.samanthaestime296.workers.dev/ping/master" || echo "") if [ -n "$MASTER_COUNT" ] && [[ "$MASTER_COUNT" =~ ^[0-9]+$ ]]; then - echo -e "\033[32m✅ 感谢您成为全球第 ${MASTER_COUNT} 名 IP-Sentinel 指挥官!\033[0m" + echo -e "\033[32m✅ 感谢您成为全球第 ${MASTER_COUNT} 名 IP-Sentinel 中枢管理者!\033[0m" else - echo -e "\033[32m✅ 感谢您建立 IP-Sentinel 司令部!\033[0m" + echo -e "\033[32m✅ 感谢您部署 IP-Sentinel 控制中枢!\033[0m" fi - echo -e "\n" fi + +# ================== [新增: 安装成功高光时刻 Star 引导] ================== +echo -e "\n========================================================" +echo -e "⭐ \033[33m开源不易,如果 IP-Sentinel 极大简化了您的多节点管理,请赐予我们一枚星标!\033[0m" +echo -e "💡 \033[32m您的每一颗 Star 都是我们持续迭代架构、开发 Web 视窗化控制台的动力源泉。\033[0m" +echo -e "👉 \033[36m\033[4m\033]8;;https://github.com/hotyue/IP-Sentinel\033\\[点击此处直达 GitHub 仓库点亮 Star 🌟]\033]8;;\033\\\033[0m" +echo -e "========================================================\n" diff --git a/master/tg_master.sh b/master/tg_master.sh index 59669ba..705e926 100755 --- a/master/tg_master.sh +++ b/master/tg_master.sh @@ -284,20 +284,20 @@ while true; do # 仅当非官方网关 且 开启了中枢 OTA 权限时,才渲染升级按钮 if [ "$IS_OFFICIAL_GATEWAY" != "true" ] && [ "${ENABLE_MASTER_OTA:-false}" == "true" ]; then - BTN_MASTER_OTA="[{\"text\":\"🆙 升级司令部至 v${REMOTE_VER}\",\"callback_data\":\"master_ota_confirm\"}]," + BTN_MASTER_OTA="[{\"text\":\"🆙 升级控制中枢至 v${REMOTE_VER}\",\"callback_data\":\"master_ota_confirm\"}]," fi fi NODE_COUNT=$(db_exec "SELECT COUNT(*) FROM nodes WHERE chat_id='$CHAT_ID';") [ -z "$NODE_COUNT" ] && NODE_COUNT=0 - # L0 扁平化重构:将司令部升级按钮动态置于最顶层 + # L0 扁平化重构:升级按钮置顶,底部追加带有 url 属性的 GitHub 引流按钮 if [ "$IS_OFFICIAL_GATEWAY" != "true" ]; then - BTNS="[${BTN_MASTER_OTA}[{\"text\":\"🌍 进入全球战区雷达 (管理节点)\",\"callback_data\":\"list_nodes\"}], [{\"text\":\"🚀 全军总攻\",\"callback_data\":\"all_run\"}, {\"text\":\"📊 全军简报\",\"callback_data\":\"all_reports\"}], [{\"text\":\"☢️ 全舰队 OTA 热重载\",\"callback_data\":\"all_ota_confirm\"}]]" + BTNS="[${BTN_MASTER_OTA}[{\"text\":\"🌍 进入全球雷达 (管理节点)\",\"callback_data\":\"list_nodes\"}], [{\"text\":\"🚀 唤醒全局巡逻\",\"callback_data\":\"all_run\"}, {\"text\":\"📊 获取全局简报\",\"callback_data\":\"all_reports\"}], [{\"text\":\"🔄 全网节点 OTA 热重载\",\"callback_data\":\"all_ota_confirm\"}], [{\"text\":\"🌟 前往 GitHub 点亮星标\",\"url\":\"https://github.com/hotyue/IP-Sentinel\"}]]" else - BTNS="[[{\"text\":\"🌍 进入全球战区雷达 (管理节点)\",\"callback_data\":\"list_nodes\"}], [{\"text\":\"🚀 全军总攻\",\"callback_data\":\"all_run\"}, {\"text\":\"📊 全军简报\",\"callback_data\":\"all_reports\"}]]" + BTNS="[[{\"text\":\"🌍 进入全球雷达 (管理节点)\",\"callback_data\":\"list_nodes\"}], [{\"text\":\"🚀 唤醒全局巡逻\",\"callback_data\":\"all_run\"}, {\"text\":\"📊 获取全局简报\",\"callback_data\":\"all_reports\"}], [{\"text\":\"🌟 前往 GitHub 点亮星标\",\"url\":\"https://github.com/hotyue/IP-Sentinel\"}]]" fi - TEXT_MSG="🛡️ **IP-Sentinel 司令部**\n${VER_INFO}\n\n📊 舰队状态: 共有 \`${NODE_COUNT}\` 台哨兵在线\n欢迎回来,长官。请下达战略指令:" + TEXT_MSG="🛡️ **IP-Sentinel 控制中枢**\n${VER_INFO}\n\n📊 节点状态: 共有 \`${NODE_COUNT}\` 台节点在线\n欢迎回来,管理者。请下达系统指令:" send_ui "$CHAT_ID" "$TEXT_MSG" "$BTNS" ;;