mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-11-28 05:37:34 +03: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
@ -33,11 +33,9 @@
|
||||
</a>
|
||||
</li>
|
||||
{{#if (gh-user-can-admin this.session.user)}}
|
||||
{{#if (feature "exploreApp")}}
|
||||
<li class="relative">
|
||||
<LinkTo @route="explore" title="Ghost Explore" data-test-nav="explore">{{svg-jar "globe-simple"}} Explore</LinkTo>
|
||||
</li>
|
||||
{{/if}}
|
||||
<li class="relative">
|
||||
<LinkTo @route="explore" title="Ghost Explore" data-test-nav="explore">{{svg-jar "globe-simple"}} Explore</LinkTo>
|
||||
</li>
|
||||
{{/if}}
|
||||
</ul>
|
||||
<ul class="gh-nav-list gh-nav-manage">
|
||||
|
@ -15,13 +15,13 @@ export default class ExploreIndexRoute extends AuthenticatedRoute {
|
||||
// older versions of Ghost where the `connect` part lives in the
|
||||
// explore route directly. By using the query param, we avoid causing
|
||||
// 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;
|
||||
return this.router.transitionTo('explore.connect');
|
||||
}
|
||||
|
||||
// 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);
|
||||
}
|
||||
}
|
||||
|
@ -65,7 +65,6 @@ export default class FeatureService extends Service {
|
||||
@feature('emailAlerts') emailAlerts;
|
||||
@feature('sourceAttribution') sourceAttribution;
|
||||
@feature('lexicalEditor') lexicalEditor;
|
||||
@feature('exploreApp') exploreApp;
|
||||
@feature('audienceFeedback') audienceFeedback;
|
||||
@feature('fixNewsletterLinks') fixNewsletterLinks;
|
||||
|
||||
|
@ -14,9 +14,8 @@
|
||||
{{#if this.showBilling}}
|
||||
<GhBillingModal @billingWindowOpen={{this.billing.billingWindowOpen}} />
|
||||
{{/if}}
|
||||
{{#if (feature "exploreApp")}}
|
||||
<GhExploreModal />
|
||||
{{/if}}
|
||||
|
||||
<GhExploreModal />
|
||||
|
||||
</main>
|
||||
|
||||
|
@ -258,19 +258,6 @@
|
||||
</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-header">
|
||||
<div>
|
||||
|
@ -35,7 +35,6 @@ const ALPHA_FEATURES = [
|
||||
'urlCache',
|
||||
'beforeAfterCard',
|
||||
'lexicalEditor',
|
||||
'exploreApp',
|
||||
'audienceFeedback'
|
||||
];
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user