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
// Available variables: | |
// - Machine | |
// - interpret | |
// - assign | |
// - send | |
// - sendParent | |
// - spawn | |
// - raise | |
// - actions | |
// - XState (all XState exports) |
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
// Available variables: | |
// - Machine | |
// - interpret | |
// - assign | |
// - send | |
// - sendParent | |
// - spawn | |
// - raise | |
// - actions |
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
export default class ApplicationRoute extends Route { | |
model(params, transition) { | |
if (this.fastboot && this.fastboot.isFastBoot) { | |
let promise = new Promise((resolve, reject) => { | |
let poll = () => { | |
later(() => { | |
if (this.finder.inFlightRequests.length === 0 && this.query.inFlightQueriesCount === 0) { | |
scheduleOnce("afterRender", this, resolve) |
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
import Controller from '@ember/controller'; | |
import ArrayProxy from "@ember/array/proxy" | |
import PromiseProxyMixin from "@ember/object/promise-proxy-mixin" | |
import { all } from "rsvp" | |
import { computed } from "@ember/object" | |
const ArrayPromiseProxy = ArrayProxy.extend(PromiseProxyMixin) | |
export default class ApplicationController extends Controller { | |
ids = [1, 2, 3] |
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
import Controller from '@ember/controller'; | |
import {computed, get, action, set} from "@ember/object"; | |
export default class ApplicationController extends Controller { | |
appName = 'Ember Twiddle'; | |
} |
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
import Controller from '@ember/controller'; | |
import {action, set, get} from "@ember/object"; | |
import {tracked} from "@glimmer/tracking"; | |
import { | |
TrackedObject, | |
TrackedArray | |
} from 'tracked-built-ins'; | |
export default class ApplicationController extends Controller { |
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
Group Payment Flow | |
trial | |
request-quote -> awaiting-purchase-order | |
request-invoice -> awaiting-payment | |
expired -> trial-expired | |
trial-expired | |
request-quote -> awaiting-purchase-order | |
request-invoice -> awaiting-payment | |
expired -> group-closed | |
awaiting-purchase-order |
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
Group Payment Flow | |
trial-new | |
expired -> trial-expired | |
credit-card -> paid-up | |
request-po -> trial-awaiting-payment | |
trial-expired | |
expired -> group-closed | |
trial-awaiting-payment | |
expired -> group-closed | |
payment-received -> paid-up |
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
import { compose } from 'redux'; | |
var devtools = window.__REDUX_DEVTOOLS_EXTENSION__ ? window.__REDUX_DEVTOOLS_EXTENSION__() : f => f; | |
var composed = compose(devtools); | |
window.__REDUX_DEVTOOLS_EXTENSION__.open(); | |
export default composed |
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
import Ember from 'ember'; | |
export default Ember.Component.extend({ | |
didReceiveAttrs(){ | |
this._super(...arguments) | |
console.log('didReceiveAttrs', 'a-child') | |
} | |
}); |
NewerOlder