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 RESTAdapter from 'ember-data/adapters/rest'; | |
export default RESTAdapter.extend({ | |
/** | |
* @param {DS.Model} model | |
* @param {JSON} serializedCommentData | |
* @returns {*} | |
*/ | |
postComment(model, serializedCommentData) { |
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.RESTAdapter.extend({ | |
// namespace: 'api/v2', | |
host: 'http://localhost:8080', | |
find: function(store, type, id, snapshot) { | |
return this.ajax(this.buildURL(type.typeKey, id, snapshot, 'find'), 'GET'); | |
}, |
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 Route from 'ember-route'; | |
const ROUTE_LEVEL = { | |
third: 3, | |
fourth: 4 | |
}; | |
/** | |
* @param app | |
* @private |
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
var states = [ | |
{ | |
name: 'app', | |
abstract: true, | |
views: { | |
'app': { component: 'app' }, | |
'header@app': { component: 'header' }, | |
'footer@app': { component: 'footer' } | |
} | |
}, |
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
const fastbootTransform = require('fastboot-transform'); | |
const path = require('path'); | |
const mergeTrees = require('broccoli-merge-trees'); | |
const Funnel = require('broccoli-funnel'); | |
const resolve = require('resolve'); | |
const filesToImport = [ | |
'justifiedGallery/dist/css/justifiedGallery.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
import DS from 'ember-data'; | |
export default DS.RESTAdapter.extend({ | |
host: 'https://jsonplaceholder.typicode.com', | |
}); |
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', | |
actions: { | |
test() { | |
console.log(arguments); | |
} | |
}); |
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', | |
names: [ "María", "Søren Larsen", "João", "Saša Jurić", "Íñigo" ] | |
}); |
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 } from '@ember/object'; | |
export default class ApplicationController extends Controller { | |
appName = 'Ember Twiddle'; | |
@action | |
submitAction(e) { | |
e.preventDefault(); | |
console.log(e, 'test'); |
OlderNewer