mirror of
https://github.com/discourse/discourse.git
synced 2024-11-24 07:18:06 +08:00
37252c1a5e
- support for avatars - support for topic/post/user type in reports - improved totals row UI - minor css tweaks
26 lines
508 B
Ruby
26 lines
508 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
|
|
users_by_type
|
|
users_by_trust_level
|
|
}
|
|
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-#{Report::SCHEMA_VERSION}"
|
|
end
|
|
end
|