mirror of
https://github.com/tw93/Mole.git
synced 2026-02-13 01:35:15 +00:00
Optimize the display effect
This commit is contained in:
@@ -400,11 +400,13 @@ main() {
|
|||||||
|
|
||||||
# Display active whitelist patterns
|
# Display active whitelist patterns
|
||||||
if [[ ${#CURRENT_WHITELIST_PATTERNS[@]} -gt 0 ]]; then
|
if [[ ${#CURRENT_WHITELIST_PATTERNS[@]} -gt 0 ]]; then
|
||||||
local patterns_list=$(
|
local count=${#CURRENT_WHITELIST_PATTERNS[@]}
|
||||||
local IFS=', '
|
if [[ $count -le 3 ]]; then
|
||||||
echo "${CURRENT_WHITELIST_PATTERNS[*]}"
|
local patterns_list=$(IFS=', '; echo "${CURRENT_WHITELIST_PATTERNS[*]}")
|
||||||
)
|
echo -e "${ICON_ADMIN} Active Whitelist: ${patterns_list}"
|
||||||
echo -e "${ICON_ADMIN} Active Whitelist: ${patterns_list}"
|
else
|
||||||
|
echo -e "${ICON_ADMIN} Active Whitelist: ${GRAY}${count} items${NC}"
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
echo "" # Empty line before sudo prompt
|
echo "" # Empty line before sudo prompt
|
||||||
|
|
||||||
|
|||||||
BIN
bin/status-go
BIN
bin/status-go
Binary file not shown.
@@ -201,7 +201,7 @@ func renderHeader(m MetricsSnapshot, errMsg string, animFrame int, termWidth int
|
|||||||
if errMsg != "" {
|
if errMsg != "" {
|
||||||
return lipgloss.JoinVertical(lipgloss.Left, headerLine, "", mole, dangerStyle.Render(errMsg), "")
|
return lipgloss.JoinVertical(lipgloss.Left, headerLine, "", mole, dangerStyle.Render(errMsg), "")
|
||||||
}
|
}
|
||||||
return headerLine + "\n\n" + mole
|
return headerLine + "\n" + mole
|
||||||
}
|
}
|
||||||
|
|
||||||
func getScoreStyle(score int) lipgloss.Style {
|
func getScoreStyle(score int) lipgloss.Style {
|
||||||
|
|||||||
@@ -127,7 +127,7 @@ EOF
|
|||||||
items+=('recent_items|Recent Items|Clear recent apps/documents/servers lists|true')
|
items+=('recent_items|Recent Items|Clear recent apps/documents/servers lists|true')
|
||||||
items+=('log_cleanup|Diagnostics Cleanup|Purge old diagnostic & crash logs|true')
|
items+=('log_cleanup|Diagnostics Cleanup|Purge old diagnostic & crash logs|true')
|
||||||
items+=('startup_cache|Startup Cache Rebuild|Rebuild kext caches & prelinked kernel|true')
|
items+=('startup_cache|Startup Cache Rebuild|Rebuild kext caches & prelinked kernel|true')
|
||||||
items+=('spotlight_cache_cleanup|Spotlight Cache Cleanup|Clear CoreSpotlight user cache|false')
|
items+=('spotlight_cache_cleanup|Spotlight Cache Cleanup|Clear CoreSpotlight user cache|true')
|
||||||
|
|
||||||
# Output items as JSON
|
# Output items as JSON
|
||||||
local first=true
|
local first=true
|
||||||
|
|||||||
Reference in New Issue
Block a user