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 Component from '@glimmer/component'; | |
export default class extends Component { | |
} |
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
// src/utilities/inline-svg/helper.js | |
// @ts-ignore: | |
import { svgs } from '../../../utils/svgs'; | |
function dottify(path) { | |
return (path || '').replace(/^\//g, '').replace(/\//g, '.'); | |
} | |
export default function inlineSvg([path]) { |
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'; | |
import { getOwner } from '@ember/application'; | |
export default Ember.Controller.extend({ | |
routerService: service('router'), | |
appName: 'Ember Twiddle', | |
actions: { | |
actionOne() { | |
this.get('routerService').transitionTo('foo.bar.my-route', 1, { queryParams: { foo: 1 }}); |
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.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({ | |
someComputed: Ember.computed('structure.subscriptions.[]', function() { | |
return 'Some Computed: ' + this.get('structure.subscriptions.firstObject.name'); | |
}) | |
}); |
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({ | |
checked: false, | |
isVisible: true | |
}); |
Syntastic setup:
Install:
vim-syntastic/syntastic
Add the following to ~/.eslintrc
{
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 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); | |
} |
NewerOlder