View components.my-component.js
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({ | |
someComputed: Ember.computed('structure.subscriptions.[]', function() { | |
return 'Some Computed: ' + this.get('structure.subscriptions.firstObject.name'); | |
}) | |
}); |
View components.my-fake-checkbox.js
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({ | |
checked: false, | |
isVisible: true | |
}); |
View contact.js
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 DS from 'ember-data'; | |
export default DS.JSONSerializer.extend({ | |
normalize(typeClass, hash) { | |
// return JSON API document | |
}, | |
pushPayload(store, payload) { | |
let normalizedPayload = this.normalize(typeClass, payload); | |
return this._super(store, normalizedPayload); | |
} |
View fastboot-launch.json
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
{ | |
"version": "0.2.0", | |
"configurations": [ | |
{ | |
"name": "Launch Fastboot", | |
"type": "node", | |
"request": "launch", | |
"program": "${workspaceRoot}/node_modules/.bin/ember", | |
"stopOnEntry": false, | |
"args": ["fastboot", "--serve-assets"], |
View show.js
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
model(params) { | |
let shoebox = this.get('fastboot.shoebox'); | |
let shoeboxStore = shoebox.retrieve('my-store'); | |
if (this.get('fastboot.isFastBoot')) { | |
return this.store.queryRecord('episode', { slug: params.slug }).then(episode => { | |
if(!shoeboxStore){ | |
shoeboxStore = {}; | |
shoebox.put('my-store', shoeboxStore); | |
} |
View module-for-acceptance-with-register.js
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 { module } from 'qunit'; | |
import startApp from '../helpers/start-app'; | |
import destroyApp from '../helpers/destroy-app'; | |
export default function(name, options = {}) { | |
module(name, { | |
beforeEach() { | |
this.application = startApp(); | |
// BugFix: Can be removed after 2.1. If resolver is set then fallback doesn't happen properly |
View ember-bootstrap-email-base-styles.css
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
.mail-box { | |
border-collapse: collapse; | |
border-spacing: 0; | |
display: table; | |
table-layout: fixed; | |
width: 100%; | |
} | |
.mail-box aside { | |
display: table-cell; | |
float: none; |
View config.js
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'; | |
const { get } = Ember; | |
export default function() { | |
this.namespace = 'api/v1'; | |
this.get('/emails', function({emails}, request) { | |
const folderName = request.queryParams.folderName; |
View module-for-acceptance-with-register
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 { module } from 'qunit'; | |
import startApp from '../helpers/start-app'; | |
import destroyApp from '../helpers/destroy-app'; | |
import { assertionInjector, assertionCleanup } from '../assertions'; | |
export default function(name, options = {}) { | |
module(name, { | |
beforeEach() { | |
this.application = startApp(); | |
assertionInjector(this.application); |
View show-note.js
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
model(params){ | |
return Ember.RSVP.hash({ | |
people: this.store.findAll('person'), | |
resources: this.store.findAll('resource'), | |
model: this.modelFor('episode.edit').get('showNotes').findBy('id', params.showNoteId) | |
}); | |
}, | |
setupController(controller, hash) { | |
controller.setProperties(hash); |