Skip to content

Instantly share code, notes, and snippets.

View bartocc's full-sized avatar

Julien Palmas bartocc

View GitHub Profile
@bartocc
bartocc / foo.gts
Last active September 8, 2023 08:19
Component block argument signature not available in consuming app
import Component from '@glimmer/component';
import { hash } from '@ember/helper';
import { Input } from '@ember/component';
import { WithBoundArgs } from '@glint/template';
/*****************************
ConsumingComponent
*****************************/
class ConsumingComponent extends Component {
@bartocc
bartocc / semantic.less
Created March 6, 2020 09:10
ember-fui-less snippets
/* Elements */
& { @import "definitions/elements/button"; } // My app uses fomantic-ui buttons
& { @import "definitions/elements/container"; } // My app uses fomantic-ui containers
// My app DOES NOT need these ⬇️ fomantic-ui elements
// & { @import "definitions/elements/divider"; }
// & { @import "definitions/elements/emoji"; }
// & { @import "definitions/elements/flag"; }
// & { @import "definitions/elements/header"; }
// & { @import "definitions/elements/icon"; }
Error: Could not find module `fetch` imported from `dummy/instance-initializers/setup-fetch`
at missingModule (/private/tmp/ember-cli-mirage/tmp/broccoli_persistent_filterreplace_filter-output_path-4chjqu4j.tmp/assets/vendor/loader/loader.js:247:1)
at findModule (/private/tmp/ember-cli-mirage/tmp/broccoli_persistent_filterreplace_filter-output_path-4chjqu4j.tmp/assets/vendor/loader/loader.js:258:1)
at Module.findDeps (/private/tmp/ember-cli-mirage/tmp/broccoli_persistent_filterreplace_filter-output_path-4chjqu4j.tmp/assets/vendor/loader/loader.js:168:1)
at findModule (/private/tmp/ember-cli-mirage/tmp/broccoli_persistent_filterreplace_filter-output_path-4chjqu4j.tmp/assets/vendor/loader/loader.js:262:1)
at requireModule (/private/tmp/ember-cli-mirage/tmp/broccoli_persistent_filterreplace_filter-output_path-4chjqu4j.tmp/assets/vendor/loader/loader.js:24:1)
at resolveInitializer (/private/tmp/ember-cli-mirage/tmp/broccoli_persistent_filterreplace_filter-output_path-4chjqu4j.tmp/assets/ad
import Ember from 'ember';
export default Ember.Controller.extend({
appName: 'Ember Twiddle'
});
@bartocc
bartocc / controllers.application.js
Created May 11, 2017 08:27
ember-awesome-macros and ember-moment
import Ember from 'ember';
export default Ember.Controller.extend({
appName: 'Ember Twiddle'
});
@bartocc
bartocc / application.controller.js
Last active April 26, 2017 08:57
ember-component-css extends
import Ember from 'ember';
export default Ember.Controller.extend({
appName: 'Ember Twiddle'
});
@bartocc
bartocc / controllers.application.js
Last active April 12, 2017 08:21
Infinite loop marker cluster
import Ember from 'ember';
export default Ember.Controller.extend({
appName: 'Ember Twiddle'
});
@bartocc
bartocc / components.my-component.js
Created March 23, 2017 16:22
observer always fired
import Ember from 'ember';
export default Ember.Component.extend({
aFlag: Ember.computed('foo', function() {
return false;
}),
aFlagChanged: Ember.observer('aFlag', function () {
alert('Why do I appear?');
})
@bartocc
bartocc / controllers.application.js
Last active February 7, 2017 09:30
twiddle using ember-leaflet
import Ember from 'ember';
export default Ember.Controller.extend({
appName: 'Ember Twiddle'
});
@bartocc
bartocc / controllers.application.js
Last active February 7, 2017 09:55
ember-leafet bug
import Ember from 'ember';
export default Ember.Controller.extend({
appName: 'Ember Twiddle'
});