This is fancy application or library description.
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 agGrid from "agGrid"; | |
import { schedule } from "@ember/runloop"; | |
import { tracked } from "@glimmer/tracking"; | |
import { action } from "@ember/object"; | |
function createAgGridWrapper(component) { | |
class Box { | |
@tracked |
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
{ | |
"each autocomplete": { | |
"prefix": "{{#each", | |
"body": [ | |
"{{#each ${1:items} as |${2:item}|}}", | |
" ${3:content}", | |
"{{/each" | |
], | |
"description": "each autocomplete" | |
}, |
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
class MyApp extends HTMLElement { | |
constructor() { | |
super(); | |
this.shadow = this.attachShadow({ mode: 'open' }); | |
this.shadow.classList = { | |
contains: () => { return false } | |
}; | |
} | |
connectedCallback() { | |
const node = document.createElement('div'); |
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
'use strict'; | |
const EmberApp = require('ember-cli/lib/broccoli/ember-app'); | |
module.exports = function (defaults) { | |
let app = new EmberApp(defaults, {}); | |
// we need to add emebr-template-compiler into runtime | |
app.import('node_modules/ember-source/dist/ember-template-compiler.js'); |
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 EmberCore; | |
try { | |
EmberCore = requireModule('ember')['default']; | |
} catch { | |
EmberCore = window.Ember; | |
} | |
const keys = ['application','engine']; | |
//const isEmberApp = (el) => el._debugContainerKey && keys.includes(el._debugContainerKey.split(':')[0]); |
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 SecondComponent from 'foo/bar'; | |
function MyComponent(args) { return { a: 1, b: 2, c: args.e } } | |
function hasHelperManagerFor() { | |
return true; | |
} | |
function hasComponentManagerFor() { |
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 { tracked } from '@glimmer/tracking'; | |
class ReactivePart { | |
constructor(placeholder) { | |
this.value = placeholder.replace('{{', '').replace('}}',''); | |
this.placeholder = placeholder; | |
} | |
get isEditable() { | |
return this.placeholder.startsWith('{{'); |