2022-05-17 10:34:34 +03:00
|
|
|
|
<section class="gh-dashboard-section gh-dashboard-anchor" {{did-insert this.loadCharts}}>
|
|
|
|
|
<article class="gh-dashboard-box">
|
2022-04-13 17:19:26 +03:00
|
|
|
|
{{#if this.hasPaidTiers}}
|
2022-05-17 10:34:34 +03:00
|
|
|
|
<div class="gh-dashboard-select-title">
|
2022-04-22 18:27:13 +03:00
|
|
|
|
<PowerSelect
|
|
|
|
|
@selected={{this.selectedDisplayOption}}
|
|
|
|
|
@options={{this.displayOptions}}
|
|
|
|
|
@searchEnabled={{false}}
|
|
|
|
|
@onChange={{this.onDisplayChange}}
|
|
|
|
|
@triggerComponent="gh-power-select/trigger"
|
|
|
|
|
@triggerClass="gh-contentfilter-menu-trigger"
|
2022-05-11 16:32:55 +03:00
|
|
|
|
@dropdownClass="gh-contentfilter-menu-dropdown is-narrow"
|
2022-04-22 18:27:13 +03:00
|
|
|
|
@matchTriggerWidth={{false}}
|
2022-05-17 17:04:55 +03:00
|
|
|
|
@horizontalPosition="left"
|
2022-04-22 18:27:13 +03:00
|
|
|
|
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}}
|
2022-05-17 10:34:34 +03:00
|
|
|
|
<Dashboard::Parts::Metric
|
2022-04-20 15:43:11 +03:00
|
|
|
|
@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-05-17 10:34:34 +03:00
|
|
|
|
<div class="gh-dashboard-hero {{unless this.hasPaidTiers 'is-solo'}}">
|
|
|
|
|
<div class="gh-dashboard-chart gh-dashboard-totals">
|
|
|
|
|
<div class="gh-dashboard-chart-container">
|
|
|
|
|
<div class="gh-dashboard-chart-box">
|
2022-04-27 19:25:46 +03:00
|
|
|
|
{{#if this.loading}}
|
2022-05-17 10:34:34 +03:00
|
|
|
|
<div class="gh-dashboard-chart-loading">
|
2022-04-27 19:25:46 +03:00
|
|
|
|
<div class="gh-loading-spinner"></div>
|
|
|
|
|
</div>
|
|
|
|
|
{{else}}
|
2022-07-14 18:00:12 +03:00
|
|
|
|
<div class="gh-dashboard-fader">
|
|
|
|
|
<EmberChart
|
|
|
|
|
@type={{this.chartType}}
|
|
|
|
|
@data={{this.chartData}}
|
|
|
|
|
@options={{this.chartOptions}}
|
|
|
|
|
@height={{200}} />
|
|
|
|
|
</div>
|
2022-04-27 19:25:46 +03:00
|
|
|
|
{{/if}}
|
|
|
|
|
</div>
|
2022-05-17 10:34:34 +03:00
|
|
|
|
<div id="gh-dashboard-anchor-tooltip" class="gh-dashboard-tooltip">
|
|
|
|
|
<div class="gh-dashboard-tooltip-label">
|
2022-04-27 19:25:46 +03:00
|
|
|
|
-
|
2022-04-27 16:40:38 +03:00
|
|
|
|
</div>
|
2022-05-17 10:34:34 +03:00
|
|
|
|
<div class="gh-dashboard-tooltip-value">
|
2022-05-11 10:26:57 +03:00
|
|
|
|
<span class="indicator line"></span>
|
|
|
|
|
<span class="value">–</span>
|
|
|
|
|
<span class="metric">{{this.selectedDisplayOption.name}}</span>
|
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>
|
2022-05-17 10:34:34 +03:00
|
|
|
|
<div class="gh-dashboard-chart-ticks">
|
|
|
|
|
<span id="gh-dashboard-anchor-date-start">-</span>
|
|
|
|
|
<span id="gh-dashboard-anchor-date-end">-</span>
|
2022-04-27 19:25:46 +03:00
|
|
|
|
</div>
|
2022-04-12 18:03:52 +03:00
|
|
|
|
</div>
|
|
|
|
|
|
2022-04-12 15:29:10 +03:00
|
|
|
|
{{#if this.hasPaidTiers}}
|
2022-05-17 10:34:34 +03:00
|
|
|
|
<article class="gh-dashboard-minicharts">
|
|
|
|
|
<Dashboard::Charts::PaidMrr />
|
|
|
|
|
<Dashboard::Charts::PaidBreakdown />
|
|
|
|
|
<Dashboard::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-12 15:29:10 +03:00
|
|
|
|
</article>
|
|
|
|
|
</section>
|