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
const machine = Machine( | |
{ | |
initial: 'idle', | |
context: { | |
winning: 'heads', | |
selected: 'tails' | |
}, | |
states: { | |
idle: { | |
on: { |
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
// file: app/authenticators/devise-token-auth.js | |
// fix for: https://github.com/simplabs/ember-simple-auth/issues/2206 | |
import Devise from "ember-simple-auth/authenticators/devise"; | |
import { Promise } from "rsvp"; | |
import { isEmpty } from "@ember/utils"; | |
import { run } from "@ember/runloop"; | |
import { merge, assign as emberAssign } from "@ember/polyfills"; | |
import fetch from "fetch"; | |
export default Devise.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 Controller from '@ember/controller'; | |
import { action } from '@ember/object'; | |
export default class ApplicationController extends Controller { | |
appName = 'Ember Twiddle'; | |
@action | |
parentAction() { | |
console.log('parent'); | |
} |
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
Reply from SSE regarding: https://twitter.com/MichalBryxi/status/1255426145316724741 | |
Hello Michal | |
Thank you for contacting us. I can see that this account is for an electricity | |
prepay meter account for 2 st Judes square that has been in your name since | |
01/06/2017. I can see in your messages that you have moved out of this property | |
and set up a new account. Customers can have multiple accounts and properties | |
with us. So we do have customers to contact us directly and request to close | |
the account when they move out. we didn't get a request to close the account |
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 Controller from '@ember/controller'; | |
import { htmlSafe } from '@ember/template'; | |
export default class ApplicationController extends Controller { | |
appName = 'Ember Twiddle'; | |
get foo() { | |
return htmlSafe('<strike>some</strike>String<script type="text/javascript">(console.log("bar"))();</' + 'script>') | |
} |
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 Twiddle' | |
}); |
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 Ember from 'ember'; | |
export default Ember.Controller.extend({ | |
appName: 'Ember Twiddle', | |
bigNumber: 1234567890 | |
}); |
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 {inject as service} from '@ember/service'; | |
export default Ember.Controller.extend({ | |
appName: 'Ember Twiddle', | |
companiesService: service('companies') | |
}); |
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 Twiddle' | |
}); |