2022-04-13 15:52:12 +03:00
|
|
|
<section class="gh-dashboard5-section gh-dashboard5-anchor" {{did-insert this.loadCharts}}>
|
2022-04-12 15:29:10 +03:00
|
|
|
<article class="gh-dashboard5-box">
|
2022-04-13 17:19:26 +03:00
|
|
|
{{#if this.hasPaidTiers}}
|
2022-04-22 18:27:13 +03:00
|
|
|
<div class="gh-dashboard5-select-title">
|
|
|
|
<PowerSelect
|
|
|
|
@selected={{this.selectedDisplayOption}}
|
|
|
|
@options={{this.displayOptions}}
|
|
|
|
@searchEnabled={{false}}
|
|
|
|
@onChange={{this.onDisplayChange}}
|
|
|
|
@triggerComponent="gh-power-select/trigger"
|
|
|
|
@triggerClass="gh-contentfilter-menu-trigger"
|
|
|
|
@dropdownClass="gh-contentfilter-menu-dropdown"
|
|
|
|
@matchTriggerWidth={{false}}
|
|
|
|
as |option|
|
|
|
|
>
|
|
|
|
{{#if option.name}}{{option.name}}{{else}}<span class="red">Unknown option</span>{{/if}}
|
|
|
|
</PowerSelect>
|
|
|
|
</div>
|
2022-04-20 15:43:11 +03:00
|
|
|
{{else}}
|
|
|
|
<Dashboard::v5::Parts::Metric
|
|
|
|
@label="Total members"
|
|
|
|
@value={{format-number this.totalMembers}}
|
|
|
|
@trends={{this.hasTrends}}
|
|
|
|
@percentage={{this.totalMembersTrend}}
|
|
|
|
@large={{true}} />
|
2022-04-13 17:19:26 +03:00
|
|
|
{{/if}}
|
2022-04-12 18:03:52 +03:00
|
|
|
|
2022-04-20 15:43:11 +03:00
|
|
|
<div class="gh-dashboard5-hero {{unless this.hasPaidTiers 'is-solo'}}">
|
2022-04-27 16:40:38 +03:00
|
|
|
<div class="gh-dashboard5-chart gh-dashboard5-totals">
|
2022-04-27 19:25:46 +03:00
|
|
|
<div class="gh-dashboard5-chart-container">
|
|
|
|
<div class="gh-dashboard5-chart-box">
|
|
|
|
{{#if this.loading}}
|
|
|
|
<div class="gh-dashboard5-chart-loading">
|
|
|
|
<div class="gh-loading-spinner"></div>
|
|
|
|
</div>
|
|
|
|
{{else}}
|
2022-04-27 16:40:38 +03:00
|
|
|
<EmberChart
|
2022-04-28 18:40:19 +03:00
|
|
|
@type={{this.chartType}}
|
2022-04-27 16:40:38 +03:00
|
|
|
@data={{this.chartData}}
|
|
|
|
@options={{this.chartOptions}}
|
|
|
|
@height={{200}} />
|
2022-04-27 19:25:46 +03:00
|
|
|
{{/if}}
|
|
|
|
</div>
|
|
|
|
<div id="gh-dashboard5-anchor-tooltip" class="gh-dashboard5-tooltip">
|
|
|
|
<div class="gh-dashboard5-tooltip-label">
|
|
|
|
-
|
2022-04-27 16:40:38 +03:00
|
|
|
</div>
|
2022-04-27 19:25:46 +03:00
|
|
|
<div class="gh-dashboard5-tooltip-value">
|
|
|
|
-
|
2022-04-26 20:54:52 +03:00
|
|
|
</div>
|
2022-04-12 18:03:52 +03:00
|
|
|
</div>
|
2022-04-27 19:25:46 +03:00
|
|
|
</div>
|
|
|
|
<div class="gh-dashboard5-chart-ticks">
|
|
|
|
<span id="gh-dashboard5-anchor-date-start">-</span>
|
|
|
|
<span id="gh-dashboard5-anchor-date-end">-</span>
|
|
|
|
</div>
|
2022-04-12 18:03:52 +03:00
|
|
|
</div>
|
|
|
|
|
2022-04-12 15:29:10 +03:00
|
|
|
{{#if this.hasPaidTiers}}
|
2022-04-26 16:52:46 +03:00
|
|
|
<article class="gh-dashboard5-minicharts">
|
|
|
|
<Dashboard::v5::Charts::Mrr />
|
|
|
|
<Dashboard::v5::Charts::PaidBreakdown />
|
|
|
|
<Dashboard::v5::Charts::PaidMix />
|
2022-04-20 15:43:11 +03:00
|
|
|
</article>
|
2022-04-12 15:29:10 +03:00
|
|
|
{{/if}}
|
|
|
|
</div>
|
2022-04-11 19:17:31 +03:00
|
|
|
|
2022-04-22 18:27:13 +03:00
|
|
|
<div class="gh-dashboard5-select">
|
|
|
|
<PowerSelect
|
|
|
|
@selected={{this.selectedDaysOption}}
|
|
|
|
@options={{this.daysOptions}}
|
|
|
|
@searchEnabled={{false}}
|
|
|
|
@onChange={{this.onDaysChange}}
|
|
|
|
@triggerComponent="gh-power-select/trigger"
|
|
|
|
@triggerClass="gh-contentfilter-menu-trigger"
|
|
|
|
@dropdownClass="gh-contentfilter-menu-dropdown"
|
|
|
|
@matchTriggerWidth={{false}}
|
|
|
|
as |option|
|
|
|
|
>
|
|
|
|
{{#if option.name}}{{option.name}}{{else}}<span class="red">Unknown option</span>{{/if}}
|
|
|
|
</PowerSelect>
|
2022-04-11 19:17:31 +03:00
|
|
|
</div>
|
2022-04-26 20:54:52 +03:00
|
|
|
|
2022-04-12 15:29:10 +03:00
|
|
|
</article>
|
|
|
|
</section>
|