0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-03-11 02:12:21 -05:00

Added Ghost Explore integration

no issue

- bumps Ghost Explore to GA from alpha
This commit is contained in:
Aileen Nowak 2022-08-04 09:43:36 +01:00 committed by Aileen Booker
parent c8b3a08f24
commit 085958d53d
5 changed files with 2 additions and 26 deletions

View file

@ -2,16 +2,7 @@ import AdminRoute from 'ghost-admin/routes/admin';
import {inject as service} from '@ember/service';
export default class ExploreRoute extends AdminRoute {
@service session;
@service store;
@service feature;
beforeModel() {
super.beforeModel(...arguments);
if (!this.feature.explore) {
return this.transitionTo('home');
}
}
model() {
return this.store.findAll('integration');

View file

@ -60,7 +60,6 @@ export default class FeatureService extends Service {
@feature('beforeAfterCard') beforeAfterCard;
@feature('comments') comments;
@feature('newsletterPaywall') newsletterPaywall;
@feature('explore') explore;
_user = null;

View file

@ -226,19 +226,6 @@
</div>
</div>
</div>
<div class="gh-expandable-block">
<div class="gh-expandable-header">
<div>
<h4 class="gh-expandable-title">Ghost Explore</h4>
<p class="gh-expandable-description">
Allow integration with Ghost Explore
</p>
</div>
<div class="for-switch">
<GhFeatureFlag @flag="explore" />
</div>
</div>
</div>
</div>
</div>
{{/if}}

View file

@ -28,7 +28,6 @@ const ALPHA_FEATURES = [
'urlCache',
'beforeAfterCard',
'comments',
'explore',
'freeTrial'
];

View file

@ -230,7 +230,7 @@ Object {
},
Object {
"key": "labs",
"value": "{\\"activitypub\\":true,\\"urlCache\\":true,\\"beforeAfterCard\\":true,\\"comments\\":true,\\"explore\\":true,\\"freeTrial\\":true,\\"newsletterPaywall\\":true,\\"members\\":true}",
"value": "{\\"activitypub\\":true,\\"urlCache\\":true,\\"beforeAfterCard\\":true,\\"comments\\":true,\\"freeTrial\\":true,\\"newsletterPaywall\\":true,\\"members\\":true}",
},
Object {
"key": "slack_url",
@ -280,7 +280,7 @@ exports[`Settings API Browse Can request all settings 2: [headers] 1`] = `
Object {
"access-control-allow-origin": "http://127.0.0.1:2369",
"cache-control": "no-cache, private, no-store, must-revalidate, max-stale=0, post-check=0, pre-check=0",
"content-length": "3442",
"content-length": "3425",
"content-type": "application/json; charset=utf-8",
"etag": StringMatching /\\(\\?:W\\\\/\\)\\?"\\(\\?:\\[ !#-\\\\x7E\\\\x80-\\\\xFF\\]\\*\\|\\\\r\\\\n\\[\\\\t \\]\\|\\\\\\\\\\.\\)\\*"/,
"vary": "Origin, Accept-Encoding",