Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
import AuthenticatedRoute from 'ghost/routes/authenticated';
import styleBody from 'ghost/mixins/style-body';
var SettingsRoute = AuthenticatedRoute.extend(styleBody, {
titleToken: 'Settings',
classNames: ['settings']
});
export default SettingsRoute;
import AuthenticatedRoute from 'ghost/routes/authenticated';
var UsersRoute = AuthenticatedRoute.extend();
export default UsersRoute;
import AuthenticatedRoute from 'ghost/routes/authenticated';
var UsersRoute = AuthenticatedRoute.extend();
export default UsersRoute;
import {request as ajax} from 'ic-ajax';
import AuthenticatedRoute from 'ghost/routes/authenticated';
import styleBody from 'ghost/mixins/style-body';
export default AuthenticatedRoute.extend(styleBody, {
titleToken: 'About',
classNames: ['view-about'],
cachedConfig: false,
model: function () {
var cachedConfig = this.get('cachedConfig'),
self = this;
if (cachedConfig) {
return cachedConfig;
}
return ajax(this.get('ghostPaths.url').api('configuration'))
.then(function (configurationResponse) {
import AuthenticatedRoute from 'ghost/routes/authenticated';
import styleBody from 'ghost/mixins/style-body';
import loadingIndicator from 'ghost/mixins/loading-indicator';
var SettingsRoute = AuthenticatedRoute.extend(styleBody, loadingIndicator, {
titleToken: 'Settings',
classNames: ['settings']
});
export default SettingsRoute;
import Ember from 'ember';
import AuthenticatedRoute from 'ghost/routes/authenticated';
import CurrentUserSettings from 'ghost/mixins/current-user-settings';
import styleBody from 'ghost/mixins/style-body';
export default AuthenticatedRoute.extend(styleBody, CurrentUserSettings, {
titleToken: 'Apps',
classNames: ['settings-view-apps'],
config: Ember.inject.service(),
beforeModel: function (transition) {
this._super(transition);
if (!this.get('config.apps')) {
return this.transitionTo('settings.general');
}
return this.get('session.user')
.then(this.transitionAuthor())
.then(this.transitionEditor());