2022-03-21 21:12:02 +03:00
|
|
|
<section>
|
|
|
|
{{#if this.areMembersEnabled}}
|
2022-03-22 14:11:00 +03:00
|
|
|
<section class="prototype-section">
|
2022-03-22 18:37:17 +03:00
|
|
|
<Dashboard::V5::ChartMembersCounts />
|
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-23 11:51:53 +03:00
|
|
|
<div class="prototype-day-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-22 14:11:00 +03:00
|
|
|
|
|
|
|
<article class="gh-dashboard-box">
|
2022-03-23 11:51:53 +03:00
|
|
|
<Dashboard::V5::ChartTotalMembers @days={{this.days}} />
|
2022-03-22 14:11:00 +03:00
|
|
|
</article>
|
|
|
|
|
|
|
|
{{#if this.hasPaidTiers}}
|
2022-03-22 18:37:17 +03:00
|
|
|
<div class="prototype-section">
|
|
|
|
<div class="prototype-counts">
|
|
|
|
<article class="prototype-box">
|
2022-03-23 13:53:32 +03:00
|
|
|
<Dashboard::V5::ChartMonthlyRevenue @days={{this.days}} />
|
2022-03-22 18:37:17 +03:00
|
|
|
</article>
|
2022-03-22 14:11:00 +03:00
|
|
|
|
2022-03-22 18:37:17 +03:00
|
|
|
<article class="prototype-box">
|
2022-03-23 13:53:32 +03:00
|
|
|
<Dashboard::V5::ChartTotalPaid @days={{this.days}} />
|
2022-03-22 18:37:17 +03:00
|
|
|
</article>
|
|
|
|
</div>
|
|
|
|
</div>
|
2022-03-22 14:11:00 +03:00
|
|
|
|
2022-03-22 18:37:17 +03:00
|
|
|
<div class="prototype-section">
|
|
|
|
<div class="prototype-counts">
|
|
|
|
<article class="prototype-box">
|
2022-03-23 13:53:32 +03:00
|
|
|
<Dashboard::V5::ChartPaidMembers @days={{this.days}}/>
|
2022-03-22 18:37:17 +03:00
|
|
|
</article>
|
2022-03-22 14:11:00 +03:00
|
|
|
|
2022-03-22 18:37:17 +03:00
|
|
|
<article class="prototype-box">
|
|
|
|
<Dashboard::V5::ChartPaidMix />
|
|
|
|
</article>
|
|
|
|
</div>
|
|
|
|
</div>
|
2022-03-22 14:11:00 +03:00
|
|
|
{{/if}}
|
|
|
|
</section>
|
|
|
|
<section class="prototype-section">
|
2022-03-22 18:37:17 +03:00
|
|
|
<Dashboard::V5::ChartEngagement />
|
2022-03-22 14:11:00 +03:00
|
|
|
</section>
|
2022-03-21 21:02:57 +03:00
|
|
|
{{/if}}
|
|
|
|
|
2022-03-21 21:12:02 +03:00
|
|
|
{{#if this.areNewslettersEnabled}}
|
2022-03-22 14:11:00 +03:00
|
|
|
<section class="prototype-section">
|
2022-03-22 18:37:17 +03:00
|
|
|
<Dashboard::V5::ChartEmailOpenRate />
|
2022-03-22 14:11:00 +03:00
|
|
|
</section>
|
|
|
|
{{/if}}
|
|
|
|
|
|
|
|
<section class="prototype-section">
|
|
|
|
<h2>Recent posts</h2>
|
2022-03-21 21:12:02 +03:00
|
|
|
<article class="gh-dashboard-box">
|
2022-03-22 14:11:00 +03:00
|
|
|
Recent posts
|
2022-03-21 21:12:02 +03:00
|
|
|
</article>
|
2022-03-22 14:11:00 +03:00
|
|
|
</section>
|
|
|
|
|
|
|
|
<section class="prototype-section">
|
|
|
|
<h2>Activity</h2>
|
|
|
|
<article class="gh-dashboard-box">
|
|
|
|
Activity feed
|
|
|
|
</article>
|
|
|
|
</section>
|
2022-03-22 18:37:17 +03:00
|
|
|
|
|
|
|
<section class="prototype-section">
|
|
|
|
<h2>Resources</h2>
|
|
|
|
<article class="gh-dashboard-box">
|
|
|
|
<Dashboard::V5::ResourceGeneral />
|
|
|
|
</article>
|
|
|
|
</section>
|
2022-03-21 21:12:02 +03:00
|
|
|
</section>
|
2022-03-21 21:02:57 +03:00
|
|
|
|
2022-03-21 21:12:02 +03:00
|
|
|
<div class="gh-main-section prototype-panel">
|
2022-03-21 21:02:57 +03:00
|
|
|
<h4 class="gh-main-section-header small bn">Prototype control panel</h4>
|
2022-03-23 11:51:53 +03:00
|
|
|
|
2022-03-21 21:02:57 +03:00
|
|
|
<div class="gh-expandable">
|
|
|
|
<div class="gh-expandable-block">
|
|
|
|
<div class="gh-expandable-header">
|
|
|
|
<div>
|
|
|
|
<h4 class="gh-expandable-title">Has paid tiers</h4>
|
|
|
|
<p class="gh-expandable-description">
|
|
|
|
Paid memberships
|
|
|
|
</p>
|
|
|
|
</div>
|
|
|
|
<div class="for-switch">
|
|
|
|
<label class="switch">
|
2022-03-22 11:58:42 +03:00
|
|
|
<Input @type="checkbox" @checked={{this.mockPaidTiers}} />
|
2022-03-21 21:02:57 +03:00
|
|
|
<span class="input-toggle-component"></span>
|
|
|
|
</label>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="gh-expandable-block">
|
|
|
|
<div class="gh-expandable-header">
|
|
|
|
<div>
|
|
|
|
<h4 class="gh-expandable-title">Stripe connected</h4>
|
|
|
|
<p class="gh-expandable-description">
|
|
|
|
Mock that Stripe is enabled
|
|
|
|
</p>
|
|
|
|
</div>
|
|
|
|
<div class="for-switch">
|
|
|
|
<label class="switch">
|
2022-03-22 11:58:42 +03:00
|
|
|
<Input @type="checkbox" @checked={{this.mockStripeEnabled}} />
|
2022-03-21 21:02:57 +03:00
|
|
|
<span class="input-toggle-component"></span>
|
|
|
|
</label>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="gh-expandable-block">
|
|
|
|
<div class="gh-expandable-header">
|
|
|
|
<div>
|
|
|
|
<h4 class="gh-expandable-title">Newsletters enabled</h4>
|
|
|
|
<p class="gh-expandable-description">
|
|
|
|
All email related charts shown
|
|
|
|
</p>
|
|
|
|
</div>
|
|
|
|
<div class="for-switch">
|
|
|
|
<label class="switch">
|
2022-03-22 11:58:42 +03:00
|
|
|
<Input @type="checkbox" @checked={{this.mockNewslettersEnabled}} />
|
2022-03-21 21:02:57 +03:00
|
|
|
<span class="input-toggle-component"></span>
|
|
|
|
</label>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="gh-expandable-block">
|
|
|
|
<div class="gh-expandable-header">
|
|
|
|
<div>
|
|
|
|
<h4 class="gh-expandable-title">Members enabled</h4>
|
|
|
|
<p class="gh-expandable-description">
|
|
|
|
Setting subscription access to other value than 'Nobody'
|
|
|
|
</p>
|
|
|
|
</div>
|
|
|
|
<div class="for-switch">
|
|
|
|
<label class="switch">
|
2022-03-22 11:58:42 +03:00
|
|
|
<Input @type="checkbox" @checked={{this.mockMembersEnabled}} />
|
2022-03-21 21:02:57 +03:00
|
|
|
<span class="input-toggle-component"></span>
|
|
|
|
</label>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
2022-03-23 11:51:53 +03:00
|
|
|
|
|
|
|
<div class="prototype-states-buttons">
|
|
|
|
<button class="gh-btn" type="button" {{on "click" (fn this.updateMockedData 0)}}><span>0 days</span></button>
|
|
|
|
<button class="gh-btn" type="button" {{on "click" (fn this.updateMockedData 2)}}><span>2 days</span></button>
|
|
|
|
<button class="gh-btn" type="button" {{on "click" (fn this.updateMockedData 7)}}><span>7 days</span></button>
|
|
|
|
<button class="gh-btn" type="button" {{on "click" (fn this.updateMockedData 14)}}><span>14 days</span></button>
|
|
|
|
<button class="gh-btn" type="button" {{on "click" (fn this.updateMockedData 30)}}><span>30 days</span></button>
|
|
|
|
<button class="gh-btn" type="button" {{on "click" (fn this.updateMockedData 365)}}><span>1 year</span></button>
|
2022-03-23 13:53:32 +03:00
|
|
|
<button class="gh-btn" type="button" {{on "click" (fn this.updateMockedData 730)}}><span>2 year</span></button>
|
2022-03-23 11:51:53 +03:00
|
|
|
</div>
|
2022-03-21 21:02:57 +03:00
|
|
|
</div>
|