finish seed box basic

This commit is contained in:
xiaomlove
2022-07-23 15:05:32 +08:00
parent b507c41bf0
commit 42bf8f0467
32 changed files with 644 additions and 249 deletions
+4 -1
View File
@@ -17,7 +17,7 @@ return [
'torrent_state' => 'Free leach',
'roles_list' => 'Roles',
'ability_list' => 'Permissions',
'seedbox_records' => 'SeedBox',
'seed_box_records' => 'SeedBox',
],
'resources' => [
'agent_allow' => [
@@ -76,5 +76,8 @@ return [
'bulk_action_attach_tag' => 'Attach tag',
'action_approval' => 'Approval',
],
'seed_box_record' => [
'toggle_status' => 'Change status',
],
]
];
+2 -1
View File
@@ -172,7 +172,7 @@ return [
'role' => [
'class' => 'Relate user class',
],
'seedbox_record' => [
'seed_box_record' => [
'label' => 'SeedBox Records',
'type' => 'Add type',
'operator' => 'Operator',
@@ -181,5 +181,6 @@ return [
'ip_begin' => 'Begin IP',
'ip_end' => 'End IP',
'ip_help' => 'Begin IP/End IP, IP(Block) Choose one',
'status' => 'Status',
],
];
+17
View File
@@ -0,0 +1,17 @@
<?php
return [
'type_text' => [
\App\Models\SeedBoxRecord::TYPE_USER => 'User',
\App\Models\SeedBoxRecord::TYPE_ADMIN => 'Administrator',
],
'status_text' => [
\App\Models\SeedBoxRecord::STATUS_UNAUDITED => 'Unaudited',
\App\Models\SeedBoxRecord::STATUS_ALLOWED => 'Allowed',
\App\Models\SeedBoxRecord::STATUS_DENIED => 'Denied',
],
'status_change_message' => [
'subject' => 'SeedBox record status changed',
'body' => 'The status of your SeedBox record with ID :id was changed by :operator from :old_status to :new_status',
],
];
+4 -1
View File
@@ -17,7 +17,7 @@ return [
'torrent_state' => '全站优惠',
'roles_list' => '角色',
'ability_list' => '权限',
'seedbox_records' => 'SeedBox',
'seed_box_records' => 'SeedBox',
],
'resources' => [
'agent_allow' => [
@@ -76,5 +76,8 @@ return [
'bulk_action_attach_tag' => '设置标签',
'action_approval' => '审核',
],
'seed_box_record' => [
'toggle_status' => '更改状态',
],
]
];
+13 -2
View File
@@ -58,7 +58,17 @@ return [
'ignore_when_ratio_reach_help' => '达标的最小分享率',
'ban_user_when_counts_reach' => 'H&R 数量上限',
'ban_user_when_counts_reach_help' => 'H&R 数量达到此值,账号会被禁用',
]
],
'seed_box' => [
'tab_header' => 'SeedBox',
'enabled_help' => '是否启用 SeedBox 规则',
'no_promotion' => '无优惠',
'no_promotion_help' => '不享受任何优惠,上传量/下载量按实际值计算',
'max_uploaded' => '最大上传量倍数',
'max_uploaded_help' => '总上传量最多为其体积的多少倍',
'not_seed_box_max_speed' => '非 SeedBox 最高限速',
'not_seed_box_max_speed_help' => '单位:Mbps。若超过此值又不能匹配 SeedBox 记录,禁用下载权限',
],
],
'user' => [
'label' => '用户',
@@ -175,7 +185,7 @@ return [
'name' => '标识',
'title' => '名称',
],
'seedbox_record' => [
'seed_box_record' => [
'label' => 'SeedBox 记录',
'type' => '添加类型',
'operator' => '运营商',
@@ -184,5 +194,6 @@ return [
'ip_begin' => '起始 IP',
'ip_end' => '结束 IP',
'ip_help' => '起始 IP/结束 IP、IP(段) 二选一',
'status' => '状态',
],
];
+17
View File
@@ -0,0 +1,17 @@
<?php
return [
'type_text' => [
\App\Models\SeedBoxRecord::TYPE_USER => '用户',
\App\Models\SeedBoxRecord::TYPE_ADMIN => '管理员',
],
'status_text' => [
\App\Models\SeedBoxRecord::STATUS_UNAUDITED => '未审核',
\App\Models\SeedBoxRecord::STATUS_ALLOWED => '已通过',
\App\Models\SeedBoxRecord::STATUS_DENIED => '已拒绝',
],
'status_change_message' => [
'subject' => 'SeedBox 记录状态变更',
'body' => '你的 ID 为 :id 的 SeedBox 记录状态被 :operator 由 :old_status 变更为 :new_status',
],
];
-8
View File
@@ -1,8 +0,0 @@
<?php
return [
'type_text' => [
\App\Models\SeedBoxRecord::TYPE_USER => '用户',
\App\Models\SeedBoxRecord::TYPE_ADMIN => '管理员',
],
];
+4 -1
View File
@@ -17,7 +17,7 @@ return [
'torrent_state' => '全站優惠',
'roles_list' => '角色',
'ability_list' => '權限',
'seedbox_records' => 'SeedBox',
'seed_box_records' => 'SeedBox',
],
'resources' => [
'agent_allow' => [
@@ -76,5 +76,8 @@ return [
'bulk_action_attach_tag' => '設置標簽',
'action_approval' => '審核',
],
'seed_box_record' => [
'toggle_status' => '更改狀態',
],
]
];
+2 -1
View File
@@ -172,7 +172,7 @@ return [
'role' => [
'class' => '關聯用户等級',
],
'seedbox_record' => [
'seed_box_record' => [
'label' => 'SeedBox 記錄',
'type' => '添加類型',
'operator' => '運營商',
@@ -181,5 +181,6 @@ return [
'ip_begin' => '起始 IP',
'ip_end' => '結束 IP',
'ip_help' => '起始 IP/結束 IP、IP(段) 二選一',
'status' => '狀態',
],
];
+17
View File
@@ -0,0 +1,17 @@
<?php
return [
'type_text' => [
\App\Models\SeedBoxRecord::TYPE_USER => '用戶',
\App\Models\SeedBoxRecord::TYPE_ADMIN => '管理員',
],
'status_text' => [
\App\Models\SeedBoxRecord::STATUS_UNAUDITED => '未審核',
\App\Models\SeedBoxRecord::STATUS_ALLOWED => '已通過',
\App\Models\SeedBoxRecord::STATUS_DENIED => '已拒絕',
],
'status_change_message' => [
'subject' => 'SeedBox 記錄狀態變更',
'body' => '你的 ID 為 :id 的 SeedBox 記錄狀態被 :operator 由 :old_status 變更為 :new_status',
],
];