mirror of
https://github.com/NeteaseCloudMusicApiEnhanced/api-enhanced.git
synced 2026-10-22 23:51:23 +08:00
feat: 新增评论举报接口 && bump 4.32.1
This commit is contained in:
+83
-1
@@ -9,7 +9,50 @@
|
||||
<meta name="description" content="Description">
|
||||
<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
|
||||
<meta name="referrer" content="never">
|
||||
<link rel="stylesheet" href="//unpkg.com/docsify/lib/themes/vue.css">
|
||||
<link rel="stylesheet" href="//unpkg.com/docsify/lib/themes/vue.css" id="theme-css">
|
||||
<style>
|
||||
.theme-toggle {
|
||||
position: fixed;
|
||||
bottom: 24px;
|
||||
right: 24px;
|
||||
z-index: 999;
|
||||
width: 44px;
|
||||
height: 44px;
|
||||
border-radius: 50%;
|
||||
border: 1px solid rgba(255,255,255,0.1);
|
||||
background: rgba(30,30,46,0.75);
|
||||
backdrop-filter: blur(12px);
|
||||
-webkit-backdrop-filter: blur(12px);
|
||||
color: #fff;
|
||||
font-size: 20px;
|
||||
cursor: pointer;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
box-shadow: 0 2px 12px rgba(0,0,0,0.15);
|
||||
transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
|
||||
outline: none;
|
||||
padding: 0;
|
||||
line-height: 1;
|
||||
user-select: none;
|
||||
}
|
||||
.theme-toggle:hover {
|
||||
transform: scale(1.12) rotate(12deg);
|
||||
box-shadow: 0 4px 20px rgba(0,0,0,0.25);
|
||||
}
|
||||
.theme-toggle:active {
|
||||
transform: scale(0.92);
|
||||
}
|
||||
.theme-toggle.light {
|
||||
background: rgba(255,255,255,0.85);
|
||||
color: #333;
|
||||
border-color: rgba(0,0,0,0.08);
|
||||
}
|
||||
html, body, .sidebar, .content, .markdown-section,
|
||||
.sidebar-nav, .search, .docsify-pagination-container {
|
||||
transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
|
||||
}
|
||||
</style>
|
||||
<script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
|
||||
<script>
|
||||
(adsbygoogle = window.adsbygoogle || []).push({
|
||||
@@ -20,7 +63,46 @@
|
||||
</head>
|
||||
<body>
|
||||
<div id="app"></div>
|
||||
<button class="theme-toggle" id="themeToggle" aria-label="Toggle theme">🌙</button>
|
||||
</body>
|
||||
<script>
|
||||
(function() {
|
||||
var STORAGE_KEY = 'docsify-theme';
|
||||
var link = document.getElementById('theme-css');
|
||||
var btn = document.getElementById('themeToggle');
|
||||
var LIGHT_URL = '//unpkg.com/docsify/lib/themes/vue.css';
|
||||
var DARK_URL = '//unpkg.com/docsify/lib/themes/dark.css';
|
||||
|
||||
function setTheme(theme) {
|
||||
link.href = theme === 'dark' ? DARK_URL : LIGHT_URL;
|
||||
btn.textContent = theme === 'dark' ? '☀️' : '🌙';
|
||||
btn.className = 'theme-toggle' + (theme === 'dark' ? '' : ' light');
|
||||
localStorage.setItem(STORAGE_KEY, theme);
|
||||
}
|
||||
|
||||
function toggleTheme() {
|
||||
var isDark = link.href.includes('dark');
|
||||
setTheme(isDark ? 'light' : 'dark');
|
||||
}
|
||||
|
||||
var saved = localStorage.getItem(STORAGE_KEY);
|
||||
if (saved) {
|
||||
setTheme(saved);
|
||||
} else if (window.matchMedia('(prefers-color-scheme: dark)').matches) {
|
||||
setTheme('dark');
|
||||
}
|
||||
|
||||
btn.addEventListener('click', toggleTheme);
|
||||
|
||||
try {
|
||||
window.matchMedia('(prefers-color-scheme: dark)').addEventListener('change', function(e) {
|
||||
if (!localStorage.getItem(STORAGE_KEY)) {
|
||||
setTheme(e.matches ? 'dark' : 'light');
|
||||
}
|
||||
});
|
||||
} catch(e) {}
|
||||
})();
|
||||
</script>
|
||||
<script>
|
||||
window.$docsify = {
|
||||
name: '网易云音乐 API Enhanced',
|
||||
|
||||
Reference in New Issue
Block a user