2022-07-06 01:41:31 +08:00
|
|
|
<ConditionalLoadingSpinner @condition={{this.isLoading}}>
|
2022-06-30 18:30:50 +08:00
|
|
|
<PluginOutlet @name="admin-dashboard-general-top" @tagName="span" @connectorTagName="div" />
|
2018-07-20 02:33:11 +08:00
|
|
|
|
2022-07-06 01:41:31 +08:00
|
|
|
{{#if this.isCommunityHealthVisible}}
|
2020-04-30 23:31:04 +08:00
|
|
|
<div class="community-health section">
|
|
|
|
<div class="period-section">
|
|
|
|
<div class="section-title">
|
|
|
|
<h2>
|
|
|
|
<a href={{get-url "/admin/dashboard/reports"}}>
|
|
|
|
{{i18n "admin.dashboard.community_health"}}
|
|
|
|
</a>
|
|
|
|
</h2>
|
2022-07-06 01:41:31 +08:00
|
|
|
<PeriodChooser @period={{this.period}} @action={{action "changePeriod"}} @content={{this.availablePeriods}} @fullDay={{false}} />
|
2020-04-30 23:31:04 +08:00
|
|
|
</div>
|
2018-07-20 02:33:11 +08:00
|
|
|
|
2020-04-30 23:31:04 +08:00
|
|
|
<div class="section-body">
|
|
|
|
<div class="charts">
|
2022-07-06 01:41:31 +08:00
|
|
|
<AdminReport @dataSourceName="consolidated_page_views" @forcedModes="stacked-chart" @filters={{this.filters}} />
|
2022-06-30 18:30:50 +08:00
|
|
|
|
2022-07-06 01:41:31 +08:00
|
|
|
<AdminReport @dataSourceName="signups" @showTrend={{true}} @forcedModes="chart" @filters={{this.filters}} />
|
2022-06-30 18:30:50 +08:00
|
|
|
|
2022-07-06 01:41:31 +08:00
|
|
|
<AdminReport @dataSourceName="topics" @showTrend={{true}} @forcedModes="chart" @filters={{this.filters}} />
|
2022-06-30 18:30:50 +08:00
|
|
|
|
2022-07-06 01:41:31 +08:00
|
|
|
<AdminReport @dataSourceName="posts" @showTrend={{true}} @forcedModes="chart" @filters={{this.filters}} />
|
2022-06-30 18:30:50 +08:00
|
|
|
|
2022-07-06 01:41:31 +08:00
|
|
|
<AdminReport @dataSourceName="dau_by_mau" @showTrend={{true}} @forcedModes="chart" @filters={{this.filters}} />
|
2022-06-30 18:30:50 +08:00
|
|
|
|
2022-07-06 01:41:31 +08:00
|
|
|
<AdminReport @dataSourceName="daily_engaged_users" @showTrend={{true}} @forcedModes="chart" @filters={{this.filters}} />
|
2022-06-30 18:30:50 +08:00
|
|
|
|
2022-07-06 01:41:31 +08:00
|
|
|
<AdminReport @dataSourceName="new_contributors" @showTrend={{true}} @forcedModes="chart" @filters={{this.filters}} />
|
2020-04-30 23:31:04 +08:00
|
|
|
</div>
|
2018-07-20 02:33:11 +08:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
2020-04-30 23:31:04 +08:00
|
|
|
{{/if}}
|
2018-07-20 02:33:11 +08:00
|
|
|
|
|
|
|
<div class="section-columns">
|
|
|
|
<div class="section-column">
|
2022-07-06 01:41:31 +08:00
|
|
|
{{#if this.isActivityMetricsVisible}}
|
|
|
|
{{#if this.activityMetrics.length}}
|
2020-04-30 23:31:04 +08:00
|
|
|
<div class="admin-report activity-metrics">
|
|
|
|
<div class="header">
|
|
|
|
<ul class="breadcrumb">
|
|
|
|
<li class="item report">
|
2022-06-30 18:30:50 +08:00
|
|
|
<LinkTo @route="adminReports" class="report-url">
|
2020-04-30 23:31:04 +08:00
|
|
|
{{i18n "admin.dashboard.activity_metrics"}}
|
2022-06-30 18:30:50 +08:00
|
|
|
</LinkTo>
|
2020-04-30 23:31:04 +08:00
|
|
|
</li>
|
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
<div class="report-body">
|
|
|
|
<div class="counters-list">
|
|
|
|
<div class="counters-header">
|
|
|
|
<div class="counters-cell"></div>
|
|
|
|
<div class="counters-cell">{{i18n "admin.dashboard.reports.today"}}</div>
|
|
|
|
<div class="counters-cell">{{i18n "admin.dashboard.reports.yesterday"}}</div>
|
|
|
|
<div class="counters-cell">{{i18n "admin.dashboard.reports.last_7_days"}}</div>
|
|
|
|
<div class="counters-cell">{{i18n "admin.dashboard.reports.last_30_days"}}</div>
|
|
|
|
</div>
|
|
|
|
|
2022-07-06 01:41:31 +08:00
|
|
|
{{#each this.activityMetrics as |metric|}}
|
|
|
|
<AdminReport @showHeader={{false}} @filters={{this.activityMetricsFilters}} @forcedModes="counters" @dataSourceName={{metric}} />
|
2020-04-30 23:31:04 +08:00
|
|
|
{{/each}}
|
2018-12-26 17:29:07 +08:00
|
|
|
</div>
|
|
|
|
</div>
|
2018-07-20 02:33:11 +08:00
|
|
|
</div>
|
2020-04-30 23:31:04 +08:00
|
|
|
{{/if}}
|
2018-12-26 17:29:07 +08:00
|
|
|
{{/if}}
|
2018-07-20 02:33:11 +08:00
|
|
|
|
|
|
|
<div class="user-metrics">
|
2022-07-06 01:41:31 +08:00
|
|
|
<ConditionalLoadingSection @isLoading={{this.isLoading}}>
|
2022-06-30 18:30:50 +08:00
|
|
|
<AdminReport @forcedModes="inline-table" @dataSourceName="users_by_type" />
|
|
|
|
|
|
|
|
<AdminReport @forcedModes="inline-table" @dataSourceName="users_by_trust_level" />
|
|
|
|
</ConditionalLoadingSection>
|
2018-07-20 02:33:11 +08:00
|
|
|
</div>
|
|
|
|
|
2018-12-15 06:14:46 +08:00
|
|
|
<div class="misc">
|
2022-06-30 18:30:50 +08:00
|
|
|
<AdminReport @forcedModes="storage-stats" @dataSourceName="storage_stats" @showHeader={{false}} />
|
2018-12-15 06:14:46 +08:00
|
|
|
|
|
|
|
<div class="last-dashboard-update">
|
|
|
|
<div>
|
2018-07-20 02:33:11 +08:00
|
|
|
<h4>{{i18n "admin.dashboard.last_updated"}} </h4>
|
2022-07-06 01:41:31 +08:00
|
|
|
<p>{{format-date this.model.attributes.updated_at leaveAgo="true"}}</p>
|
2019-05-17 13:42:45 +08:00
|
|
|
</div>
|
2022-07-06 01:41:31 +08:00
|
|
|
{{#if this.model.attributes.discourse_updated_at}}
|
2019-08-28 19:37:42 +08:00
|
|
|
<div>
|
|
|
|
<h4>{{i18n "admin.dashboard.discourse_last_updated"}} </h4>
|
2022-07-06 01:41:31 +08:00
|
|
|
<p>{{format-date this.model.attributes.discourse_updated_at leaveAgo="true"}}</p>
|
|
|
|
<a rel="noopener noreferrer" target="_blank" href={{this.model.attributes.release_notes_link}} class="btn btn-default">
|
2019-08-28 19:37:42 +08:00
|
|
|
{{i18n "admin.dashboard.whats_new_in_discourse"}}
|
|
|
|
</a>
|
|
|
|
</div>
|
|
|
|
{{/if}}
|
2018-07-20 02:33:11 +08:00
|
|
|
</div>
|
2018-12-15 06:14:46 +08:00
|
|
|
</div>
|
2018-07-20 02:33:11 +08:00
|
|
|
</div>
|
|
|
|
|
2022-07-06 01:41:31 +08:00
|
|
|
{{#if this.isSearchReportsVisible}}
|
2020-04-30 23:31:04 +08:00
|
|
|
<div class="section-column">
|
2022-07-06 01:41:31 +08:00
|
|
|
<AdminReport @filters={{this.topReferredTopicsFilters}} @dataSourceName="top_referred_topics" @reportOptions={{this.topReferredTopicsOptions}} />
|
2022-06-30 18:30:50 +08:00
|
|
|
|
2022-07-06 01:41:31 +08:00
|
|
|
<AdminReport @dataSourceName="trending_search" @reportOptions={{this.trendingSearchOptions}} @filters={{this.trendingSearchFilters}} @isEnabled={{this.logSearchQueriesEnabled}} @disabledLabel={{this.trendingSearchDisabledLabel}} />
|
2020-08-25 17:42:50 +08:00
|
|
|
{{html-safe (i18n "admin.dashboard.reports.trending_search.more" basePath=(base-path))}}
|
2020-04-30 23:31:04 +08:00
|
|
|
</div>
|
|
|
|
{{/if}}
|
2018-07-20 02:33:11 +08:00
|
|
|
</div>
|
|
|
|
|
2022-06-30 18:30:50 +08:00
|
|
|
<PluginOutlet @name="admin-dashboard-general-bottom" @tagName="span" @connectorTagName="div" />
|
|
|
|
</ConditionalLoadingSpinner>
|