Add 3 files
Browse files- README.md +7 -5
- index.html +229 -19
- prompts.txt +1 -0
README.md
CHANGED
|
@@ -1,10 +1,12 @@
|
|
| 1 |
---
|
| 2 |
-
title:
|
| 3 |
-
emoji:
|
| 4 |
-
colorFrom:
|
| 5 |
-
colorTo:
|
| 6 |
sdk: static
|
| 7 |
pinned: false
|
|
|
|
|
|
|
| 8 |
---
|
| 9 |
|
| 10 |
-
Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
|
|
|
|
| 1 |
---
|
| 2 |
+
title: unm
|
| 3 |
+
emoji: 🐳
|
| 4 |
+
colorFrom: gray
|
| 5 |
+
colorTo: green
|
| 6 |
sdk: static
|
| 7 |
pinned: false
|
| 8 |
+
tags:
|
| 9 |
+
- deepsite
|
| 10 |
---
|
| 11 |
|
| 12 |
+
Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
|
index.html
CHANGED
|
@@ -1,19 +1,229 @@
|
|
| 1 |
-
<!
|
| 2 |
-
<html>
|
| 3 |
-
|
| 4 |
-
|
| 5 |
-
|
| 6 |
-
|
| 7 |
-
|
| 8 |
-
|
| 9 |
-
|
| 10 |
-
|
| 11 |
-
|
| 12 |
-
|
| 13 |
-
|
| 14 |
-
|
| 15 |
-
|
| 16 |
-
|
| 17 |
-
|
| 18 |
-
|
| 19 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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>
|
| 6 |
+
<link rel="shortcut icon" href="./favicon.png" type="image/x-icon" />
|
| 7 |
+
<script src="https://cdn.tailwindcss.com"></script>
|
| 8 |
+
<script>
|
| 9 |
+
tailwind.config = {
|
| 10 |
+
darkMode: 'class',
|
| 11 |
+
}
|
| 12 |
+
</script>
|
| 13 |
+
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css" />
|
| 14 |
+
<style>
|
| 15 |
+
@keyframes float {
|
| 16 |
+
0% { transform: translateY(0px); }
|
| 17 |
+
50% { transform: translateY(-15px); }
|
| 18 |
+
100% { transform: translateY(0px); }
|
| 19 |
+
}
|
| 20 |
+
|
| 21 |
+
.floating {
|
| 22 |
+
animation: float 6s ease-in-out infinite;
|
| 23 |
+
}
|
| 24 |
+
|
| 25 |
+
.btn-hover-effect {
|
| 26 |
+
transition: all 0.3s ease;
|
| 27 |
+
transform: translateY(0);
|
| 28 |
+
}
|
| 29 |
+
|
| 30 |
+
.btn-hover-effect:hover {
|
| 31 |
+
transform: translateY(-3px);
|
| 32 |
+
box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
|
| 33 |
+
}
|
| 34 |
+
|
| 35 |
+
.social-icon {
|
| 36 |
+
transition: all 0.3s ease;
|
| 37 |
+
}
|
| 38 |
+
|
| 39 |
+
.social-icon:hover {
|
| 40 |
+
transform: scale(1.2);
|
| 41 |
+
}
|
| 42 |
+
|
| 43 |
+
.dark .logo-shadow {
|
| 44 |
+
filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.2));
|
| 45 |
+
}
|
| 46 |
+
|
| 47 |
+
.logo-shadow {
|
| 48 |
+
filter: drop-shadow(0 0 10px rgba(0, 0, 0, 0.1));
|
| 49 |
+
}
|
| 50 |
+
|
| 51 |
+
.fade-in {
|
| 52 |
+
animation: fadeIn 1s ease-in;
|
| 53 |
+
}
|
| 54 |
+
|
| 55 |
+
@keyframes fadeIn {
|
| 56 |
+
from { opacity: 0; }
|
| 57 |
+
to { opacity: 1; }
|
| 58 |
+
}
|
| 59 |
+
|
| 60 |
+
.glow-text {
|
| 61 |
+
text-shadow: 0 0 5px rgba(0, 0, 0, 0.2);
|
| 62 |
+
}
|
| 63 |
+
|
| 64 |
+
.dark .glow-text {
|
| 65 |
+
text-shadow: 0 0 5px rgba(255, 255, 255, 0.2);
|
| 66 |
+
}
|
| 67 |
+
</style>
|
| 68 |
+
</head>
|
| 69 |
+
|
| 70 |
+
<body class="bg-white dark:bg-gray-900 text-gray-900 dark:text-gray-100 transition-colors duration-500 min-h-screen flex flex-col">
|
| 71 |
+
<main class="flex-grow flex flex-col items-center justify-center px-4 py-8 fade-in">
|
| 72 |
+
<div class="ico mb-12 floating">
|
| 73 |
+
<img src="./favicon.png" alt="logo" class="w-48 h-48 md:w-64 md:h-64 logo-shadow">
|
| 74 |
+
</div>
|
| 75 |
+
|
| 76 |
+
<h1 class="title text-4xl md:text-5xl font-bold mb-6 text-center glow-text">
|
| 77 |
+
UNM-Server
|
| 78 |
+
</h1>
|
| 79 |
+
|
| 80 |
+
<p class="text text-lg md:text-xl text-center max-w-2xl mx-auto mb-12 text-gray-600 dark:text-gray-300">
|
| 81 |
+
服务已正常运行, 请在SPlayer的".env"配置文件中添加当前网站的域名使用歌曲解灰服务
|
| 82 |
+
</p>
|
| 83 |
+
|
| 84 |
+
<div class="control flex flex-wrap justify-center gap-4 mb-16">
|
| 85 |
+
<button id="apiTestBtn" class="btn-hover-effect px-6 py-3 bg-white dark:bg-gray-800 border-2 border-gray-800 dark:border-gray-200 rounded-lg font-medium flex items-center hover:bg-gray-800 hover:text-white dark:hover:bg-gray-200 dark:hover:text-gray-900">
|
| 86 |
+
<i class="fas fa-flask mr-2"></i>
|
| 87 |
+
<span>API 测试</span>
|
| 88 |
+
</button>
|
| 89 |
+
|
| 90 |
+
<button id="apiDocsBtn" class="btn-hover-effect px-6 py-3 bg-white dark:bg-gray-800 border-2 border-gray-800 dark:border-gray-200 rounded-lg font-medium flex items-center hover:bg-gray-800 hover:text-white dark:hover:bg-gray-200 dark:hover:text-gray-900">
|
| 91 |
+
<i class="fas fa-book mr-2"></i>
|
| 92 |
+
<span>API 文档</span>
|
| 93 |
+
</button>
|
| 94 |
+
|
| 95 |
+
<button id="toggleDarkMode" class="btn-hover-effect px-6 py-3 bg-white dark:bg-gray-800 border-2 border-gray-800 dark:border-gray-200 rounded-lg font-medium flex items-center hover:bg-gray-800 hover:text-white dark:hover:bg-gray-200 dark:hover:text-gray-900">
|
| 96 |
+
<i id="darkModeIcon" class="fas fa-moon mr-2"></i>
|
| 97 |
+
<span>暗黑模式</span>
|
| 98 |
+
</button>
|
| 99 |
+
</div>
|
| 100 |
+
|
| 101 |
+
<div class="status-card bg-gray-100 dark:bg-gray-800 p-6 rounded-xl shadow-md max-w-2xl w-full mb-12">
|
| 102 |
+
<div class="flex items-center mb-4">
|
| 103 |
+
<div class="w-3 h-3 rounded-full bg-green-500 mr-3 animate-pulse"></div>
|
| 104 |
+
<h3 class="font-semibold text-lg">服务状态</h3>
|
| 105 |
+
</div>
|
| 106 |
+
<div class="grid grid-cols-1 md:grid-cols-3 gap-4">
|
| 107 |
+
<div class="bg-white dark:bg-gray-700 p-4 rounded-lg shadow">
|
| 108 |
+
<p class="text-sm text-gray-500 dark:text-gray-300 mb-1">API 响应</p>
|
| 109 |
+
<p class="font-medium" id="apiResponseTime">测试中...</p>
|
| 110 |
+
</div>
|
| 111 |
+
<div class="bg-white dark:bg-gray-700 p-4 rounded-lg shadow">
|
| 112 |
+
<p class="text-sm text-gray-500 dark:text-gray-300 mb-1">服务器负载</p>
|
| 113 |
+
<p class="font-medium" id="serverLoad">测试中...</p>
|
| 114 |
+
</div>
|
| 115 |
+
<div class="bg-white dark:bg-gray-700 p-4 rounded-lg shadow">
|
| 116 |
+
<p class="text-sm text-gray-500 dark:text-gray-300 mb-1">在线用户</p>
|
| 117 |
+
<p class="font-medium" id="onlineUsers">测试中...</p>
|
| 118 |
+
</div>
|
| 119 |
+
</div>
|
| 120 |
+
</div>
|
| 121 |
+
</main>
|
| 122 |
+
|
| 123 |
+
<footer class="py-8 border-t border-gray-200 dark:border-gray-700">
|
| 124 |
+
<div class="container mx-auto px-4">
|
| 125 |
+
<div class="social flex justify-center mb-6">
|
| 126 |
+
<a href="#" class="mx-4 social-icon text-gray-600 dark:text-gray-300 hover:text-gray-900 dark:hover:text-white">
|
| 127 |
+
<i class="fab fa-github text-2xl"></i>
|
| 128 |
+
</a>
|
| 129 |
+
<a href="#" class="mx-4 social-icon text-gray-600 dark:text-gray-300 hover:text-gray-900 dark:hover:text-white">
|
| 130 |
+
<i class="fas fa-home text-2xl"></i>
|
| 131 |
+
</a>
|
| 132 |
+
<a href="#" class="mx-4 social-icon text-gray-600 dark:text-gray-300 hover:text-gray-900 dark:hover:text-white">
|
| 133 |
+
<i class="fas fa-envelope text-2xl"></i>
|
| 134 |
+
</a>
|
| 135 |
+
</div>
|
| 136 |
+
|
| 137 |
+
<div class="text-center text-gray-500 dark:text-gray-400 mb-2">
|
| 138 |
+
Copyright © 2020-2025 imsyy
|
| 139 |
+
</div>
|
| 140 |
+
|
| 141 |
+
<div class="text-center text-gray-500 dark:text-gray-400">
|
| 142 |
+
Powered by <span class="font-medium text-gray-700 dark:text-gray-200">UNM-Server</span>
|
| 143 |
+
</div>
|
| 144 |
+
</div>
|
| 145 |
+
</footer>
|
| 146 |
+
|
| 147 |
+
<script>
|
| 148 |
+
// Dark mode toggle
|
| 149 |
+
const toggleDarkMode = document.getElementById('toggleDarkMode');
|
| 150 |
+
const darkModeIcon = document.getElementById('darkModeIcon');
|
| 151 |
+
|
| 152 |
+
// Check for saved user preference or use system preference
|
| 153 |
+
if (localStorage.getItem('darkMode') === 'true' ||
|
| 154 |
+
(!localStorage.getItem('darkMode') && window.matchMedia('(prefers-color-scheme: dark)').matches)) {
|
| 155 |
+
document.documentElement.classList.add('dark');
|
| 156 |
+
darkModeIcon.classList.replace('fa-moon', 'fa-sun');
|
| 157 |
+
}
|
| 158 |
+
|
| 159 |
+
toggleDarkMode.addEventListener('click', () => {
|
| 160 |
+
document.documentElement.classList.toggle('dark');
|
| 161 |
+
|
| 162 |
+
if (document.documentElement.classList.contains('dark')) {
|
| 163 |
+
darkModeIcon.classList.replace('fa-moon', 'fa-sun');
|
| 164 |
+
localStorage.setItem('darkMode', 'true');
|
| 165 |
+
} else {
|
| 166 |
+
darkModeIcon.classList.replace('fa-sun', 'fa-moon');
|
| 167 |
+
localStorage.setItem('darkMode', 'false');
|
| 168 |
+
}
|
| 169 |
+
});
|
| 170 |
+
|
| 171 |
+
// API Test Button
|
| 172 |
+
document.getElementById('apiTestBtn').addEventListener('click', () => {
|
| 173 |
+
// Simulate API test
|
| 174 |
+
document.getElementById('apiResponseTime').textContent = '23ms';
|
| 175 |
+
document.getElementById('serverLoad').textContent = '12%';
|
| 176 |
+
document.getElementById('onlineUsers').textContent = '142';
|
| 177 |
+
|
| 178 |
+
// Show notification
|
| 179 |
+
showNotification('API 测试成功', '所有接口运行正常', 'success');
|
| 180 |
+
});
|
| 181 |
+
|
| 182 |
+
// API Docs Button
|
| 183 |
+
document.getElementById('apiDocsBtn').addEventListener('click', () => {
|
| 184 |
+
// In a real implementation, this would open your API docs
|
| 185 |
+
showNotification('文档即将打开', '正在跳转到API文档页面', 'info');
|
| 186 |
+
// window.open('https://your-api-docs-url');
|
| 187 |
+
});
|
| 188 |
+
|
| 189 |
+
// Notification function
|
| 190 |
+
function showNotification(title, message, type) {
|
| 191 |
+
const notification = document.createElement('div');
|
| 192 |
+
notification.className = `fixed top-4 right-4 z-50 px-6 py-4 rounded-lg shadow-lg flex items-start transform transition-all duration-300 translate-x-0 opacity-100 ${type === 'success' ? 'bg-green-100 dark:bg-green-900 text-green-800 dark:text-green-100' : 'bg-blue-100 dark:bg-blue-900 text-blue-800 dark:text-blue-100'}`;
|
| 193 |
+
|
| 194 |
+
const icon = document.createElement('i');
|
| 195 |
+
icon.className = type === 'success' ? 'fas fa-check-circle mr-3 text-xl' : 'fas fa-info-circle mr-3 text-xl';
|
| 196 |
+
|
| 197 |
+
const content = document.createElement('div');
|
| 198 |
+
const titleEl = document.createElement('h4');
|
| 199 |
+
titleEl.className = 'font-bold';
|
| 200 |
+
titleEl.textContent = title;
|
| 201 |
+
|
| 202 |
+
const messageEl = document.createElement('p');
|
| 203 |
+
messageEl.className = 'text-sm';
|
| 204 |
+
messageEl.textContent = message;
|
| 205 |
+
|
| 206 |
+
content.appendChild(titleEl);
|
| 207 |
+
content.appendChild(messageEl);
|
| 208 |
+
|
| 209 |
+
notification.appendChild(icon);
|
| 210 |
+
notification.appendChild(content);
|
| 211 |
+
|
| 212 |
+
document.body.appendChild(notification);
|
| 213 |
+
|
| 214 |
+
// Auto remove after 5 seconds
|
| 215 |
+
setTimeout(() => {
|
| 216 |
+
notification.classList.add('translate-x-full', 'opacity-0');
|
| 217 |
+
setTimeout(() => notification.remove(), 300);
|
| 218 |
+
}, 5000);
|
| 219 |
+
}
|
| 220 |
+
|
| 221 |
+
// Simulate initial status check
|
| 222 |
+
setTimeout(() => {
|
| 223 |
+
document.getElementById('apiResponseTime').textContent = '18ms';
|
| 224 |
+
document.getElementById('serverLoad').textContent = '8%';
|
| 225 |
+
document.getElementById('onlineUsers').textContent = '87';
|
| 226 |
+
}, 1500);
|
| 227 |
+
</script>
|
| 228 |
+
<p style="border-radius: 8px; text-align: center; font-size: 12px; color: #fff; margin-top: 16px;position: fixed; left: 8px; bottom: 8px; z-index: 10; background: rgba(0, 0, 0, 0.8); padding: 4px 8px;">Made with <img src="https://enzostvs-deepsite.hf.space/logo.svg" alt="DeepSite Logo" style="width: 16px; height: 16px; vertical-align: middle;display:inline-block;margin-right:3px;filter:brightness(0) invert(1);"><a href="https://enzostvs-deepsite.hf.space" style="color: #fff;text-decoration: underline;" target="_blank" >DeepSite</a> - 🧬 <a href="https://enzostvs-deepsite.hf.space?remix=ixingchen/unm" style="color: #fff;text-decoration: underline;" target="_blank" >Remix</a></p></body>
|
| 229 |
+
</html>
|
prompts.txt
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
页面更美观高级大气上档次,符合项目,对应的交互动画icon,科技感,卡片风格
|