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 { Rule, SchematicContext, Tree, chain } from '@angular-devkit/schematics'; | |
| import { | |
| addPackageJsonDependency, | |
| NodeDependency, | |
| NodeDependencyType, | |
| } from '@schematics/angular/utility/dependencies'; | |
| import { NodePackageInstallTask } from '@angular-devkit/schematics/tasks'; | |
| import { dependencies } from '../dependencies'; | |
| function addDependencies(): Rule { |
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 const dependencies: { [key: string]: string } = { | |
| '@ngx-translate/core': '^10.0.2', | |
| lodash: '4.17.10', | |
| 'ngx-mask': '^6.5.15' | |
| }; |
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
| function addVsCodeSettings(): Rule { | |
| return (tree: Tree, _context: SchematicContext) => { | |
| const templateSource = apply(url('./files/.vscode'), [ | |
| move('./.vscode'), | |
| forEach((fileEntry: FileEntry) => { | |
| if (tree.exists(fileEntry.path)) { | |
| _context.logger.warn(`Warning: you've overriden ${ | |
| fileEntry.path | |
| }. If you did not mean | |
| to do this, restore these files via source control immediately after this operation.`); |
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 function mySchematic(_options: any): Rule { | |
| return (tree: Tree, _context: SchematicContext) => { | |
| return chain([ | |
| addDependencies(), | |
| addVsCodeSettings() | |
| ])(tree, _context); | |
| }; | |
| } |
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
| version: 1 | |
| snapshot: | |
| percy-css: | | |
| [data-qa="experiment_panel"] { | |
| display none !important; | |
| } |
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
| "test:integration:finalize:percy": "percy finalize --all", | |
| "test:integration:checkout": "npm run build:integration && LOG_LEVEL=fatal npm run serve & wait-on http://localhost:5100 && NODE_PATH=src percy exec -- cypress run --record --group checkout --spec 'cypress/integration/checkout/**/*'", | |
| "test:integration:main": "npm run build:integration && LOG_LEVEL=fatal npm run serve & wait-on http://localhost:5100 && NODE_PATH=src percy exec -- cypress run --parallel --record --group main --spec 'cypress/integration/main/**/*'", |
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
| const debounceSearch = useRef( | |
| _.debounce(searchTerm => { | |
| searchCharacters(searchTerm).then(results => { | |
| setIsSearching(false); | |
| // Filter out results with no thumbnail | |
| const filteredResults = results.data.results.filter( | |
| result => result.thumbnail.path.indexOf("image_not_available") === -1 | |
| ); | |
| setResults(filteredResults); | |
| }); |
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 React, { Component } from 'react'; | |
| import './App.css'; | |
| import DummyStore from './dummy-store'; | |
| import Header from './Header'; | |
| import SidebarSection from './SidebarSection'; | |
| import NoteSection from './NoteSection'; | |
| class App extends Component { | |
| constructor(props) { | |
| super(props) |
OlderNewer