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
| { | |
| "configurations": [ | |
| { | |
| "type": "node", | |
| "request": "launch", | |
| "name": "Debug Jest all tests", | |
| "program": "${workspaceFolder}\\node_modules\\jest\\bin\\jest", | |
| "//comment":"--runInBand allows the 'debugger' and breakpoints to be hit --verbosity false due to bug where console.log is not seen on the console", | |
| "args": ["--runInBand", "--verbose", "false"], | |
| "cwd": "${workspaceFolder}" |
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
| { | |
| "editor.quickSuggestions": { | |
| "other": false, | |
| "comments": false, | |
| "strings": false | |
| }, | |
| "editor.suggest.localityBonus": true, | |
| } |
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
| @Component({ | |
| selector: "gp-button1", | |
| template: ` | |
| <p class="button"> | |
| button1 works! | |
| </p> | |
| `, | |
| styles: [".button { background-color: green; color: white}"], | |
| encapsulation: ViewEncapsulation.Emulated // the default | |
| }) |
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 { Component, ViewEncapsulation } from '@angular/core'; | |
| @Component({ | |
| selector: "gp-button2", | |
| template: ` | |
| <button class="button" (click)="onToggleDialogClick()"> | |
| Show dialog | |
| </button> | |
| <p-dialog header="Title" [(visible)]="visible"> | |
| This is the dialog content |
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 { Component, ViewEncapsulation } from '@angular/core'; | |
| @Component({ | |
| selector: "gp-button2", | |
| template: ` | |
| <button class="button" (click)="onToggleDialogClick()"> | |
| Show dialog | |
| </button> | |
| <p-dialog header="Title" [(visible)]="visible"> | |
| This is the dialog content |
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
| <my-app _nghost-c3="" ng-version="7.2.8"> | |
| <gp-button2 _ngcontent-c3="" _nghost-c4=""> | |
| <button _ngcontent-c4="" class="button"> Show dialog </button> | |
| <p-dialog _ngcontent-c4=""> | |
| ..skip for brevity | |
| </p-dialog> | |
| </gp-button2> | |
| </my-app> |
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
| setTimeout(() => console.log('immediate timeout'), 0) | |
| new Promise(res => res('immediate promise')).then(console.log) | |
| console.log('after all'); | |
| // logs | |
| // 'after all' | |
| // 'immediate promise' | |
| // 'immediate timeout' | |
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
| export class WalletService { | |
| createWallet() { | |
| const ethers = System.import(/* webpackChunkName: 'bip39_ethers' */'ethers'); | |
| const bip39 = System.import(/* webpackChunkName: 'bip39_ethers' */'bip39'); | |
| } | |
| } | |
| // resulting in webpack splitting bip39_ethers.chunk.js | |
| // and only loading it when a user needs to create a wallet |
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
| FROM mcr.microsoft.com/dotnet/core/sdk:2.2 | |
| # Install Node.js LTS | |
| RUN curl -sL https://deb.nodesource.com/setup_8.x | bash - | |
| RUN apt-get install -y nodejs | |
| # need gulp as a globally available cli tool | |
| RUN npm -g install gulp | |
| # install packages (and cache until package json changed) | |
| WORKDIR /build/Web-App/AllReady |
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
| Copy . . |