feat(admin): rebuild ban page to mirror the reference theme

- rename the users.php submenu to 举报&禁封申诉 and the page heading to
  用户禁封申诉及用户举报管理
- merge report tickets and ban appeals into one Zibll-style queue:
  type filter buttons (全部/禁封申诉/用户举报), status subsubsub
  (全部/待处理/已批准/已拒绝), search box, sortable widefat table with
  the same column set (状态/类型/提交用户/详情/提交时间/更新时间),
  inline process forms and 20-per-page pagination
- report process form shows the reported target, restriction status and
  an enforcement action select; appeal form offers approve/reject radios
  with a message to the user
- move restriction enforcement into ReportCenter::apply_action so REST
  and the native page share one implementation; add get_report_row()
- drop the old three-tab rendering (reports/appeals tabs) and fix all
  notice/mail/SPA links to the merged page
This commit is contained in:
kate522 committed 2026-09-19 22:00:17 +08:00
1 parent 3764d48755
commit 902e71ee62
8 files changed
+626 -217

No files matched your search

+1 -1
View File
@@ -141,7 +141,7 @@ export const usersSection = {
iconClass: 'fa fas fa-gavel',
canonicalDomain: 'users',
section: 'ban',
nativeAdminPath: 'users.php?page=aksrt_user_ban&tab=reports',
nativeAdminPath: 'users.php?page=aksrt_user_ban',
}),
],
}
+1 -1
View File
@@ -83,7 +83,7 @@ function createSectionRedirectRoutes() {
const NATIVE_OPS_REDIRECTS = [
{ path: '/users/messages', title: '消息中心', nativeAdminPath: 'users.php?page=aksrt_messages' },
{ path: '/users/referral-codes', title: '推广码运营', nativeAdminPath: 'users.php?page=aksrt_referral_codes' },
{ path: '/users/report', title: '禁封/举报', nativeAdminPath: 'users.php?page=aksrt_user_ban&tab=reports' },
{ path: '/users/report', title: '禁封/举报', nativeAdminPath: 'users.php?page=aksrt_user_ban' },
]
const routes = [