2022-03-29 18:53:50 +03:00
|
|
|
<section {{did-insert this.onInsert}}>
|
2022-03-24 14:04:18 +03:00
|
|
|
{{#if this.isLoading }}
|
|
|
|
<GhLoadingSpinner />
|
|
|
|
{{else}}
|
|
|
|
{{#if this.areMembersEnabled}}
|
2022-04-01 16:53:55 +03:00
|
|
|
<section class="gh-dashboard5-section gh-dashboard5-anchor">
|
2022-03-29 18:53:50 +03:00
|
|
|
<article class="gh-dashboard5-box">
|
2022-04-01 16:53:55 +03:00
|
|
|
<Dashboard::V5::ChartAnchor @days={{this.days}} />
|
2022-03-29 18:53:50 +03:00
|
|
|
</article>
|
|
|
|
<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 14:04:18 +03:00
|
|
|
</section>
|
2022-03-22 14:11:00 +03:00
|
|
|
|
2022-03-29 18:53:50 +03:00
|
|
|
{{#if this.hasPaidTiers}}
|
|
|
|
<div class="gh-dashboard5-paid">
|
|
|
|
<section class="gh-dashboard5-section">
|
|
|
|
<div class="gh-dashboard5-growth">
|
|
|
|
<article class="gh-dashboard5-box">
|
|
|
|
<Dashboard::V5::ChartPaidMembers @days={{this.days}}/>
|
|
|
|
</article>
|
2022-03-22 14:11:00 +03:00
|
|
|
|
2022-03-29 18:53:50 +03:00
|
|
|
<article class="gh-dashboard5-box">
|
|
|
|
<Dashboard::V5::ChartPaidMix />
|
|
|
|
</article>
|
|
|
|
</div>
|
|
|
|
</section>
|
|
|
|
</div>
|
|
|
|
{{/if}}
|
2022-03-22 14:11:00 +03:00
|
|
|
|
2022-03-29 18:53:50 +03:00
|
|
|
{{#if this.areNewslettersEnabled}}
|
|
|
|
<section class="gh-dashboard5-split is-third">
|
|
|
|
<section class="gh-dashboard5-section gh-dashboard5-email">
|
2022-03-24 17:02:13 +03:00
|
|
|
<article class="gh-dashboard5-box">
|
2022-03-29 18:53:50 +03:00
|
|
|
<Dashboard::V5::ChartEmail />
|
2022-03-24 17:02:13 +03:00
|
|
|
</article>
|
2022-03-29 18:53:50 +03:00
|
|
|
</section>
|
2022-03-22 14:11:00 +03:00
|
|
|
|
2022-03-29 18:53:50 +03:00
|
|
|
<section class="gh-dashboard5-section gh-dashboard5-engagement">
|
|
|
|
<Dashboard::V5::ChartEngagement />
|
|
|
|
</section>
|
|
|
|
</section>
|
|
|
|
{{else}}
|
|
|
|
<section class="gh-dashboard5-section gh-dashboard5-engagement">
|
|
|
|
<Dashboard::V5::ChartEngagement />
|
|
|
|
</section>
|
|
|
|
{{/if}}
|
2022-03-24 14:04:18 +03:00
|
|
|
|
2022-03-29 18:53:50 +03:00
|
|
|
{{else}}
|
|
|
|
{{#if this.areNewslettersEnabled}}
|
|
|
|
<section class="gh-dashboard5-section gh-dashboard5-email">
|
|
|
|
<article class="gh-dashboard5-box">
|
|
|
|
<Dashboard::V5::ChartEmail />
|
|
|
|
</article>
|
|
|
|
</section>
|
|
|
|
{{/if}}
|
2022-03-24 14:04:18 +03:00
|
|
|
{{/if}}
|
|
|
|
|
2022-03-24 18:06:17 +03:00
|
|
|
<section class="gh-dashboard5-split">
|
2022-03-29 18:53:50 +03:00
|
|
|
<section class="gh-dashboard5-section gh-dashboard5-posts">
|
2022-03-24 18:06:17 +03:00
|
|
|
<article class="gh-dashboard5-box">
|
2022-03-24 18:21:46 +03:00
|
|
|
<Dashboard::V5::RecentPosts />
|
2022-03-24 18:06:17 +03:00
|
|
|
</article>
|
|
|
|
</section>
|
2022-03-21 21:02:57 +03:00
|
|
|
|
2022-03-29 18:53:50 +03:00
|
|
|
<section class="gh-dashboard5-section gh-dashboard5-activity">
|
|
|
|
<Dashboard::V5::RecentActivity />
|
2022-03-24 18:06:17 +03:00
|
|
|
</section>
|
2022-03-22 14:11:00 +03:00
|
|
|
</section>
|
|
|
|
|
2022-03-24 17:02:13 +03:00
|
|
|
<section class="gh-dashboard5-section">
|
2022-04-06 16:43:41 +03:00
|
|
|
<Dashboard::V5::ResourceGeneral />
|
2022-03-24 14:04:18 +03:00
|
|
|
</section>
|
2022-04-06 16:43:41 +03:00
|
|
|
|
|
|
|
<Dashboard::V5::Resources::WhatsNew />
|
2022-03-24 14:04:18 +03:00
|
|
|
{{/if}}
|
2022-04-01 11:48:01 +03:00
|
|
|
<Dashboard::V5::PrototypeControlPanel />
|
|
|
|
</section>
|