Skip to content
This repository has been archived by the owner on Nov 28, 2022. It is now read-only.

Commit

Permalink
🔥 Removed all subscriber feature related code (#1337)
Browse files Browse the repository at this point in the history
refs TryGhost/Ghost#11153

- Removed all subscriber feature related code
- The feature is being substituted by members
  • Loading branch information
naz committed Sep 26, 2019
1 parent 8a3217b commit 8dff0ee
Show file tree
Hide file tree
Showing 37 changed files with 3 additions and 1,131 deletions.
3 changes: 0 additions & 3 deletions app/components/gh-feature-flag.js
Expand Up @@ -20,9 +20,6 @@ const FeatureFlagComponent = Component.extend({
return this._flagValue;
},
set(key, value) {
if (this.flag === 'members' && value === true) {
this.set(`feature.subscribers`, false);
}
return this.set(`feature.${this.flag}`, value);
}
}),
Expand Down
20 changes: 0 additions & 20 deletions app/components/modal-delete-subscriber.js

This file was deleted.

43 changes: 0 additions & 43 deletions app/components/modal-import-subscribers.js

This file was deleted.

47 changes: 0 additions & 47 deletions app/components/modal-new-subscriber.js

This file was deleted.

116 changes: 0 additions & 116 deletions app/controllers/subscribers.js

This file was deleted.

19 changes: 0 additions & 19 deletions app/controllers/subscribers/import.js

This file was deleted.

6 changes: 1 addition & 5 deletions app/helpers/event-name.js
Expand Up @@ -27,11 +27,7 @@ export const AVAILABLE_EVENTS = [
// GROUPNAME: Tags
{event: 'tag.added', name: 'Tag created', group: 'Tags'},
{event: 'tag.edited', name: 'Tag updated', group: 'Tags'},
{event: 'tag.deleted', name: 'Tag deleted', group: 'Tags'},

// GROUPNAME: Subscribers
{event: 'subscriber.added', name: 'Subscriber added', group: 'Subscribers'},
{event: 'subscriber.deleted', name: 'Subscriber deleted', group: 'Subscribers'}
{event: 'tag.deleted', name: 'Tag deleted', group: 'Tags'}
];

export function eventName([event]/*, hash*/) {
Expand Down
21 changes: 0 additions & 21 deletions app/helpers/subscribers-query-params.js

This file was deleted.

14 changes: 0 additions & 14 deletions app/helpers/subscribers-sort-icon.js

This file was deleted.

2 changes: 0 additions & 2 deletions app/mixins/validation-engine.js
Expand Up @@ -12,7 +12,6 @@ import SetupValidator from 'ghost-admin/validators/setup';
import SigninValidator from 'ghost-admin/validators/signin';
import SignupValidator from 'ghost-admin/validators/signup';
import SlackIntegrationValidator from 'ghost-admin/validators/slack-integration';
import SubscriberValidator from 'ghost-admin/validators/subscriber';
import TagSettingsValidator from 'ghost-admin/validators/tag-settings';
import UserValidator from 'ghost-admin/validators/user';
import WebhookValidator from 'ghost-admin/validators/webhook';
Expand Down Expand Up @@ -42,7 +41,6 @@ export default Mixin.create({
signin: SigninValidator,
signup: SignupValidator,
slackIntegration: SlackIntegrationValidator,
subscriber: SubscriberValidator,
tag: TagSettingsValidator,
user: UserValidator,
integration: IntegrationValidator,
Expand Down
22 changes: 0 additions & 22 deletions app/models/subscriber.js

This file was deleted.

5 changes: 0 additions & 5 deletions app/router.js
Expand Up @@ -61,11 +61,6 @@ Router.map(function () {
this.route('members');
this.route('member', {path: '/members/:member_id'});

this.route('subscribers', function () {
this.route('new');
this.route('import');
});

this.route('error404', {path: '/*path'});
});

Expand Down
35 changes: 0 additions & 35 deletions app/routes/subscribers.js

This file was deleted.

0 comments on commit 8dff0ee

Please sign in to comment.