2021-09-08 15:00:24 +03:00
|
|
|
<section class="gh-canvas" {{scroll-top}}>
|
2022-05-17 10:34:34 +03:00
|
|
|
<div class="gh-dashboard">
|
|
|
|
<div class="gh-dashboard-inner">
|
|
|
|
<GhCanvasHeader class="gh-canvas-header">
|
|
|
|
<h2 class="gh-canvas-title" data-test-screen-title>
|
|
|
|
Dashboard
|
|
|
|
</h2>
|
|
|
|
</GhCanvasHeader>
|
2022-03-29 18:53:50 +03:00
|
|
|
</div>
|
2022-05-17 10:34:34 +03:00
|
|
|
<section class="gh-dashboard-layout">
|
|
|
|
{{#if this.isLoading }}
|
|
|
|
<GhLoadingSpinner />
|
|
|
|
{{else}}
|
|
|
|
{{#if this.areMembersEnabled}}
|
|
|
|
{{#if this.hasPaidTiers}}
|
|
|
|
<Dashboard::Charts::Overview />
|
|
|
|
{{/if}}
|
2021-02-16 20:12:24 +03:00
|
|
|
|
2022-05-17 10:34:34 +03:00
|
|
|
<div class="gh-dashboard-group {{if this.isTotalMembersZero 'is-zero'}}">
|
|
|
|
<Dashboard::Charts::Anchor />
|
2022-03-21 19:35:14 +03:00
|
|
|
|
2022-05-17 10:34:34 +03:00
|
|
|
{{#if this.areNewslettersEnabled}}
|
|
|
|
<Dashboard::Charts::Engagement />
|
|
|
|
{{/if}}
|
2021-04-20 11:08:15 +03:00
|
|
|
|
2022-05-17 10:34:34 +03:00
|
|
|
{{#if this.isTotalMembersZero}}
|
|
|
|
<Dashboard::Parts::Zero />
|
|
|
|
{{/if}}
|
2021-03-10 22:16:24 +03:00
|
|
|
</div>
|
2022-05-17 10:34:34 +03:00
|
|
|
{{/if}}
|
2021-03-10 22:21:26 +03:00
|
|
|
|
2022-05-17 10:34:34 +03:00
|
|
|
<Dashboard::Charts::Recents />
|
2021-03-10 22:21:26 +03:00
|
|
|
|
2022-05-17 10:34:34 +03:00
|
|
|
<div class="gh-dashboard-split gh-dashboard-box is-secondary">
|
|
|
|
<Dashboard::Resources::Resources />
|
|
|
|
<Dashboard::Resources::Newsletter />
|
2021-03-10 22:49:23 +03:00
|
|
|
</div>
|
2022-09-02 17:19:53 +03:00
|
|
|
|
|
|
|
<Dashboard::Resources::ExploreFeed />
|
|
|
|
|
2022-09-07 15:06:51 +03:00
|
|
|
<div class="gh-dashboard-split gh-dashboard-box no-boarder">
|
2022-05-17 10:34:34 +03:00
|
|
|
<Dashboard::Resources::Community />
|
2022-09-07 15:06:51 +03:00
|
|
|
<Dashboard::Resources::WhatsNew />
|
2022-05-17 10:34:34 +03:00
|
|
|
</div>
|
|
|
|
{{/if}}
|
2021-02-25 11:34:44 +03:00
|
|
|
|
2022-05-17 10:34:34 +03:00
|
|
|
{{#unless this.isTotalMembersZero}}
|
|
|
|
<div class="gh-dashboard-select">
|
|
|
|
<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 is-narrow"
|
|
|
|
@matchTriggerWidth={{false}}
|
2022-05-17 17:04:55 +03:00
|
|
|
@horizontalPosition="right"
|
2022-05-17 10:34:34 +03:00
|
|
|
as |option|
|
|
|
|
>
|
|
|
|
{{#if option.name}}{{option.name}}{{else}}<span class="red">Unknown option</span>{{/if}}
|
|
|
|
</PowerSelect>
|
2021-02-18 14:44:39 +03:00
|
|
|
</div>
|
2022-05-17 10:34:34 +03:00
|
|
|
{{/unless}}
|
|
|
|
</section>
|
|
|
|
|
|
|
|
{{#if (enable-developer-experiments)}}
|
|
|
|
<Dashboard::Prototype::ControlPanel />
|
|
|
|
{{/if}}
|
|
|
|
</div>
|
2021-11-04 15:34:39 +03:00
|
|
|
</section>
|