View controllers.application.js
import Ember from 'ember';
export default Ember.Controller.extend({
db: Ember.computed('refreshDb', function() {
let dump = window.server.schema.db.dump();
return JSON.stringify(dump, null, 2);
}),
View gist:adf4d1d584df69c064c7
git branch --merged master | grep -v "\* master" | xargs -n 1 git branch -d
View controllers.application.js
import Ember from 'ember';
export default Ember.Controller.extend({
});
View controllers.application.js
import Ember from 'ember';
export default Ember.Controller.extend({
db: Ember.computed('refreshDb', function() {
let dump = window.server.schema.db.dump();
return JSON.stringify(dump, null, 2);
}),
View adapters.application.js
import DS from 'ember-data';
import UrlTemplates from 'ember-data-url-templates';
export default DS.JSONAPIAdapter.extend(UrlTemplates, {
host: '',
namespace: 'api',
urlTemplate: '{+host}/{+namespace}/{pathForType}{/id}',
});
View components.app-activity-tree.js
import Ember from 'ember';
export default Ember.Component.extend({
tagName: 'ul',
display: Ember.computed('data.[]', function() {
return this.get('data').slice(-1)[0];
}),
nested: Ember.computed('data.[]', function() {
return this.get('data').slice(0, -1);
}),
View components.app-activity-tree.js
import Ember from 'ember';
export default Ember.Component.extend({
tagName: 'ul',
display: Ember.computed('data', function() {
return this.get('data').pop();
}),
nested: Ember.computed('data', function() {
return this.get('data').slice(0, -1);
}),
View adapters.application.js
import Adapter from "ember-data/adapters/json-api";
export default Adapter.extend();
View gist:8961255
/*-------------------------------------------------------------------
*
* TRACK SOURCE WITH A COOKIE
* This will check if the query and save its values into a cookie for 180 days and will only be removed if they clear their cookies or if they visit via another source query
* ex. http://rmcad.edu/event/rmcad-create-day-0?utm_source=Social&utm_medium=Twitter&utm_campaign=CreateDay2.15
* utm_source = Social
* utm_medium = Twitter
* utm_campaign = CreateDay2.15
*
-------------------------------------------------------------------*/
View controllers.application.js
import Ember from 'ember';
export default Ember.Controller.extend({
appName: 'Ember Twiddle'
});