mirror of
https://github.com/discourse/discourse.git
synced 2026-08-09 04:28:29 -05:00
FEATURE: export csv for all the logs
This commit is contained in:
@@ -15,15 +15,42 @@ Discourse.ExportCsv.reopenClass({
|
||||
@method export_user_list
|
||||
**/
|
||||
exportUserList: function() {
|
||||
return Discourse.ajax("/admin/export_csv/users.json");
|
||||
return Discourse.ajax("/admin/export_csv/export_entity.json", {data: {entity: 'user'}});
|
||||
},
|
||||
|
||||
/**
|
||||
Exports screened IPs list
|
||||
Exports staff action logs
|
||||
|
||||
@method export_screened_ips_list
|
||||
@method export_staff_action_logs
|
||||
**/
|
||||
exportScreenedIpsList: function() {
|
||||
return Discourse.ajax("/admin/export_csv/screened_ips.json");
|
||||
exportStaffActionLogs: function() {
|
||||
return Discourse.ajax("/admin/export_csv/export_entity.json", {data: {entity: 'staff_action'}});
|
||||
},
|
||||
|
||||
/**
|
||||
Exports screened email list
|
||||
|
||||
@method export_screened_email_list
|
||||
**/
|
||||
exportScreenedEmailList: function() {
|
||||
return Discourse.ajax("/admin/export_csv/export_entity.json", {data: {entity: 'screened_email'}});
|
||||
},
|
||||
|
||||
/**
|
||||
Exports screened IP list
|
||||
|
||||
@method export_screened_ip_list
|
||||
**/
|
||||
exportScreenedIpList: function() {
|
||||
return Discourse.ajax("/admin/export_csv/export_entity.json", {data: {entity: 'screened_ip'}});
|
||||
},
|
||||
|
||||
/**
|
||||
Exports screened URL list
|
||||
|
||||
@method export_screened_url_list
|
||||
**/
|
||||
exportScreenedUrlList: function() {
|
||||
return Discourse.ajax("/admin/export_csv/export_entity.json", {data: {entity: 'screened_url'}});
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user