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
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <meta charset="utf-8"> | |
| <meta name="viewport" content="width=device-width"> | |
| <title>JS Bin</title> | |
| </head> | |
| <body> | |
| <script id="jsbin-javascript"> |
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 { Observable } from '../../../../projects/demo-portal-angular/src/main/storefront-spa-webapp/node_modules/rxjs/Observable'; | |
| class CacheApi { | |
| private cachedStream: Observable; | |
| protected cached: boolean = false; | |
| public setCache(stream: Observable<any>) { | |
| this.cachedStream = stream.share(); | |
| this.cached = 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
| var hasPermission = function hasPermission(permission) { | |
| var mockUser = { | |
| role: 'ADMIN' | |
| }; | |
| var rolePermissions = { | |
| 'ADMIN': ['viewEmail'], | |
| 'ADMIN2': ['editEmail'] | |
| }; |
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
| <load-component | |
| [loadingMessage]="'Loading customers'" | |
| [errorMessage]="'Problem during loading customer list'" | |
| [emptyMessage]="'There are no customer'"> | |
| <customer-list (onload)="loaded()" | |
| (onerror)="error()" | |
| (onempty)="empty()"></customer-list> | |
| </load-component> | |
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
| <load-component | |
| [loadingMessage]="'Loading customers'" | |
| [errorMessage]="'Problem during loading customer list'" | |
| [emptyMessage]="'There are no customer'"> | |
| <customer-list (onload)="loaded()" | |
| (onerror)="error()" | |
| (onempty)="empty()"></customer-list> | |
| </load-component> | |
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
| { | |
| // autoformat on save | |
| "autoformat": true, | |
| // array of extensions for autoformat | |
| "extensions": ["js", "sublime-settings", "jsx"], | |
| // options for jsfmt | |
| "options": { | |
| "preset": "jquery", |
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
| { | |
| "name": "myapp", | |
| "version": "0.0.0", | |
| "dependencies": { | |
| "classnames": "^2.1.3", | |
| "dev": "^0.1.3", | |
| "flux": "^2.0.3", | |
| "grunt": "^0.4.5", | |
| "gulp": "^3.9.0", | |
| "immutable": "^3.7.4", |
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
| viktor@viktor-pc:~/Projects/github/LRN-React$ npm test | |
| > [email protected] test /home/viktor/Projects/github/LRN-React | |
| > jest | |
| == NOTICE: == | |
| Node and io.js will be merging. http://bit.ly/1dOjLVK | |
| On August 1st, 2015, Jest v0.5.x will work only on io.js until the merger is complete | |
| Legacy v0.4.x for Node 0.10.x will still be available on |
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
| { | |
| "name": "databits", | |
| "version": "0.0.0", | |
| "dependencies": { | |
| "angular": "1.3.16", | |
| "json3": "~3.2.6", | |
| "es5-shim": "~2.1.0", | |
| "jquery": "~1.11.0", | |
| "bootstrap-sass-official": "~3", | |
| "angular-resource": "1.3.16", |