Skip to content

Instantly share code, notes, and snippets.

@pgengler
pgengler / Testing drag-and-drop - Ember NYC 2016-04-28
Last active May 5, 2017 15:03
Testing drag-and-drop - Ember NYC 2016-04-28
Testing drag-and-drop
Phil Gengler
@pgengler
Ember NYC
April 28, 2016
@pgengler
pgengler / components.x-thing.js
Last active August 26, 2016 22:11
ember-power-select focus bug
import Ember from 'ember';
export default Ember.Component.extend({
focusCount: 0,
actions: {
gotFocus() {
this.incrementProperty('focusCount');
if (this.get('focusCount') !== 1) {
throw "got unexpected second focus event";
}
@pgengler
pgengler / controllers.application.js
Last active April 25, 2017 21:52
ember-power-select-typeahead focus
import Ember from 'ember';
export default Ember.Controller.extend({
appName: 'Ember Twiddle',
selectOptions: [ 'abc', 'def', 'ghi', 'jkl', 'mno', 'pqrs', 'tuv', 'wxyz' ],
selectedOption: Ember.computed.oneWay('selectOptions.firstObject'),
gotFocus: false,
actions: {
@pgengler
pgengler / mirage.config.js
Last active April 30, 2017 20:23 — forked from cs3b/mirage.config.js
Mirage hyphenated model bug
export default function() {
//window.server = this;
this.get('book-entry');
};

Keybase proof

I hereby claim:

  • I am pgengler on github.
  • I am pgengler (https://keybase.io/pgengler) on keybase.
  • I have a public key whose fingerprint is B3E8 56B7 5698 49E2 8ABB 47B8 47F2 08C6 0167 7D7C

To claim this, I am signing this object:

yarn install v1.6.0
[1/4] Resolving packages...
warning ember-cli > [email protected]: Please replace with usage of fs.existsSync
warning ember-cli > broccoli-stew > broccoli-funnel > [email protected]: Please replace with usage of fs.existsSync
warning ember-cli > ember-cli-preprocess-registry > [email protected]: Please replace with usage of fs.existsSync
[2/4] Fetching packages...
[3/4] Linking dependencies...
warning " > [email protected]" has unmet peer dependency "eslint@>=3.1.0".
[4/4] Building fresh packages...
Done in 15.33s.
yarn install v1.6.0
[1/4] Resolving packages...
warning ember-cli > [email protected]: Please replace with usage of fs.existsSync
warning ember-cli > broccoli-stew > broccoli-funnel > [email protected]: Please replace with usage of fs.existsSync
warning ember-cli > ember-cli-preprocess-registry > [email protected]: Please replace with usage of fs.existsSync
[2/4] Fetching packages...
[3/4] Linking dependencies...
warning " > [email protected]" has unmet peer dependency "eslint@>=3.1.0".
[4/4] Building fresh packages...
Done in 13.67s.
// Borrowed from https://github.com/heroku/ember-sortable/pull/181
// until a version of ember-sortable with that PR (or something similar) lands
import { findAll, triggerEvent } from '@ember/test-helpers';
import { resolve } from 'rsvp';
export async function drag(mode, item, offsetFn, callbacks = {}) {
let start;
let move;
let end;
import Component from '@glimmer/component';
export default class extends Component {
}
ember try:ember '~3.16.0 || ~3.20.0 || ~3.24.0 || >=3.25.0' --skip-cleanup=true
(node:610) ExperimentalWarning: The fs.promises API is experimental
(node:623) ExperimentalWarning: The fs.promises API is experimental
added 622 packages, removed 403 packages, changed 131 packages, and audited 2468 packages in 37s
82 packages are looking for funding
run `npm fund` for details
7 low severity vulnerabilities