mirror of
https://github.com/discourse/discourse.git
synced 2024-11-28 06:43:45 +08:00
1a78e12f4e
- moderation tab - sorting/pagination - improved third party reports support - trending charts - better perf - many fixes - refactoring - new reports Co-Authored-By: Simon Cossar <scossar@users.noreply.github.com>
28 lines
530 B
Ruby
28 lines
530 B
Ruby
class AdminDashboardNextGeneralData < AdminDashboardNextData
|
|
def reports
|
|
@reports ||= %w{
|
|
page_view_total_reqs
|
|
visits
|
|
time_to_first_response
|
|
likes
|
|
flags
|
|
user_to_user_private_messages_with_replies
|
|
top_referred_topics
|
|
users_by_type
|
|
users_by_trust_level
|
|
trending_search
|
|
}
|
|
end
|
|
|
|
def get_json
|
|
{
|
|
reports: self.class.reports(reports),
|
|
updated_at: Time.zone.now.as_json
|
|
}
|
|
end
|
|
|
|
def self.stats_cache_key
|
|
'general-dashboard-data'
|
|
end
|
|
end
|