Skip to content

Commit

Permalink
Remove "Authors" section from crate details page
Browse files Browse the repository at this point in the history
  • Loading branch information
Turbo87 committed Feb 25, 2021
1 parent 33ced22 commit 25eb30a
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 22 deletions.
9 changes: 0 additions & 9 deletions app/components/crate-sidebar.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -105,15 +105,6 @@
{{/each}}
</ul>
</div>

<div>
<h3>Authors</h3>
<ul>
{{#each @version.authorNames as |author|}}
<li>{{ format-email author }}</li>
{{/each}}
</ul>
</div>
</div>

<div local-class='bottom'>
Expand Down
10 changes: 0 additions & 10 deletions app/models/version.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ export default class Version extends Model {
@belongsTo('crate', { async: false }) crate;

@belongsTo('user', { async: false }) published_by;
@hasMany('users', { async: true }) authors;
@hasMany('dependency', { async: true }) dependencies;
@hasMany('version-download', { async: true }) version_downloads;

Expand Down Expand Up @@ -97,15 +96,6 @@ export default class Version extends Model {
.map(name => ({ name, isDefault: defaultFeatures.includes(name), dependencies: features[name] }));
}

@alias('loadAuthorsTask.last.value') authorNames;

@(task(function* () {
// trigger the async relationship to load the content
let authors = yield this.authors;
return authors.meta.names;
}).keepLatest())
loadAuthorsTask;

@alias('loadDepsTask.last.value.normal') normalDependencies;
@alias('loadDepsTask.last.value.build') buildDependencies;
@alias('loadDepsTask.last.value.dev') devDependencies;
Expand Down
3 changes: 0 additions & 3 deletions app/routes/crate/version.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,6 @@ export default class VersionRoute extends Route {
super.setupController(...arguments);

model.version.loadDepsTask.perform();
if (!model.version.authorNames) {
model.version.loadAuthorsTask.perform();
}

controller.loadReadmeTask.perform().catch(() => {
// ignored
Expand Down

0 comments on commit 25eb30a

Please sign in to comment.