mirror of
https://github.com/haiwen/seahub.git
synced 2025-07-21 10:30:03 +00:00
* illegal report 1, add illegal report at shared file page 2, list all illegal reports at admin page * add ENABLE_SHARE_LINK_REPORT_ILLEGAL setting * UserRateThrottle -> AnonRateThrottle * use to_python_boolean * frontend by React * remove illegal report dialog in shared dir view * add migrations dir * add illegal_reports migrations * rename illegal to abuse in api * rename illegal to abuse in test * rename illegal to abuse in share file view * rename illegal to abuse in react * rename illegal to abuse in Backbone * add enableShareLinkReportAbuse in templates * add ReportAbuse * update ReportAbuse * update ReportAbuse urls * update ReportAbuse api-js * sysadmin_react_app.html * sysadmin.py * fix * fix * fix * can not abuse own file * Contact Information is required. * fix review * remove repo icon
23 lines
546 B
JavaScript
23 lines
546 B
JavaScript
define([
|
|
'underscore',
|
|
'backbone',
|
|
'common',
|
|
'sysadmin-app/models/abuse-report'
|
|
], function(_, Backbone, Common, AbuseReportModel) {
|
|
'use strict';
|
|
|
|
var AbuseReportCollection = Backbone.Collection.extend({
|
|
model: AbuseReportModel,
|
|
url: function () {
|
|
return Common.getUrl({name: 'admin-abuse-reports'});
|
|
},
|
|
|
|
parse: function(data) {
|
|
this.data = data.abuse_report_list;
|
|
return data.abuse_report_list;
|
|
}
|
|
});
|
|
|
|
return AbuseReportCollection;
|
|
});
|