2022-09-22 19:16:42 +03:00
|
|
|
|
<section class="gh-dashboard-section gh-dashboard-anchor" {{did-insert this.loadCharts}}>
|
|
|
|
|
<article class="gh-dashboard-box">
|
|
|
|
|
{{#if this.hasPaidTiers}}
|
2022-09-23 13:50:03 +03:00
|
|
|
|
<div class="gh-dashboard-select-title gh-dashboard-select-title-attribution">
|
2022-09-22 19:16:42 +03:00
|
|
|
|
<PowerSelect
|
|
|
|
|
@selected={{this.selectedDisplayOption}}
|
|
|
|
|
@options={{this.displayOptions}}
|
|
|
|
|
@searchEnabled={{false}}
|
|
|
|
|
@onChange={{this.onDisplayChange}}
|
2022-09-24 18:00:05 +03:00
|
|
|
|
@triggerComponent={{component "gh-power-select/trigger"}}
|
2022-09-22 19:16:42 +03:00
|
|
|
|
@triggerClass="gh-contentfilter-menu-trigger"
|
|
|
|
|
@dropdownClass="gh-contentfilter-menu-dropdown is-narrow"
|
|
|
|
|
@matchTriggerWidth={{false}}
|
|
|
|
|
@horizontalPosition="left"
|
|
|
|
|
as |option|
|
|
|
|
|
>
|
|
|
|
|
{{#if option.name}}{{option.name}}{{else}}<span class="red">Unknown option</span>{{/if}}
|
|
|
|
|
</PowerSelect>
|
|
|
|
|
</div>
|
2022-10-03 16:17:01 +03:00
|
|
|
|
{{#if (eq this.selectedChartDisplay "mrr")}}
|
2022-09-24 18:37:29 +03:00
|
|
|
|
<Dashboard::Parts::Metric
|
|
|
|
|
@value="{{this.chartMetric.total}}"
|
|
|
|
|
@trends={{this.hasTrends}}
|
|
|
|
|
@percentage={{this.chartMetric.trend}}
|
|
|
|
|
@large={{true}}
|
|
|
|
|
@embedded={{true}}/>
|
|
|
|
|
{{else}}
|
|
|
|
|
<Dashboard::Parts::Metric
|
|
|
|
|
@value=''
|
|
|
|
|
@trends={{false}}
|
|
|
|
|
@large={{true}}
|
|
|
|
|
@embedded={{true}}/>
|
|
|
|
|
{{/if}}
|
2022-09-22 19:16:42 +03:00
|
|
|
|
{{else}}
|
|
|
|
|
<Dashboard::Parts::Metric
|
|
|
|
|
@label="Total members"
|
|
|
|
|
@value={{format-number this.totalMembers}}
|
|
|
|
|
@trends={{this.hasTrends}}
|
|
|
|
|
@percentage={{this.totalMembersTrend}}
|
2022-09-24 18:00:05 +03:00
|
|
|
|
@large={{true}} />
|
2022-09-22 19:16:42 +03:00
|
|
|
|
{{/if}}
|
|
|
|
|
|
2023-05-05 11:57:26 +03:00
|
|
|
|
<div class="gh-dashboard-hero {{unless this.hasPaidTiers 'is-solo'}} source-attribution">
|
2022-09-22 19:16:42 +03:00
|
|
|
|
<div class="gh-dashboard-chart gh-dashboard-totals">
|
|
|
|
|
<div class="gh-dashboard-chart-container">
|
|
|
|
|
<div class="gh-dashboard-chart-box">
|
|
|
|
|
{{#if this.loading}}
|
|
|
|
|
<div class="gh-dashboard-chart-loading">
|
|
|
|
|
<div class="gh-loading-spinner"></div>
|
2022-09-24 18:00:05 +03:00
|
|
|
|
</div>
|
2022-09-22 19:16:42 +03:00
|
|
|
|
{{else}}
|
|
|
|
|
<div class="gh-dashboard-fader">
|
|
|
|
|
<EmberChart
|
|
|
|
|
@type={{this.chartType}}
|
|
|
|
|
@data={{this.chartData}}
|
|
|
|
|
@options={{this.chartOptions}}
|
|
|
|
|
@height={{200}} />
|
|
|
|
|
</div>
|
|
|
|
|
{{/if}}
|
|
|
|
|
</div>
|
|
|
|
|
<div id="gh-dashboard-anchor-tooltip" class="gh-dashboard-tooltip">
|
|
|
|
|
<div class="gh-dashboard-tooltip-label">
|
|
|
|
|
-
|
|
|
|
|
</div>
|
|
|
|
|
<div class="gh-dashboard-tooltip-value">
|
|
|
|
|
<span class="indicator line"></span>
|
|
|
|
|
<span class="value">–</span>
|
|
|
|
|
<span class="metric">{{this.selectedDisplayOption.name}}</span>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="gh-dashboard-chart-ticks">
|
|
|
|
|
<span id="gh-dashboard-anchor-date-start">-</span>
|
|
|
|
|
<span id="gh-dashboard-anchor-date-end">-</span>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
</article>
|
|
|
|
|
</section>
|