mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-02-10 23:36:14 -05:00
✨ Added Ghost Explore app
no issue - bumps Ghost Explore integrated app to GA from alpha
This commit is contained in:
parent
cdd65f25ac
commit
b79006d7f3
6 changed files with 7 additions and 25 deletions
|
@ -33,12 +33,10 @@
|
||||||
</a>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
{{#if (gh-user-can-admin this.session.user)}}
|
{{#if (gh-user-can-admin this.session.user)}}
|
||||||
{{#if (feature "exploreApp")}}
|
|
||||||
<li class="relative">
|
<li class="relative">
|
||||||
<LinkTo @route="explore" title="Ghost Explore" data-test-nav="explore">{{svg-jar "globe-simple"}} Explore</LinkTo>
|
<LinkTo @route="explore" title="Ghost Explore" data-test-nav="explore">{{svg-jar "globe-simple"}} Explore</LinkTo>
|
||||||
</li>
|
</li>
|
||||||
{{/if}}
|
{{/if}}
|
||||||
{{/if}}
|
|
||||||
</ul>
|
</ul>
|
||||||
<ul class="gh-nav-list gh-nav-manage">
|
<ul class="gh-nav-list gh-nav-manage">
|
||||||
<li class="gh-nav-list-new relative">
|
<li class="gh-nav-list-new relative">
|
||||||
|
|
|
@ -15,13 +15,13 @@ export default class ExploreIndexRoute extends AuthenticatedRoute {
|
||||||
// older versions of Ghost where the `connect` part lives in the
|
// older versions of Ghost where the `connect` part lives in the
|
||||||
// explore route directly. By using the query param, we avoid causing
|
// explore route directly. By using the query param, we avoid causing
|
||||||
// a 404 and handle the redirect here.
|
// a 404 and handle the redirect here.
|
||||||
if (transition.to?.queryParams?.new === 'true' || !this.feature.exploreApp) {
|
if (transition.to?.queryParams?.new === 'true') {
|
||||||
this.explore.isIframeTransition = false;
|
this.explore.isIframeTransition = false;
|
||||||
return this.router.transitionTo('explore.connect');
|
return this.router.transitionTo('explore.connect');
|
||||||
}
|
}
|
||||||
|
|
||||||
// Ensure the explore window is set to open
|
// Ensure the explore window is set to open
|
||||||
if (this.feature.get('exploreApp') && transition.to?.localName === 'index' && !this.explore.exploreWindowOpen) {
|
if (transition.to?.localName === 'index' && !this.explore.exploreWindowOpen) {
|
||||||
this.explore.openExploreWindow(this.router.currentURL);
|
this.explore.openExploreWindow(this.router.currentURL);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -65,7 +65,6 @@ export default class FeatureService extends Service {
|
||||||
@feature('emailAlerts') emailAlerts;
|
@feature('emailAlerts') emailAlerts;
|
||||||
@feature('sourceAttribution') sourceAttribution;
|
@feature('sourceAttribution') sourceAttribution;
|
||||||
@feature('lexicalEditor') lexicalEditor;
|
@feature('lexicalEditor') lexicalEditor;
|
||||||
@feature('exploreApp') exploreApp;
|
|
||||||
@feature('audienceFeedback') audienceFeedback;
|
@feature('audienceFeedback') audienceFeedback;
|
||||||
@feature('fixNewsletterLinks') fixNewsletterLinks;
|
@feature('fixNewsletterLinks') fixNewsletterLinks;
|
||||||
|
|
||||||
|
|
|
@ -14,9 +14,8 @@
|
||||||
{{#if this.showBilling}}
|
{{#if this.showBilling}}
|
||||||
<GhBillingModal @billingWindowOpen={{this.billing.billingWindowOpen}} />
|
<GhBillingModal @billingWindowOpen={{this.billing.billingWindowOpen}} />
|
||||||
{{/if}}
|
{{/if}}
|
||||||
{{#if (feature "exploreApp")}}
|
|
||||||
<GhExploreModal />
|
<GhExploreModal />
|
||||||
{{/if}}
|
|
||||||
|
|
||||||
</main>
|
</main>
|
||||||
|
|
||||||
|
|
|
@ -258,19 +258,6 @@
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="gh-expandable-block">
|
|
||||||
<div class="gh-expandable-header">
|
|
||||||
<div>
|
|
||||||
<h4 class="gh-expandable-title">Explore app</h4>
|
|
||||||
<p class="gh-expandable-description">
|
|
||||||
Enable the Explore iframe app.
|
|
||||||
</p>
|
|
||||||
</div>
|
|
||||||
<div class="for-switch">
|
|
||||||
<GhFeatureFlag @flag="exploreApp" />
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="gh-expandable-block">
|
<div class="gh-expandable-block">
|
||||||
<div class="gh-expandable-header">
|
<div class="gh-expandable-header">
|
||||||
<div>
|
<div>
|
||||||
|
|
|
@ -35,7 +35,6 @@ const ALPHA_FEATURES = [
|
||||||
'urlCache',
|
'urlCache',
|
||||||
'beforeAfterCard',
|
'beforeAfterCard',
|
||||||
'lexicalEditor',
|
'lexicalEditor',
|
||||||
'exploreApp',
|
|
||||||
'audienceFeedback'
|
'audienceFeedback'
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue