approval change to single action

This commit is contained in:
xiaomlove
2022-06-15 15:43:33 +08:00
parent 4fbb279ed3
commit a8ca0ba831
14 changed files with 277 additions and 109 deletions
+12 -6
View File
@@ -45,12 +45,12 @@ return [
'claim_number_reach_torrent_maximum' => 'The maximum number of torrent is reached',
'claim_disabled' => 'Claim is disabled',
'operation_log' => [
\App\Models\TorrentOperationLog::ACTION_TYPE_BAN => [
\App\Models\TorrentOperationLog::ACTION_TYPE_APPROVAL_DENY => [
'type_text' => 'Banned',
'notify_subject' => 'Torrent was banned',
'notify_msg' => 'Your torrent[url=:detail_url]:torrent_name[/url] was banned by :operator, Reason: :reason',
],
\App\Models\TorrentOperationLog::ACTION_TYPE_CANCEL_BAN => [
\App\Models\TorrentOperationLog::ACTION_TYPE_APPROVAL_ALLOW => [
'type_text' => 'Cancel banned',
'notify_subject' => 'Torrent was unbanned',
'notify_msg' => 'Your torrent: [url=:detail_url]:torrent_name[/url] unbanned by :operator',
@@ -58,9 +58,15 @@ return [
],
'owner_update_torrent_subject' => 'Banned torrent have been updated',
'owner_update_torrent_msg' => 'Torrent[url=:detail_url]:torrent_name[/url] has been updated by the owner, you can check if it meets the requirements and cancel the ban',
'approval_status' => [
\App\Models\Torrent::APPROVAL_STATUS_NONE => 'None',
\App\Models\Torrent::APPROVAL_STATUS_YES => 'Allow',
\App\Models\Torrent::APPROVAL_STATUS_NO => 'Deny',
'approval' => [
'modal_title' => 'Torrent approval',
'status_label' => 'Approval status',
'comment_label' => 'Comment(optional)',
'status_text' => [
\App\Models\Torrent::APPROVAL_STATUS_NONE => 'None',
\App\Models\Torrent::APPROVAL_STATUS_ALLOW => 'Allow',
\App\Models\Torrent::APPROVAL_STATUS_DENY => 'Deny',
],
'deny_comment_show' => 'Denied, reason: reason',
],
];
+12 -6
View File
@@ -45,12 +45,12 @@ return [
'claim_number_reach_torrent_maximum' => '认领达到种子数上限',
'claim_disabled' => '认领未启用',
'operation_log' => [
\App\Models\TorrentOperationLog::ACTION_TYPE_BAN => [
\App\Models\TorrentOperationLog::ACTION_TYPE_APPROVAL_DENY => [
'type_text' => '禁止',
'notify_subject' => '种子被禁止',
'notify_msg' => '你的种子:[url=:detail_url]:torrent_name[/url] 被 :operator 禁止,原因::reason',
],
\App\Models\TorrentOperationLog::ACTION_TYPE_CANCEL_BAN => [
\App\Models\TorrentOperationLog::ACTION_TYPE_APPROVAL_ALLOW => [
'type_text' => '取消禁止',
'notify_subject' => '种子取消禁止',
'notify_msg' => '你的种子:[url=:detail_url]:torrent_name[/url] 被 :operator 取消禁止',
@@ -58,9 +58,15 @@ return [
],
'owner_update_torrent_subject' => '被禁种子已更新',
'owner_update_torrent_msg' => '种子:[url=:detail_url]:torrent_name[/url] 已被作者更新,可以检查是否符合要求并取消禁止',
'approval_status' => [
\App\Models\Torrent::APPROVAL_STATUS_NONE => '未审',
\App\Models\Torrent::APPROVAL_STATUS_YES => '通过',
\App\Models\Torrent::APPROVAL_STATUS_NO => '拒绝',
'approval' => [
'modal_title' => '种子审核',
'status_label' => '审核状态',
'comment_label' => '备注(可选)',
'status_text' => [
\App\Models\Torrent::APPROVAL_STATUS_NONE => '未审',
\App\Models\Torrent::APPROVAL_STATUS_ALLOW => '通过',
\App\Models\Torrent::APPROVAL_STATUS_DENY => '拒绝',
],
'deny_comment_show' => '审核不通过,原因::reason',
],
];
+12 -6
View File
@@ -45,12 +45,12 @@ return [
'claim_number_reach_torrent_maximum' => '認領達到種子數上限',
'claim_disabled' => '認領未啟用',
'operation_log' => [
\App\Models\TorrentOperationLog::ACTION_TYPE_BAN => [
\App\Models\TorrentOperationLog::ACTION_TYPE_APPROVAL_DENY => [
'type_text' => '禁止',
'notify_subject' => '種子被禁止',
'notify_msg' => '你的種子:[url=:detail_url]:torrent_name[/url] 被 :operator 禁止,原因::reason',
],
\App\Models\TorrentOperationLog::ACTION_TYPE_CANCEL_BAN => [
\App\Models\TorrentOperationLog::ACTION_TYPE_APPROVAL_ALLOW => [
'type_text' => '取消禁止',
'notify_subject' => '種子取消禁止',
'notify_msg' => '你的種子:[url=:detail_url]:torrent_name[/url] 被 :operator 取消禁止',
@@ -58,9 +58,15 @@ return [
],
'owner_update_torrent_subject' => '被禁種子已更新',
'owner_update_torrent_msg' => '種子:[url=:detail_url]:torrent_name[/url] 已被作者更新,可以檢查是否符合要求並取消禁止',
'approval_status' => [
\App\Models\Torrent::APPROVAL_STATUS_NONE => '未審',
\App\Models\Torrent::APPROVAL_STATUS_YES => '通過',
\App\Models\Torrent::APPROVAL_STATUS_NO => '拒絕',
'approval' => [
'modal_title' => '種子審核',
'status_label' => '審核狀態',
'comment_label' => '備註(可選)',
'status_text' => [
\App\Models\Torrent::APPROVAL_STATUS_NONE => '未審',
\App\Models\Torrent::APPROVAL_STATUS_ALLOW => '通過',
\App\Models\Torrent::APPROVAL_STATUS_DENY => '拒絕',
],
'deny_comment_show' => '審核不通過,原因::reason',
],
];