chore: enhance interface display effects

This commit is contained in:
sofia
2026-01-23 19:55:59 +08:00
parent a082c68a7b
commit 60d945c3a2
6 changed files with 66 additions and 67 deletions

View File

@@ -20,7 +20,7 @@ ssh_tools() {
separator_line "="
content_line "\033[33m此功能仅针对使用Openwrt系统的设备生效且不依赖服务\033[0m"
content_line "\033[31m本功能不支持红米AX6S等镜像化系统设备请勿尝试\033[0m"
separator_line "-"
separator_line "="
content_line "1) \033[32m修改\033[0m外网访问端口\033[36m$ssh_port\033[0m"
content_line "2) \033[32m修改\033[0mSSH访问密码(请连续输入2次后回车)"
content_line "3) \033[33m$ssh_ol\033[0m外网访问SSH"
@@ -104,11 +104,11 @@ tools() {
line_break
separator_line "="
content_line "\033[30;47m工具与优化\033[0m"
separator_line "-"
separator_line "="
content_line "\033[33m本页工具可能无法兼容全部Linux设备请酌情使用\033[0m"
content_line "磁盘占用/所在目录:"
content_line "$(du -sh "$CRASHDIR")"
separator_line "-"
separator_line "="
content_line "1) ShellCrash\033[33m测试菜单\033[0m"
content_line "2) ShellCrash\033[32m新手引导\033[0m"
content_line "3) \033[36m日志及推送工具\033[0m"
@@ -189,7 +189,7 @@ tools() {
separator_line "="
if [ -f "$CRASHDIR"/tools/tun.ko ]; then
content_line "是否禁用此功能并移除相关补丁:"
separator_line "-"
separator_line "="
content_line "1) 是"
content_line "0) 否,返回上级菜单"
separator_line "="
@@ -204,7 +204,7 @@ tools() {
elif ckcmd modinfo && [ -z "$(modinfo tun)" ]; then
content_line "\033[33m本功能需要修改系统文件不保证没有任何风险\033[0m"
content_line "\033[33m本功能采集的Tun模块并不一定适用于你的设备\033[0m"
separator_line "-"
separator_line "="
content_line "1) 我已知晓,出现问题会自行承担!"
content_line "0) 返回上级菜单"
eparator_line "="
@@ -307,7 +307,7 @@ log_pusher() {
separator_line "="
if [ -n "$push_TG" ]; then
content_line "是否确认关闭TG日志推送"
separator_line "-"
separator_line "="
content_line "1) 是"
content_line "0) 否,返回上级菜单"
separator_line "="
@@ -354,7 +354,7 @@ log_pusher() {
separator_line "="
if [ -n "$push_Deer" ]; then
content_line "是否确认关闭PushDeer日志推送"
separator_line "-"
separator_line "="
content_line "1) 是"
content_line "0) 否,返回上级菜单"
separator_line "="
@@ -371,7 +371,7 @@ log_pusher() {
content_line "2. 打开快应用/APP并完成登陆"
content_line "3. \033[33m切换到「设备」标签页点击右上角的加号注册当前设备\033[0m"
content_line "4. \033[36m切换到「秘钥」标签页点击右上角的加号创建一个秘钥并复制\033[0m"
separator_line "-"
separator_line "="
content_line "请直接输入你复制的秘钥"
content_line "或输入 0 返回上级菜单"
separator_line "="
@@ -396,7 +396,7 @@ log_pusher() {
separator_line "="
if [ -n "$push_bark" ]; then
content_line "是否确认关闭Bark日志推送"
separator_line "-"
separator_line "="
content_line "1) 是"
content_line "0) 否,返回上级菜单"
separator_line "="
@@ -414,7 +414,7 @@ log_pusher() {
# echo -e "\033[33m详细设置指南请参考 https://juewuy.github.io/ \033[0m"
content_line "\033[33mBark推送仅支持IOS系统其他平台请使用其他推送方式\033[0m"
content_line "\033[32m请安装Bark-IOS客户端并在客户端中找到专属推送链接\033[0m"
separator_line "-"
separator_line "="
content_line "请直接输入你的Bark推送链接"
content_line "或输入 0 返回上级菜单"
separator_line "="
@@ -439,7 +439,7 @@ log_pusher() {
separator_line "="
if [ -n "$push_Po" ]; then
content_line "是否确认关闭Pushover日志推送"
separator_line "-"
separator_line "="
content_line "1) 是"
content_line "0) 否,返回上级菜单"
separator_line "="
@@ -501,7 +501,7 @@ log_pusher() {
separator_line "="
if [ -n "$push_PP" ]; then
content_line "是否确认关闭PushPlus日志推送"
separator_line "-"
separator_line "="
content_line "1) 是"
content_line "0) 否,返回上级菜单"
separator_line "="
@@ -515,7 +515,7 @@ log_pusher() {
else
# echo -e "\033[33m详细设置指南请参考 https://juewuy.github.io/ \033[0m"
content_line "请先通过 \033[32;4mhttps://www.pushplus.plus/push1.html\033[0m 注册账号并获取\033[36mtoken\033[0m"
separator_line "-"
separator_line "="
content_line "请直接输入你的token"
content_line "或输入 0 返回上级菜单"
separator_line "="
@@ -540,7 +540,7 @@ log_pusher() {
if [ -n "$push_SynoChat" ]; then
separator_line "="
content_line "是否确认关闭SynoChat日志推送"
separator_line "-"
separator_line "="
content_line "1) 是"
content_line "0) 否,返回上级菜单"
separator_line "="
@@ -590,7 +590,7 @@ log_pusher() {
separator_line "="
if [ -n "$push_Gotify" ]; then
content_line "是否确认关闭Gotify日志推送"
separator_line "-"
separator_line "="
content_line "1) 是"
content_line "0) 否,返回上级菜单"
separator_line "="
@@ -674,7 +674,7 @@ testcommand() {
separator_line "="
content_line "\033[30;47m这里是测试命令菜单\033[0m"
content_line "\033[33m如遇问题尽量运行相应命令后截图提交issue或TG讨论组\033[0m"
separator_line "-"
separator_line "="
content_line "1) Debug模式运行内核"
content_line "2) 查看系统DNS端口(:53)占用 "
content_line "3) 测试ssl加密(aes-128-gcm)跑分"
@@ -801,7 +801,7 @@ debug() {
content_line "后台运行日志地址:\033[32m$TMPDIR/debug.log\033[0m"
content_line "如长时间运行后台监测日志等级推荐error防止文件过大"
content_line "你亦可通过:\033[33mcrash -s debug 'warning'\033[0m命令使用其他日志等级"
separator_line "-"
separator_line "="
content_line "1) 仅测试\033[32m$config_tmp\033[0m配置文件可用性"
content_line "2) 前台运行\033[32m$config_tmp\033[0m配置文件,不配置防火墙劫持(\033[33m使用Ctrl+C手动停止\033[0m)"
content_line "3) 后台运行完整启动流程,并配置防火墙劫持,日志等级:\033[31merror\033[0m"
@@ -858,7 +858,7 @@ debug() {
line_break
separator_line "="
content_line "频繁写入闪存会导致闪存寿命降低如非遇到会导致设备死机或重启的bug请勿使用此功能"
separator_line "-"
separator_line "="
content_line "是否继续:"
separator_line "-"
content_line "1) 是"