feat(admin): rebuild the restrictions tab on the reference ban modal

Replace the self-invented CRUD (warn/mute/suspend/ban + scope selector)
with the reference-theme ban model: ban method (blackroom suspend /
login ban), duration radios (1/7/14/30/100 days or permanent, default 7),
preset reason chips with an other-reason input, ban note, delete-all-
content switch (posts/comments to trash), and a no-appeal switch with a
required notice that also gates the frontend appeal entry. Banned users
render the status info view (status/start/end/reason) with an unban
leave-a-message form; the record list uses the reference columns and
per-user unban links. Bans notify the user in-site like the reference
zib_updata_user_ban_msg.
This commit is contained in:
2026-09-20 15:48:48 +08:00
parent 970b377b9a
commit c38616b290
4 changed files with 290 additions and 58 deletions
+1
View File
@@ -67,6 +67,7 @@ $meta_keys = [
'aksrt_unread_message_count',
'_aksrt_active_restrictions',
'_aksrt_is_banned',
'_aksrt_no_appeal',
'aksrt_user_ban_state',
'_aksrt_favorite_posts',
'aksrt_wechat_openid',