-
Notifications
You must be signed in to change notification settings - Fork 610
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Updates #152
Merged
Merged
Updates #152
Changes from all commits
Commits
Show all changes
19 commits
Select commit
Hold shift + click to select a range
7882a4e
update ember-app
stefanpenner 29c621c
cleanup + some es6ification
stefanpenner ac43647
update editorconfig
stefanpenner 1fbc979
update some whitespace pre request (and now aligned with the .editorc…
stefanpenner e2514b8
restore traliing comma
stefanpenner ec9091b
fix indentation
stefanpenner 3a80288
make start:ui appear as a refinement to start, rather then an entirel…
stefanpenner 5b57458
fix /crates deprecations
stefanpenner 1a572fe
render “crates-list” -> {{crates-list component
stefanpenner 5656b85
remove more deprecation from index
stefanpenner 6429889
fix more deprecations
stefanpenner a112e0e
* fixup more object proxy properties
stefanpenner f3aff4f
use new each form
stefanpenner 8f4283f
remove some bind-attr
stefanpenner 1183aad
render “crate-row” -> {{crate-row component
stefanpenner 8ba8a7f
remove more proxy usage
stefanpenner 0e6779b
introduce link-to-dep
stefanpenner 828ea42
remove more bind-attr usage
stefanpenner 51ae402
prefer new param form each
stefanpenner File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,26 @@ | ||
import Ember from 'ember'; | ||
|
||
const { computed } = Ember; | ||
|
||
export default Ember.Component.extend({ | ||
size: 'small', | ||
user: null, | ||
attributeBindings: ['src', 'width', 'height'], | ||
tagName: 'img', | ||
|
||
width: function() { | ||
width: computed('size', function() { | ||
if (this.get('size') === 'small') { | ||
return 22; | ||
} else if (this.get('size') === 'medium-small') { | ||
return 32; | ||
} else { | ||
return 85; // medium | ||
} | ||
}.property('size'), | ||
}), | ||
|
||
height: function() { | ||
return this.get('width'); | ||
}.property('width'), | ||
height: computed.readOnly('width'), | ||
|
||
src: function() { | ||
src: computed('size', 'user', function() { | ||
return this.get('user.avatar') + '&s=' + this.get('width'); | ||
}.property('size', 'user'), | ||
}) | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,16 @@ | ||
import Ember from 'ember'; | ||
|
||
const { computed } = Ember; | ||
|
||
export default Ember.Component.extend({ | ||
user: null, | ||
attributeBindings: ['title', 'href'], | ||
tagName: 'a', | ||
|
||
title: function() { | ||
return this.get('user.login'); | ||
}.property('user'), | ||
|
||
'href': function() { | ||
title: computed.readOnly('user.login'), | ||
href: computed('user', function() { | ||
// TODO replace this with a link to a native crates.io profile | ||
// page when they exist. | ||
return 'https://github.com/' + this.get('user.login'); | ||
}.property('user'), | ||
return `https://github.com/${this.get('user.login')}`; | ||
}) | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I prefer to leave trailing commas wherever possible, but is it invalid syntax now?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
only invalid for older browsers, valid in newer