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
// some comment | |
export default a; |
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
// acasodbpandoüa p+a+l | |
export default a; |
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
// This adapter converts the `<template>` into a route template | |
export default <template>Hello world!</template>; |
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
<template> | |
<textarea>{{current}}</textarea> | |
</template> |
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
<template> | |
<textarea>{{current}}</textarea> | |
</template> |
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 Helper from '@ember/component/helper'; | |
import { registerDestructor, unregisterDestructor } from '@ember/destroyable'; | |
export default class GenericHelper extends Helper { | |
compute(positional, named) { | |
const firstTime = !this.updateCallback; | |
this.updateCallback = named.update; | |
if (named.teardown) { |
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
if (true) { | |
try { | |
const fs = require('fs'); | |
const nodePath = require('path'); | |
const memfs = require('memfs'); | |
const mem = memfs.fs; | |
// fs is missing vol.rmSync... | |
mem.rmSync = memfs.vol.rmSync.bind(memfs.vol); | |
const os = require('os'); |
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 MyHelper from "../helpers/my-helper"; | |
export default class AppController extends Controller { | |
myHelper = MyHelper; | |
} |
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
#expose components from addon to app | |
ls addon/components/**/component.* | xargs -I% sh -c 'p="%"; out=%;out=${out/addon/app};out=${out/.ts/.js};imp=${p/addon/ember-bscomponents};out=${out/components/components\/bs};imp=${imp/.ts/};imp=${imp/.js/};imp=\"$imp\"; mkdir | |
-p $(dirname $out) && echo "export { default } from $imp;" > $out' | |
#expose templates from addon to app | |
ls addon/components/**/template.* | xargs -I% sh -c 'p="%"; out=%;out=${out/addon/app};out=${out/.hbs/.js};imp=${p/addon/ember-bscomponents};out=${out/components/components\/bs};imp=${imp/.ts/};imp=${imp/.hbs/};imp=\"$imp\"; mkdi | |
r -p $(dirname $out) && echo "export { default } from $imp;" > $out' |
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 { tracked } from '@glimmer/tracking'; | |
export default class ApplicationController extends Controller { | |
@tracked appName = 'Ember Twiddle'; | |
@tracked items = []; | |
NewerOlder