2022-03-24 11:01:30 +03:00
|
|
|
<section {{did-insert this.onInsert}}>
|
2022-03-21 21:02:57 +03:00
|
|
|
|
2022-03-24 14:04:18 +03:00
|
|
|
{{#if this.isLoading }}
|
|
|
|
<GhLoadingSpinner />
|
|
|
|
{{else}}
|
|
|
|
{{#if this.areMembersEnabled}}
|
2022-03-24 17:02:13 +03:00
|
|
|
<section class="gh-dashboard5-section">
|
2022-03-24 14:04:18 +03:00
|
|
|
<Dashboard::V5::ChartMembersCounts />
|
|
|
|
</section>
|
2022-03-22 14:11:00 +03:00
|
|
|
|
2022-03-24 17:02:13 +03:00
|
|
|
<section class="gh-dashboard5-section">
|
2022-03-24 14:04:18 +03:00
|
|
|
<div class="prototype-selection">
|
|
|
|
<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>
|
|
|
|
</div>
|
|
|
|
|
2022-03-24 17:02:13 +03:00
|
|
|
<div class="gh-dashboard5-growth">
|
|
|
|
<article class="gh-dashboard5-box">
|
|
|
|
<Dashboard::V5::ChartTotalMembers @days={{this.days}} />
|
|
|
|
</article>
|
2022-03-22 14:11:00 +03:00
|
|
|
|
2022-03-24 17:02:13 +03:00
|
|
|
{{#if this.hasPaidTiers}}
|
|
|
|
<article class="gh-dashboard5-box">
|
|
|
|
<Dashboard::V5::ChartMonthlyRevenue @days={{this.days}} />
|
|
|
|
</article>
|
2022-03-22 14:11:00 +03:00
|
|
|
|
2022-03-24 17:02:13 +03:00
|
|
|
<article class="gh-dashboard5-box">
|
|
|
|
<Dashboard::V5::ChartTotalPaid @days={{this.days}} />
|
|
|
|
</article>
|
2022-03-22 14:11:00 +03:00
|
|
|
|
2022-03-24 17:02:13 +03:00
|
|
|
<article class="gh-dashboard5-box">
|
|
|
|
<Dashboard::V5::ChartPaidMembers @days={{this.days}}/>
|
|
|
|
</article>
|
2022-03-22 14:11:00 +03:00
|
|
|
|
2022-03-24 17:02:13 +03:00
|
|
|
<article class="gh-dashboard5-box">
|
|
|
|
<Dashboard::V5::ChartPaidMix />
|
|
|
|
</article>
|
|
|
|
{{/if}}
|
|
|
|
</div>
|
2022-03-24 14:04:18 +03:00
|
|
|
</section>
|
2022-03-24 17:02:13 +03:00
|
|
|
<section class="gh-dashboard5-section">
|
2022-03-24 14:04:18 +03:00
|
|
|
<Dashboard::V5::ChartEngagement />
|
|
|
|
</section>
|
|
|
|
{{/if}}
|
|
|
|
|
|
|
|
{{#if this.areNewslettersEnabled}}
|
2022-03-24 17:02:13 +03:00
|
|
|
<section class="gh-dashboard5-section">
|
|
|
|
<Dashboard::V5::ChartEmail />
|
2022-03-24 14:04:18 +03:00
|
|
|
</section>
|
|
|
|
{{/if}}
|
|
|
|
|
2022-03-24 17:02:13 +03:00
|
|
|
<section class="gh-dashboard5-section">
|
2022-03-24 14:04:18 +03:00
|
|
|
<h2>Recent posts</h2>
|
2022-03-24 17:02:13 +03:00
|
|
|
<article class="gh-dashboard5-box">
|
2022-03-24 14:04:18 +03:00
|
|
|
Recent posts
|
|
|
|
</article>
|
2022-03-22 14:11:00 +03:00
|
|
|
</section>
|
2022-03-21 21:02:57 +03:00
|
|
|
|
2022-03-24 17:02:13 +03:00
|
|
|
<section class="gh-dashboard5-section">
|
2022-03-24 14:04:18 +03:00
|
|
|
<h2>Activity</h2>
|
|
|
|
<Dashboard::LatestMemberActivity />
|
2022-03-22 14:11:00 +03:00
|
|
|
</section>
|
|
|
|
|
2022-03-24 17:02:13 +03:00
|
|
|
<section class="gh-dashboard5-section">
|
2022-03-24 14:04:18 +03:00
|
|
|
<h2>Resources</h2>
|
2022-03-24 17:02:13 +03:00
|
|
|
<article class="gh-dashboard5-box">
|
2022-03-24 14:04:18 +03:00
|
|
|
<Dashboard::V5::ResourceGeneral />
|
|
|
|
</article>
|
|
|
|
</section>
|
2022-03-22 18:37:17 +03:00
|
|
|
|
2022-03-24 14:04:18 +03:00
|
|
|
<Dashboard::V5::PrototypeControlPanel />
|
|
|
|
{{/if}}
|
2022-03-21 21:12:02 +03:00
|
|
|
</section>
|
2022-03-21 21:02:57 +03:00
|
|
|
|