Contains some helpful TypeScript functions.
The fix: <i innerhtml="<i class='${iconClass}'></i>"></i>
$ docker rmi $(docker images -q -f dangling=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
| import { JSEncrypt } from 'jsencrypt'; | |
| export class CryptographyUtils { | |
| private private_key = '-----BEGIN RSA PRIVATE KEY-----' + | |
| 'MIICXQIBAAKBgQDg2FPu8j317CkARCRDBXDp8Ury7W+VPjqrRhwTaqKGGLXeT2u/' + | |
| 'Ne13R9lNIhdWP/qbS8yI5RfPElzZ8PnXI8ihv4ij8bd9cdy/mDVeI+venwIDAQAB' + | |
| 'AoGBAKjYCn9/DaRlCY0XnptttJMZDY1LW+WY63m+lkrGYvGMENa2kVTdXp3tMI1d' + | |
| 'nGT+PTZAXYl52BAA7wYt3208q9PwTd7Cb7WwEu24QtsDFbkcm8RD7jntSgECQGN3' + | |
| 'sEYqeb+sPrSwuHx0/WcCQQCQ0o3W+tX4wTnZCp+ReqPHzzE7uSkcTzg7AEVSsjlI' + | |
| 'kgmaAt3txI7oABf8nDdi29s1o8KDV8UzQn+Jh9LXYdxs' + |
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 AsyncBindingBehavior { | |
| private bind(binding: any, source: any): void { | |
| binding.originalupdateTarget = binding.updateTarget; | |
| binding.updateTarget = (target: Promise<any>) => { | |
| // When we have a promise | |
| if (typeof target.then === 'function') { | |
| // Set temp value to loading so we know its loading | |
| binding.originalupdateTarget('Loading...'); | |
| // Process the promise |
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 ObjectUtilities { | |
| public static merge<T extends object = object>(target: T, ...sources: T[]): T { | |
| if (!sources.length) | |
| return target; | |
| const source = sources.shift(); | |
| if (source === undefined) | |
| return target; | |
| if (ObjectUtilities.isMergeableObject(target) && ObjectUtilities.isMergeableObject(source)) |