Emoji | Conventional Commits | Description | Included in changelog |
---|---|---|---|
๐ฆ | chore(package) | Package updates / release (bower, npm, etc) | |
๐ | chore(style) | Style changes (code style, css style, etc) | |
๐ | chore(style) | Style changes (code style, css style, etc) | |
๐ | fix | Bug fix | โ |
๐ | fix | Bug fix (more severe) | โ |
๐ฅ | chore(test) | Tests | |
๐ฆ | chore(test) | Tests | |
๐ | fix(security) | This is a security patch | โ |
This file contains hidden or 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
import Ember from 'ember'; | |
export default Ember.Controller.extend({ | |
appName: 'File Upload', | |
actions: { | |
uploadAttachment() {}, | |
uploadPinFile() {} | |
} | |
}); |
This file contains hidden or 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
import Ember from 'ember'; | |
export default Ember.Component.extend({ | |
}); |
This file contains hidden or 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
import Service from '@ember/service'; | |
import { task } from 'ember-concurrency'; | |
import { get, set } from '@ember/object'; | |
import RSVP from 'rsvp'; | |
export default Service.extend({ | |
options: null, | |
findAsset: task(function* (afmConfig) { | |
set(this, 'options', Object.assign(RSVP.defer(), { afmConfig }); |
This file contains hidden or 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
import Ember from 'ember'; | |
export default Ember.Controller.extend({ | |
appName: 'ember-file-upload', | |
actions: { | |
addPhoto(file) { | |
file.readAsDataURL().then((src) => { | |
this.set('photos', (this.get('photos') || []).slice().concat({ src })); | |
}); |
This file contains hidden or 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
import Ember from 'ember'; | |
const { get, observer } = Ember; | |
/** | |
Returns whether a route is currently active | |
Example: | |
```handlebars |
This file contains hidden or 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
import Ember from 'ember'; | |
const { get, set, computed } = Ember; | |
export default Ember.Component.extend({ | |
value: computed({ | |
get() { | |
return this.getValue(); | |
}, | |
set(_, value) { |
This file contains hidden or 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
class Duration | |
def initialize(number_in_ms) | |
@value = number_in_ms | |
end | |
def self.parse(string) | |
value = string.scan(/([\d.-]+)(ms|s|m|h|d)/).reduce(0) do |total, parsed_duration| | |
number, unit = parsed_duration | |
total + case unit | |
when 'ms' |
This file contains hidden or 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
import Ember from 'ember'; | |
import { module } from 'qunit'; | |
import startApp from '../helpers/start-app'; | |
import destroyApp from '../helpers/destroy-app'; | |
import MockFeatures from '../mocks/features'; | |
export default function (name, options) { | |
module(name, { | |
beforeEach() { | |
let context = this; |
This file contains hidden or 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
import Ember from 'ember'; | |
export default Ember.Controller.extend({ | |
value: 'test' | |
}); |