白露/Mcp server
服务介绍
function getCurrentTheme() {
var cookieTheme = getCookieTheme();
var savedTheme = localStorage.getItem('theme');
// 优先使用 cookie 中的 theme
if (cookieTheme) {
// 如果 localStorage 里没有,就补回去
if (!savedTheme) {
localStorage.setItem('theme', cookieTheme);
}
return cookieTheme;
}
// 如果 cookie 中没有 theme,则使用 localStorage 中的 theme
savedTheme = savedTheme && ['light', 'dark', 'system'].includes(savedTheme) ? savedTheme : 'system'; // 默认跟随系统
return savedTheme;
}
var savedTheme = getCurrentTheme();
// 检测系统是否为暗黑模式
function isSystemDarkMode() {
return window.matchMedia && window.matchMedia('(prefers-color-scheme: dark)').matches;
}
if (savedTheme === 'system') {
// 系统模式:移除覆盖类,让CSS媒体查询自动处理
document.documentElement.classList.remove('dark-mode-override');
document.documentElement.classList.remove('dark-mode');
} else {
// 手动模式:添加覆盖类,禁用媒体查询
document.documentElement.classList.add('dark-mode-override');
if (savedTheme === 'dark') {
document.documentElement.classList.add('dark-mode');
} else {
document.documentElement.classList.remove('dark-mode');
}
}
})();
}).call(this);
}).call(this);
1
Star
0
$('.js-project-watch').dropdown('set selected', watch_type);
$('.checkbox.sync-wiki').checkbox();
$('.checkbox.sync-prune').checkbox();
$('.checkbox.team-member-checkbox').checkbox();
$('.project-closed-label').popup({
popup: '.project-closed-popup',
position: 'top center',
hoverable: true,
});
.git-project-nav .dropdown .menu.hidden:after {
visibility: hidden !important;
}
Gitee.modalHelper = new GiteeModalHelper({
alertText: '提示',
okText: '确定'
});
donateModal = new ProjectDonateModal({
el: '#project-donate-modal',
alipayUrl: '/bailulumajingxuan/mcp-server/alipay',
wepayUrl: '/bailulumajingxuan/mcp-server/wepay',
nameIsBlank: '名称不能为空',
nameTooLong: '名称过长(最多为 36 个字符)',
modalHelper: Gitee.modalHelper
});
if (null === 'true') {
donateModal.show();
}
$('#project-donate').on('click', function() {
return donateModal.show();
});
}).call(this);
$(function() {
if (false) {
$helpSideToolbar.popup(opt).popup({lastResort:'left center'})
} else {
$helpSideToolbar.popup({lastResort:'left center'}).popup('show', opt);
setTimeout(function() {
$helpSideToolbar.popup('hide', opt);
}, 3000);
}
if ($toolbarRoll.length) {
setInterval(function() {
var $nextActiveLink = $toolbarRoll.find('a.active').next();
if (!$nextActiveLink.length) {
$nextActiveLink = $toolbarRoll.find('a:first-child');
}
$nextActiveLink.attr('class', 'active').siblings().removeClass('active init');
}, 5000);
}
})
$elm.on('click', function() {
var modals = $("#unlanding-complaint-modal.normal-modal");
if (modals.length > 1) {
modals.eq(0).modal('show');
} else {
modals.modal('show');
}
})
$("#unlanding-complaint-modal.normal-modal").modal({
onDeny: function() {
window.location.href = "/signup?from=";
},
onApprove: function() {
window.location.href = "/login?from=";
}
})