update 2025-01-05 00:22:12

This commit is contained in:
kenzok8 2025-01-05 00:22:12 +08:00
parent 78432d1801
commit b75e45b0a1

View File

@ -232,6 +232,7 @@ function createCronScript() {
LOG_FILE="$log_file"
TMP_LOG_FILE="$tmp_log_file"
ADDITIONAL_LOG_FILE="$additional_log_file"
MAX_SIZE=$max_size
crontab -l | grep -v "/etc/neko/core/set_cron.sh" | crontab -
@ -914,8 +915,8 @@ window.onload = function() {
};
</script>
<div id="collapsibleHeader" style="cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: center;">
<i id="toggleIcon" class="bi bi-chevron-down" style="font-size: 3rem; margin-bottom: 3px;"></i>
<h2 id="systemTitle" class="text-center" style="display: none; margin-top: 0;">系统状态</h2>
<i id="toggleIcon" class="triangle-icon"></i>
<h2 id="systemTitle" class="text-center" style="display: none; margin-top: 0;">系统状态</h2>
</div>
<div id="collapsible" style="display: none; margin-top: 5px;">
@ -944,6 +945,7 @@ window.onload = function() {
</tbody>
</table>
</div>
<script>
const collapsible = document.getElementById('collapsible');
const collapsibleHeader = document.getElementById('collapsibleHeader');
@ -951,20 +953,26 @@ window.onload = function() {
const systemTitle = document.getElementById('systemTitle');
let isCollapsed = true;
if (localStorage.getItem('isCollapsed') === 'false') {
isCollapsed = false;
collapsible.style.display = 'block';
systemTitle.style.display = 'block';
toggleIcon.classList.add('rotated');
}
collapsibleHeader.addEventListener('click', () => {
if (isCollapsed) {
collapsible.style.display = 'block';
systemTitle.style.display = 'block';
toggleIcon.classList.remove('bi-chevron-down');
toggleIcon.classList.add('bi-chevron-up');
toggleIcon.classList.add('rotated');
} else {
collapsible.style.display = 'none';
systemTitle.style.display = 'none';
toggleIcon.classList.remove('bi-chevron-up');
toggleIcon.classList.add('bi-chevron-down');
toggleIcon.classList.remove('rotated');
}
isCollapsed = !isCollapsed;
localStorage.setItem('isCollapsed', isCollapsed);
});
function fetchSystemStatus() {
@ -984,6 +992,23 @@ window.onload = function() {
setInterval(fetchSystemStatus, 1000);
fetchSystemStatus();
</script>
<style>
.triangle-icon {
width: 0;
height: 0;
border-left: 12px solid transparent;
border-right: 12px solid transparent;
border-top: 12px solid blue;
display: inline-block;
transition: transform 0.3s ease-in-out;
}
.rotated {
transform: rotate(180deg);
}
</style>
<h2 class="text-center">日志</h2>
<ul class="nav nav-pills mb-3" id="logTabs" role="tablist">
<li class="nav-item" role="presentation">