This file contains hidden or 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
// assumes script is in calcite-design-system/packages/calcite-components/support/ | |
import { promises as fs } from "fs"; | |
import { resolve } from "path"; | |
import type { JsonDocs } from "../calcite-components/dist/extras/docs-json.d.ts"; | |
(async () => { | |
const docsJsonPath = resolve("../calcite-components/dist/extras/docs-json.json"); | |
const docsJsonContent = await fs.readFile(docsJsonPath, "utf8"); | |
const docsJson: JsonDocs = JSON.parse(docsJsonContent); |
This file contains hidden or 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
#!/bin/zsh | |
# Check for correct number of arguments | |
if [ "$#" -ne 2 ]; then | |
echo "Usage: $0 <repo-url> <branch-name>" | |
exit 1 | |
fi | |
# Assign arguments to variables | |
REPO_URL=$1 |
This file contains hidden or 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
:host(:focus) { | |
&[active] { | |
foo: "bar"; | |
} | |
} | |
This file contains hidden or 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
:host(:focus) { | |
&[active] { | |
// ... | |
display: block; | |
} | |
} | |
This file contains hidden or 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 seededValue | |
@action seedValueWithFocusShift() { | |
document.getElementById('seeded').setFocus() | |
this.seededValue = Math.random() |
This file contains hidden or 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 } from '@glimmer/tracking'; | |
import { action } from '@ember/object'; | |
export default class ApplicationController extends Controller { | |
appName = 'Ember Twiddle'; | |
@tracked items; | |
init() { |
This file contains hidden or 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 } from '@glimmer/tracking'; | |
import { action } from '@ember/object'; | |
export default class ApplicationController extends Controller { | |
appName = 'Ember Twiddle'; | |
@tracked items; | |
init() { |
This file contains hidden or 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
/* | |
Enforceable by `component-member-order` rule (https://github.com/natemoo-re/tslint-stencil/blob/5aa7cfc5e3b627e67cd42ea3fbe7b8394fd14730/docs/component-member-order.md): | |
"component-member-order": { | |
"severity": "warn", | |
"options": { | |
"order": [ | |
"lifecycle", | |
"stencil-method", | |
"prop", |
This file contains hidden or 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
#set( $VM = $NAME + "ViewModel" ) | |
#set( $FULL_WIDGET_PATH = $PATH_TO_WIDGET_FOLDER + "/" + $NAME ) | |
#set( $MID = $FULL_WIDGET_PATH.replace("/", ".") ) | |
#set( $BASE_CSS_CLASS = $NAME.toLowerCase() ) | |
/// <amd-dependency path="esri/core/tsSupport/declareExtendsHelper" name="__extends" /> | |
/// <amd-dependency path="esri/core/tsSupport/decorateHelper" name="__decorate" /> | |
import { declared, property, subclass } from "esri/core/accessorSupport/decorators"; |