日记

2026年2月5日

lets( /* Check if all main content fields are empty */ allEmpty, empty(今日行动) and empty(今日心情) and empty(专注时长), /* Format duration from minutes to readable format */ durationText, if(专注时长 >= 60, format(floor(专注时长 / 60)) + "h " + format(mod(专注时长, 60)) + "min", format(专注时长) + " min" ), /* Build the header with date */ header, style("今日行动汇总 | " + formatDate(日期, "YYYY-MM-DD"), "b", "purple") + "\n" + style("━━━━━━━━━━━━━━━━━━━━", "gray"), /* Show appropriate content */ content, if(allEmpty, /* Show motivational message based on time */ if(hour(now()) < 23, style("🚀 新的一天 满电出发", "gray"), style("😴 今日摸鱼 明日再战", "gray") ), /* Show filled fields with formatting */ (if(not empty(今日心情), "\n\n♥ " + style("今日心情", "b") + "\n" + 今日心情, "" )) + (if(not empty(今日行动), "\n\n📋 " + style("今日行动", "b") + "\n" + 今日行动, "" )) + (if(not empty(专注时长), "\n\n⏳ " + style("专注时长", "b") + "\n" + style(durationText, "b", "purple"), "" )) ), /* Combine header and content */ header + "\n" + content )