306 lines
11 KiB
HTML
306 lines
11 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="zh-CN">
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<title>关于 & 鸣谢</title>
|
|
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0-beta3/css/all.min.css">
|
|
<link rel="stylesheet" href="./css/style.css">
|
|
<style>
|
|
/* --- 覆盖基础样式以适应独立窗口 --- */
|
|
html, body {
|
|
overflow: hidden;
|
|
background-color: transparent !important;
|
|
font-family: var(--font-family);
|
|
color: var(--text-color);
|
|
margin: 0;
|
|
padding: 5px; /* 留出阴影空间 */
|
|
height: 100vh;
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
/* 继承主程序的玻璃框架 */
|
|
.ack-glass-frame {
|
|
display: flex;
|
|
flex-direction: column;
|
|
height: 100%;
|
|
width: 100%;
|
|
background: rgba(var(--card-background-rgb), 0.90);
|
|
backdrop-filter: blur(40px) saturate(180%);
|
|
border-radius: 20px;
|
|
border: 1px solid rgba(255, 255, 255, 0.1);
|
|
box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
|
|
overflow: hidden;
|
|
position: relative;
|
|
}
|
|
|
|
/* 顶部标题栏 */
|
|
.ack-header {
|
|
height: 50px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
padding: 0 20px;
|
|
background: linear-gradient(to bottom, rgba(var(--bg-color-rgb), 0.5), transparent);
|
|
border-bottom: 1px solid rgba(128, 128, 128, 0.1);
|
|
-webkit-app-region: drag;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.ack-title {
|
|
font-size: 16px;
|
|
font-weight: 700;
|
|
background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
|
|
-webkit-background-clip: text;
|
|
background-clip: text;
|
|
-webkit-text-fill-color: transparent;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 10px;
|
|
}
|
|
|
|
.window-controls-btn {
|
|
width: 24px;
|
|
height: 24px;
|
|
border-radius: 50%;
|
|
border: none;
|
|
background: rgba(128, 128, 128, 0.1);
|
|
color: var(--text-secondary);
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
cursor: pointer;
|
|
transition: all 0.2s;
|
|
-webkit-app-region: no-drag;
|
|
}
|
|
.window-controls-btn:hover {
|
|
background: var(--error-color);
|
|
color: white;
|
|
transform: rotate(90deg);
|
|
}
|
|
|
|
/* 内容滚动区 */
|
|
.ack-content {
|
|
flex-grow: 1;
|
|
overflow-y: auto;
|
|
padding: 20px;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 20px;
|
|
}
|
|
|
|
.ack-content::-webkit-scrollbar { width: 4px; }
|
|
.ack-content::-webkit-scrollbar-thumb { background: var(--border-color); border-radius: 2px; }
|
|
|
|
/* 分组标题 */
|
|
.section-label {
|
|
font-size: 12px;
|
|
font-weight: 800;
|
|
color: var(--text-secondary);
|
|
text-transform: uppercase;
|
|
letter-spacing: 1px;
|
|
margin-bottom: 10px;
|
|
padding-left: 5px;
|
|
opacity: 0.8;
|
|
}
|
|
|
|
/* 灵动岛卡片 */
|
|
.island-link-card {
|
|
display: flex;
|
|
align-items: center;
|
|
background: rgba(var(--bg-color-rgb), 0.5);
|
|
border: 1px solid var(--border-color);
|
|
border-radius: 16px;
|
|
padding: 15px;
|
|
cursor: pointer;
|
|
transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
|
|
position: relative;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.island-link-card:hover {
|
|
transform: translateY(-3px);
|
|
background: rgba(var(--card-background-rgb), 0.8);
|
|
border-color: rgba(var(--primary-rgb), 0.4);
|
|
box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
|
|
}
|
|
|
|
.island-icon {
|
|
width: 40px;
|
|
height: 40px;
|
|
border-radius: 12px;
|
|
background: rgba(var(--primary-rgb), 0.1);
|
|
color: var(--primary-color);
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
font-size: 20px;
|
|
margin-right: 15px;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.island-text {
|
|
flex-grow: 1;
|
|
}
|
|
.island-text h4 { margin: 0 0 4px 0; font-size: 15px; color: var(--text-color); }
|
|
.island-text p { margin: 0; font-size: 12px; color: var(--text-secondary); opacity: 0.8; }
|
|
|
|
.island-arrow {
|
|
color: var(--text-secondary);
|
|
opacity: 0.5;
|
|
transition: transform 0.3s;
|
|
}
|
|
.island-link-card:hover .island-arrow {
|
|
opacity: 1;
|
|
color: var(--primary-color);
|
|
transform: translateX(3px);
|
|
}
|
|
|
|
/* 环境信息列表 */
|
|
.env-list {
|
|
background: rgba(var(--bg-color-rgb), 0.3);
|
|
border-radius: 16px;
|
|
padding: 10px;
|
|
border: 1px solid var(--border-color);
|
|
}
|
|
|
|
.env-item {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
padding: 10px;
|
|
font-size: 13px;
|
|
border-bottom: 1px dashed var(--border-color);
|
|
}
|
|
.env-item:last-child { border-bottom: none; }
|
|
.env-key { color: var(--text-secondary); font-weight: 600; }
|
|
.env-val { color: var(--text-color); font-family: 'Consolas', monospace; }
|
|
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<div class="ack-glass-frame">
|
|
<div class="ack-header">
|
|
<div class="ack-title">
|
|
<i class="fas fa-feather-alt"></i> 关于 & 鸣谢
|
|
</div>
|
|
<button id="close-btn" class="window-controls-btn" title="关闭">
|
|
<i class="fas fa-times"></i>
|
|
</button>
|
|
</div>
|
|
|
|
<div class="ack-content">
|
|
|
|
<div>
|
|
<div class="section-label">核心数据源 (Data Providers)</div>
|
|
<div style="display: flex; flex-direction: column; gap: 10px;">
|
|
|
|
<div class="island-link-card ripple" id="suyan-api-link">
|
|
<div class="island-icon"><i class="fas fa-server"></i></div>
|
|
<div class="island-text">
|
|
<h4>素颜 API</h4>
|
|
<p>稳定高效的综合数据接口服务</p>
|
|
</div>
|
|
<i class="fas fa-chevron-right island-arrow"></i>
|
|
</div>
|
|
|
|
<div class="island-link-card ripple" id="uapipro-link">
|
|
<div class="island-icon"><i class="fas fa-cogs"></i></div>
|
|
<div class="island-text">
|
|
<h4>UApiPro</h4>
|
|
<p>专业的企业级 API 解决方案</p>
|
|
</div>
|
|
<i class="fas fa-chevron-right island-arrow"></i>
|
|
</div>
|
|
|
|
<div class="island-link-card ripple" id="nsuuu-api-link">
|
|
<div class="island-icon"><i class="fas fa-cloud-sun"></i></div>
|
|
<div class="island-text">
|
|
<h4>鸭梨 API</h4>
|
|
<p>精准的天气与生活服务数据支持</p>
|
|
</div>
|
|
<i class="fas fa-chevron-right island-arrow"></i>
|
|
</div>
|
|
|
|
<div class="island-link-card ripple" id="milora-api-link">
|
|
<div class="island-icon"><i class="fas fa-network-wired"></i></div>
|
|
<div class="island-text">
|
|
<h4>MiloraAPI</h4>
|
|
<p>优质的数据接口服务支持</p>
|
|
</div>
|
|
<i class="fas fa-chevron-right island-arrow"></i>
|
|
</div>
|
|
|
|
<div class="island-link-card ripple" id="pear-api-link">
|
|
<div class="island-icon"><i class="fas fa-project-diagram"></i></div>
|
|
<div class="island-text">
|
|
<h4>PearAPI</h4>
|
|
<p>多功能聚合数据接口</p>
|
|
</div>
|
|
<i class="fas fa-chevron-right island-arrow"></i>
|
|
</div>
|
|
|
|
</div>
|
|
</div>
|
|
|
|
<div id="env-section" style="display: none;">
|
|
<div class="section-label">运行环境 (Runtime Info)</div>
|
|
<div id="env-list" class="env-list">
|
|
</div>
|
|
</div>
|
|
|
|
</div>
|
|
</div>
|
|
|
|
<script>
|
|
const urlParams = new URLSearchParams(window.location.search);
|
|
const theme = urlParams.get('theme') || 'dark';
|
|
document.body.setAttribute('data-theme', theme);
|
|
|
|
document.getElementById('close-btn').addEventListener('click', () => window.electronAPI.closeCurrentWindow());
|
|
|
|
// 绑定鸣谢链接
|
|
const openLink = (url) => window.electronAPI.openExternalLink(url);
|
|
document.getElementById('suyan-api-link').addEventListener('click', () => openLink('https://api.suyanw.cn'));
|
|
document.getElementById('uapipro-link').addEventListener('click', () => openLink('http://uapis.cn'));
|
|
document.getElementById('nsuuu-api-link').addEventListener('click', () => openLink('https://api.nsuuu.com'));
|
|
document.getElementById('milora-api-link').addEventListener('click', () => openLink('https://api.milorapart.top'));
|
|
document.getElementById('pear-api-link').addEventListener('click', () => openLink('https://api.pearktrue.cn'));
|
|
|
|
// 渲染环境信息
|
|
try {
|
|
const versionsString = urlParams.get('versions');
|
|
if (versionsString && versionsString !== '{}') {
|
|
const versions = JSON.parse(versionsString);
|
|
const container = document.getElementById('env-list');
|
|
const section = document.getElementById('env-section');
|
|
|
|
let html = '';
|
|
const formatKey = (k) => k.charAt(0).toUpperCase() + k.slice(1);
|
|
|
|
// 优先展示
|
|
const priority = ['app_version', 'electron', 'node', 'chromium'];
|
|
|
|
priority.forEach(key => {
|
|
if (versions[key]) {
|
|
html += `<div class="env-item"><span class="env-key">${formatKey(key)}</span><span class="env-val">${versions[key]}</span></div>`;
|
|
}
|
|
});
|
|
|
|
// 其他信息
|
|
for (const [key, value] of Object.entries(versions)) {
|
|
if (!priority.includes(key) && key !== 'last_checked_date' && value) {
|
|
html += `<div class="env-item"><span class="env-key">${formatKey(key)}</span><span class="env-val">${value}</span></div>`;
|
|
}
|
|
}
|
|
|
|
if (html) {
|
|
container.innerHTML = html;
|
|
section.style.display = 'block';
|
|
}
|
|
}
|
|
} catch (e) {
|
|
console.error('环境信息加载失败', e);
|
|
}
|
|
</script>
|
|
</body>
|
|
</html>
|