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 { task, timeout, all } from 'ember-concurrency'; | |
import { retryable, DelayPolicy } from 'ember-concurrency-retryable'; | |
import RSVP from 'rsvp'; | |
const delayPolicy = new DelayPolicy({ delay: [100, 100] }); | |
const originalEmberOnError = Ember.onerror; | |
let defers = []; |
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 EmberTooltipComponent from 'ember-tooltips/components/ember-tooltip'; | |
export default EmberTooltipComponent.extend({ | |
effect: 'fade', | |
side: 'bottom', | |
}); |
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 myTask from '../my-task'; | |
export default Ember.Component.extend({ | |
myTask | |
}); |
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 { Yieldable } from 'ember-concurrency'; | |
import fetch from 'fetch'; // i.e. ember-fetch. could also use native fetch too. | |
class FetchYieldable extends Yieldable { | |
constructor(url, opts = {}) { | |
super(...arguments); | |
this.url = url; | |
this.opts = opts; | |
} |
OlderNewer