fix: 修复管理后台样式丢失 + CSP inline style 违规
- 评论管理页:创建 comments.css,controller 传递 ExtraCSS/ExtraJS,模板移除所有 inline style,JS 改用 CSS 类 - 修复 comments.js 加载顺序:通过 ExtraJS 在 common.js 之后加载,解决 api is not defined - base.html:SVG inline style 移至 common.css - dashboard/index.html:3 处 inline style 替换为 CSS 类 - audit/index.html:modal 移除冗余 style="display:none" - fund_logs/logs:label inline style 移至 energy.css - common.css 新增多个 CSS 规则 - energy.css 新增 .filter-bar label 规则
This commit is contained in:
@ -7,19 +7,19 @@
|
||||
<div class="admin-toolbar">
|
||||
<input type="text" id="commentSearch" class="admin-search-input" placeholder="搜索评论内容、作者或文章标题..." />
|
||||
<button id="commentSearchBtn" class="btn btn-secondary">搜索</button>
|
||||
<button id="commentClearBtn" class="btn btn-secondary" style="display:none">清除</button>
|
||||
<button id="commentClearBtn" class="btn btn-secondary admin-hidden">清除</button>
|
||||
</div>
|
||||
|
||||
<div class="admin-table-wrap" id="commentTableWrap">
|
||||
<table class="admin-table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th style="width:60px">ID</th>
|
||||
<th style="width:100px">作者</th>
|
||||
<th class="th-id">ID</th>
|
||||
<th class="th-author">作者</th>
|
||||
<th>评论内容</th>
|
||||
<th style="width:160px">所属文章</th>
|
||||
<th style="width:140px">时间</th>
|
||||
<th style="width:100px">操作</th>
|
||||
<th class="th-post">所属文章</th>
|
||||
<th class="th-time">时间</th>
|
||||
<th class="th-actions">操作</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody id="commentTableBody"></tbody>
|
||||
@ -27,7 +27,6 @@
|
||||
</div>
|
||||
|
||||
<div class="admin-pagination" id="commentPagination"></div>
|
||||
<div class="admin-loading" id="commentLoading" style="display:none">加载中...</div>
|
||||
<div class="admin-loading admin-hidden" id="commentLoading">加载中...</div>
|
||||
|
||||
{{template "admin/layout/footer.html" .}}
|
||||
<script src="/admin/static/js/comments.js?v={{assetV "/admin/static/js/comments.js"}}" nonce="{{.CSPNonce}}"></script>
|
||||
|
||||
Reference in New Issue
Block a user