import BaseApp from '../../lib/javascripts/base_app';

// remove these if not needed
import Base64 from 'base64';
import helpers from 'helpers';

var App = {

  defaultState: 'loading',

  requests: {
    getMe: {
      url: '/api/v2/users/me.json'
    }
  },

  events: {
    'app.created': 'init',
    'getMe.done': 'renderMain'
  },

  init: function() {
    this.ajax('getMe');
  },

  renderMain: function(data) {
    this.switchTo('main', data.user);
  }
}

export default BaseApp.extend(App);

import BaseApp from '../../lib/javascripts/base_app';

// remove these if not needed
// import Base64 from 'base64';
// import helpers from 'helpers';

var App = {

  defaultState: 'loading',

  requests: {
    getMe: {
      url: '/api/v2/users/me.json'
    }
  },

  events: {
    'app.created': 'init',
    'getMe.done': 'renderMain'
  },

  init: function() {
    this.ajax('getMe');
  },

  renderMain: function(data) {
    this.switchTo('main', data.user);
  }
}

export default BaseApp.extend(App);

Comment out unused import to silence eslint
Comment out unused import to silence eslint
