From 5ff0b8e669069804bf0992f539fdcdccfdf8208b Mon Sep 17 00:00:00 2001 From: lt Date: Mon, 27 Apr 2026 14:18:56 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E5=88=9B=E5=BB=BA=E6=9E=81=E7=AE=80?= =?UTF-8?q?=E7=8B=AC=E7=AB=8B=E9=A1=B5=E9=9D=A2=EF=BC=8C=E7=BA=AFHTML/CSS/?= =?UTF-8?q?JS=EF=BC=8C=E9=81=BF=E5=85=8D=E6=89=80=E6=9C=89=E6=A1=86?= =?UTF-8?q?=E6=9E=B6=E4=BE=9D=E8=B5=96=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- platform/frontend/logs.html | 375 +++++++++++++++++------------- platform/frontend/topics.html | 422 ++++++++++++++++++---------------- platform/frontend/users.html | 383 +++++++++++++++++------------- 3 files changed, 657 insertions(+), 523 deletions(-) diff --git a/platform/frontend/logs.html b/platform/frontend/logs.html index 44afb65..557c87a 100644 --- a/platform/frontend/logs.html +++ b/platform/frontend/logs.html @@ -1,167 +1,230 @@ - - - 宇之然内容创作平台 - 系统日志 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + 宇之然内容创作平台 - 系统日志 + -
- - -
- - -
- -
-

📄 系统日志

-
- - - - - - - 加载日志 -
-
{{ logContent }}
- -
- -
+ + + + + + + +
+
-
- - + function getStatusText(status) { + var statusMap = { + pending: '待处理', + review: '待审查', + ready: '待发布', + published: '已发布' + }; + return statusMap[status] || status; + } + + function formatDate(dateStr) { + if (!dateStr || dateStr === '-') return '-'; + var date = new Date(dateStr); + return date.toLocaleString('zh-CN', { + year: 'numeric', month: '2-digit', day: '2-digit', + hour: '2-digit', minute: '2-digit' + }); + } + + function filterTopics(filter) { + var rows = document.querySelectorAll('tbody tr'); + rows.forEach(function(row) { + if (filter === 'all') { + row.style.display = ''; + } else { + var status = row.getAttribute('data-status'); + row.style.display = (status === filter) ? '' : 'none'; + } + }); + } + + function toggleSelectAll(checkbox) { + var checkboxes = document.querySelectorAll('tbody input[type="checkbox"]'); + checkboxes.forEach(function(cb) { cb.checked = checkbox.checked; }); + } + + function toggleSelectTopic(id) { + console.log('选中选题:', id); + } + + function previewTopic(id) { alert('预览选题: ' + id); } + function createTopic(id) { alert('创作选题: ' + id); } + function optimizeTopic(id) { alert('优化选题: ' + id); } + function publishTopic(id) { alert('发布选题: ' + id); } + function deleteTopic(id) { + if (confirm('确定删除该选题?删除后无法恢复。')) { + alert('删除选题: ' + id); + } + } + \ No newline at end of file diff --git a/platform/frontend/topics.html b/platform/frontend/topics.html index d0fe76d..8821862 100644 --- a/platform/frontend/topics.html +++ b/platform/frontend/topics.html @@ -1,214 +1,230 @@ - - - 宇之然内容创作平台 - 选题管理 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + 宇之然内容创作平台 - 选题管理 + -
- - -
- - -
- -
-
-

📋 选题管理

-
-
-
- 🔄 批量刷新 - ▶ 批量创作 - 🔍 批量优化 - 已选 {{ selectedTopicIds.length }} 项 -
-
-
- 全部 ({{ topics.length }}) - 待处理 ({{ countByStatus('待处理') }}) - 待审查 ({{ countByStatus('待审查') }}) - 待发布 ({{ countByStatus('待发布') }}) - 已发布 ({{ countByStatus('已发布') }}) -
-
- - - - - - - - - - - - - - - - - - - - - - -
-
- -
+ + + + + + + +
+
-
- - + function getStatusText(status) { + var statusMap = { + pending: '待处理', + review: '待审查', + ready: '待发布', + published: '已发布' + }; + return statusMap[status] || status; + } + + function formatDate(dateStr) { + if (!dateStr || dateStr === '-') return '-'; + var date = new Date(dateStr); + return date.toLocaleString('zh-CN', { + year: 'numeric', month: '2-digit', day: '2-digit', + hour: '2-digit', minute: '2-digit' + }); + } + + function filterTopics(filter) { + var rows = document.querySelectorAll('tbody tr'); + rows.forEach(function(row) { + if (filter === 'all') { + row.style.display = ''; + } else { + var status = row.getAttribute('data-status'); + row.style.display = (status === filter) ? '' : 'none'; + } + }); + } + + function toggleSelectAll(checkbox) { + var checkboxes = document.querySelectorAll('tbody input[type="checkbox"]'); + checkboxes.forEach(function(cb) { cb.checked = checkbox.checked; }); + } + + function toggleSelectTopic(id) { + console.log('选中选题:', id); + } + + function previewTopic(id) { alert('预览选题: ' + id); } + function createTopic(id) { alert('创作选题: ' + id); } + function optimizeTopic(id) { alert('优化选题: ' + id); } + function publishTopic(id) { alert('发布选题: ' + id); } + function deleteTopic(id) { + if (confirm('确定删除该选题?删除后无法恢复。')) { + alert('删除选题: ' + id); + } + } + \ No newline at end of file diff --git a/platform/frontend/users.html b/platform/frontend/users.html index 3916e87..a2d1833 100644 --- a/platform/frontend/users.html +++ b/platform/frontend/users.html @@ -1,175 +1,230 @@ - - - 宇之然内容创作平台 - 用户管理 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + 宇之然内容创作平台 - 用户管理 + -
- - -
- - -
- -
-

👥 用户管理

-
-

用户列表

- + 新建用户 -
- - - - - - - - - - - -
- -
+ + + + + + + +
+
-
- - + function getStatusText(status) { + var statusMap = { + pending: '待处理', + review: '待审查', + ready: '待发布', + published: '已发布' + }; + return statusMap[status] || status; + } + + function formatDate(dateStr) { + if (!dateStr || dateStr === '-') return '-'; + var date = new Date(dateStr); + return date.toLocaleString('zh-CN', { + year: 'numeric', month: '2-digit', day: '2-digit', + hour: '2-digit', minute: '2-digit' + }); + } + + function filterTopics(filter) { + var rows = document.querySelectorAll('tbody tr'); + rows.forEach(function(row) { + if (filter === 'all') { + row.style.display = ''; + } else { + var status = row.getAttribute('data-status'); + row.style.display = (status === filter) ? '' : 'none'; + } + }); + } + + function toggleSelectAll(checkbox) { + var checkboxes = document.querySelectorAll('tbody input[type="checkbox"]'); + checkboxes.forEach(function(cb) { cb.checked = checkbox.checked; }); + } + + function toggleSelectTopic(id) { + console.log('选中选题:', id); + } + + function previewTopic(id) { alert('预览选题: ' + id); } + function createTopic(id) { alert('创作选题: ' + id); } + function optimizeTopic(id) { alert('优化选题: ' + id); } + function publishTopic(id) { alert('发布选题: ' + id); } + function deleteTopic(id) { + if (confirm('确定删除该选题?删除后无法恢复。')) { + alert('删除选题: ' + id); + } + } + \ No newline at end of file