feat: add routes, lang, tests, stubs, docs, and docker configurations
This commit is contained in:
@@ -0,0 +1,45 @@
|
||||
<?php
|
||||
|
||||
return [
|
||||
|
||||
'single' => [
|
||||
|
||||
'label' => '关联',
|
||||
|
||||
'modal' => [
|
||||
|
||||
'heading' => '关联 :label',
|
||||
|
||||
'fields' => [
|
||||
|
||||
'record_id' => [
|
||||
'label' => '记录',
|
||||
],
|
||||
|
||||
],
|
||||
|
||||
'actions' => [
|
||||
|
||||
'associate' => [
|
||||
'label' => '关联',
|
||||
],
|
||||
|
||||
'associate_another' => [
|
||||
'label' => '关联并关联另一个',
|
||||
],
|
||||
|
||||
],
|
||||
|
||||
],
|
||||
|
||||
'notifications' => [
|
||||
|
||||
'associated' => [
|
||||
'title' => '已关联',
|
||||
],
|
||||
|
||||
],
|
||||
|
||||
],
|
||||
|
||||
];
|
||||
+45
@@ -0,0 +1,45 @@
|
||||
<?php
|
||||
|
||||
return [
|
||||
|
||||
'single' => [
|
||||
|
||||
'label' => '附加',
|
||||
|
||||
'modal' => [
|
||||
|
||||
'heading' => '附加 :label',
|
||||
|
||||
'fields' => [
|
||||
|
||||
'record_id' => [
|
||||
'label' => '记录',
|
||||
],
|
||||
|
||||
],
|
||||
|
||||
'actions' => [
|
||||
|
||||
'attach' => [
|
||||
'label' => '保存',
|
||||
],
|
||||
|
||||
'attach_another' => [
|
||||
'label' => '保存并附加另一个',
|
||||
],
|
||||
|
||||
],
|
||||
|
||||
],
|
||||
|
||||
'notifications' => [
|
||||
|
||||
'attached' => [
|
||||
'title' => '已附加',
|
||||
],
|
||||
|
||||
],
|
||||
|
||||
],
|
||||
|
||||
];
|
||||
+37
@@ -0,0 +1,37 @@
|
||||
<?php
|
||||
|
||||
return [
|
||||
|
||||
'single' => [
|
||||
|
||||
'label' => '创建:label',
|
||||
|
||||
'modal' => [
|
||||
|
||||
'heading' => '创建:label',
|
||||
|
||||
'actions' => [
|
||||
|
||||
'create' => [
|
||||
'label' => '保存',
|
||||
],
|
||||
|
||||
'create_another' => [
|
||||
'label' => '保存并创建另一个',
|
||||
],
|
||||
|
||||
],
|
||||
|
||||
],
|
||||
|
||||
'notifications' => [
|
||||
|
||||
'created' => [
|
||||
'title' => '已创建',
|
||||
],
|
||||
|
||||
],
|
||||
|
||||
],
|
||||
|
||||
];
|
||||
+73
@@ -0,0 +1,73 @@
|
||||
<?php
|
||||
|
||||
return [
|
||||
|
||||
'single' => [
|
||||
|
||||
'label' => '删除',
|
||||
|
||||
'modal' => [
|
||||
|
||||
'heading' => '删除 :label',
|
||||
|
||||
'actions' => [
|
||||
|
||||
'delete' => [
|
||||
'label' => '删除',
|
||||
],
|
||||
|
||||
],
|
||||
|
||||
],
|
||||
|
||||
'notifications' => [
|
||||
|
||||
'deleted' => [
|
||||
'title' => '已删除',
|
||||
],
|
||||
|
||||
],
|
||||
|
||||
],
|
||||
|
||||
'multiple' => [
|
||||
|
||||
'label' => '删除已选项目',
|
||||
|
||||
'modal' => [
|
||||
|
||||
'heading' => '删除已选 :label',
|
||||
|
||||
'actions' => [
|
||||
|
||||
'delete' => [
|
||||
'label' => '删除',
|
||||
],
|
||||
|
||||
],
|
||||
|
||||
],
|
||||
|
||||
'notifications' => [
|
||||
|
||||
'deleted' => [
|
||||
'title' => '已删除',
|
||||
],
|
||||
|
||||
'deleted_partial' => [
|
||||
'title' => '已删除 :count / :total',
|
||||
'missing_authorization_failure_message' => '您没有权限删除 :count 条记录。',
|
||||
'missing_processing_failure_message' => '无法删除 :count 条记录。',
|
||||
],
|
||||
|
||||
'deleted_none' => [
|
||||
'title' => '删除失败',
|
||||
'missing_authorization_failure_message' => '您没有权限删除 :count 条记录。',
|
||||
'missing_processing_failure_message' => '无法删除 :count 条记录。',
|
||||
],
|
||||
|
||||
],
|
||||
|
||||
],
|
||||
|
||||
];
|
||||
+61
@@ -0,0 +1,61 @@
|
||||
<?php
|
||||
|
||||
return [
|
||||
|
||||
'single' => [
|
||||
|
||||
'label' => '分离',
|
||||
|
||||
'modal' => [
|
||||
|
||||
'heading' => '分离 :label',
|
||||
|
||||
'actions' => [
|
||||
|
||||
'detach' => [
|
||||
'label' => '分离',
|
||||
],
|
||||
|
||||
],
|
||||
|
||||
],
|
||||
|
||||
'notifications' => [
|
||||
|
||||
'detached' => [
|
||||
'title' => '已分离',
|
||||
],
|
||||
|
||||
],
|
||||
|
||||
],
|
||||
|
||||
'multiple' => [
|
||||
|
||||
'label' => '分离已选项目',
|
||||
|
||||
'modal' => [
|
||||
|
||||
'heading' => '分离已选 :label',
|
||||
|
||||
'actions' => [
|
||||
|
||||
'detach' => [
|
||||
'label' => '分离已选项目',
|
||||
],
|
||||
|
||||
],
|
||||
|
||||
],
|
||||
|
||||
'notifications' => [
|
||||
|
||||
'detached' => [
|
||||
'title' => '已分离',
|
||||
],
|
||||
|
||||
],
|
||||
|
||||
],
|
||||
|
||||
];
|
||||
@@ -0,0 +1,61 @@
|
||||
<?php
|
||||
|
||||
return [
|
||||
|
||||
'single' => [
|
||||
|
||||
'label' => '解除关联',
|
||||
|
||||
'modal' => [
|
||||
|
||||
'heading' => '解除 :label 的关联',
|
||||
|
||||
'actions' => [
|
||||
|
||||
'dissociate' => [
|
||||
'label' => '解除关联',
|
||||
],
|
||||
|
||||
],
|
||||
|
||||
],
|
||||
|
||||
'notifications' => [
|
||||
|
||||
'dissociated' => [
|
||||
'title' => '已解除关联',
|
||||
],
|
||||
|
||||
],
|
||||
|
||||
],
|
||||
|
||||
'multiple' => [
|
||||
|
||||
'label' => '解除已选项目关联',
|
||||
|
||||
'modal' => [
|
||||
|
||||
'heading' => '解除已选 :label 的关联',
|
||||
|
||||
'actions' => [
|
||||
|
||||
'dissociate' => [
|
||||
'label' => '解除已选项目关联',
|
||||
],
|
||||
|
||||
],
|
||||
|
||||
],
|
||||
|
||||
'notifications' => [
|
||||
|
||||
'dissociated' => [
|
||||
'title' => '已解除关联',
|
||||
],
|
||||
|
||||
],
|
||||
|
||||
],
|
||||
|
||||
];
|
||||
+33
@@ -0,0 +1,33 @@
|
||||
<?php
|
||||
|
||||
return [
|
||||
|
||||
'single' => [
|
||||
|
||||
'label' => '编辑',
|
||||
|
||||
'modal' => [
|
||||
|
||||
'heading' => '编辑 :label',
|
||||
|
||||
'actions' => [
|
||||
|
||||
'save' => [
|
||||
'label' => '保存',
|
||||
],
|
||||
|
||||
],
|
||||
|
||||
],
|
||||
|
||||
'notifications' => [
|
||||
|
||||
'saved' => [
|
||||
'title' => '已保存',
|
||||
],
|
||||
|
||||
],
|
||||
|
||||
],
|
||||
|
||||
];
|
||||
+94
@@ -0,0 +1,94 @@
|
||||
<?php
|
||||
|
||||
return [
|
||||
|
||||
'label' => '导出 :label',
|
||||
|
||||
'modal' => [
|
||||
|
||||
'heading' => '导出 :label',
|
||||
|
||||
'form' => [
|
||||
|
||||
'columns' => [
|
||||
|
||||
'label' => '列',
|
||||
|
||||
'actions' => [
|
||||
|
||||
'select_all' => [
|
||||
'label' => '全选',
|
||||
],
|
||||
|
||||
'deselect_all' => [
|
||||
'label' => '取消全选',
|
||||
],
|
||||
|
||||
],
|
||||
|
||||
'form' => [
|
||||
|
||||
'is_enabled' => [
|
||||
'label' => '启用 :column',
|
||||
],
|
||||
|
||||
'label' => [
|
||||
'label' => ':column 标签',
|
||||
],
|
||||
|
||||
],
|
||||
|
||||
],
|
||||
|
||||
],
|
||||
|
||||
'actions' => [
|
||||
|
||||
'export' => [
|
||||
'label' => '导出',
|
||||
],
|
||||
|
||||
],
|
||||
|
||||
],
|
||||
|
||||
'notifications' => [
|
||||
|
||||
'completed' => [
|
||||
|
||||
'title' => '导出完成',
|
||||
|
||||
'actions' => [
|
||||
|
||||
'download_csv' => [
|
||||
'label' => '下载 .csv',
|
||||
],
|
||||
|
||||
'download_xlsx' => [
|
||||
'label' => '下载 .xlsx',
|
||||
],
|
||||
|
||||
],
|
||||
|
||||
],
|
||||
|
||||
'max_rows' => [
|
||||
'title' => '导出数据过多',
|
||||
'body' => '一次最多只能导出 1 行记录。|一次最多只能导出 :count 行记录。',
|
||||
],
|
||||
|
||||
'no_columns' => [
|
||||
'title' => '未选择列',
|
||||
'body' => '请至少选择一列进行导出。',
|
||||
],
|
||||
|
||||
'started' => [
|
||||
'title' => '导出已开始',
|
||||
'body' => '导出已开始,将在后台处理 1 行数据。完成后您将收到带有下载链接的通知。|导出已开始,将在后台处理 :count 行数据。完成后您将收到带有下载链接的通知。',
|
||||
],
|
||||
|
||||
],
|
||||
|
||||
'file_name' => 'export-:export_id-:model',
|
||||
|
||||
];
|
||||
@@ -0,0 +1,73 @@
|
||||
<?php
|
||||
|
||||
return [
|
||||
|
||||
'single' => [
|
||||
|
||||
'label' => '强制删除',
|
||||
|
||||
'modal' => [
|
||||
|
||||
'heading' => '强制删除 :label',
|
||||
|
||||
'actions' => [
|
||||
|
||||
'delete' => [
|
||||
'label' => '删除',
|
||||
],
|
||||
|
||||
],
|
||||
|
||||
],
|
||||
|
||||
'notifications' => [
|
||||
|
||||
'deleted' => [
|
||||
'title' => '记录已删除',
|
||||
],
|
||||
|
||||
],
|
||||
|
||||
],
|
||||
|
||||
'multiple' => [
|
||||
|
||||
'label' => '强制删除已选项目',
|
||||
|
||||
'modal' => [
|
||||
|
||||
'heading' => '强制删除已选 :label',
|
||||
|
||||
'actions' => [
|
||||
|
||||
'delete' => [
|
||||
'label' => '删除',
|
||||
],
|
||||
|
||||
],
|
||||
|
||||
],
|
||||
|
||||
'notifications' => [
|
||||
|
||||
'deleted' => [
|
||||
'title' => '记录已删除',
|
||||
],
|
||||
|
||||
'deleted_partial' => [
|
||||
'title' => '已删除 :count / :total',
|
||||
'missing_authorization_failure_message' => '您没有权限删除 :count 条记录。',
|
||||
'missing_processing_failure_message' => '无法删除 :count 条记录。',
|
||||
],
|
||||
|
||||
'deleted_none' => [
|
||||
'title' => '删除失败',
|
||||
'missing_authorization_failure_message' => '您没有权限删除 :count 条记录。',
|
||||
'missing_processing_failure_message' => '无法删除 :count 条记录。',
|
||||
],
|
||||
|
||||
],
|
||||
|
||||
],
|
||||
|
||||
];
|
||||
@@ -0,0 +1,9 @@
|
||||
<?php
|
||||
|
||||
return [
|
||||
|
||||
'trigger' => [
|
||||
'label' => '动作组',
|
||||
],
|
||||
|
||||
];
|
||||
+85
@@ -0,0 +1,85 @@
|
||||
<?php
|
||||
|
||||
return [
|
||||
|
||||
'label' => '导入 :label',
|
||||
|
||||
'modal' => [
|
||||
|
||||
'heading' => '导入 :label',
|
||||
|
||||
'form' => [
|
||||
|
||||
'file' => [
|
||||
|
||||
'label' => '文件',
|
||||
|
||||
'placeholder' => '上传 CSV 文件',
|
||||
|
||||
'rules' => [
|
||||
'duplicate_columns' => '{0} 文件不能包含多个空列标题。|{1,*} 文件不能包含重复的列标题::columns。',
|
||||
],
|
||||
|
||||
],
|
||||
|
||||
'columns' => [
|
||||
'label' => '列',
|
||||
'placeholder' => '选择一列',
|
||||
],
|
||||
|
||||
],
|
||||
|
||||
'actions' => [
|
||||
|
||||
'download_example' => [
|
||||
'label' => '下载示例 CSV 模板',
|
||||
],
|
||||
|
||||
'import' => [
|
||||
'label' => '导入',
|
||||
],
|
||||
|
||||
],
|
||||
|
||||
],
|
||||
|
||||
'notifications' => [
|
||||
|
||||
'completed' => [
|
||||
|
||||
'title' => '导入完成',
|
||||
|
||||
'actions' => [
|
||||
|
||||
'download_failed_rows_csv' => [
|
||||
'label' => '下载导入失败的记录|下载导入失败的记录',
|
||||
],
|
||||
|
||||
],
|
||||
|
||||
],
|
||||
|
||||
'max_rows' => [
|
||||
'title' => '上传的 CSV 文件过大',
|
||||
'body' => '一次最多只能导入 1 行记录。|一次最多只能导入 :count 行记录。',
|
||||
],
|
||||
|
||||
'started' => [
|
||||
'title' => '导入已开始',
|
||||
'body' => '导入已开始,将在后台处理 1 行数据。|导入已开始,将在后台处理 :count 行数据。',
|
||||
],
|
||||
|
||||
],
|
||||
|
||||
'example_csv' => [
|
||||
'file_name' => ':importer-example',
|
||||
],
|
||||
|
||||
'failure_csv' => [
|
||||
'file_name' => 'import-:import_id-:csv_name-failed-rows',
|
||||
'error_header' => '错误',
|
||||
'system_error' => '系统错误,请联系技术支持。',
|
||||
'column_mapping_required_for_new_record' => ':attribute 列未映射到文件中的列,但创建新记录时需要此列。',
|
||||
],
|
||||
|
||||
];
|
||||
+23
@@ -0,0 +1,23 @@
|
||||
<?php
|
||||
|
||||
return [
|
||||
|
||||
'confirmation' => '您确定要这样操作吗?',
|
||||
|
||||
'actions' => [
|
||||
|
||||
'cancel' => [
|
||||
'label' => '取消',
|
||||
],
|
||||
|
||||
'confirm' => [
|
||||
'label' => '确定',
|
||||
],
|
||||
|
||||
'submit' => [
|
||||
'label' => '提交',
|
||||
],
|
||||
|
||||
],
|
||||
|
||||
];
|
||||
@@ -0,0 +1,10 @@
|
||||
<?php
|
||||
|
||||
return [
|
||||
|
||||
'throttled' => [
|
||||
'title' => '操作过于频繁',
|
||||
'body' => '请在 :seconds 秒后重试。',
|
||||
],
|
||||
|
||||
];
|
||||
@@ -0,0 +1,33 @@
|
||||
<?php
|
||||
|
||||
return [
|
||||
|
||||
'single' => [
|
||||
|
||||
'label' => '复制',
|
||||
|
||||
'modal' => [
|
||||
|
||||
'heading' => '复制 :label',
|
||||
|
||||
'actions' => [
|
||||
|
||||
'replicate' => [
|
||||
'label' => '复制',
|
||||
],
|
||||
|
||||
],
|
||||
|
||||
],
|
||||
|
||||
'notifications' => [
|
||||
|
||||
'replicated' => [
|
||||
'title' => '记录已复制',
|
||||
],
|
||||
|
||||
],
|
||||
|
||||
],
|
||||
|
||||
];
|
||||
+73
@@ -0,0 +1,73 @@
|
||||
<?php
|
||||
|
||||
return [
|
||||
|
||||
'single' => [
|
||||
|
||||
'label' => '恢复',
|
||||
|
||||
'modal' => [
|
||||
|
||||
'heading' => '恢复 :label',
|
||||
|
||||
'actions' => [
|
||||
|
||||
'restore' => [
|
||||
'label' => '恢复',
|
||||
],
|
||||
|
||||
],
|
||||
|
||||
],
|
||||
|
||||
'notifications' => [
|
||||
|
||||
'restored' => [
|
||||
'title' => '记录已恢复',
|
||||
],
|
||||
|
||||
],
|
||||
|
||||
],
|
||||
|
||||
'multiple' => [
|
||||
|
||||
'label' => '恢复已选项目',
|
||||
|
||||
'modal' => [
|
||||
|
||||
'heading' => '恢复已选 :label',
|
||||
|
||||
'actions' => [
|
||||
|
||||
'restore' => [
|
||||
'label' => '恢复',
|
||||
],
|
||||
|
||||
],
|
||||
|
||||
],
|
||||
|
||||
'notifications' => [
|
||||
|
||||
'restored' => [
|
||||
'title' => '记录已恢复',
|
||||
],
|
||||
|
||||
'restored_partial' => [
|
||||
'title' => '已恢复 :count / :total',
|
||||
'missing_authorization_failure_message' => '您没有权限恢复 :count 条记录。',
|
||||
'missing_processing_failure_message' => '无法恢复 :count 条记录。',
|
||||
],
|
||||
|
||||
'restored_none' => [
|
||||
'title' => '恢复失败',
|
||||
'missing_authorization_failure_message' => '您没有权限恢复 :count 条记录。',
|
||||
'missing_processing_failure_message' => '无法恢复 :count 条记录。',
|
||||
],
|
||||
|
||||
],
|
||||
|
||||
],
|
||||
|
||||
];
|
||||
+25
@@ -0,0 +1,25 @@
|
||||
<?php
|
||||
|
||||
return [
|
||||
|
||||
'single' => [
|
||||
|
||||
'label' => '查看',
|
||||
|
||||
'modal' => [
|
||||
|
||||
'heading' => '查看 :label',
|
||||
|
||||
'actions' => [
|
||||
|
||||
'close' => [
|
||||
'label' => '关闭',
|
||||
],
|
||||
|
||||
],
|
||||
|
||||
],
|
||||
|
||||
],
|
||||
|
||||
];
|
||||
Reference in New Issue
Block a user