Update index.html

This commit is contained in:
Furrium Network authored and GitHub committed 2026-08-10 21:17:14 +08:00
1 parent 7498f07b98
commit 155e3a465e
1 file changed
+55 -28
+55 -28
View File
@@ -3,7 +3,7 @@
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title id="pageTitle">Loading……</title>
<title id="pageTitle">加载中...</title>
<script src="https://cdn.jsdelivr.net/npm/marked/marked.min.js"></script>
<link rel="stylesheet" href="style.css" />
</head>
@@ -12,7 +12,7 @@
<!-- ===== 导航栏 ===== -->
<nav id="navbar">
<div class="nav-left">
<span id="forumName" class="forum-name"></span>
<span id="forumName" class="forum-name">加载中...</span>
<span id="customNavLinks" style="display:inline-flex;align-items:center;gap:6px;margin-left:16px;"></span>
</div>
<div class="nav-right">
@@ -84,6 +84,7 @@
<main id="feed">
<div class="feed-header">
<div class="feed-header-left">
<div class="feed-slider"></div>
<button class="tab active" data-sort="latest">最新发布</button>
<button class="tab" data-sort="hot">最新回复</button>
</div>
@@ -139,7 +140,7 @@
</div>
<!-- 侧边栏布局 -->
<div class="admin-layout" style="max-width:100%;margin:0 auto;width:100%;padding:0 24px;">
<div class="admin-layout" style="max-width:1200px;margin:0 auto;width:100%;">
<aside class="admin-sidebar">
<nav class="admin-nav">
<a href="#" class="admin-nav-item active" data-tab="reports">
@@ -166,6 +167,12 @@
</span>
友链
</a>
<a href="#" class="admin-nav-item" data-tab="custom-css">
<span class="nav-icon">
<svg xmlns="http://www.w3.org/2000/svg" width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><polyline points="16 18 22 12 16 6"/><polyline points="8 6 2 12 8 18"/></svg>
</span>
自定义 CSS
</a>
<a href="#" class="admin-nav-item" data-tab="settings">
<span class="nav-icon">
<svg xmlns="http://www.w3.org/2000/svg" width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M12.22 2h-.44a2 2 0 0 0-2 2v.18a2 2 0 0 1-1 1.73l-.43.25a2 2 0 0 1-2 0l-.15-.08a2 2 0 0 0-2.73.73l-.22.38a2 2 0 0 0 .73 2.73l.15.1a2 2 0 0 1 1 1.72v.51a2 2 0 0 1-1 1.74l-.15.09a2 2 0 0 0-.73 2.73l.22.38a2 2 0 0 0 2.73.73l.15-.08a2 2 0 0 1 2 0l.43.25a2 2 0 0 1 1 1.73V20a2 2 0 0 0 2 2h.44a2 2 0 0 0 2-2v-.18a2 2 0 0 1 1-1.73l.43-.25a2 2 0 0 1 2 0l.15.08a2 2 0 0 0 2.73-.73l.22-.39a2 2 0 0 0-.73-2.73l-.15-.08a2 2 0 0 1-1-1.74v-.5a2 2 0 0 1 1-1.74l.15-.09a2 2 0 0 0 .73-2.73l-.22-.38a2 2 0 0 0-2.73-.73l-.15.08a2 2 0 0 1-2 0l-.43-.25a2 2 0 0 1-1-1.73V4a2 2 0 0 0-2-2z"/><circle cx="12" cy="12" r="3"/></svg>
@@ -216,23 +223,53 @@
<!-- 帖子详情页 -->
<div id="pagePost" class="page-slide">
<div class="page-header" style="max-width:700px;margin:0 auto;width:100%;">
<div class="page-header" style="max-width:1200px;margin:0 auto;width:100%;">
<button class="back-btn" onclick="switchPage('feed')">
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><polyline points="15 18 9 12 15 6"/></svg>
返回
</button>
<h2 id="postDetailTitle">帖子详情</h2>
</div>
<div id="postDetailContent" style="max-width:700px;margin:0 auto;width:100%;">
<div style="text-align:center;color:#94a3b8;padding:40px 0;">加载中...</div>
</div>
<div id="replyArea" style="max-width:700px;margin:0 auto;width:100%;margin-top:24px;border-top:1px solid #e2e8f0;padding-top:20px;display:none;">
<h3 style="font-size:16px;margin-bottom:12px;">
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="display:inline;vertical-align:middle;"><path d="M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z"/></svg>
发表回复
</h3>
<textarea id="replyContent" rows="3" placeholder="写下你的回复..." style="width:100%;padding:10px 12px;border:1px solid #e2e8f0;border-radius:4px;font-size:14px;font-family:inherit;resize:vertical;"></textarea>
<div class="captcha-row" style="margin:10px 0;">
<span id="replyCaptchaQuestion">3 + 5 = ?</span>
<input type="text" id="replyCaptchaInput" placeholder="答案" style="width:80px;padding:8px 12px;border:1px solid #e2e8f0;border-radius:4px;" />
</div>
<button id="replySubmit" class="btn-primary" style="padding:8px 24px;">提交回复</button>
<div class="post-detail-layout" style="max-width:1200px;margin:0 auto;width:100%;display:flex;gap:28px;align-items:flex-start;">
<aside id="postSidebar" style="width:240px;flex-shrink:0;">
<div class="stats-box">
<h4>
<svg xmlns="http://www.w3.org/2000/svg" width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M21 12V7H5a2 2 0 0 1 0-4h14v4"/><path d="M3 5v14a2 2 0 0 0 2 2h16v-5"/><line x1="18" y1="12" x2="18" y2="12"/></svg>
社区统计
</h4>
<div class="stat-item"><span>主题</span><span id="statTopics2">0</span></div>
<div class="stat-item"><span>帖子</span><span id="statPosts2">0</span></div>
<div class="stat-item"><span>用户</span><span id="statUsers2">0</span></div>
</div>
<div class="links-box">
<h4>
<svg xmlns="http://www.w3.org/2000/svg" width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71"/><path d="M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71"/></svg>
友情链接
</h4>
<ul id="friendlyLinks2">
<li style="color:#94a3b8;font-size:13px;">暂无链接</li>
</ul>
</div>
</aside>
<main style="flex:1;min-width:0;">
<div id="postDetailContent">
<div style="text-align:center;color:#94a3b8;padding:40px 0;">加载中...</div>
</div>
<div id="replyArea" style="margin-top:24px;border-top:1px solid var(--glass-border);padding-top:20px;display:none;">
<h3 style="font-size:16px;font-weight:600;margin-bottom:14px;color:var(--glass-text);">
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="display:inline;vertical-align:middle;"><path d="M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z"/></svg>
发表回复
</h3>
<textarea id="replyContent" rows="3" placeholder="写下你的回复..." style="width:100%;padding:12px 16px;background:rgba(255,255,255,0.1);backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px);border:1px solid var(--glass-border);border-radius:var(--radius-sm);font-size:14px;font-family:inherit;resize:vertical;color:var(--glass-text);transition:all var(--transition);"></textarea>
<div class="captcha-row" style="margin:10px 0;">
<span id="replyCaptchaQuestion">3 + 5 = ?</span>
<input type="text" id="replyCaptchaInput" placeholder="答案" style="width:80px;padding:8px 12px;background:rgba(255,255,255,0.12);backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px);border:1px solid var(--glass-border);border-radius:var(--radius-sm);color:var(--glass-text);" />
</div>
<button id="replySubmit" class="btn-primary" style="padding:8px 24px;">提交回复</button>
</div>
</main>
</div>
</div>
@@ -360,14 +397,6 @@
<!-- ⚙️ 引用 JS -->
<!-- ========================================================== -->
<script src="config.js"></script>
<script>
// config.js 已加载,立即设置默认标题
var defaultName = CONFIG.FORUM_NAME || 'Forumlify';
document.getElementById('forumName').textContent = defaultName;
document.title = defaultName;
var titleEl = document.getElementById('pageTitle');
if (titleEl) titleEl.textContent = defaultName;
</script>
<script src="js/api.js"></script>
<script src="js/theme.js"></script>
<script src="js/captcha.js"></script>
@@ -377,7 +406,5 @@
<script src="js/admin.js"></script>
<script src="js/user.js"></script>
<script src="js/app.js"></script>
</body>
</html>