{"size": 542, "ext": "js", "max_stars_repo_path": "tests/dummy/app/components/user-list/component.js", "max_stars_repo_name": "lifegadget/ember-redux-core", "max_stars_repo_stars_event_min_datetime": "2016-09-28T11:15:53.000Z", "max_stars_repo_stars_event_max_datetime": "2018-04-06T21:29:51.000Z", "max_issues_repo_path": "tests/dummy/app/components/user-list/component.js", "max_issues_repo_name": "lifegadget/ember-redux-core", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "tests/dummy/app/components/user-list/component.js", "max_forks_repo_name": "lifegadget/ember-redux-core", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": 2, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 24.6363636364, "max_line_length": 85, "alphanum_fraction": 0.6642066421}
import Ember from 'ember';
import hbs from 'htmlbars-inline-precompile';
import connect from 'ember-redux-core/components/connect';

var stateToComputed = (state) => {
  return {
    users: state.users.all
  };
};

var UserListComponent = Ember.Component.extend({
  layout: hbs`
    {{#each users as |user|}}
      <div class="user-name">{{user.name}}</div>
      {{#link-to 'users.detail' user.id class='user-detail-link'}}details{{/link-to}}
    {{/each}}
    {{outlet}}
  `
});

export default connect(stateToComputed)(UserListComponent);
