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.Controller.extend({ | |
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 Ember from 'ember'; | |
export default Ember.Controller.extend({ | |
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 Ember from 'ember'; | |
export default Ember.Controller.extend({ | |
appName: 'Videos' | |
}); |
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'; | |
import moment from 'moment'; | |
function withLocale(locale, fn) { | |
let returnValue; | |
if (locale) { | |
let previousLocale = moment.locale(); | |
moment.locale(locale); | |
returnValue = fn(); | |
moment.locale(previousLocale); |
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 Component from '@ember/component'; | |
import { computed } from '@ember/object'; | |
import layout from '../../templates/components/power-calendar/months'; | |
import { scheduleOnce } from '@ember/runloop'; | |
import { A as emberA } from '@ember/array'; | |
import moment from 'moment'; | |
function withLocale(locale, fn) { | |
let returnValue; | |
if(locale) { |
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
<img src="{{root-url}}assets/images/Logo_400x100.png"> |
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 ENV from '../config/environment'; | |
import Configuration from 'ember-simple-auth/configuration'; | |
import setupSession from 'ember-simple-auth/initializers/setup-session'; | |
import setupSessionService from 'ember-simple-auth/initializers/setup-session-service'; | |
export default { | |
name: 'ember-simple-auth', | |
initialize(registry) { | |
const config = ENV['ember-simple-auth'] || {}; |
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
module ServiceInterface | |
def self.included(base) | |
base.send :include, InstanceMethods | |
end | |
module InstanceMethods | |
def test | |
"test" | |
end | |
end |
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({ | |
label: 'new tag', | |
type: '', | |
actions: { | |
add() { | |
let label = this.get('label'); | |
let type = this.get('type'); |
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.Controller.extend({ | |
appName: 'Ember Twiddle', | |
prompt: 'Choose something...', | |
disablePrompt: true | |
}); |