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 Component from '@glimmer/component'; | |
import { action } from '@ember/object'; | |
import { inject as service } from '@ember/service'; | |
export default class extends Component { | |
@service router; | |
@action async delete() { | |
const a = this.args.a; | |
const b = a.b; |
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 Component from '@glimmer/component'; | |
export default class extends Component { | |
} |
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'; | |
export default class ApplicationController extends Controller { | |
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 Controller from '@ember/controller'; | |
import { tracked as glimmerTracked } from '@glimmer/tracking'; | |
import { tracked as builtinsTracked } from 'tracked-built-ins'; | |
import { action, computed } from '@ember/object'; | |
export default class ApplicationController extends Controller { | |
appName = 'Ember Twiddle'; | |
untrackedArray = []; | |
@glimmerTracked plainTrackedArray = []; |
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'; | |
import { inject as service } from '@ember/service'; | |
export default class extends Controller { | |
@service router; | |
@action | |
redirectWithTransitionToRoute() { | |
this.transitionToRoute('b'); |
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
let a = { foo: 'bar' }; | |
let [b] = a; | |
// => Uncaught TypeError: a is not iterable | |
let c = { foo: { bar: 'baz' } }; | |
let [d] = c.foo; | |
// => Uncaught TypeError: undefined is not a function |
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
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 |
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 Component from '@glimmer/component'; | |
export default class extends Component { | |
} |
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
// 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; |
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
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. |
NewerOlder