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}}
|
|
|
|
<section class="prototype-section">
|
|
|
|
<Dashboard::V5::ChartMembersCounts />
|
|
|
|
</section>
|
2022-03-22 14:11:00 +03:00
|
|
|
|
2022-03-24 14:04:18 +03:00
|
|
|
<section class="prototype-section">
|
|
|
|
<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>
|
|
|
|
|
|
|
|
<article class="gh-dashboard-box">
|
|
|
|
<Dashboard::V5::ChartTotalMembers @days={{this.days}} />
|
|
|
|
</article>
|
2022-03-22 14:11:00 +03:00
|
|
|
|
2022-03-24 14:04:18 +03:00
|
|
|
{{#if this.hasPaidTiers}}
|
|
|
|
<div class="prototype-section">
|
|
|
|
<div class="prototype-counts">
|
|
|
|
<article class="prototype-box">
|
|
|
|
<Dashboard::V5::ChartMonthlyRevenue @days={{this.days}} />
|
|
|
|
</article>
|
2022-03-22 14:11:00 +03:00
|
|
|
|
2022-03-24 14:04:18 +03:00
|
|
|
<article class="prototype-box">
|
|
|
|
<Dashboard::V5::ChartTotalPaid @days={{this.days}} />
|
|
|
|
</article>
|
|
|
|
</div>
|
2022-03-22 18:37:17 +03:00
|
|
|
</div>
|
2022-03-22 14:11:00 +03:00
|
|
|
|
2022-03-24 14:04:18 +03:00
|
|
|
<div class="prototype-section">
|
|
|
|
<div class="prototype-counts">
|
|
|
|
<article class="prototype-box">
|
|
|
|
<Dashboard::V5::ChartPaidMembers @days={{this.days}}/>
|
|
|
|
</article>
|
2022-03-22 14:11:00 +03:00
|
|
|
|
2022-03-24 14:04:18 +03:00
|
|
|
<article class="prototype-box">
|
|
|
|
<Dashboard::V5::ChartPaidMix />
|
|
|
|
</article>
|
|
|
|
</div>
|
2022-03-22 18:37:17 +03:00
|
|
|
</div>
|
2022-03-24 14:04:18 +03:00
|
|
|
{{/if}}
|
|
|
|
</section>
|
|
|
|
<section class="prototype-section">
|
|
|
|
<Dashboard::V5::ChartEngagement />
|
|
|
|
</section>
|
|
|
|
{{/if}}
|
|
|
|
|
|
|
|
{{#if this.areNewslettersEnabled}}
|
|
|
|
<section class="prototype-section">
|
|
|
|
<Dashboard::V5::ChartEmailOpenRate />
|
|
|
|
</section>
|
|
|
|
{{/if}}
|
|
|
|
|
2022-03-22 14:11:00 +03:00
|
|
|
<section class="prototype-section">
|
2022-03-24 14:04:18 +03:00
|
|
|
<h2>Recent posts</h2>
|
|
|
|
<article class="gh-dashboard-box">
|
|
|
|
Recent posts
|
|
|
|
</article>
|
2022-03-22 14:11:00 +03:00
|
|
|
</section>
|
2022-03-21 21:02:57 +03:00
|
|
|
|
2022-03-22 14:11:00 +03:00
|
|
|
<section class="prototype-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 14:04:18 +03:00
|
|
|
<section class="prototype-section">
|
|
|
|
<h2>Resources</h2>
|
|
|
|
<article class="gh-dashboard-box">
|
|
|
|
<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
|
|
|
|