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">
|
2022-10-07 16:05:11 +03:00
|
|
|
{{#if (feature 'sourceAttribution')}}
|
|
|
|
<GhCanvasHeader class="gh-canvas-header sticky">
|
|
|
|
<h2 class="gh-canvas-title" data-test-screen-title>
|
|
|
|
Dashboard
|
|
|
|
</h2>
|
|
|
|
{{#unless this.isTotalMembersZero}}
|
|
|
|
<div class="gh-dashboard-select">
|
2023-03-01 01:22:45 +03:00
|
|
|
<div>
|
|
|
|
{{#if (feature 'webmentions')}}
|
|
|
|
{{!-- Mentions widget using a GhBasicDropdown component --}}
|
|
|
|
|
|
|
|
{{!-- <GhBasicDropdown @horizontalPosition="left" @verticalPosition="above" @calculatePosition={{this.userDropdownPosition}} as |dropdown|>
|
|
|
|
<dropdown.Trigger class="outline-0 pointer">
|
|
|
|
<a href="#" class="gh-dashboard-mentions-icon">
|
|
|
|
{{svg-jar "notification-bell"}}
|
|
|
|
</a>
|
|
|
|
</dropdown.Trigger>
|
|
|
|
|
|
|
|
<dropdown.Content class="">
|
|
|
|
<div class="gh-dashboard-mentions">
|
|
|
|
<div class="gh-dashboard-mentions-header">
|
|
|
|
<h2 class="gh-dashboard-mentions-heading">Mentions</h2>
|
|
|
|
<a href="" class="gh-dashboard-mentions-see-all">View all mentions →</a>
|
|
|
|
</div>
|
|
|
|
<div>
|
|
|
|
<a href="#" class="gh-dashboard-mention" rel="noreferrer noopener" target="_blank">
|
|
|
|
<div class="gh-dashboard-mention-content">
|
|
|
|
<img src="assets/img/orb-squircle.png" alt="{{mention.sourceSiteTitle}}" class="w5 h5 mr2 flex-shrink-0" />
|
|
|
|
<span class="gh-dashboard-mention-title">Lever News</span>
|
|
|
|
<span>mentioned</span>
|
|
|
|
<span class="gh-dashboard-mention-target">3 links</span>
|
|
|
|
</div>
|
|
|
|
<span class="gh-dashboard-mention-timestamp">{{moment-from-now mention.timestamp}}</span>
|
|
|
|
</a>
|
|
|
|
<a href="#" class="gh-dashboard-mention" rel="noreferrer noopener" target="_blank">
|
|
|
|
<div class="gh-dashboard-mention-content">
|
|
|
|
<img src="assets/img/orb-squircle.png" alt="{{mention.sourceSiteTitle}}" class="w5 h5 mr2 flex-shrink-0" />
|
|
|
|
<span class="gh-dashboard-mention-title">Lever News</span>
|
|
|
|
<span>mentioned</span>
|
|
|
|
<span class="gh-dashboard-mention-target">3 links</span>
|
|
|
|
</div>
|
|
|
|
<span class="gh-dashboard-mention-timestamp">{{moment-from-now mention.timestamp}}</span>
|
|
|
|
</a>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</dropdown.Content>
|
|
|
|
</GhBasicDropdown> --}}
|
|
|
|
|
|
|
|
{{!-- Mentions widget using a popover component --}}
|
|
|
|
|
|
|
|
<a href="#" class="gh-dashboard-mentions-icon">
|
|
|
|
{{!-- State: No new mentions --}}
|
|
|
|
{{!-- {{svg-jar "notification-bell"}} --}}
|
|
|
|
|
|
|
|
{{!-- State: at least one new mention --}}
|
|
|
|
{{svg-jar "notification-bell-indicator"}}
|
|
|
|
</a>
|
|
|
|
<EmberPopover @tooltipClass="popover" @spacing={{30}} @arrowClass="popover-arrow" @side="down">
|
|
|
|
<div class="gh-dashboard-mentions">
|
|
|
|
<div class="gh-dashboard-mentions-header">
|
|
|
|
<h2 class="gh-dashboard-mentions-heading">Mentions</h2>
|
|
|
|
<a href="" class="gh-dashboard-mentions-see-all">View all mentions →</a>
|
|
|
|
</div>
|
|
|
|
<div>
|
|
|
|
<a href="#" class="gh-dashboard-mention" rel="noreferrer noopener" target="_blank">
|
|
|
|
<div class="gh-dashboard-mention-content">
|
|
|
|
<img src="assets/img/orb-squircle.png" alt="" role="none" class="w5 h5 mr2 flex-shrink-0" />
|
|
|
|
<span class="gh-dashboard-mention-title">Lever News</span>
|
|
|
|
<span>mentioned</span>
|
|
|
|
<span class="gh-dashboard-mention-target">3 links</span>
|
|
|
|
</div>
|
|
|
|
<span class="gh-dashboard-mention-timestamp">2 days ago</span>
|
|
|
|
</a>
|
|
|
|
<a href="#" class="gh-dashboard-mention" rel="noreferrer noopener" target="_blank">
|
|
|
|
<div class="gh-dashboard-mention-content">
|
|
|
|
<img src="assets/img/orb-squircle.png" alt="" role="none" class="w5 h5 mr2 flex-shrink-0" />
|
|
|
|
<span class="gh-dashboard-mention-title">Lever News</span>
|
|
|
|
<span>mentioned</span>
|
|
|
|
<span class="gh-dashboard-mention-target">3 links</span>
|
|
|
|
</div>
|
|
|
|
<span class="gh-dashboard-mention-timestamp">2 days ago</span>
|
|
|
|
</a>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</EmberPopover>
|
|
|
|
{{/if}}
|
|
|
|
</div>
|
|
|
|
|
2022-10-07 16:05:11 +03:00
|
|
|
<PowerSelect
|
|
|
|
@selected={{this.selectedDaysOption}}
|
|
|
|
@options={{this.daysOptions}}
|
|
|
|
@searchEnabled={{false}}
|
|
|
|
@onChange={{this.onDaysChange}}
|
|
|
|
@triggerComponent={{component "gh-power-select/trigger"}}
|
|
|
|
@triggerClass="gh-contentfilter-menu-trigger"
|
|
|
|
@dropdownClass="gh-contentfilter-menu-dropdown is-narrow"
|
|
|
|
@matchTriggerWidth={{false}}
|
|
|
|
@horizontalPosition="right"
|
|
|
|
as |option|
|
|
|
|
>
|
|
|
|
{{#if option.name}}{{option.name}}{{else}}<span class="red">Unknown option</span>{{/if}}
|
|
|
|
</PowerSelect>
|
|
|
|
</div>
|
|
|
|
{{/unless}}
|
|
|
|
</GhCanvasHeader>
|
|
|
|
{{else}}
|
2022-05-17 10:34:34 +03:00
|
|
|
<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-10-07 16:05:11 +03:00
|
|
|
{{/if}}
|
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'}}">
|
2022-09-13 11:38:14 +03:00
|
|
|
{{#if (feature 'sourceAttribution')}}
|
2022-09-29 17:45:52 +03:00
|
|
|
<Dashboard::Charts::AnchorAttribution />
|
2022-09-22 19:16:42 +03:00
|
|
|
{{else}}
|
|
|
|
<Dashboard::Charts::Anchor />
|
|
|
|
{{/if}}
|
2022-09-29 20:37:09 +03:00
|
|
|
{{#if (feature 'sourceAttribution')}}
|
|
|
|
{{#if this.hasPaidTiers}}
|
2022-09-22 19:16:42 +03:00
|
|
|
<section class="gh-dashboard-section">
|
2022-09-22 21:27:03 +03:00
|
|
|
<article class="gh-dashboard-box gh-dashboard-minicharts-attribution">
|
2022-09-22 19:16:42 +03:00
|
|
|
<Dashboard::Charts::PaidBreakdown />
|
|
|
|
<Dashboard::Charts::PaidMix />
|
|
|
|
</article>
|
|
|
|
</section>
|
|
|
|
{{/if}}
|
2022-09-29 20:37:09 +03:00
|
|
|
{{#unless this.membersUtils.isMembersInviteOnly}}
|
|
|
|
<Dashboard::Charts::Attribution />
|
|
|
|
{{/unless}}
|
2022-09-13 11:38:14 +03:00
|
|
|
{{/if}}
|
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
|
|
|
|
2023-03-01 01:22:45 +03:00
|
|
|
<div class="gh-dashboard-recents-mentions">
|
2023-02-21 22:58:55 +03:00
|
|
|
<Dashboard::Charts::Recents />
|
|
|
|
</div>
|
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-10-07 16:21:24 +03:00
|
|
|
{{#if (not (feature 'sourceAttribution'))}}
|
|
|
|
{{#unless this.isTotalMembersZero}}
|
|
|
|
<div class="gh-dashboard-select">
|
|
|
|
<PowerSelect
|
|
|
|
@selected={{this.selectedDaysOption}}
|
|
|
|
@options={{this.daysOptions}}
|
|
|
|
@searchEnabled={{false}}
|
|
|
|
@onChange={{this.onDaysChange}}
|
|
|
|
@triggerComponent={{component "gh-power-select/trigger"}}
|
|
|
|
@triggerClass="gh-contentfilter-menu-trigger"
|
|
|
|
@dropdownClass="gh-contentfilter-menu-dropdown is-narrow"
|
|
|
|
@matchTriggerWidth={{false}}
|
|
|
|
@horizontalPosition="right"
|
|
|
|
as |option|
|
|
|
|
>
|
|
|
|
{{#if option.name}}{{option.name}}{{else}}<span class="red">Unknown option</span>{{/if}}
|
|
|
|
</PowerSelect>
|
|
|
|
</div>
|
|
|
|
{{/unless}}
|
|
|
|
{{/if}}
|
2022-05-17 10:34:34 +03:00
|
|
|
</section>
|
|
|
|
|
|
|
|
{{#if (enable-developer-experiments)}}
|
|
|
|
<Dashboard::Prototype::ControlPanel />
|
|
|
|
{{/if}}
|
|
|
|
</div>
|
2021-11-04 15:34:39 +03:00
|
|
|
</section>
|